Site Links
Home
Features
Pricing & Order
Documentation
Support Options
Member Area
UBBDev.com
UBBWiki.com
Who's Online Now
2 registered members (Ruben, BlackMale), 57 guests, and 199 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
QSS Tim
QSS Tim
Oroville, CA
Posts: 86
Joined: October 2004
Show All Member Profiles 
Top Posters(30 Days)
isaac 18
Gizmo 12
Ruben 11
driv 5
Morgan 2
Latest Photos
Trees
Retreats
Rooms
Big stuff
Test
Previous Thread
Next Thread
Print Thread
Where would be a good spot to run a custom mysql query in ubbthreads.php? #237462 06/14/10 02: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/10 03: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/10 05: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/10 01: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


ShoutChat Box
Today's Birthdays
Nightcrawler
Recent Topics
7.7.1 /libs/triggers.inc.p
hp

by BlackMale - 05/24/19 01:52 PM
7.7.1 \admin\do_subchange.
php

by BlackMale - 05/24/19 02:47 AM
7.7.1 scripts/inline_moder
ation.inc.php

by BlackMale - 05/23/19 12:23 AM
7.7.1 forgotten? //$reply = "off";
by BlackMale - 05/13/19 07:25 PM
[FIXED for 7.7.2] 7.7.1 /admin/edit_subscrip
tion.php

by BlackMale - 05/11/19 08:35 AM
Forum Statistics
Forums35
Topics35,295
Posts192,455
Members12,167
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.7.2
(Snapshot build 20190501)