vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   what is the code for limiting access to certain usergroup? (https://vborg.vbsupport.ru/showthread.php?t=132915)

salata 12-01-2006 12:51 AM

what is the code for limiting access to certain usergroup?
 
what is the code to make only certain usergroups view things

TCG503 12-01-2006 03:35 AM

That would be under either the forum permissions if you wanted to modify forum access, or for most other things it would be under the edit usergroup page (ie vBplaza, vbux, etc. I few things like the shoutbox permissions are changed under the main settings page.

salata 12-01-2006 12:27 PM

Quote:

Originally Posted by TCG503 (Post 1129184)
That would be under either the forum permissions if you wanted to modify forum access, or for most other things it would be under the edit usergroup page (ie vBplaza, vbux, etc. I few things like the shoutbox permissions are changed under the main settings page.

thanks, i knew that in the acp some things have a permission setting. but what about those that you have to add a code into the template for it to work.

tnguy3n 12-01-2006 01:41 PM

a simple conditional would do.
Code:

<if condition="is_member_of($bbuserinfo, USERGROUPID)">Some Codes Go HERE</if>

projectego 12-01-2006 02:05 PM

another would be:

Code:

<if condition="$show['guest']">
content for guests goes here...
<else />
content for everyone else goes here...
</if>


yoyoyoyo 12-01-2006 02:12 PM

what would the conditional be to limit access to certain code only being displayed in certain forums. Let's say I don't want a certain gif image to be displayed in postbit in one particular forum? how would I do that?

tnguy3n 12-01-2006 02:58 PM

I don't think that can be done by conditionals in template. You would have to write some plugin or modifying the file.

Kirk Y 12-01-2006 10:06 PM

Code:

<if condition="$foruminfo[forumid] == XX">
<center><img src="images/lobby_head.gif" alt="Lobby" /></center>
</if>
<if condition="$foruminfo[forumid] == XX">
<center><img src="images/news_head.gif" alt="News" /></center>
</if>

In your forumdisplay template.

yoyoyoyo 12-02-2006 01:06 AM

thanks much acidburn0520. Lets say I wanted to put this in postbit to disallow the IP address tracking for a certain forum - would it look like this?

Code:

<if condition="$foruminfo[forumid]==49">
&nbsp;
<else />
<if condition="$post[iplogged]">$post[iplogged]&nbsp;&nbsp;<else />$post[iplogged]</if>
</if>


Kirk Y 12-02-2006 01:50 AM

No, I don't think that's possible without some extra hacking. Wouldn't that be somewhat pointless, seeing as someone could get the IP Address from a post by a specific user in another forum?


All times are GMT. The time now is 03:30 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.01554 seconds
  • Memory Usage 1,729KB
  • 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
  • (4)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