I would like some code help pelase :)

Support for IntegraMOD 141

Moderator: Integra Moderator

I would like some code help pelase :)

PostAuthor: cutegothpirate » Tue Aug 07, 2007 1:58 pm

Your phpBB Version: 2.0.
phpBB Type: Standard phpBB
MODs: No
Your knowledge: Basic Knowledge
Board URL: http://admins.webkillers.net

PHP Version:
MySQL Version:


What was done before the problem appeared?
made some new user levels for the site in order to make groups show up in colors.


What was done to try to solve the problem?
im playing with the functions_topic_list.php



De.scription and Message

Hi, working on getting my user colors to show up in the topics list under $last_post_author.
To make it easy for whoever wants to take a crack at it, im going to use the moderator color.
If I want my moderators to show up under their user_level color where the last_post_author is shown, I believe i need to change
Code: Select all
            switch ($topic_item_type)         {             case POST_USERS_URL:                 $view_topic_url       = append_sid("profile.$phpEx?" . POST_USERS_URL . "=$topic_id");                 break;             default:                 $view_topic_url       = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id");                 $topic_author         = ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? '<a>' : '';                 $topic_author         .= ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? $topic_rowset[$i]['username'] : ( ( $topic_rowset[$i]['post_username'] != '' ) ? $topic_rowset[$i]['post_username'] : $lang['Guest'] );                 $topic_author         .= ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? '</a>' : '';//-- mod : today at   yesterday at ------------------------------------------------------------------------ //-- add                 $first_post_time   = create_date_day($board_config['default_dateformat'], $topic_rowset[$i]['topic_time'], $board_config['board_timezone']);                 $last_post_time      = create_date_day($board_config['default_dateformat'], $topic_rowset[$i]['post_time'], $board_config['board_timezone']); //-- end mod : today at   yesterday at ------------------------------------------------------------------------                 $last_post_author    = ( $topic_rowset[$i]['id2'] == ANONYMOUS ) ? ( ($topic_rowset[$i]['post_username2'] != '' ) ? $topic_rowset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : '<a>' . $topic_rowset[$i]['user2'] . '</a>';                 $last_post_url       = '<a><img></a>';                 $views               = $topic_rowset[$i]['topic_views'];                 $news_label = ( $topic_rowset[$i]['news_id'] > 0 ) ? '[ ' . $lang['News'] . ' ] ' : '';                 break;         }  

Now, would like to add user_level to POST_USERS_URL. It now only equals the user_id. I want it to equal user_id and user_level.
Will that work in showing the moderator color there? or not?
In the advanced group color mod (AGCM) they have
Code: Select all
          switch ($topic_item_type)         {             case POST_USERS_URL:                 $view_topic_url       = append_sid("profile.$phpEx?" . POST_USERS_URL . "=$topic_id");                 break;             default:                 $view_topic_url       = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id");                 $topic_author       = ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? '<a>' : '<span>';                 $topic_author       .= ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? $topic_rowset[$i]['username'] : ( ( $topic_rowset[$i]['post_username'] != '' ) ? $topic_rowset[$i]['post_username'] : $lang['Guest'] );                 $topic_author       .= ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? '</a>' : '</span>';//-- mod : today at   yesterday at ------------------------------------------------------------------------ //-- add                 $first_post_time   = create_date_day($board_config['default_dateformat'], $topic_rowset[$i]['topic_time'], $board_config['board_timezone']);                 $last_post_time      = create_date_day($board_config['default_dateformat'], $topic_rowset[$i]['post_time'], $board_config['board_timezone']); //-- end mod : today at   yesterday at ------------------------------------------------------------------------                 $last_post_author = ( $topic_rowset[$i]['id2'] == ANONYMOUS ) ? '<span>' . ( ($topic_rowset[$i]['post_username2'] != '' ) ? $topic_rowset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) . '</span>' : '<a>' . $topic_rowset[$i]['user2'] . '</a>';                 $last_post_url       = '<a><img></a>';                 $views               = $topic_rowset[$i]['topic_views'];                 $news_label = ( $topic_rowset[$i]['news_id'] > 0 ) ? '[ ' . $lang['News'] . ' ] ' : '';                 break;         }    

So, I should be able to add in the user_level and have it work somehow right?
Could you help please?

p.s I tried editing this to get the code to come out right, and it keeps putting in this [$i]&#91 weird stuff, and i cant get it to stop <img>.
Last edited by cutegothpirate on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

cutegothpirate
Members
Members
 
Posts: 30
Likes: 0 post
Liked in: 0 post
Joined: Mon Jun 11, 2007 11:15 am
Cash on hand: 0.00

Return to IntegraMOD 141

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot], Majestic-12 [Bot]