The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Hidden register button Trouble
I am having trouble with this mod I am making and I dont understand why it is happening..
this is what I am doing: add to phpinclude: //regbutton $regbutton=""; if ($bbuserinfo['userid']<"1") { $regbutton="<a href="register.php?s=$session[sessionhash]&action=signup"><img src="darkblue/top_register.gif" alt="Registration is free!" border="0"></a>"; } //end and adding $regbutton to the header instead of: <a href="register.php?s=$session[sessionhash]&action=signup"><img src="darkblue/top_register.gif" alt="Registration is free!" border="0"></a> and I am getting Parse error: parse error in global.php(274) : eval()'d code on line 10 |
#2
|
|||
|
|||
what are you attempting to do, hide it from everyone but the admin or hide it to anyone thats registerd?.
|
#3
|
||||
|
||||
If your trying to hide it from anyone who's registered, it's been done by SaintDog:
http://www.vbulletintemplates.com/mo...light=register |
#4
|
|||
|
|||
FWIW you have to escape your quotes. Rather than making it more complicated by explaining that, just include the HTML in single quotes, not double quotes.
|
#5
|
|||
|
|||
Quote:
//regbutton $regbutton=""; if ($bbuserinfo['userid']<"1") { $regbutton="<a href=\"register.php?s=$session[sessionhash]&action=signup\"><img src=\"darkblue/top_register.gif\" alt=\"Registration is free!\" border=\"0\"></a>"; } //end |
#6
|
|||
|
|||
well I was looking for one and never found on so good.. but if I can get mine working it is a diff mod.. slitly.. and I am doing this for a friend so I am not going to release it here
|
#7
|
||||
|
||||
So are you trying to do what the mod I posted is doing? Or something different?
|
#8
|
|||
|
|||
it is almost the same.. i am designing a style for someone and I didnt know about the mod you posted until now but I am gonna use mine..
|
#9
|
|||
|
|||
try this:
//regbutton if ($bbuserinfo['userid']=="0") { $regbutton="<a href=\"register.php?s=$session[sessionhash]&action=signup\"><img src=\"darkblue/top_register.gif\" alt=\"Registration is free!\" border=\"0\"></a>"; } else { $regbutton=""; } //end |
#10
|
|||
|
|||
You should use usergroups tho...
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|