Log in

View Full Version : My bi-weekly dumb question...


|oR|Greg
09-28-2006, 10:42 AM
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?

<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
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.

|oR|Greg
09-28-2006, 03:02 PM
Thanks Paul.