vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Possible to turn off "Sign Up" link in global site nav (https://vborg.vbsupport.ru/showthread.php?t=160088)

Verbose 10-12-2007 05:23 PM

Possible to turn off "Sign Up" link in global site nav
 
Hi there,

I am using a site-wide header.ssi file on all pages of my site, including at the top of my vBulletin forum - this header.ssi contains my site logo and global site nav, and also a "Sign Up" link that leads to the vBulletin Sign Up page (/forums/register.php).

Question:
Is is possible to hide the global "Sign Up" link in my header.ssi file after a user has logged into vBulletin using CSS or javascript or something???

The reason being, it is confusing to display this Sign Up link to users who are already signed up! :)

Thanks!

Dismounted 10-13-2007 04:15 AM

As it is a Server Side Include, and not PHP that cannot be done. Unless you have two files, one with and one without the link, then use PHP to select which file to include. Then, you might as well convert the whole thing to PHP.

Awjvail 10-13-2007 06:01 AM

I doubt this will work, but its a start:

PHP Code:

<?php 
If ($vbulletin->userinfo['userid']!=0
    {     
    echo 
"logged in link here"
    } else { 
    echo 
"register link here"
    } 
?>


Dismounted 10-13-2007 07:17 AM

He's using a server side include file (SSI) so PHP will not work in them.

Verbose 10-15-2007 07:37 PM

Hi Dismounted, actually I have my server setup to parse PHP inside of .html pages too... so I can run PHP code inside my SSI files without issues.

The .ssi in the filename is just he naming convention I've always used... but it could also be header.php just the same.

--------------- Added [DATE]1192480701[/DATE] at [TIME]1192480701[/TIME] ---------------

Quote:

Originally Posted by Awjvail (Post 1358781)
I doubt this will work, but its a start:

PHP Code:

<?php 
If ($vbulletin->userinfo['userid']!=0
    {     
    echo 
"logged in link here"
    } else { 
    echo 
"register link here"
    } 
?>


Thanks Awjvail, I'll give this a try. :)


All times are GMT. The time now is 05:03 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01007 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete