Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 10:20 pm EST
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:
$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
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
6
9
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
bye, Dirk
8
27
Quote
All times are EST. The time is now 10:20 pm.
- 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