So I finally got some programming for my forums. the down side is it really was not written for vBulletin and the few people who have it working on their website have never taken the time to make it a true product / plugin.
I am not a programmer by any means but I am very interested in programming. I know the basics and I can follow directions pretty well. So I thought I would make one new thread to get me through my project.
First I created a page outside vBulletin in a folder we will call "log"
My first page was named index.php and I created a template with simple conditions.
I followed Lynnes post
https://vborg.vbsupport.ru/showthread.php?t=228112
Since that was pretty easy I am sure I can figure all this out by getting help from as many programmers that want to respond to my thread. All *positive* comments are welcome.
So here are my first questions:
I have this in my php file (this was already written as part of a script I am trying to import into vb
Code:
$DB_Query;
$rime5 = mysql_query("SELECT * FROM " . $mysql_prefix ."table");
$list4 = mysql_num_rows($rime5);
1. what is the right syntax for vbulletin, I tried this and now I get database error:
Code:
$rime5 = $db->query_read("SELECT field FROM " . TABLE_PREFIX . "table");
$list4 = mysql_num_rows($rime5);
2. How can I get my template to call this so it shows up on the page?
right now I have this to work with
Code:
Total Number of Test Logs: $list4<br /><br />
--------------- Added [DATE]1293672196[/DATE] at [TIME]1293672196[/TIME] ---------------
Where is everyone?