vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   My bi-weekly dumb question... (https://vborg.vbsupport.ru/showthread.php?t=127760)

|oR|Greg 09-28-2006 10:42 AM

My bi-weekly dumb question...
 
How come unregistered users CAN see the New Thread button on my board, I feel like I have been thru EVERY setting/permission, and nothing... ?

amykhar 09-28-2006 11:38 AM

I wondered the same thing. I believe the logic is this. By having it there, unregistered uses will try to respond and get the message to join, which will point them in the right direction.,

If you really don't want it to show, wrap it in a conditional in the tamplate.

|oR|Greg 09-28-2006 12:01 PM

By default it's already wrapped in one though?
I assumed that this if statement controlled it's view within some permission somewhere?

Code:

<if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a></if>

amykhar 09-28-2006 12:05 PM

Wrap it again. Just make sure your conditions are nested properly. You want to show it to anybody who has a userid that isn't 0.

|oR|Greg 09-28-2006 12:09 PM

I didn't wrap it in the first place, it's original vB code... so.. ?

amykhar 09-28-2006 12:59 PM

I know that's the original vb code. Wrap it your conditional around it, just like you would any other conditional. :confused:

|oR|Greg 09-28-2006 01:36 PM

Quote:

Originally Posted by amykhar
I know that's the original vb code. Wrap it your conditional around it, just like you would any other conditional. :confused:

I'm lost... I thought what I posted WAS everything needed to control whether or not the button is shown?

amykhar 09-28-2006 01:47 PM

No. It's everything Jelsoft checked for as to whether or not to show the button. You don't want it to show for guests. That's not something Jelsoft checks for. If you don't want it to show for guests, you need to wrap that section in the conditional to see if the user is not a guest.

|oR|Greg 09-28-2006 02:02 PM

Really? I thought that they controlled whether or not the button was visible? Hence the $show? And since I set permissions not to allow guests to post, that the button wouldn't be shown?

Is it like this on ALL default boards?

Paul M 09-28-2006 02:46 PM

If the forum allows posting (forum permission) then the link will be shown. There is no user permission check involved.


All times are GMT. The time now is 08:17 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.01077 seconds
  • Memory Usage 1,728KB
  • 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)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