The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Getting stupid php error
Ok, for some reason I am having the hardest time adding some simple php to header include php.
I just wanna add the following, been playing with it for like 2 hours and still getting error after error. PHP Code:
|
#2
|
||||
|
||||
Why not just use this https://vborg.vbsupport.ru/showthread.php?t=226946
|
#3
|
|||
|
|||
You probably want to check out the mod that Simon Lloyd posted above, but I'll add that I tried the code you (hellbomb) posted (just in it's own php file, not in vB) and didn't see any errors.
|
#4
|
||||
|
||||
In that case it probably needs to be used as a plug in.
|
#5
|
|||
|
|||
I'm not sure what you mean - maybe I messed up what I meant to say. Anyway, I tried the code Hellbomb posted and didn't get any errors. I didn't try the mod you posted.
ETA: oh...maybe you mean that if I put hellbomb's code in a plugin I'd see errors? OK, maybe so. I guess I figured there wasn't any reason to do that unless I knew exactly where hellbomb was putting it. |
#6
|
||||
|
||||
Im assuming he's trying to show a different style or and abridged version of his forum if the user is using a mobile device (which the mod i posted does perfectly), as i've never seen php used directly in the header like that it would probably be best to put the code in a plugin and use it like that.
|
#7
|
|||
|
|||
Quote:
|
#8
|
|||
|
|||
I was thinking after posting the above - are you by any chance seeing something like "Headers already sent"?
|
#9
|
|||
|
|||
nope
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|