Previous Thread
Next Thread
Print Thread
Hop To
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)

Joined: Jun 2006
Posts: 9,242
R
Former Developer
Offline
Former Developer
R
Joined: Jun 2006
Posts: 9,242
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.

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.

Joined: Jun 2006
Posts: 9,242
R
Former Developer
Offline
Former Developer
R
Joined: Jun 2006
Posts: 9,242
That works too wink


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Lost Forum
by PrplPplEater - 10/20/2021 9:28 AM
utf8mb4, apostrophes, and periods... oh my!
by PrplPplEater - 10/16/2021 4:47 PM
Incorrect integer value
by DaveZ - 09/26/2021 4:09 PM
"Hide" a member rather than delete?
by jgeoff - 09/24/2021 4:38 PM
Who's Online Now
0 members (), 55 guests, and 79 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
gallery test
gallery test
by Mors, September 23
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 7.7.5