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] Dynamic Headers Plugin & Atahualpa 3.6.7.


  #1  
Old Jul 20, 2011, 10:45 AM
NoisyDvL5's Avatar
NoisyDvL5
 
27 posts · Jun 2010
Missouri
[SOLVED] Dynamic Headers Plugin & Atahualpa 3.6.7.

Ive been using the Dynamic Headers plugin to give specific pages specific headers in my otherwise atahualpa run site, http://www.itsalltrue.net

I had to update to 3.6.7 (& WP 3.2.1) today because of some sitewide problem that inserted whitespace into tons of PHP files. After patching everything up, the Dynamic Headers plugin no longer works with Atahualpa.

Dynamic headers requires that this be inserted where it's called for:

<?php if(function_exists('show_media_header')){ show_media_header(); } ?>

That used to be able to be placed in the Configure Header Area, but that no longer works. I assume that's because WP's new rules regarding custom php.

So, the long way to get to my question is... where in the Atahualpa theme files should I place that custom insert?

(This is just the first of many problems today including not knowing how to do two column loops in 3.6.7, placing content above the loop in 3.6.7, etc. This whitespace/php problem and it's solution has really screwed up my entire site today and I still don't know the cause.)

Thanks in advance for any help.

Last edited by NoisyDvL5; Jul 20, 2011 at 11:17 AM.
  #2  
Old Jul 20, 2011, 12:35 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
It needs to go in index.php
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jul 20, 2011, 01:34 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
Or you can add a new widget area and put that code in a php aware widget.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #4  
Old Jul 20, 2011, 03:24 PM
NoisyDvL5's Avatar
NoisyDvL5
 
27 posts · Jun 2010
Missouri
Thank you for the help so far.

Juggledad, can you be more specific? I had narrowed it down to that file, but I'm not sure of the exact spot. Since the site had a PHP meltdown today, I'm a little gunshy. My index.PHP is a brand new 3.6.7 copy.

lmilesw, the widget solution would resist updates to the index file wouldn't? Hmm. I need to (re) add some content above the loop, a widget there would do some good.


While I'm here, can either if you give any hint to what might cause several PHP files, some in a phpbb forum and some in the wp/Atahualpa section to suddenly have several spaces added to them? I'm sure could be a million reasons, but it seems like it shouldn't and this is the second time in 8 weeks that our site has been crippled by it.

Last edited by NoisyDvL5; Jul 20, 2011 at 03:28 PM.
  #5  
Old Jul 20, 2011, 04:10 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You can put the code in index.php, but if you want it in the header, Larry's suggestion is best. Add a new widget area to the ato->Style & edit HEADER AREA->Configure Header Area, then add your code to a text widget - you will also need something like the 'exec-php' plugin. This method will survive updates. (note: doing it this way, you can control where in the header is shows up, by it's location in the order of options)

If you want to put the code directly in index.php, put it right before line 7
HTML Code:
<?php /* If there are any posts: */
which is the start of the loop.

Quote:
While I'm here, can either if you give any hint to what might cause several PHP files, some in a phpbb forum and some in the wp/Atahualpa section to suddenly have several spaces added to them? I'm sure could be a million reasons, but it seems like it shouldn't and this is the second time in 8 weeks that our site has been crippled by it.
A possibility is you have been hacked. Look at the access logs and see if anyone is getting into the site using ftp who isn't authorized. also take a look at the plugin and theme files and look for any encrypted code.

Code doesn't just change itself, something or someone had edited it or replaced it with a different version. Look at the time stamps on the files also.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #6  
Old Jul 20, 2011, 09:36 PM
NoisyDvL5's Avatar
NoisyDvL5
 
27 posts · Jun 2010
Missouri
Thanks, I'll shoot for the widget open first.

There were still some corrupted areas of the site - the forum - and sure enough the files with spaces in them were updated over the course of an hour this morning. My hosting company is looking into it on their end. I'll have to dig into my CPanel and see if I can find more info for that timeframe.

Things are getting back in order. After I get the header fixed I've just got to figure out how to put the two columns back.

Thank you again.

Edit... Okay, I tried to solve this one on my own, but I've been unsuccessful. Since this header is now in a widget, it's subject to the widget styling. Can I write something into CSS to suspend those styles from affecting it or would it have to be the other way around, to remove the widget styling from the ATO and then put the styles in the CSS to affect the ones that aren't the header? My id for the header is div id="header" but the class is either class="bfa_widget_area", class="widget widget_text", or class="textwidget". I've tried calling for various ones, but haven't been succesful in affecting the styles.

Last edited by NoisyDvL5; Jul 21, 2011 at 12:10 AM.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Using Overlay Header Image and Dynamic Headers plugin patricka Forum How-To 12 Mar 7, 2011 07:16 PM
How to enable Dynamic Headers plug-in in Atahualpa? katsnelson Plugins & Atahualpa 4 Jan 30, 2011 04:27 AM
Trying to insert 'dynamic headers' into horbar2 fruitbat Plugins & Atahualpa 17 Oct 5, 2009 06:46 AM
Do not upgrade dynamic headers - help! krystyna Plugins & Atahualpa 9 Aug 10, 2009 09:30 AM


All times are GMT -6. The time now is 10:19 AM.


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