The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
'Registration open/closed' on forumhome
Is there a way to display on the forumhomepage whether registration is open or closed just simply like:
Registration=Closed Or maybe using a red/green lightbulb or something. How can I do this? Please help thanks in advance |
#2
|
||||
|
||||
you can do so by installing template conditions hack by logician and check the variable $allowregistration
|
#3
|
|||
|
|||
Ok, When I add $allowregistration to e.g. forumhome_logoutcode it shows me either a '1' or '0'.
Now where and how do I make the translation from that '1' or '0' to 'open' or 'closed' (or a nice .gif). I'm not rally into programming, but as far as I can try I think it the only changes that are needed for this are in 1) a template e.d. forumhome_logoutcode 2) index.php 3) global.php I already looked at Logician's hack but that's not ginving me answers. Again, I'm not really into programming, so it might be crap what I'm saying. I just need some help. Thanks in advance. |
#4
|
||||
|
||||
with logicians hack you should be able to use a condition like this in your templates then:
Code:
[[allowregistration]]open[[allowregistration]] |
#5
|
|||
|
|||
Sorry, I'm clueless, I really need some help.
I tried a few things but I can't sort it out. |
#6
|
|||
|
|||
Can someone make me this hack please?
|
#7
|
|||
|
|||
no one?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|