Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   [SOLVED] How to turn off the header image on all pages except the home page in 3.6.4? (http://forum.bytesforall.com/showthread.php?t=13319)

neondevil Mar 15, 2011 03:44 PM

[SOLVED] How to turn off the header image on all pages except the home page in 3.6.4?
 
I was using <?php if(is_front_page())echo '%image'; ?> on an older version of the theme to get the rotating header only on the front page. I had put it in the configure header area.

I just upgraded wordpress and atahualpa and now I get the error: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in bfa://configure_header on line 18


I'm not sure what's up, does anybody have any ideas?

neondevil Mar 16, 2011 11:09 PM

Quote:

Originally Posted by STB (Post 60704)
Not a solution, but i can confirm im getting the same thing when trying this out on a testserver.

It gives me this error in the apache error log:
PHP Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in bfa://configure_header on line 33


Im not 100% sure, but it could be related to the new way atahualpa parses php code in 3.6.


Hmm would that mean I'm calling a function that isn't there or moved?

neondevil Mar 17, 2011 04:51 PM

Quote:

Originally Posted by STB (Post 60848)
no, thats not what it means. (you arent calling a function to begin with)

almost sure this is a problem with atahualpa 3.6 stream wrapper

havent found a fix yet

I'm not really knowledgeable on PHP but would it be if(front page is loaded) then %image?


Thanks a lot for the help by the way I really appreciate it.

juggledad Mar 17, 2011 07:36 PM

This is an issue with the change to stream wrappers from the eval() function. I've a message into the developer and am awaiting a opinion from him. I do have a partial solution but will wait to hear from Flynn first.

neondevil Mar 19, 2011 11:22 PM

Quote:

Originally Posted by juggledad (Post 60872)
This is an issue with the change to stream wrappers from the eval() function. I've a message into the developer and am awaiting a opinion from him. I do have a partial solution but will wait to hear from Flynn first.


Did he ever get back to you? I'm curious what's causing all this.

neondevil Mar 28, 2011 01:29 PM

Has there been any luck?

neondevil Mar 30, 2011 03:19 PM

One last bump to see if anything was found out.

juggledad Mar 30, 2011 03:22 PM

I'll rattle Flynn's cage again

neondevil Mar 31, 2011 11:42 AM

Quote:

Originally Posted by juggledad (Post 62019)
I'll rattle Flynn's cage again

Thanks for that.

juggledad Apr 4, 2011 12:16 PM

Try this, use
HTML Code:

<?php if (is_front_page()) { ?> %image <?php }; ?>

neondevil Apr 13, 2011 07:23 AM

Quote:

Originally Posted by juggledad (Post 62395)
Try this, use
HTML Code:

<?php if (is_front_page()) { ?> %image <?php }; ?>


That did it! Thanks!


All times are GMT -6. The time now is 04:33 PM.

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