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


All times are GMT. The time now is 08:21 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.01608 seconds
  • Memory Usage 1,737KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete