![]() |
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']"> 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 :) |
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.
|
thanks i'll look into that :)
|
yes Lynne, you definitely showed me the way :D
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 |
All times are GMT. The time now is 05:04 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|