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 » Page & Category Menu Bars »

adding login/logout to menu bar


  #1  
Old Jan 12, 2011, 11:05 AM
Pshill
 
5 posts · Nov 2010
adding login/logout to menu bar

Hi,

there was a thread in march 2009 on adding login/logout to the menu bar . I cannot find the correct location to add this to bfa_header_config.php in the current iteration as of 1/10/11. Can you help? Thanks
  #2  
Old Jan 12, 2011, 12:06 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
1) what was the thread and
2) what is your 'the current iteration as of 1/10/11' ?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jan 12, 2011, 12:26 PM
Pshill
 
5 posts · Nov 2010
this was the thread
http://forum.bytesforall.com/showthr...add+login+menu

atahualpa 3.6

looking to add login to menu bar
  #4  
Old Jan 12, 2011, 01:11 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
in 3.6.1 edit bfa_header_config.php and change lines 65-69 from
HTML Code:
			// Close table if centered
			if ( strpos($header_items,"%page-center") !== FALSE ) 
				echo '</ul></td></tr></table></div>' . "\n";
			else 
				echo '</ul></div>' . "\n";
to
HTML Code:
			// Close table if centered
			if ( strpos($header_items,"%page-center") !== FALSE )  {
				echo  "\n<li>";
				echo  wp_loginout();
				echo  '</li></ul></td></tr></table></div>' . "\n";
			} else {
				echo "\n<li>";
				echo wp_loginout();
				echo '</li></ul></div>' . "\n";
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Jan 12, 2011, 03:07 PM
Pshill
 
5 posts · Nov 2010
tried the suggestion and end up with a parse error

Parse error: syntax error, unexpected T_ELSE in /home/artiq99/public_html/optionspowerhouse.com/wp-content/themes/atahualpa/functions/bfa_header_config.php on line 140

any ideas thanks
  #6  
Old Mar 30, 2011, 06:29 PM
SupraTT's Avatar
SupraTT
 
78 posts · May 2009
Hi Pshill,

Did you get this to work? There was a missing "}" for the last else statement. That could be the issue.

SupraTT
__________________
---
>> Los Angeles Search Engine Marketing - Web Development & Marketing

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding login/logout menu option. soop Atahualpa 3 Wordpress theme 12 Sep 12, 2011 01:01 PM
[SOLVED] Adding Categories to Menu Bar GreenEcoChick Page & Category Menu Bars 4 Oct 15, 2010 08:00 PM
Automatically adding new pages to page menu bar oskarfalk Page & Category Menu Bars 1 Sep 11, 2010 09:00 AM
Adding a category to my top menu bar glennvogelsang Page & Category Menu Bars 4 Jul 7, 2010 09:31 AM
Adding an image to b/g of menu bar nickcee Page & Category Menu Bars 12 Apr 27, 2009 07:52 PM


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


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