The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I'm trying to get a slashdot newsfeed on my forum, I currently have require("slashdot.php"); and $slashdot=Slashdot(); in the php includes.
How do I call the php function from FORUMHOME? Using $slashdot doesn't work. I've tested the script outside the forum and it works. Thanks. |
#2
|
||||
|
||||
![]()
You'll be better of editing global.php. Although, saying that, i'm not sure why it wouldn't work in the phpinclude template...
|
#3
|
|||
|
|||
![]() PHP Code:
![]() |
#4
|
|||
|
|||
![]()
Still no luck
![]() |
#5
|
|||
|
|||
![]()
How do you normally add php code in vbulletin? It doesn't seem to work anywhere in the template.
|
#6
|
||||
|
||||
![]()
Since PHP isn't parsed in the templates, you have to manually edit the files.
The best place to add your code would be global.php, above this: PHP Code:
![]() |
#7
|
|||
|
|||
![]()
I've just added it to the global.php file, the problem is I can't figure out how to call the function from a location in the index file, I can't do it the normal way.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|