![]() |
This hack lets you use conditions like on vbulletin 3.0.
examples: <if($bbuserinfo[userid]==0)>stuff</if> <if($bbuserinfo[userid]==0)>stuff<else />else stuff</if> <if($bbuserinfo[usergroupid]==0)> stuff </if> <if($bbuserinfo[usergroupid]==0)> stuff <else /> else stuff </if> And so on. Also I want to note, that at the moment, you cant use conditions inside a condition. It will mess up. I'll try to come up with a fix till then. If you like this hack and plan to use it, please click install. Now im off to school, if any one exspirences any problems, I'll get back to you asap. Hope you like it. |
Also note that its <else /> not <else> or <else/>
|
Very cool. :)
|
very very nice :) Installed :)
|
d00d i can't find any of the code in the functions.php file :(
|
Quote:
Find the gettemplates function and paste the first part of the code in it near the botton of it near the code that resembles the first part I told you to find. Then under the function add the one I made and thats basicly it. |
Is my mind completely shot or isn't this virtually identical to the other conditionals hack?
|
threads merged..
|
Quote:
|
I can't believe I've overlooked this hack for so long! This is brilliant! Great hack Logician!
|
Awesome Hack,
Is there away to have it work with a gallery image link in postbit that only shows up if you have a Photopost gallery upload. Such as the way Vbjournal shows up in postbit when you have a journal and not there if you dont.? This is a great hack, I don't know if I can do the above easier with a fewlines of code or with the hack. But I'm alreday playing with this yummy hack... Many Cheers and Whooo Hooos, midnightz |
Quote:
|
Great hack btw, I added it to vBHL on my site to control the main page visitors see, registered/logged in users see it differently with more options, layout.
|
I have a sidebar on index and in it I want to display a table for registered users and a different table for guests. I guess I can use this for registered users:
PHP Code:
|
For registered users use:
Quote:
Quote:
|
as Bob said.
|
Thanks guys, you most definitely rock. :)
Now if I can just get stats to parse in the header template..... |
Will this work with html code as well as text. For example:
[[($bbuserinfo[userid]==0)]] HTML CODE HERE [[/($bbuserinfo[userid]==0)]] |
Quote:
Yes, html will work there as well |
Like Slynderdale said.
|
I love this hack! I have it working exactly as I want it. Thanks to all for your help and patience as always. :)
[high]* NexDog installs[/high] |
how do i make it so in some1's profile a piece of code does not show up for that user. which means no1 can view it.
l8er sonic |
ne1?
|
i was wondering if anyone knew what the condition was to allow images in sigs in a particular forum?
|
Quote:
|
i read a few pages (not understanding exactly how) but i couldnt see anyone who had forced "themes" for different usergroups.
could anyone explain how to me pritty please? (the hack itself was simple anough to install,just silly me who thought i could just go into admin section now and choose different themes for usergroups :p ) |
[[(2==6)]]
Advanced Templates Hack has been successfully installed! By the way this remark is visible to Site Admins only.. ;) Enjoy.. Logician \\=^)) [[/(2==6)]] ^^^^ i still get that thoght eventhough i opened up mozilla and used a test account with normal acceess :( |
Quote:
1- Make sure you applied instructions correctly 2- Make sure you uploaded functions.php to your server. 3- Make sure you uploaded functions.php to the correct directory. Either one is your problem.. |
yes i i accidentaly deleted a line :)
but can you help me with the usergroup and forced STYLE thing? regards thomas (ps,exelent hack:) ) |
I don't understand what you mean by "theme"?!?
|
style then ffs :p
|
this hack can not help you to change style according to usergroup. Try searching in hack requests forum with keywords "$styleid*" "$style*". You can find a solution there.
|
bollox, i got told this was what i needed for that :(
|
how do you know user group ids?
|
Quote:
The standard group ID's are: Unregistered / Not Logged In = 1 Registered = 2 Users Awaiting Email Confirmation = 3 (COPPA) Users Awaiting Moderation = 4 Super Moderators = 5 Administrators = 6 Moderators = 7 Banned by Moderators = (custom to forum must look up your self) |
I've got a forum that is a network of sites using vbulletin and phpportals. I would like the header to change depending on which sub forum you are in. This would allow me to have a unique look for each "club". Is this possible with this hack?
|
Quote:
|
how can i use this to only show something if the user is Online?
I have tried several things, none have worked. THanks, Derek |
Who is the user are you talking about? The one looking at the forum or the one whose user information might appear in the context of one of the other other templates?
There is an $onlinestatus in the postbit template. If you mean the person looking at the pages, that's different. Maybe you could suggest what you are trying to do for more help. Regards, Matt |
ya, i should have explained it better.
I want to use it for any user in the postbit. I tried using the $onlinestatus=='Online' and it doesn't work. I tried several variations of it in fact. I want to show a graphic if the user is in x usergroup and currently online. Derek |
All times are GMT. The time now is 12:43 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|