Announcement

Collapse
No announcement yet.

Placing the $logincode inside the header

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • tubedogg
    replied
    Since this involves hacking please ask at www.vbulletin.org .

    Leave a comment:


  • Viper220
    started a topic Placing the $logincode inside the header

    Placing the $logincode inside the header

    I know you have the change global.php to enable putting the $logincode inside the header.

    So, I took this from index.php:

    // if user is know, then welcome
    if ($bbuserinfo['userid']!=0) {
    $username=$bbuserinfo['username'];
    eval("\$welcometext = \"".gettemplate('forumhome_welcometext')."\";");
    eval("\$logincode = \"".gettemplate('forumhome_logoutcode')."\";");
    eval("\$newposts = \"".gettemplate('forumhome_newposts')."\";");

    } else {
    $welcometext = "";
    eval("\$newposts = \"".gettemplate('forumhome_todayposts')."\";");
    eval("\$logincode = \"".gettemplate('forumhome_logincode')."\";");
    }

    And put that under the:
    // ###################### Start load options #######################
    section in global.php. However, while the logincode box now shows up inside my header, it always shows the login box even if the user is already logged in. Unlike the one at the bottom of the page, it doesn't switch to the "logout" option.

    Anyone know what I have to do to fix this?

    Thanks,
    Brian
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X