The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
External PHP file not displaying results
I am having issues including a php file in my header on all pages. I was able to make this function yesterday however, today after I have deleted the other plugin I am unable to even make 'Hello World' show up. I have included screenshots of all of the areas where this include should effect.
Please see attached. What am I doing wrong? Thank you for taking the time to look into this in advance. |
#2
|
|||
|
|||
Try changing the hook location to parse_templates.
Edit: also, you need to insert {vb:raw php_include} in the headinclude template (maybe you have it but just didn't show it). |
#3
|
|||
|
|||
The call to the variable is in the headinclude, I just forgot a screenshot
Using the parse_templates did not work. I did a search of the page just in case the code is black or in case it ended up behind the forums and the search is not finding anything called "Hello". (I have included the screenshot I forgot.) |
#4
|
|||
|
|||
Hmm..well, you have that in headinclude which means it's outside the body tags. I suppose it should appear anyway, but maybe it isn't for some reason. Did you try viewing the html source of the page to see if it's there? (it should be near the top).
|
#5
|
|||
|
|||
It is no where in the html code.
Should I try putting it in a template inside the body tags? If so is there a suggestion for which template I should put it in? |
#6
|
|||
|
|||
'header' is inside the body tags, I believe. But if it isn't in the html source now then I don't think changing the template will make any difference.
If you have more than one style, are you sure you're viewing the same style as the template you modified? Try simplifying things, like try just setting $php_include to a string to see if it's the buffering or the include that's the problem (I see where it says the file was included, so I don't expect it's that). |
#7
|
|||
|
|||
Still nothing showing in the code, see below for the changed code:
Quote:
|
#8
|
|||
|
|||
I really don't see any reason that wouldn't work unless you're not looking at the template that you modified. I see from the picture that you're modifying the Master style - has the headinclude template been modified in the Default style (or any parent of your chosen style)?
Try putting Hello World directly in the headinclude template and see if that works. |
#9
|
|||
|
|||
I tried putting the "Hello World" directly into the headinclude and it did not work. So, I went into a clean install of vBulletin and tried the plugin there and it worked. I guess somehow the original code of the forum was corrupted while I was working on it yesterday.
I will redevelop my website on the clean version, thank you for your help. It is greatly appreciated |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|