PDA

View Full Version : if I create a SQL QUERY in postbit_display_start, it execute any time that show post?


Jhonnyf
10-07-2008, 10:26 PM
That it's my question... if I make a SQL QUERY in that hook, it execute por each post in showthread?

if I display 10 post and 5 it's from one user.. the SQL QUERY execute 10 times?

Thank you

Dismounted
10-08-2008, 05:47 AM
Yes, the query would be executed every time a postbit is generated (this includes PMs, etc.).

Lynne
10-08-2008, 04:11 PM
If possible, it would be good to add to the existing query that goes into each post - I think it may be the showthread_query that you would hook into.

Jhonnyf
10-08-2008, 09:37 PM
Yes, the query would be executed every time a postbit is generated (this includes PMs, etc.).

litle problem... :( thank for the answer

If possible, it would be good to add to the existing query that goes into each post - I think it may be the showthread_query that you would hook into.

yes, I'm see that posibility... thank you for the advice