The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
External PHP, creates endless redirect of threads.
I am trying to pull in a widget I had used for vbadvanced, but instead just pull it into vbulletin itself by creating a plugin. However , whenever it's enabled. No matter what thread you click, it always leads to the same thread. Below is my plugin code. If need be I can post the php code as well. Any ideas?
Code:
ob_start(); require_once('/home/rivacom/revenantgaming.com/forum/modules/slidermodule.php'); $php_include = ob_get_clean(); ob_end_clean(); vB_Template::preRegister('adv_portal',array('php_include' => $php_include)); |
#2
|
|||
|
|||
anyone?
|
#3
|
|||
|
|||
When you say "no matter what thread you click", are you talking about clicking a thread in your slider widget? I'm not sure how we could answer your question without seeing the code, unless someone happens to be familiar with that module. (Also, unfortunately, unless it's your own code you can't post it here).
|
#4
|
|||
|
|||
Any thread, outside of the actually widget. So if I browse my forums, click a thread, it takes me to the same thread no matter what I click. The widget is this one.
https://vborg.vbsupport.ru/showthread.php?t=233909 Works fine as a widget for vbadvanced but once I try to use it with vbulletin using it as a plugin, I get this loop. |
#5
|
||||
|
||||
Can we get an actual link to be able to see the problem (see the page source).
|
#6
|
|||
|
|||
<a href="http://revenantgaming.com/forum/forum.php" target="_blank">http://revenantgaming.com/forum/forum.php</a>
|
#7
|
|||
|
|||
Which hook is your plugin using?
|
#8
|
|||
|
|||
global_start
|
#9
|
|||
|
|||
I think your problem is that the mod code uses the variable $threadid, which is supposed to get set to the thread you're trying to view (so my guess is the one thread you're always seeing is the last news thread listed). If you edit the mod code and change $threadid to something else everywhere it appears, you should fix the problem (and while you're at it you might as well change $forumid too - I'm not sure that will actually cause a problem but it's probably easier to change it than to figure out some weird problem later).
Edit: I thought of something that's easier - change your plugin code to save the values of $threadid and $forumid at the beginning and restore them when you're done. (Sorry if you already did the editing). |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|