vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Hide New Thread and Reply Buttons from Guests (https://vborg.vbsupport.ru/showthread.php?t=164600)

rpainter 12-07-2007 04:12 PM

Hide New Thread and Reply Buttons from Guests
 
Hello again. I was wondering if this would be possible. I have noticed that when viewing my site as a guest, I can still see the Post Reply and New Thread buttons. Is there any way to hide these from guests?

Now the kicker...I do have 1 forum that I allow guest posting in. So for that 1 forum only, I would like the buttons to remain.

Possible? How would I do it?

Thanks.

dtv100 11-05-2010 01:44 AM

was looking for this too if anyone can help me.

BirdOPrey5 11-07-2010 06:23 PM

You could edit your showthread template and find the code that displays the "Post Reply" button, then surround that code in a template conditional:

<if condition="$show['member']">
{original code here}
</if>

That will show the code (the post reply button) only to people who are members (not guests).

If you need to get fancy and do this only in certain forums then look up the article on conditionals in the vb3 articles section here and you will see more conditions you can use to limit the code per forum.


All times are GMT. The time now is 11:32 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.01149 seconds
  • Memory Usage 1,702KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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