vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Simple "If" code needed (https://vborg.vbsupport.ru/showthread.php?t=91663)

Jinovich 07-05-2005 03:22 PM

Simple "If" code needed
 
Hello :),
I have only one question, I need to be able to limit a certain area of my forum to only be displayed for the Administrator Usergroup, I know there is no way this can be done with a default unhacked Vbulletin but a simple If formular would do the job only thing is I dont know how to enable it so only an Administrator can view it.

It is basically so only a table containing some information can be viewed in the forum.

Any suggestions?

Marco van Herwaarden 07-05-2005 03:45 PM

Please provide a bit more information, what exactly you want to hide for others?

Jinovich 07-05-2005 03:51 PM

Well basically I have a quick guide to the links for my Administrators in my footer rather than the standard Admin Cp, Mod cp, etc.

These extra links are to the control panels for the rest of my site such as my Image Database and my global site condition switch.

I wanted them as a table with the Name and the description of what the control panel is for however when I add it with no "If" formular all members on the board can view the table intended just for my Administrators and then can view all the control panel links and description.

I wanted to use an "If" function to limit it so only my Administrators can view the table in the footer.

Sounds like I have complicated this

Marco van Herwaarden 07-05-2005 03:57 PM

You could use the following in the footer template. It will only show your content if the AdminCP link is also shown:
Code:

<if condition="$show['admincplink']">
....your links....
</if>


Jinovich 07-05-2005 04:16 PM

DOH! The solution was so ultimately simple and yet I failed to see it, I guess this will be one of my most embarassing threads,

Thank You Very Much :o :nervous:


All times are GMT. The time now is 03:03 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.01756 seconds
  • Memory Usage 1,717KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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