PDA

View Full Version : using vbphrases and variables in external script


control1110
02-17-2010, 02:37 AM
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?

Marco van Herwaarden
02-17-2010, 09:47 AM
Please see the article section on using external scripts in a vBUlletin environment.

control1110
02-18-2010, 01:12 AM
I have searched the article section and I can't seem to find it

Marco van Herwaarden
02-18-2010, 07:35 AM
To get you started How to create your own vBulletin-powered page! (uses vB templates) (https://vborg.vbsupport.ru/showthread.php?t=62164)

control1110
02-18-2010, 07:56 AM
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

Marco van Herwaarden
02-18-2010, 11:45 AM
Your script will need to load that information from the database.

control1110
02-18-2010, 06:06 PM
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?