The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
using vbphrases and variables in external script
I am writing a simple php script to include into my vbtemplate that will match the title of the thread to the title of a product and show related products. Is there a way to call the thread[title] variable that is in the vbulltin template on a external script?
|
#2
|
|||
|
|||
Please see the article section on using external scripts in a vBUlletin environment.
|
#3
|
|||
|
|||
I have searched the article section and I can't seem to find it
|
#4
|
|||
|
|||
To get you started How to create your own vBulletin-powered page! (uses vB templates)
|
#5
|
|||
|
|||
I saw that thread and I tried it but maybe im doing something wrong I still can't seem to get it to show the title of the thread I tried using $thread['title'] and $vublletin->thread[title] both produce nothing. I also tried print_r($vbulletin) and it doesn't list the title anywhere
|
#6
|
|||
|
|||
Your script will need to load that information from the database.
|
#7
|
|||
|
|||
Well what I am trying to do is create a script that will load related articles on my site based on what vbulletin thread they are on. That is why I need to load the title in my script so I can match the title to the title of my content. How would I do that from the database?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|