FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Plugins and Code Hacks » Dynamic forum META description
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Dynamic forum META description [message #163395 is a reply to message #163392] Mon, 25 October 2010 15:23 Go to previous message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma:
Senior Member
I think we only read the first message from the disc twice, right?

We read it once in my code above (only reads if $obj->root_msg_id == $obj->id IE only if the message is the first message in a thread)

and

We read it in dramsg.tmpl -> dmsg_normal_message_body with {FUNC: read_msg_body($obj->foff, $obj->length, $obj->file_id)}


could of course move my code down to where dmsg_normal_message_body is created or something, I don't know, I am not a performance expert hehe.

Why I solved it like I did was because the call for the func to get the message body was done in the template and not in the src file


[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: BBcode for H1-H4
Next Topic: Useful function when there are still some ISO-8859 chars in the UTF8 database stored messages
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Feb 02 13:47:13 GMT 2025

Total time taken to generate the page: 0.05077 seconds