The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Easy Question concerning $logincode
I'm sure this ground has been covered somewhere but I can't find it. Is there a hack that makes the $logincode and $logoutcode (or any other for that matter) available in the header template. Any help with this would be much appreciated. Thanks.
JakeC |
#2
|
||||
|
||||
You would need to add the PHP code that you want above the line in global.php that eval's the header template.
|
#3
|
||||
|
||||
Add this to the bottom of your "phpinclude" template.
PHP Code:
|
#4
|
|||
|
|||
First off, thanks for the replies. I have just installed the advanced dynamic templates hack by logician and I want to use the conditionals in order to decide when the logincode is displayed in the header and when its not. Someone told me that what I need to do is parse the $logincode (whatever that means, I don't know). Is there a hack already out that does this or can someone tell me how to do this? I just need the Header Template to recognize the $logincode and $logoutcode and I'll use the conditionals to do the rest. Is my thinking flawed? Please let me know. Thanks.
JakeC Erwin, Is this what the code you posted does? I'm not a programer but it didn't seem like it. Let me know. |
#5
|
||||
|
||||
You can only parse php code to be used in the header or footer in the phpinclude template, or the root/global.php file...
Satan |
#6
|
||||
|
||||
Quote:
|
#7
|
|||
|
|||
Great!! Really appreciate the help. Thanks.
JakeC |
#8
|
||||
|
||||
Quote:
If you want the "conditional way" of advanced templates, it's similiar to that solution: You can use: [[($bbuserinfo[userid]>0)]] Your header template if the user is logged in [[/($bbuserinfo[userid]>0)]] [[($bbuserinfo[userid]==0)]] Your header template if the user is NOT logged in [[/($bbuserinfo[userid]==0)]] format in any template you like (including header) |
#9
|
||||
|
||||
Quote:
Also, remember to add forumhome_welcometext, forumhome_logoutcode, forumhome_newposts, forumhome_logincode to the end of this line in global.php in your forum folder if you want to add that code above to the phpinclude template. PHP Code:
|
#10
|
|||
|
|||
Well, Thank you very much. I appreciate you letting me know. I just installed the extra snipit and everything seems ok. I've added the $logincode to the header and everything is working out. I think I really need to learn PHP so I can understand all of these hacks aranoid: . Thanks.
JakeC |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|