vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   using vbphrases and variables in external script (https://vborg.vbsupport.ru/showthread.php?t=236090)

control1110 02-17-2010 02:37 AM

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?

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)

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?


All times are GMT. The time now is 02:41 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00975 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete