The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
THIS_SCRIPT Conditionals in vb5
I'd like to redirect all users which are not logged in to index.php. For that reason I put following code into the header template:
Code:
<vb:if condition="$bbuserinfo['usergroupid'] == 1 AND THIS_SCRIPT != 'index'"> <meta HTTP-EQUIV="REFRESH" content="0; url={vb:raw baseurl}"> </vb:if> So my questions is: Are conditionals with "THE_SCRIPT" still working in vb5 or is there another way to retrieve the information, which page is actually being displayed. Or is there another problem that prevents the code from working properly. Thanks in advance |
#2
|
||||
|
||||
THIS_SCRIPT isn't in vBulletin 5, at all.
Trying to figure out if there is a way around this now. --------------- Added 03 Mar 2014 at 18:39 --------------- Lets try this though <vb:if condition="!$user['userid'] AND page['pageid'] != 1"> Updated it a bit, more updates |
#3
|
|||
|
|||
Thank you for your reply. I will test this.
Would be great if you and your support team were more active in this forum. There are way to many unanswered threads here. And another point to think about: A forum is no substitute for a well formed, profound technical documentation. What you provide here is totally outdated and deficient! It's nothing a serious developer wants to work with. Regards, Alex |
#5
|
|||
|
|||
I really appreciate this. But as I wrote: Provide a better documentation and a lot of questions here would be needless.
But anyway, the conditional works. There was only a $ missing. <vb:if condition="!$user['userid'] AND $page['pageid'] != 1"> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|