PDA

View Full Version : How would I go about quering my scripts on my forum?


Josh1
11-18-2006, 06:50 PM
I want to convert my PHP Scripts to vBulletin, so the user has to be logged in to use them... basically it just checks the IP given to make sure their online game server is on, and the port isn't blocked.

I have made the php script already, just need to add it to vBulletin, i've searched and looked but I can't find anything... any ideas?

Guest190829
11-19-2006, 05:16 PM
I want to convert my PHP Scripts to vBulletin, so the user has to be logged in to use them... basically it just checks the IP given to make sure their online game server is on, and the port isn't blocked.

I have made the php script already, just need to add it to vBulletin, i've searched and looked but I can't find anything... any ideas?

vBulletin's querying function are:

$vbulletin->db->query_read() - selecting data

$vbulletin->db->query_write() - inserting, writing, any altering of a table/database

$vbulletin->db->fetch_array() - like mysql_fetch_array

$vbulletin->db->query_first() - returns one row

Here is a great index on tutorials and articles on how to program in vBulletin:

https://vborg.vbsupport.ru/showthread.php?t=99570

Josh1
11-19-2006, 09:54 PM
vBulletin's querying function are:

$vbulletin->db->query_read() - selecting data

$vbulletin->db->query_write() - inserting, writing, any altering of a table/database

$vbulletin->db->fetch_array() - like mysql_fetch_array

$vbulletin->db->query_first() - returns one row

Here is a great index on tutorials and articles on how to program in vBulletin:

https://vborg.vbsupport.ru/showthread.php?t=99570

Ahh excellent, thanks alot!
A little tweaking won't hurt since my PHP Script is under 50 lines :P.