View Full Version : $config['SpecialUsers']['undeletableusers'] in template question
Boofo
12-18-2010, 08:13 AM
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
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.
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 1292790221 at 1292790221 ---------------
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. ;)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.