The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
If currently running this script do nothing else?
Hi all, im trying to get this to work, it displays a floating menu on all pages but i do not want it visible on any of the register pages, can someone help?
PHP Code:
|
#2
|
|||
|
|||
I think it might be the '/>' at the end of the first line, where maybe it should just be '>'
ETA: ...but it isn't because I just tried it and it makes no difference. |
#3
|
||||
|
||||
Yeah i know that, i've tried a few things
|
#4
|
|||
|
|||
But I think what does work is to put a quote at the end of that condition on the first line (and remove the '/').
Code:
<if condition="THIS_SCRIPT == 'register'"> . . . ETA: and unless you have something you're going to do if THIS_SCRIPT is 'register', then maybe Code:
<if condition="THIS_SCRIPT != 'register' AND is_member_of($bbuserinfo,1)"> <div id="floatdiv" style=" position:absolute; width:240px;height:110px;left:0px;top:0px; padding:16px;background:#FFFFFF; border:2px solid #2266AA">Your viewing of our forums and Resources will be restricted shortly and plus you are missing out on many benefits, to get unrestricted access and benefits <a href="http://www.thecodecage.com/forumz/register.php">Join here!</a> for free! </div></if> would be an alternative. |
#5
|
||||
|
||||
Quote:
|
#6
|
|||
|
|||
So is it working now? I don't really know anything about the floating menu, I just thought I could help you get past that error. Sometimes it just takes another pair of eyes.
|
#7
|
||||
|
||||
Quote:
--------------- Added [DATE]1258391365[/DATE] at [TIME]1258391365[/TIME] --------------- KH99, i wonder if you can help further?, i am trying to display my floating box only when index.php is being viewed, i assumed that the script is forumhome but the box displays on forumhome, forum, sub forum and even in thread, can you help fix this so it only shows in forumhome? HTML Code:
<if condition="THIS_SCRIPT != 'FORUMHOME'"> <if condition="is_member_of($bbuserinfo,5,6,7)"><div id="floatdiv" style=" position:absolute;"> blah! blah! </div></if></if> |
#8
|
|||
|
|||
Sorry, I just now noticed your post.
I think THIS_SCRIPT is 'index' when index.php is running, so try: Code:
<if condition="THIS_SCRIPT == 'index'"> etc. |
#9
|
||||
|
||||
Thanks for that, i used this:
HTML Code:
<if condition="THIS_SCRIPT == 'index' AND is_member_of($bbuserinfo,5,6,7)">
HTML Code:
...="THIS_SCRIPT != 'index' HTML Code:
...="THIS_SCRIPT == 'index' |
#10
|
|||
|
|||
!= means "is not equal to"
== means "is equal to" |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|