Log in

View Full Version : making private forum link private


goldendox
04-22-2008, 12:44 PM
Hi:

I just made a "quick forum jump" navbar at the top of my bb's page - http://www.thedachshundnetwork.com/vbb - but the private forum shows up for everyone. How can I code that to make it visible only to those with permission to access it? And could you tell me exactly where the code goes? I'm just been bitten by the vb bug. :-)

Thanks, so much.

Bradley_Wint
04-22-2008, 01:00 PM
Edit the settings of the particular forum and choose to Not Show Private Forum

goldendox
04-22-2008, 02:30 PM
This is a forum jump navbar that needs to be invisible to those unauthorized to see it, not the forum itself.

Lynne
04-22-2008, 03:08 PM
Did you know you have an "<h6>" and "</h6>" in your title bar?

You could do a conditional in front of the link:
<if condition="is_member_of($bbuserinfo, array(x,y,z))">
show link if you are in usergroup x,y,or z
</if>

goldendox
04-22-2008, 03:38 PM
Yes, but it was the only way i knew how to get the title to shrink.

Thank you for this help.

Can you tell me how to replace the h6 tags with the correct ones for vb?

Thank you, again.

Did you know you have an "<h6>" and "</h6>" in your title bar?

You could do a conditional in front of the link:
<if condition="is_member_of($bbuserinfo, array(x,y,z))">
show link if you are in usergroup x,y,or z
</if>

--------------- Added 1208882635 at 1208882635 ---------------

Hi Again Lynne:

That didn't work, unfortunately.

Is this the way you want me to code it?

<td class="vbmenu_control"><if condition="is_member_of($bbuserinfo, array(x,y,z))">
show link if you are in usergroup x,y,or z
</if><a href="forumdisplay.php?f=56">Private</a></td>

Also, is there a setting that will allow you to be logged into the bb using one username, then logged into the admincp using another? Whenever I want to test something from a registered user end (vs admin), I then get bumped out of admincp.

Thanks.

Lynne
04-22-2008, 03:44 PM
You should not have any html in your <title> tags. The title tag puts the words at the very top of the browser and it does not parse html. I've always tried to make the wording there as little as possible.

goldendox
04-22-2008, 07:59 PM
how do i make the title text smaller? and the forum text...?

Lynne
04-22-2008, 08:08 PM
The title text? The stuff in the very top browser bar? You can't change the text size for that.

As for the code, if that is the link you are wanting to only show to people who can see it - people in usergroup x or y or z:
<if condition="is_member_of($bbuserinfo, array(x,y,z))">
<td class="vbmenu_control"><a href="forumdisplay.php?f=56">Private</a></td>
</if>But, you need to replace the x,y,z with the usergroup ids for the groups who can see the forum.