![]() |
Quote:
I tried to use the forum subscription hack that is out and it added an extra query for each forum on the forumhome. Is there a way to do it in one query for all forums or at least a few less queries? Quote:
|
Quote:
|
Quote:
|
I wonder if this can be done.
[[($bbuserinfo[usergroupid]==2 $bbuserinfo[usergroupid]==3 OR $bbuserinfo[usergroupid]==4 OR $bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7)]] $forumbits [[/($bbuserinfo[usergroupid]==2 $bbuserinfo[usergroupid]==3 OR $bbuserinfo[usergroupid]==4 OR $bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7)]] In doing this I would like to show all members the $forumbits and just visitors the rest of the forum home. I know I could just code the index.pho with. if ($bbuserinfo[userid]==0) { show_nopermission(); } But I would like guest to see the shoutbox and whos online and not just the nopermission please register template. Also the show_nopermission I would like that to replace the $forumbits for guests only. |
yeah seems applicable, why dont you give a shot?
|
With a few changes it worked. :)
Just one more question can I do this. [[($bbuserinfo[usergroupid]==1)]] " I want to get a template from the database and not put my html in here. How would I do that?" [[/($bbuserinfo[usergroupid]==1)]] Thanks for the help. I have attached my forumbits html. |
Quote:
|
Let me ask you if this is possible
I have a custom profile entry "profilefieldid=5" I want to have a different template based on what the user puts there, example if the user puts: rabit or Rabit = template A / ckicken or Chicken = template b (if they put something it's not defined, then shows nothing of course) can it be ? |
[[(strtolower($bbuserinfo[field5])=='rabit')]]
Template A [[/(strtolower($bbuserinfo[field5])=='rabit')]] [[(strtolower($bbuserinfo[field5])=='chicken')]] Template B [[/(strtolower($bbuserinfo[field5])=='chicken')]] |
COOL :D
|
All times are GMT. The time now is 08:14 AM. |
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:
|