Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

[SOLVED] Header regex on WP MS


 
Prev Previous Post   Next Post Next
  #1  
Old Dec 20, 2010, 07:48 AM
boone
 
5 posts · Dec 2010
[SOLVED] Header regex on WP MS

(See http://forum.bytesforall.com/showthread.php?t=11814 for details on getting the rotating header to recognize images in Dashboard > Media on WP Multisite.)

The regex used in functions/bfa_rotating_header_images.php doesn't work for images that have been uploaded through Dashboard > Media. WP adds an image dimension to the filename, which Atahualpa is not looking for (eg atahualpa_header_2-1024x100.png). The following modification to the regex worked for me:

$files = m_find_in_dir(get_option('upload_path'), 'atahualpa_header_[0-9]+(\-[0-9]+x[0-9]+)?\.(jpe?g|png|gif|bmp)$');

All times are GMT -6. The time now is 04:23 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.