The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
read field value for current thread via plugin to feed info into template
I'm not sure if I use the correct terminologie so I'm going to try explain what I would like to achieve :
I have written a vb.net application which extracts downloadlinks from my vbulletin threads and then verifies if the links are stil valid. The app sends back the result (dead, alive) to a varchar field (linkresult) I added to the vb_thread table. Then, I would like to display this info in showthread, so I would add this code to the showthread template (because I only want to display the info in de first post which contains the download links, i added a if condition to check this): Code:
<vb:if condition="!$GLOBALS['FIRSTPOSTID']"> {vb:raw template_hook.thiswouldbemyplugin} </vb:if> I'm new to vbulletin and after looking at some mods which I downloaded here, this is what I think should be the procedure to do this. Therefor I would like to ask the experts if what I described above is the correct way to do this ? thanks in advance for a reply |
#2
|
||||
|
||||
This is info in the thread table and the template_hook is in SHOWTHREAD? Probably use the hook location showthread_query to add in your field.
|
#3
|
|||
|
|||
thanks i'll look into that
|
#4
|
|||
|
|||
yes Lynne, you definitely showed me the way
As a vbulletin newbie but with developing skills (formerly phpbb but also .net & especially sql ) I must say vbulletin is heaven compared to phpbb the plugin system in combination with the template variables is such a great help to make custom modifications which improves user experience. Vbulletin rulez ! this thread can be closed, thank you very much for your help |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|