vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   How would I go about quering my scripts on my forum? (https://vborg.vbsupport.ru/showthread.php?t=131900)

Josh1 11-18-2006 06:50 PM

How would I go about quering my scripts on my forum?
 
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

Quote:

Originally Posted by Josh1 (Post 1120203)
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

Quote:

Originally Posted by Danny.VBT (Post 1120924)
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.


All times are GMT. The time now is 05:54 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00997 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete