Previous Thread
Next Thread
Print Thread
Hop To
Where would be a good spot to run a custom mysql query in ubbthreads.php? #237462 06/14/2010 2:28 PM
Joined: Jan 2007
Posts: 72
Softrak Offline OP
journeyman
OP Offline
journeyman
Joined: Jan 2007
Posts: 72
I tried just putting a custom mysql query at the end of the doc (like line 502) but doesn't seem to be calling. Just wondering if there would be a more desirable location in the php doc for some custom code? (note - I would like this code executed each time the ubbthreads.php file is loaded)

Express Hosting
Re: Where would be a good spot to run a custom mysql query in ubbthreads.php? [Re: Softrak] #237464 06/14/2010 3:41 PM
Joined: Jun 2006
Posts: 9,246
Rick Offline
Former Developer
Offline
Former Developer
Joined: Jun 2006
Posts: 9,246
Hmm, your best bet is probably to add it to be executed when the footer gets called. For that you can edit the libs/html.inc.php file and look for the send_footer function.

Re: Where would be a good spot to run a custom mysql query in ubbthreads.php? [Re: Rick] #237494 06/15/2010 5:36 PM
Joined: Jan 2007
Posts: 72
Softrak Offline OP
journeyman
OP Offline
journeyman
Joined: Jan 2007
Posts: 72
Thanks. I found the best place to run it was in the header from the HTML includes.

Re: Where would be a good spot to run a custom mysql query in ubbthreads.php? [Re: Softrak] #237504 06/16/2010 1:54 PM
Joined: Jun 2006
Posts: 9,246
Rick Offline
Former Developer
Offline
Former Developer
Joined: Jun 2006
Posts: 9,246
That works too wink


Forum Search

ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
File Manager and Image Uploads
by Ty Griffin - 08/19/2019 4:48 PM
Minimum Post Character Count
by M4TT - 08/19/2019 1:58 PM
Strange Merge Issue
by Baldeagle - 08/16/2019 3:37 PM
Formatting Links
by Ty Griffin - 08/13/2019 4:39 PM
Who's Online Now
5 registered members (Baldeagle, isaac, Gizmo, Ty Griffin, Daryl Fawcett), 33 guests, and 238 spiders.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Photos
Stones
Amusing Terain Scenics
Sky places
Work spaces
Powered by UBB.threads™ PHP Forum Software 7.7.3