Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 18 Dec 2010, 10:13
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
$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.
Reply With Quote
  #2  
Old 19 Dec 2010, 11:59
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Anyone have an idea on this? Anyone? Bueller... Bueller...
Reply With Quote
  #3  
Old 19 Dec 2010, 19:23
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Um.... uh.... I have no idea. Have you tried writing a plugin to preregister the variable for use in your template?
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #4  
Old 19 Dec 2010, 19:26
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
Seeing as those users are configured in the config file by userid just use a userid array conditional. Save yourself time and stress

http://www.vbulletin.org/forum/showthread.php?t=231525
__________________
If I have helped you, the least you could do is click the button to show your appreciation.
TheSecond.org - Because it is our right!
Reply With Quote
  #5  
Old 19 Dec 2010, 20:01
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Originally Posted by Lynne View Post
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.

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

http://www.vbulletin.org/forum/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 19 Dec 2010 at 20:23 ---------------

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.

Last edited by Boofo; 19 Dec 2010 at 20:23. Reason: Auto-Merged DoublePost
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 02:27.

Layout Options | Width: Wide Color: