vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Hide register button (https://vborg.vbsupport.ru/showthread.php?t=236103)

fruktkak 02-17-2010 09:47 AM

Hide register button
 
Hello, when i log in to my forum. I still see the register button. How do i hide it for registered users?

borbole 02-17-2010 10:10 AM

That should be hidden automatically for the registered users. Are you using a custom theme? Can you post a screenshot?

fruktkak 02-17-2010 11:44 AM

https://vborg.vbsupport.ru/external/2010/02/38.png

I am using THIS theme

borbole 02-17-2010 12:36 PM

Ask at that theme''s topic so its author can have a look at the header template. What about the default theme, does that happen there as well?

fruktkak 02-17-2010 12:46 PM

The theme author aren't answering anymore. But, i think it started happening when i changed my language pack from english to norwegian, Is that possible?

borbole 02-17-2010 12:49 PM

To answer that question, change the language back to English and see if that will fix it. If it does then it must be a bug in norwegian language files.

fruktkak 02-17-2010 12:52 PM

Isnt there any other option? Because i overwrited my norwegian language pack with the english default package.

DaRK mAN306 02-17-2010 02:22 PM

Hello there fruktkak,

If I wasn't mistaken, there is probably an error with the conditional sentences .!
To make sure, I want you to do this:
  1. First of all, sign into your Admin CP ..
  2. Then, go to "Styles & Templates >> Style Manager" ..
  3. After that, choose "Edit Templates" option from your defined vB Style drop-down menu ..
  4. Then, Expand the template groups and look for "Header" template and edit it ..
  5. Once you enter the template, look for:
    Code:

    <li><a href="register.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase register}</a></li>
    There should be two of them ..
  6. Make sure that the lines above and beneath the line mentioned in step 5 are like this:
    Code:

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

                    </vb:if>

    Which means that the whole code should be something like this:
    Code:

                    <vb:if condition="$show['registerbutton']">
                    <li><a href="register.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase register}</a></li>
                    </vb:if>

  7. Modify the lines if they are not like the lines mentioned in step 6 ..
  8. "Save" the template ..
If it didn't work, I advice you to post your forums URL so that we can see what's really going on .!

borbole 02-17-2010 02:34 PM

I don''t think it is the template of the custom theme as according to the op it started when he switched the language. Otherwise it would have shown much longer. But it doesn''t hurt to double check :)

fruktkak 02-17-2010 10:40 PM

Quote:

Originally Posted by DaRK mAN306 (Post 1984657)
Hello there fruktkak,

If I wasn't mistaken, there is probably an error with the conditional sentences .!
To make sure, I want you to do this:
  1. First of all, sign into your Admin CP ..
  2. Then, go to "Styles & Templates >> Style Manager" ..
  3. After that, choose "Edit Templates" option from your defined vB Style drop-down menu ..
  4. Then, Expand the template groups and look for "Header" template and edit it ..
  5. Once you enter the template, look for:
    Code:

    <li><a href="register.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase register}</a></li>
    There should be two of them ..
  6. Make sure that the lines above and beneath the line mentioned in step 5 are like this:
    Code:

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

                    </vb:if>

    Which means that the whole code should be something like this:
    Code:

                    <vb:if condition="$show['registerbutton']">
                    <li><a href="register.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase register}</a></li>
                    </vb:if>

  7. Modify the lines if they are not like the lines mentioned in step 6 ..
  8. "Save" the template ..
If it didn't work, I advice you to post your forums URL so that we can see what's really going on .!

Hello, i did what u said, and there weren't anything wrong there. Heres my website url

DaRK mAN306 02-26-2010 09:02 PM

Hi again fruktkak,

First of all, I would like to apologize to you for taking so long to reply to you ..
To be honest, I totally forgot about your problem :o .!

Anyway, I think that I have spotted the problem and I believe that it is in your vBulletin options and not in your design ..

All I want you to do now is to follow these steps:
  1. First of all, sign into your Admin CP ..
  2. Then, go to "Setting >> Options" ..
  3. After that, choose "User Registration Options" option from the settings type ..
  4. Once you enter the options page, look for "Allow Multiple Registrations Per User" ..
  5. Make sure that it is set to "No" and if it wasn't then set it to "No" ..
  6. Don't forget to "Save" your settings ..
What I actually did to spot your problem was to set the "Allow Multiple Registrations Per User" to "Yes" and then check my test forum..
This idea came to me when I clicked the "Register" button in your forums and as a registered member I shouldn't be able to enter the register page.!

By the way, if this solution didn't work for you, we're gonna need to play with the conditional sentences in your "header" template but I don't think that we'll need to do that ..

fruktkak 02-28-2010 08:44 PM

Quote:

Originally Posted by DaRK mAN306 (Post 1992334)
Hi again fruktkak,

First of all, I would like to apologize to you for taking so long to reply to you ..
To be honest, I totally forgot about your problem :o .!

Anyway, I think that I have spotted the problem and I believe that it is in your vBulletin options and not in your design ..

All I want you to do now is to follow these steps:
  1. First of all, sign into your Admin CP ..
  2. Then, go to "Setting >> Options" ..
  3. After that, choose "User Registration Options" option from the settings type ..
  4. Once you enter the options page, look for "Allow Multiple Registrations Per User" ..
  5. Make sure that it is set to "No" and if it wasn't then set it to "No" ..
  6. Don't forget to "Save" your settings ..
What I actually did to spot your problem was to set the "Allow Multiple Registrations Per User" to "Yes" and then check my test forum..
This idea came to me when I clicked the "Register" button in your forums and as a registered member I shouldn't be able to enter the register page.!

By the way, if this solution didn't work for you, we're gonna need to play with the conditional sentences in your "header" template but I don't think that we'll need to do that ..


No problem, Thank you so much, it worked :)


All times are GMT. The time now is 11:26 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.01814 seconds
  • Memory Usage 1,750KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (12)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