Display Poster Information Once w/ Profile CP hack installed


  -----  
Author Message

HighlanderICT
Member

Thu Mar 16, 2006 1:11 pm   Post subject: Display Poster Information Once w/ Profile CP hack installed
Hi

I have recently discovered your mods and installed a few of them very easily and to great effect. However, I am having a problem with "Display Poster Information Once" and was hoping you might be able to help .....

I have the profile cp hack installed which enhances the user profile on phpBB ... but it radically changes the viewtopic.php file so it is hard to find the right things to change

When it comes to this portion of the installation I am lost as my viewtopic.php file only mentions avatars once in the file .....

MOD CODE

Code:


#
#-----[ FIND ]------------------------------------------
#

   if ( $postrow[$i]['user_avatar_type'] && $poster_id != ANONYMOUS && $postrow[$i]['user_allowavatar'] )

#
#-----[ REPLACE WITH ]------------------------------------------
#

/* Original phpBB code - commented out for Display Poster Information Once
   if ( $postrow[$i]['user_avatar_type'] && $poster_id != ANONYMOUS && $postrow[$i]['user_allowavatar'] )
*/
//
// MOD: Display Poster Information Once
//

   if ( $postrow[$i]['user_avatar_type'] && $poster_id != ANONYMOUS && $postrow[$i]['user_allowavatar'] && !$leave_out )
//
// MOD: -END-
//



MY CODE

Code:


//-- mod : profile cp ---------------------------------------------------
//-- delete
// $sql = "SELECT u.username, u.user_id, u.user_posts, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile, p.*,  pt.post_text, pt.post_subject, pt.bbcode_uid
//-- add
$sql = "SELECT u.*, p.*,  pt.post_text, pt.post_subject, pt.bbcode_uid
   FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt
   WHERE p.topic_id = $topic_id
      $limit_posts_time
      AND pt.post_id = p.post_id
      AND u.user_id = p.poster_id
      AND p.post_draft = 0
   ORDER BY p.post_time $post_time_order
   LIMIT $start, ".$board_config['posts_per_page'];
//-- fin mod : profile cp ----------------------------




any suggestions ? (other than not installing the mod !)
 

Thoul
Administrator

Thu Mar 16, 2006 5:40 pm   Post subject: re: Display Poster Information Once w/ Profile CP hack insta
I would have to see more of the file to make any suggestions, but these mods may just not be compatible with each other. I've never really looked at this portion of Profile Control Panel, so I'm not sure how we they could work together.
 

Page 1 of 1
Display posts from previous: