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)
-   -   Sign up Box in Header (http://forum.bytesforall.com/showthread.php?t=4188)

Mande Nov 3, 2009 07:45 AM

Sign up Box in Header
 
I'm creating a blog that is identical to a website already designed. In the header of the website there is a box in the upper right where members can login. How do I include this login box in the Atahualpa header?

juggledad Nov 3, 2009 09:04 AM

One way you could do it would be to use the new widget area and build your header using that - split the area 90/10, put your header image in the 90% and put a signup form in the 10%

Mande Nov 3, 2009 10:48 AM

I did not realize you could do that now. Great!

Just to learn I installed the example code into the Configure Header Area and get an error message.

Inserted this code:
<?php bfa_widget_area('name=My widget area&cells=4&align=1&align_2=9&align_3=7&width_4=7 00&before_widget=<div id="%1" class="header-widget %2">&after_widget=</div>'); ?>

into "configure header area"

get this error:

Fatal error: Call to undefined function: str_ireplace() in /home/speaker/public_html/blog/wp-content/themes/atahualpa342/functions.php on line 321

Suggestions?

Thanks!

P.S. I just made a donation through paypal-thanks for your help!

juggledad Nov 3, 2009 11:19 AM

you are using PHP 4.x - str_ireplace() was added to PHP 5.x
Check with your host to see if they have an option to swap to php 5 (at GoDaddy it's controled by a line in the .htaccess file). While you can change the code and replace the str_ireplace() with str_replace(), you should move to php5.x.

check with your provider

Mande Nov 3, 2009 11:41 AM

I've just been given access to set up the blog so I don't think its an option to upgrade the PHP but I'll check. in the meantime. where in the theme files do I edit that code?

juggledad Nov 3, 2009 12:13 PM

umm, like the message says, line 321 in function.php :p

Be aware that you may run into more issues espically wiith widgets if you remain on php4.

You should also upgrade Atahualpa to 3.4.4 - where the 'str_ireplace' has already been replaced witht the 'str_replace'.


All times are GMT -6. The time now is 05:20 AM.

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