The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi,
Excuse me if this is a stupid question, I'm not an experience vb or php coder. I'm trying to get an old vb 3.0x (adsense revenue share) mod working in 3.5 and I just about have it right (I think), the only issue is that I need to be able to pass 2 values from showthread.php that are then used in postbit_legacy. Following the old instructions for the mod I placed the relevant code in showthread.php at the correct location (for 3.0.x), and the variables are defined correctly if I print them at that point. By the time it gets to interpreting/displaying postbit_legacy the variables are gone. Just after line 1054 in showthread.php I put the data into $post[ad_client_id] and $post[ad_channel], at that point they display correctly, until the while loop loops. (which is understandable) I'm assuming this method that worked in 3.0.x is no longer suitable in 3.5.x, so my question is, how do I pass none standard variables into postbit_legacy from showthread.php? Any help would be greatly appreciated. |
#2
|
|||
|
|||
![]()
Try using a custom named array instead of $post. It might get reset for each itteration of the loop.
|
#3
|
|||
|
|||
![]()
It actually only gets used for the first post of the page, I tried setting it to just a couple of plain old variables but it still didn't come through. Which I find really confusing because $post[postid] gets throgh for example.
I'm probably missing something really obvious.. |
#4
|
||||
|
||||
![]()
Hi,
Any progress in this work.. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|