Welcome to Geeklog, Anonymous Friday, April 26 2024 @ 11:55 am EDT

Geeklog Forums

Correct placement of menu change


Status: offline

Rick78

Forum User
Regular Poster
Registered: 10/20/03
Posts: 98
Hi,

I have the following problem:
Users cannot change their preferences. The themes I am using only show the account information and there is no link to the preference page (language, show online, etc)

I have added the following to my lib-common.php in order to get the link in the user function block:
Text Formatted Code

$url = $_CONF['site_url'] . '/usersettings.php?mode=preferences';
        $usermenu->set_var( 'option_label', $LANG01[49] );
        $usermenu->set_var( 'option_count', '' );
        $usermenu->set_var( 'option_url', $url );
        if( $thisUrl == $url )
        {
            $retval .= $usermenu->parse( 'item', 'current' );
        }
        else
        {
            $retval .= $usermenu->parse( 'item', 'option' );
        }
 


Where is the correct placement for this?
If it is in the lib-custom.php, how should it be placed in there?
Pasting the same code did not do anything and I am unsure how much of the function should be there.

Thanks,
Rick

 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Not sure what you're trying to accomplish. To address your actual problem with the user settings, I'd suggest you copy over the "preferences" and "navbar" directories from the Professional theme and see if that helps in making the "My Account" page fully functional.

bye, Dirk
 Quote

Status: offline

Rick78

Forum User
Regular Poster
Registered: 10/20/03
Posts: 98
Well, that was exactly what I was trying to do.
Perfect.

Thanks
Rick
 Quote

All times are EDT. The time is now 11:55 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content