2009-04-17, 02:11 AM
Hi
I'm heavily modifying the output of the subject and posts of MyBB..
For example, i have str_replace routine function for post['message'] variables, but I only need to do this on the FIRST POST/TOPIC POST.. and not anymore w/ the replies...
My code is working fine already but in my hope to optimize the routine, i need not do my custom substr and str_replace loops on posts that arent the FIRST POST on a thread..
Where is the loop part in this process so that i can do a condition like
if(i=0){ // if first post
// do my routine
}
I looked everywhere in the functions_post.php i cant seem to find it...
thanks
I'm heavily modifying the output of the subject and posts of MyBB..
For example, i have str_replace routine function for post['message'] variables, but I only need to do this on the FIRST POST/TOPIC POST.. and not anymore w/ the replies...
My code is working fine already but in my hope to optimize the routine, i need not do my custom substr and str_replace loops on posts that arent the FIRST POST on a thread..
Where is the loop part in this process so that i can do a condition like
if(i=0){ // if first post
// do my routine
}
I looked everywhere in the functions_post.php i cant seem to find it...
thanks