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>
So, to get the info from mysql when showthread is opened, I'm guessing I would have to add a new plugin, which contains the php to access the database and passing the current threadid variable, retuning the info for that thread in field linkresult which will then be displayed within the template hook.
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