Log in

View Full Version : where to put php snippet


romow
11-03-2005, 01:48 AM
Hi,

I wrote a php snippet that dynamically generate a set of URLs.
I would like to show those URLs in the right column of my vb forum.
(http://www.dnp.in - under the "Sponsor" heading).

The code snippet looks like this:

<?php

....

while($row = mysql_fetch_array($sql))
{
echo "<a href='$row[0]'>.$row[0]."</a><br>"
}
....

?>

Where shall I put this code in the vb?
I tried putting it inside the right column template, but it did not work..

Do I have to use plugin system?
If so, how can I find where to put this code within the plugin system?
Thanks for your help..