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

Home » FUDforum » How To » New members with old posts linked in profile
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: New members with old posts linked in profile [message #21290 is a reply to message #21289] Wed, 24 November 2004 18:25 Go to previous messageGo to previous message
treebeard is currently offline  treebeard   United States
Messages: 44
Registered: April 2004
Location: Huge Universe
Karma:
Member
Ilia, I found the relevant code:

$last_post = '';
if ($u->u_last_post_id) {
$r = db_saq('SELECT m.subject, m.id, m.post_stamp, t.forum_id FROM {SQL_TABLE_PREFIX}msg m INNER JOIN {SQL_TABLE_PREFIX}thread t ON m.thread_id=t.id WHERE m.id='.$u->u_last_post_id);
if ($usr->users_opt & 1048576 || !empty($frm_perms[$r[3]])) {
$last_post = '{TEMPLATE: last_post}';
}

But I'm sure what to change here. It looks like the query is already looking inside the message table ({SQL_TABLE_PREFIX}msg). Is the thread table ({SQL_TABLE_PREFIX}thread) the one with the old record? Should this table be removed from the query? By "looking directly inside the msg table", did you mean getting form_id from the msg table? Does the msg table have forum_id, or an equivalent field? I tried looking it up myself but didn't have access. Thanks!
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Is the new flat "category" listing an option?
Next Topic: Custom Titles
Goto Forum:
  

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

Current Time: Tue Nov 26 12:46:04 GMT 2024

Total time taken to generate the page: 0.04725 seconds