vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Removing the register link for registered members and... (https://vborg.vbsupport.ru/showthread.php?t=69685)

SIINSI 09-21-2004 12:42 AM

Removing the register link for registered members and...
 
removing the usercp link for guests. How can i do this on vb3?

TIA :)

Miguel

Johnny 09-21-2004 01:00 AM

its default in vb3 already.

SIINSI 09-21-2004 01:05 AM

Really? They are not going away for me :( Is it something in the admin panel cuz I haven't seen it... I am running 3.0.1

Thanks,
Miguel

Johnny 09-21-2004 01:10 AM

have you edited the navbar template lately?

SIINSI 09-21-2004 01:16 AM

Quote:

Originally Posted by Johnny
have you edited the navbar template lately?

Nope... I just check all options and it is not one of them. As far as i remember it has always done this... Any ideas?

Miguel

SIINSI 09-21-2004 01:23 AM

This is what I have in my navbar template as far as the registration link...

<if condition="$show['member']">
<td class="vbmenu_control"><a href="usercp.php?$session[sessionurl]">$vbphrase[user_cp]</a></td>
</if>
<if condition="$show['registerbutton']">
<td class="vbmenu_control"><a href="register.php?$session[sessionurl]">$vbphrase[register]</a></td>
</if>

Johnny 09-21-2004 01:24 AM

their is no option to turn it on or off, its a template modification your usercp and registration link should look something like this

PHP Code:

        <if condition="$show['member']">
            <
td class="vbmenu_control"><a href="usercp.php?$session[sessionurl]">$vbphrase[user_cp]</a></td>
        </if>
        <if 
condition="$show['registerbutton']">
            <
td class="vbmenu_control"><a href="register.php?$session[sessionurl]">$vbphrase[register]</a></td>
        </if> 


SIINSI 09-21-2004 01:29 AM

Quote:

Originally Posted by Johnny
their is no option to turn it on or off, its a template modification your usercp and registration link should look something like this

PHP Code:

        <if condition="$show['member']">
            <
td class="vbmenu_control"><a href="usercp.php?$session[sessionurl]">$vbphrase[user_cp]</a></td>
        </if>
        <if 
condition="$show['registerbutton']">
            <
td class="vbmenu_control"><a href="register.php?$session[sessionurl]">$vbphrase[register]</a></td>
        </if> 


Strange, looks just like what I have but, it doesn't do it :(

Johnny 09-21-2004 01:36 AM

are you adding the usercp and registration code to another template or are you working threw the navbar template?

SIINSI 09-21-2004 01:58 AM

Quote:

Originally Posted by Johnny
are you adding the usercp and registration code to another template or are you working threw the navbar template?

I'm using the navbar template. I haven't messed with any of the above code.

Thanks,
Miguel

Johnny 09-21-2004 02:04 AM

in the admin options did you disable this

"Allow Multiple Registrations Per User" make sure its set to "No" then the registration link will disappear for members

SIINSI 09-22-2004 05:38 AM

Ah, I see. However, what if I want multiple registrations and still want it to disappear? Is that possible?

Thanks,
Miguel

Xenon 09-22-2004 11:20 AM

change
HTML Code:

<if condition="$show['registerbutton']">
into

HTML Code:

<if condition="$bbuserinfo['userid'] == 0">

SIINSI 09-22-2004 06:30 PM

Awesome, THANK YOU :)

Xenon 09-23-2004 12:25 PM

you're welcome :)


All times are GMT. The time now is 04:46 PM.

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.01076 seconds
  • Memory Usage 1,755KB
  • 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_html_printable
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)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