The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to get this php code into a plugin?
Pretty simple question, but I can't figure it out... the original code is
PHP Code:
|
#2
|
|||
|
|||
<a href="http://www.vbulletin.com/docs/html/main/templates_externalfiles" target="_blank">Including External Files</a>
|
#3
|
|||
|
|||
I've seen that, yes, but if you look at the code you'll see that those instructions aren't any help with the output_NewestThreads bit and the code as a whole. This is a bit more complicated...
|
#4
|
|||
|
|||
PHP Code:
Tired that? (use the global_setup_complete hook, global_start is useless when things go wrong). |
#5
|
|||
|
|||
That's exactly the code I've been trying, but wherever I use it, the page goes blank... I've been using global_start and now tried with global_setup_complete and it was the same thing - completely blank page, i.e. it kills the entire page.
|
#6
|
|||
|
|||
Hmm, try it on a random page see if it works there. Else put it directly in a vBulletin PHP file temporarily and try it then.
|
#7
|
|||
|
|||
What kind of a random page do you mean?
And which vB file would I be least likely to mess up to test it in? I haven't modified any vB files before and I'm not a coder so... |
#8
|
|||
|
|||
Set up a separate test board and develop on there.
(By random page I mean just a normal plain PHP Page) |
#9
|
|||
|
|||
Ok, I've tried using this code, and I get a blank page on a test page too:
PHP Code:
|
#10
|
||||
|
||||
If you want to get the latest threads, you can just query the database.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|