vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   $config['SpecialUsers']['undeletableusers'] in template question (https://vborg.vbsupport.ru/showthread.php?t=255461)

Boofo 12-18-2010 08:13 AM

$config['SpecialUsers']['undeletableusers'] in template question
 
Is there a way to check for $config['SpecialUsers']['undeletableusers'] in a template? I want to add an if condition so a link will not show up in they are a member of the undeletableusers.

Boofo 12-19-2010 09:59 AM

Anyone have an idea on this? Anyone? Bueller... Bueller...

Lynne 12-19-2010 05:23 PM

Um.... uh.... I have no idea. Have you tried writing a plugin to preregister the variable for use in your template?

LifesGreatestGift 12-19-2010 05:26 PM

Seeing as those users are configured in the config file by userid just use a userid array conditional. Save yourself time and stress :)

https://vborg.vbsupport.ru/showthread.php?t=231525

Boofo 12-19-2010 06:01 PM

Quote:

Originally Posted by Lynne (Post 2136446)
Um.... uh.... I have no idea. Have you tried writing a plugin to preregister the variable for use in your template?

Yes, I tried that and it didn't work.

Quote:

Originally Posted by TheWindows7Site (Post 2136451)
Seeing as those users are configured in the config file by userid just use a userid array conditional. Save yourself time and stress :)

https://vborg.vbsupport.ru/showthread.php?t=231525

That's true, but I was hoping to figure out how to do it in case I ever needed it for something else later on. More for learning, I guess.

--------------- Added [DATE]1292790221[/DATE] at [TIME]1292790221[/TIME] ---------------

I got it working. It was easier than I thought once I took the time to do it right. Thanks for pointing me in the right direction. ;)


All times are GMT. The time now is 11:20 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.01623 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
  • (2)bbcode_quote_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