The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Ok, so here's my situation:
I need to bring in data about each person in the post bit section from a drupal database. For example, each user has so many "points" based on lots of things outside of the forum in another database. I would like to display that in the author pane. Getting the information using php is not an issue, I have that taken care of. What I need to understand is: Where do I start in vbulletin? I *think* this should be a "product" but I'm new to VBulletin. Where should I hook? I would *prefer* to just do some sort of global hook after the final template is created that goes back and replaces all <?php ?> areas with eval'd code. I've seen a VB3 product that can do this, but VB4 seems like it's broken that. Is there any place I can hook right after the final template is created (but before display), and then just go over it replacing stuff? How do I get the user information of each post bit? I'm assuming there's some kind of replacement variable that represents the username? thanks for the help! --------------- Added [DATE]1280855685[/DATE] at [TIME]1280855685[/TIME] --------------- With a few minor modifications, I got the old VB3 php parser product to work. This code only works for the footer though, you'll have to do copy the templatecache line for each template you want to use (unless someone has a suggestion for a better way.) However, I *still* cannot figure out how to pass a variable to this PHP. I need to be able to do something like <?php echo "{vb:raw ad_location.global_above_footer}"; ?> (yes this example is useless, but it's a simple way to get my point across) So basically, I need for {vb:raw ad_location.global_above_footer} to be replaced FIRST... THEN I want my code to fire. Right now I'm hooking on parse_template. Would hooking in a different spot help? PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|