[solved] Activity Mod for 141

Mods etc.

Moderator: Integra Moderator

Re: [solved] Activity Mod for 141

PostAuthor: MWE_001 » Tue Dec 12, 2006 4:00 pm

Cleo, Check your edits again. I Installed lastnight and it works flawlessly, EXCEPT, Unlike in other version of phpBB, instead getting every single trophy for every game I installed it gave me 29 of them and no matter what I did I couldnt reset trophy count or anything. I had to get into extreme styles and delete cache files and recompile them for everything to reset back to 0. BUT that being said, I was listed as trophy king right from the get go. And everything else works accordingly except the clicking form page 1,2,3 etc at the bottom of the games. I havent added that fix yet.

Example at http://www.mweva.com/boards no reg necessary I have guest game play turned on so everyone can check it out that it does function normally. have a nice day. Ray
Last edited by MWE_001 on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 7:59 pm
Cash on hand: 0.00
Location: Illinois

PostAuthor: ayasha » Tue Dec 12, 2006 9:21 pm

ok, was just hoping someone could point me in the direction of the edit that dealt specifically with the trophy rank. i have been through the edits so many times, and everytime i edit for the activity mod, about 4 times i have edited a forum for the activity mod, not just mine, i ask the same question, and no one seems to know which edit specifiaclly deals with the rank, so i will just leave it out.
Last edited by ayasha on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
No one can make you feel inferior without your consent.
~Eleanor Roosevelt

ayasha
Sr Integra Member
Sr Integra Member
 
Posts: 634
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 6:10 pm
Cash on hand: 0.00

Re: [solved] Activity Mod for 141

PostAuthor: MWE_001 » Tue Dec 12, 2006 11:35 pm

Im not following what you mean by trophy king/queen block. the only thing I can find that outputs trophy anything is located in

language/lang_english/lang_extend_pcp_addons.php

profilcp/def/def_userfuncs_custom.php

profilcp/def/def_userfuncs_std.php

profilcp/def/def_userfields.php

profilcp/def/def_usermaps.php

those are the only file edits I can find that have anything that I know of to do with trophy output functions. I still cant think of any " Block " though. the only thin i have as an option in my activity mod is do I or do I not want to use trophy king function. if choose yes, you get a nice little trophy king/queen below your name in your forums.

Sry I couldnt be of anymore help. I apologize. I have never had a problem when I followed Foundit's walkthrough. I did have that problem once with the trophy king not showing up and a couple of other issues when following along with the install that comes with the mod itself.
Last edited by MWE_001 on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 7:59 pm
Cash on hand: 0.00
Location: Illinois

Re: [solved] Activity Mod for 141

PostAuthor: ayasha » Wed Dec 13, 2006 6:33 am

here is my profilcp/def/def_userfuncs_std.php

Code: Select all
<?php  /***************************************************************************  *                           def_userfuncs_std.php  *                           ---------------------  *   begin                 : 04/10/2003  *   copyright             : Ptirhiik  *   email                 : Ptirhiik@rpgnet.clanmckeen.com  *  *   version               : 1.0.1 - 30/10/2003  *  ***************************************************************************/  /***************************************************************************  *  *   This program is free software; you can redistribute it and/or modify  *   it under the terms of the GNU General Public License as published by  *   the Free Software Foundation; either version 2 of the License, or  *   (at your option) any later version.  *  *  ***************************************************************************/  if ( !defined('IN_PHPBB') ){     die('Hacking attempt');     exit;}  //-----------------------------------//// user_online output function////-----------------------------------function pcp_output_user_online($field_name, $view_userdata, $map_name=''){     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;       $txt = '';     $img = '';     $res = '';     if  ( $view_userdata['user_id'] != ANONYMOUS )     {         // offline         $txt = $lang['Offline'];         $img = '<img>';         if ( !empty($view_userdata[$field_name]) )         {             // hidden             $txt = $lang['Hidden'];             $img = '<img>';               // not hidden set : online             if ($view_userdata['user_allow_viewonline'] == YES)             {                 $txt = $lang['Online'];                 $img = '<img>';             }         }           // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res;}  //-----------------------------------//// user_my_friend output function////-----------------------------------function pcp_output_my_friend($field_name, $view_userdata, $map_name=''){     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;       // use user_my_ignore       $txt = '';     $img = '';     $res = '';     if ( ($userdata['user_id'] != $view_userdata['user_id']) && ($view_userdata['user_id'] != ANONYMOUS) && $userdata['session_logged_in'] && ($userdata['user_id'] != ANONYMOUS) )     {         $from = '&from=profil';         $maps = explode('.', $map_name);         if ( empty($maps) )         {             $from = '&from=profil';         }         if ( in_array('viewprofile', $maps) )         {             $from = '&from=profil';         }         else if ( in_array('viewtopic', $maps) )         {             $from = '&from=topic&' . POST_POST_URL . '=' . $view_userdata['post_id'];         }         else if ( in_array('privmsgs', $maps) )         {             $from = '&from=privmsg&' . POST_POST_URL . '=' . $view_userdata['privmsgs_id'];         }         if ( $view_userdata['user_my_friend'] )         {             $temp_url = append_sid("./profile.$phpEx?mode=buddy&sub=friend&b=" . $view_userdata['user_id'] . "&set=remove" . $from);             $title = $lang['Remove_from_friend_list'];             $icon = $images['icon_friend_remove'];             $txt = '<a>' . $title . '</a>';             $img = '<a><img></a>';         }         else if ( !$view_userdata['user_my_ignore'] )         {             $temp_url = append_sid("./profile.$phpEx?mode=buddy&sub=friend&b=" . $view_userdata['user_id'] . "&set=add" . $from);             $title = $lang['Add_to_friend_list'];             $icon = $images['icon_friend_add'];             $txt = '<a>' . $title . '</a>';             $img = '<a><img></a>';         }                 // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res;}  //-----------------------------------//// user_my_friend output function for buddy list////-----------------------------------function pcp_output_my_friend_buddy($field_name, $view_userdata, $map_name=''){     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;       // use user_my_visible       $txt = '';     $img = '';     $res = '';     if ( ($userdata['user_id'] != $view_userdata['user_id']) && ($view_userdata['user_id'] != ANONYMOUS) && $userdata['session_logged_in'] && ($userdata['user_id'] != ANONYMOUS) )     {         if ( $view_userdata['user_my_friend'] )         {             $temp_url = append_sid( "./profile.$phpEx?mode=buddy&sub=friend&b=" . $view_userdata['user_id'] . "&set=" . ( $view_userdata['user_my_visible'] ? 'inv' : 'vis') );             $title = $view_userdata['user_my_visible'] ? $lang['Always_visible'] : $lang['Not_always_visible'];             $icon = $view_userdata['user_my_visible'] ? $images['icon_visible'] : $images['icon_not_visible'];             $txt = '<a>' . $title . '</a>';             $img = '<a><img></a>';         }           // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res;}  //-----------------------------------//// user_my_ignore output function////-----------------------------------function pcp_output_my_ignore($field_name, $view_userdata, $map_name=''){     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;       // uses user_my_friend       $txt = '';     $img = '';     if ( ($view_userdata['user_id'] != $userdata['user_id']) && ($view_userdata['user_id'] != ANONYMOUS) && $userdata['session_logged_in'] && ($userdata['user_id'] != ANONYMOUS) )     {         $from = '&from=profil';         $maps = explode('.', $map_name);         if ( empty($maps) )         {             $from = '&from=profil';         }         if ( in_array('viewprofile', $maps) )         {             $from = '&from=profil';         }         else if ( in_array('viewtopic', $maps) )         {             $from = '&from=topic&' . POST_POST_URL . '=' . $view_userdata['post_id'];         }         else if ( in_array('privmsgs', $maps) )         {             $from = '&from=privmsg&' . POST_POST_URL . '=' . $view_userdata['privmsgs_id'];         }         if ( $view_userdata['user_my_ignore'] )         {             $temp_url = append_sid("./profile.$phpEx?mode=buddy&sub=ignore&b=" . $view_userdata['user_id'] . "&set=remove" . $from);             $title = $lang['Remove_from_ignore_list'];             $icon = $images['icon_ignore_remove'];             $txt = '<a>' . $title . '</a>';             $img = '<a><img></a>';         }         else if (!is_admin($userdata) && !is_admin($view_userdata) && (get_user_level($userdata) != MOD) && (get_user_level($view_userdata) != MOD) && !$view_userdata['user_my_friend'])         {             $temp_url = append_sid("./profile.$phpEx?mode=buddy&sub=ignore&b=" . $view_userdata['user_id'] . "&set=add" . $from);             $title = $lang['Add_to_ignore_list'];             $icon = $images['icon_ignore_add'];             $txt = '<a>' . $title . '</a>';             $img = '<a><img></a>';         }           // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res;}  //-----------------------------------//// username output function////-----------------------------------function pcp_output_username($field_name, $view_userdata, $map_name=''){     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;       $txt = '';     $img = '';     $res = '';       $poster = ($view_userdata['user_id'] != ANONYMOUS) ? $view_userdata[$field_name] : ( (isset($view_userdata['post_username']) && ($view_userdata['post_username'] !='') ) ? $view_userdata['post_username'] : $lang['Guest'] );     $usereffects = explode("ÃÅÂ ¸", $view_userdata['user_effects']);     $userprivs = explode("ÃÅÂ ¸", $view_userdata['user_privs']);     $usercustitle = explode("ÃÅÂ ¸", $view_userdata['user_custitle']);     $userbs = array();     $usercount = count($userprivs);     for ($x = 0; $x < $usercount; $x++) { $temppriv = explode("ÃÅÂ ¾", $userprivs[$x]); $userbs[] = $temppriv[0]; $userbs[] = $temppriv[1]; }     $usercount = count($usereffects);     for ($x = 0; $x < $usercount; $x++) { $temppriv = explode("ÃÅÂ ¾", $usereffects[$x]); $userbs[] = $temppriv[0]; $userbs[] = $temppriv[1]; }     $usercount = count($usercustitle);     for ($x = 0; $x < $usercount; $x++) { $temppriv = explode("ÃÅÂ ¾", $usercustitle[$x]); $userbs[] = $temppriv[0]; $userbs[] = $temppriv[1]; }     $shoparray = explode("ÃÅÂ ¸", $board_config['specialshop']);     $shoparraycount = count ($shoparray);     $shopstatarray = array();     for ($x = 0; $x </font>'.$poster.'</span>';         $poster = $nameeffects;     }     if ((($userbs[24] == on) && ($shopstatarray[24] == on)) || (($userbs[20] == on) && ($shopstatarray[22] == on)) || (($userbs[22] == on) && ($shopstataray[20] = on)) || (($userbs[18] == on) && ($shopstatarray[18] == on))) {         $titleeffects = '</font>'.$poster_rank.'</span>';         $poster_rank = $titleeffects;     }     $username = ($view_userdata['user_id'] != ANONYMOUS) ? $view_userdata[$field_name] : ( (isset($view_userdata['post_username']) && ($view_userdata['post_username'] !='') ) ? $view_userdata['post_username'] : $lang['Guest'] );     $temp_url = append_sid("./profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $view_userdata['user_id']);     // txt     $txt = '<span>' . $poster . '</span>';       // img     /* Hide Buttons :: Altered     if ( $view_userdata['user_id'] != ANONYMOUS )*/     if($userdata['user_id'] != ANONYMOUS && $view_userdata['user_id'] != ANONYMOUS ) {         $temp_url = append_sid("./profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $view_userdata['user_id']);         $img = '<a><img></a>';     }       // result     $res = pcp_output_format($field_name, $txt, $img, $map_name);     return $res;}//----------------------------------- // // username output function with link on txt // //----------------------------------- function pcp_output_username_linked($field_name, $view_userdata, $map_name='') {     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;       $txt = '';     $img = '';     $username = ($view_userdata['user_id'] != ANONYMOUS) ? $view_userdata[$field_name] : ( (isset($view_userdata['post_username']) && ($view_userdata['post_username'] !='') ) ? $view_userdata['post_username'] : $lang['Guest'] );       // txt     /* Hide Buttons :: Altered     if ( $view_userdata['user_id'] != ANONYMOUS )     {         $temp_url = append_sid("./profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $view_userdata['user_id']);         $txt = '<a>' . $username . '</a>';         $img = '<a><img></a>';     }     else     {         $txt = '<span>' . $username . '</span>';     }*/     if($userdata['user_id'] == ANONYMOUS || $view_userdata['user_id'] == ANONYMOUS )    {         $txt = '<span>' . $username . '</span>';     } else {         $temp_url = append_sid("./profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $view_userdata['user_id']);         $txt = '<a>' . $username . '</a>';         $img = '<a><img></a>';     }     // result     $res = pcp_output_format($field_name, $txt, $img, $map_name);     return $res; }  //-----------------------------------//// user_pm output function////-----------------------------------function pcp_output_user_pm($field_name, $view_userdata, $map_name=''){     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;       $txt = '';     $img = '';     $res = '';     if ( !empty($view_userdata[$field_name]) && ($view_userdata['user_id'] != ANONYMOUS) && ($userdata['user_id'] != ANONYMOUS))     {         $temp_url = append_sid("./privmsg.$phpEx?mode=post&" . POST_USERS_URL . '=' . $view_userdata['user_id']);         $txt = '<a>' . $lang['Send_private_message'] . '</a>';         $img = '<a><img></a>';           // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res;}  //-----------------------------------//// user_email output function////-----------------------------------function pcp_output_user_email($field_name, $view_userdata, $map_name=''){     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;         // add text for admin view in buddy/memberlist     if ( in_array($map_name, array('PCP.buddy')) && is_admin($userdata))     {         $user_maps[$map_name]['fields'][$field_name]['txt'] = true;         $user_maps[$map_name]['fields'][$field_name]['crlf'] = true;     }       $txt = '';     $img = '';     $res = '';     if ( !empty($view_userdata[$field_name]) && ($view_userdata['user_id'] != ANONYMOUS)  )     {         $temp_url = ( $board_config['board_email_form'] ) ? append_sid("./profile.$phpEx?mode=email&" . POST_USERS_URL . '=' . $view_userdata['user_id']) : 'mailto:' . $view_userdata[$field_name];           $txt_title = ( is_admin($userdata) || $user_maps[$map_name]['fields'][$field_name]['img'] || $board_config['board_email_form'] ) ? $lang['Send_email'] : $view_userdata[$field_name];         $txt_link = ( is_admin($userdata) || ($user_maps[$map_name]['fields'][$field_name]['img'] && !$board_config['board_email_form'] ))? $view_userdata[$field_name] : $lang['Send_email'];         $txt = '<a>' . $txt_link . '</a>';         $txt_title = (is_admin($userdata) || !$board_config['board_email_form']) ? $view_userdata[$field_name] : $lang['Send_email'];         $img = '<a><img></a>';           // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res;}  //-----------------------------------//// user_icq output function////-----------------------------------function pcp_output_icq($field_name, $view_userdata, $map_name=''){     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;       $txt = '';     $img = '';     $res = '';     if ( !empty($view_userdata[$field_name]) && ($view_userdata['user_id'] != ANONYMOUS) )     {         $temp_url = 'http://wwp.icq.com/' . $view_userdata[$field_name] . '#pager';         $img = '<a><img></a>';         $txt = '<a>' . $lang['ICQ'] . '</a>';           // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res;}//-----------------------------------//// user_aim output function////-----------------------------------function pcp_output_aim($field_name, $view_userdata, $map_name=''){     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;       $txt = '';     $img = '';     $res = '';     if ( !empty($view_userdata[$field_name]) && ($view_userdata['user_id'] != ANONYMOUS) )     {         $temp_url = 'aim:goim?screenname=' . $view_userdata[$field_name] . '&message=Hello+Are+you+there?';         $txt = '<a>' . $lang['AIM'] . '</a>';         $img = '<a><img></a>';           // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res;}  //-----------------------------------//// user_yim output function////-----------------------------------function pcp_output_yim($field_name, $view_userdata, $map_name=''){     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;       $txt = '';     $img = '';     $res = '';     if ( !empty($view_userdata[$field_name]) && ($view_userdata['user_id'] != ANONYMOUS) )     {         $temp_url = 'http://edit.yahoo.com/config/send_webmesg?.target=' . $view_userdata[$field_name] . '&.src=pg';         $txt = '<a>' . $lang['YIM'] . '</a>';         $img = '<a><img></a>';           // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res;}  //-----------------------------------//// user_msnm output function////-----------------------------------function pcp_output_msnm($field_name, $view_userdata, $map_name=''){     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;       $res = '';     if ( !empty($view_userdata[$field_name]) && ($view_userdata['user_id'] != ANONYMOUS) )     {         $temp_url = (substr($map_name, 0, 6) == 'PHPBB.') ? append_sid("./profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $view_userdata['user_id']) : 'mailto:' . $view_userdata[$field_name];         $txt = '<a>' . $lang['MSNM'] . '</a>';         $img = '<a><img></a>';           // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res;}  //-----------------------------------//// user_timezone output function////-----------------------------------function pcp_output_timezone($field_name, $view_userdata, $map_name=''){     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;       $txt = '';     $img = '';     $res = '';     if ( $view_userdata['user_id'] != ANONYMOUS )     {         @reset($lang['tz']);         while ( list($offset, $value) = @each($lang['tz']) )         {             if ( $view_userdata[$field_name] == $offset )             {                 $txt = $value . ' (' . create_date($userdata['user_dateformat'], time(), $view_userdata['user_timezone']) . ')';                 $img = '<img>';                 break;             }         }           // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res;}  //-----------------------------------//// user_website output function////-----------------------------------function pcp_output_website($field_name, $view_userdata, $map_name=''){     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;       $txt = '';     $img = '';     $res = '';     if ( !empty($view_userdata[$field_name]) && ($view_userdata['user_id'] != ANONYMOUS) )     {         if (strtolower(substr($view_userdata[$field_name],0,7)) != 'http://'){                 $view_userdata[$field_name] = 'http://'.$view_userdata[$field_name];         }         if ( substr($map_name, 0, 4) == 'PCP.' )         {             $link = $view_userdata[$field_name];             $title = $lang['Visit_website'];         }         else         {             $link = $lang['Visit_website'];             $title = $view_userdata[$field_name];         }         $txt = '<a>' . $link . '</a>';         $img = '<a><img></a>';           // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res;}  //-----------------------------------//// user_gender output function////-----------------------------------function pcp_output_gender($field_name, $view_userdata, $map_name=''){     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;       $txt = '';     $img = '';     $res = '';     if ( $view_userdata['user_id'] != ANONYMOUS )     {         switch ($view_userdata[$field_name])         {             case 0:                 $txt = $lang['No_gender_specify'];                 $img = '<img>';                 break;             case 1:                 $txt = $lang['Male'];                 $img = '<img>';                 break;          case 2:             $txt = $lang['Female'];             $img = '<img>';             break;       }           // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res;}  //-----------------------------------//// user_age output function////-----------------------------------function pcp_output_age($field_name, $view_userdata, $map_name=''){     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;       // use user_birthday     $pm_display = pcp_get_class_check('pm', $view_userdata);       $txt = '';     $img = '';     $res = '';     if ( !empty($view_userdata['user_birthday']) && ($view_userdata['user_id'] != ANONYMOUS) )     {         $temp_url = $pm_display ? append_sid("./privmsg.$phpEx?mode=post&" . POST_USERS_URL . '=' . $view_userdata['user_id']) : '';         $img = ( intval(substr($view_userdata['user_birthday'], 4, 4)) == date('md', cal_date(time(),$board_config['board_timezone'])) ) ? ( $pm_display ? '<a><img></a>' : '<img>') : '';         $txt = date('Y', cal_date(time(),$board_config['board_timezone'])) - intval(substr($view_userdata['user_birthday'], 0, 4));         if ( intval(substr($view_userdata['user_birthday'], 4, 4)) > date('md', cal_date(time(),$board_config['board_timezone'])) )         {             $txt--;         }         if ($txt < 0)         {             $txt = '';             $img = '';         }           // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res;}  //-----------------------------------//// user_rank_title output function////-----------------------------------function pcp_output_rank_title($field_name, $view_userdata, $map_name='') {         global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;         global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields, $shopstatarray;           if ( $view_userdata['user_id'] != ANONYMOUS )         {                 $rank = get_user_rank($view_userdata);                   $shoparray = explode("ÃÅÂ ¸", $board_config['specialshop']);                 $shoparraycount = count ($shoparray);                 for ($x = 0; $x < $shoparraycount; $x++)                 {                         $temparray = explode("ÃÅÂ ¾", $shoparray[$x]);                         $shopstatarray[] = $temparray[0];                         $shopstatarray[] = $temparray[1];                 }                 $userprivs = array();                 $usereffects = array();                 $usercustitle = array();                 $userbs = array();                 $userprivs = explode("ÃÅÂ ¸", $view_userdata['user_privs']);                 $usercount = count($userprivs);                 for ($x = 0; $x < $usercount; $x++)                 {                         $temppriv = explode("ÃÅÂ ¾", $userprivs[$x]);                         $userbs[] = $temppriv[0];                         $userbs[] = $temppriv[1];                 }                 $usereffects = explode("ÃÅÂ ¸", $view_userdata['user_effects']);                 $usercount = count($usereffects);                 for ($x = 0; $x < $usercount; $x++)                 {                         $temppriv = explode("ÃÅÂ ¾", $usereffects[$x]);                         $userbs[] = $temppriv[0];                         $userbs[] = $temppriv[1];                 }                 $usercustitle = explode("ÃÅÂ ¸", $view_userdata['user_custitle']);                 $usercount = count($usercustitle);                 for ($x = 0; $x < $usercount; $x++)                 {                         $temppriv = explode("ÃÅÂ ¾", $usercustitle[$x]);                         $userbs[] = $temppriv[0];                         $userbs[] = $temppriv[1];                 }                 if ((($userbs[24] == on) && ($shopstatarray[24] == on)) ||                     (($userbs[20] == on) && ($shopstatarray[22] == on)) ||                     (($userbs[22] == on) && ($shopstatarray[20] = on)) ||                     (($userbs[18] == on) && ($shopstatarray[18] == on)))                 {                         $titleeffects = '</font>'.$rank['rank_title'].'</span>';                         $rank['rank_title'] = $titleeffects;                 }                   if (($shopstatarray[10] == on) && ($userbs[6] != on) && ($rank['rank_title'] != "Site Admin"))                 {                         $rank['rank_title'] = "None";                         $rank['rank_image'] = "";                 }                   $txt = $rank['rank_title'];                 $img = $rank['rank_image'];                                                                                                                       // result                 $res = pcp_output_format($field_name, $txt, $img, $map_name);         }         return $res; }  //-----------------------------------//// user_avatar output function////-----------------------------------function pcp_output_avatar($field_name, $view_userdata, $map_name=''){     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;       $txt = '';     $img = '';     $res = '';     if ( !empty($view_userdata[$field_name]) && $userdata['user_viewavatar'] && $view_userdata['user_allowavatar'] && ($view_userdata['user_id'] != ANONYMOUS) )     {         switch ($view_userdata[$field_name . '_type'] )         {             case USER_AVATAR_UPLOAD:                 $img = ( $board_config['allow_avatar_upload'] ) ? '<img>' : '';                 break;             case USER_AVATAR_REMOTE:                 $img = ( $board_config['allow_avatar_remote'] ) ? '<img>' : '';                 break;             case USER_AVATAR_GALLERY:                 $img = ( $board_config['allow_avatar_local'] ) ? '<img>' : '';                 break;       }                   if ( ($img) && ($map_name == 'PHPBB.viewtopic.left') )                 {                         $tmp = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $view_userdata['user_id']);                         $img = '<a>'. $img .'</a>';                 }                 $shoparray = explode("ÃÅÂ ¸", $board_config['specialshop']);                 $shoparraycount = count ($shoparray);                 for ($x = 0; $x < $shoparraycount; $x++)                 {                         $temparray = explode("ÃÅÂ ¾", $shoparray[$x]);                         $shopstatarray[] = $temparray[0];                         $shopstatarray[] = $temparray[1];                 }                 $userprivs = array();                 $usereffects = array();                 $usercustitle = array();                 $userbs = array();                 $userprivs = explode("ÃÅÂ ¸", $view_userdata['user_privs']);                 $usercount = count($userprivs);                 for ($x = 0; $x </is> 0)                 {                         $user_sig = str_replace('"', '"', substr(preg_replace('#(>(((?>([^><R>' . $user_sig . '<'), 1, -1));                 }                 $txt = str_replace("n", "n<br>n", $user_sig);                   $shoparray = explode("ÃÅÂ ¸", $board_config['specialshop']);                 $shoparraycount = count ($shoparray);                 for ($x = 0; $x < $shoparraycount; $x++)                 {                         $temparray = explode("ÃÅÂ ¾", $shoparray[$x]);                         $shopstatarray[] = $temparray[0];                         $shopstatarray[] = $temparray[1];                 }                 $userprivs = array();                 $usereffects = array();                 $usercustitle = array();                 $userbs = array();                 $userprivs = explode("ÃÅÂ ¸", $view_userdata['user_privs']);                 $usercount = count($userprivs);                 for ($x = 0; $x </a>sql_query($sql) )             {                 message_die(GENERAL_ERROR, 'Could not get most active topic informations', '', __LINE__, __FILE__, $sql);             }             if ( $row = $db->sql_fetchrow($result) )             {                 // Define censored word matches                 $orig_word = array();                 $replacement_word = array();                 obtain_word_list($orig_word, $replacement_word);                   // get the info                 $most_active_topic_id = $row['topic_id'];                 $most_active_topic_title = ( count($orig_word) ) ? preg_replace($orig_word, $replacement_word, $row['topic_title']) : $row['topic_title'];                 $most_active_topic_posts = $row['posts_count'];                 $most_active_topic_posts_total = $row['topic_posts'];                 $most_active_topic_posts_total_forum = $row['forum_posts'];             }               // display             if ( $most_active_topic_id > -1 )             {                 // topic                 $temp_url = append_sid("./viewtopic.$phpEx?" . POST_TOPIC_URL . "=$most_active_topic_id");                 $txt = '<a>' . $most_active_topic_title . '</a>';                 $txt .= '<br><span>' . sprintf( '[' . $lang['Most_active_topic_stat'] . ']', $most_active_topic_posts, ( ($most_active_topic_posts*100) / $most_active_topic_posts_total ), ( ($most_active_topic_posts*100) / $most_active_topic_posts_total_forum ) ) . '</span>';             }         }         // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res;}  //-----------------------------------//// user_forums_stat output function////-----------------------------------function pcp_output_forums_stat($field_name, $view_userdata, $map_name=''){     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;     global $db;       $txt = '';     $img = '';     $res = '';     if ( !empty($view_userdata['user_posts']) && ($view_userdata['user_id'] != ANONYMOUS) )     {         $most_active_forum_id = -1;         $most_active_forum_name = '';         $most_active_forum_posts = 0;         $most_active_forum_posts_total = 0;         $total_posts = get_db_stat('postcount');           $is_auth = auth(AUTH_VIEW, AUTH_LIST_ALL, $userdata);         $forum_ids = array();         while (list($forum_id, $auth) = @each($is_auth) )         {             if ($auth['auth_view']) $forum_ids[] = $forum_id;         }         if ( !empty($forum_ids) )         {             $s_forum_ids = implode(', ', $forum_ids);               // most active forum             $sql = "SELECT t.forum_id, f.forum_name, f.forum_posts, count(p.post_id) AS posts_count                     FROM " . POSTS_TABLE . " p, " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f                     WHERE p.poster_id = " . $view_userdata['user_id'] . "                         AND t.topic_id = p.topic_id                         AND t.forum_id IN ($s_forum_ids)                         AND f.forum_id = t.forum_id                     GROUP BY t.forum_id                     ORDER BY posts_count DESC                     LIMIT 0, 1";             if ( !$result = $db->sql_query($sql) )             {                 message_die(GENERAL_ERROR, 'Could not get most active forum informations', '', __LINE__, __FILE__, $sql);             }             if ( $row = $db->sql_fetchrow($result) )             {                 $most_active_forum_id = $row['forum_id'];                 $most_active_forum_name = isset($lang[ $row['forum_name'] ]) ? $lang[ $row['forum_name'] ] : $row['forum_name'];                 $most_active_forum_posts = $row['posts_count'];                 $most_active_forum_posts_total = $row['forum_posts'];             }               // display             if ( $most_active_forum_id > -1 )             {                 // forum                 $temp_url = append_sid("./viewforum.$phpEx?" . POST_FORUM_URL . "=$most_active_forum_id");                 $txt = '<a>' . $most_active_forum_name . '</a>';                 $txt .= '<br><span>' . sprintf( '[' . $lang['Most_active_forum_stat'] . ']', $most_active_forum_posts, ( ($most_active_forum_posts*100) / $most_active_forum_posts_total ), ( ($most_active_forum_posts*100) / $total_posts ) ) . '</span>';             }         }           // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res;}  //-----------------------------------//// user_groups output function////-----------------------------------function pcp_output_usergroups($field_name, $view_userdata, $map_name=''){     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;     global $db, $template;       $txt = '';     $img = '';     $res = '';     if ( $view_userdata['user_id'] != ANONYMOUS )     {         // save template state         $sav_tpl = $template->_tpldata;           // template file         $template->set_filenames(array(             '_box_groups' => 'profilcp/public_groups_body.tpl')         );           $template->assign_block_vars('tiny_panel', array());           // groupes         $sql = "SELECT                     g.group_id,                     g.group_name,                     g.group_description,                     g.group_type                 FROM                     " . USER_GROUP_TABLE . " l,                     " . GROUPS_TABLE . " g                 WHERE l.user_pending = 0                     AND g.group_single_user = 0                     AND l.user_id = " . $view_userdata['user_id'] . "                     AND g.group_id = l.group_id                 ORDER BY                     g.group_name,                     g.group_id";         if ( !$result = $db->sql_query($sql) )         {             message_die(GENERAL_ERROR, 'Could not read groups', '', __LINE__, __FILE__, $sql);           }         $groups = array();         while ($row = $db->sql_fetchrow($result))         {             $groups[] = $row;         }           $template->assign_vars(array(             'L_USERGROUPS'   => $lang['Usergroups'],             'L_NO_GROUPS'    => $lang['None'],             'TXTCLASS'       => 'gensmall',             )         );         $nb = 0;         if (count($groups) > 0)         {             $class = false;             for ($i=0; $i <count>sql_query($sql) )                     {                         message_die(GENERAL_ERROR, 'Couldn't obtain viewer group list', '', __LINE__, __FILE__, $sql);                     }                     $is_ok = ( $row = $db->sql_fetchrow($result) );                 }                   // group allowed : display                 if ($is_ok)                 {                     $nb++;                     $class = !$class;                     $u_group_name = append_sid("groupcp.$phpEx?" . POST_GROUPS_URL . '=' . $groups[$i]['group_id']);                     $l_group_name = $groups[$i]['group_name'];                     $l_group_desc = $groups[$i]['group_description'];                     $template->assign_block_vars('groups',array(                         'CLASS'           => ($class) ? "row1" : "row2",                         'U_GROUP_NAME'   => $u_group_name,                         'L_GROUP_NAME'   => $l_group_name,                         'L_GROUP_DESC'   => $l_group_desc,                         )                     );                 }  // end if ($is_ok)             }  // end for ($i=0; $i <count> 0)           if ($nb == 0)         {             $template->assign_block_vars('no_groups', array('SPAN' => 1));         }           // transfert to a var         $template->assign_var_from_handle('_box', '_box_groups');         $txt = $template->_tpldata['.'][0]['_box'];           // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res;}  //-- mod : add-on country flags for pcp ------------------------------------------------------------//-- add//-----------------------------------//// user_flag output function////-----------------------------------function pcp_output_flag($field_name, $view_userdata, $map_name=''){     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;       $txt = '';     $img = '';     $res = '';       if ( $view_userdata['user_id'] != ANONYMOUS )     {             if (!empty($view_userdata['user_flag']))             {                 $img = '<img>';             }             else             {                 $img = '';             }         // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res;}//-- fin mod : add-on country flags for pcp --------------------------------------------------------  //-- mod : add-on holidays for pcp -----------------------------------------------------------------//-- add//-----------------------------------//// user_holidays output function////-----------------------------------function pcp_output_holidays($field_name, $view_userdata, $map_name=''){     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;       $txt = '';     $img = '';     $res = '';     if ( $view_userdata['user_id'] != ANONYMOUS )     {         switch ($view_userdata[$field_name])         {             case 1:                 $txt = $lang['On_Holidays'];                 $img = '<img>';                 break;         }           // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res;}//-- fin mod : add-on holidays for pcp -------------------------------------------------------------  ?>  


this edit i could not find the specific code it wanted to replace.

and here is a screen shot of my trophy king block, it appeared as
Last edited by ayasha on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
No one can make you feel inferior without your consent.
~Eleanor Roosevelt

ayasha
Sr Integra Member
Sr Integra Member
 
Posts: 634
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 6:10 pm
Cash on hand: 0.00

Re: [solved] Activity Mod for 141

PostAuthor: found it » Wed Dec 13, 2006 7:53 am

Hi

Where did you get the trophy king block from as that does look like the code in there is causing the problem.......

Is it compatible with 1.4.1....?

just an idea


:mrgreen:
Last edited by found it on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http]themes.[/url]
http://www.founditforum.com :: [url=http]Joining people together[/url]

[url=http][img=left]http://www.bbful.com/bbful_banner2.png[/img][/url]
User avatar
found it
Dev Team
Dev Team
 
Posts: 792
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 4:29 am
Cash on hand: 0.00

PostAuthor: shedt_v » Wed Dec 13, 2006 8:12 am

i have arcade mod 2.1.4 installed fine, is the activity mod better?

i can't really see a difference between the two.
Last edited by shedt_v on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

shedt_v
Integra Member
Integra Member
 
Posts: 114
Likes: 0 post
Liked in: 0 post
Joined: Sat Dec 09, 2006 8:37 am
Cash on hand: 0.00

PostAuthor: ayasha » Wed Dec 13, 2006 8:58 am

it just appeared in my choices of blocks to activate on the portal page Mike, so i have no idea where it came from, sorry, wish i could tell you more <img>

is there one that i can use?


edit: and i know this is off topic for this thread, but every time i have posted something to this thread, i get this

General Error

Failed sending email :: PHP ::

what is causing that?
Last edited by ayasha on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
No one can make you feel inferior without your consent.
~Eleanor Roosevelt

ayasha
Sr Integra Member
Sr Integra Member
 
Posts: 634
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 6:10 pm
Cash on hand: 0.00

PostAuthor: IntegraMOD » Wed Dec 13, 2006 9:10 am

"cleo";p="18383" wrote:edit: and i know this is off topic for this thread, but every time i have posted something to this thread, i get this

General Error

Failed sending email :: PHP ::

what is causing that?

This error is a known error, nothing to do with integra but it is an issue with the new server, whuch is being looked into right now
Last edited by IntegraMOD on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
Please do not PM for support
User avatar
IntegraMOD
Administrator
Administrator
 
Posts: 459
Likes: 0 post
Liked in: 0 post
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 0.00
Bank: 100.00
Location: Seattle Wa

PostAuthor: Dioncecht » Fri Dec 15, 2006 5:11 pm

One thing I noticed.. if you use the premodded files after doing all the updates, your board will yell at you and tell you that you are running 2.0.19 and Security 1.0.2...

So it's prolly a good idea to stay away from the pre-modded files...
Last edited by Dioncecht on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
'We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths.' - Walt Disney

[img=left]http://rpghq.org/banner2.jpg[/img]
[url=http]The RPG Headquarters. The RPG capitol of the net![/url]
User avatar
Dioncecht
Sr Integra Member
Sr Integra Member
 
Posts: 244
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 5:23 pm
Cash on hand: 0.00

Re: [solved] Activity Mod for 141

PostAuthor: MWE_001 » Fri Dec 15, 2006 5:18 pm

Cleo this is very interesting. I have installed this mod many times and including 3 sites of my own and that block has never been an option. In order to have a Block you must have the tpl files and all to go with it to make it work which this mod does NOT have. I have read and re read all the code and no where at all is this block present OR are the files there that are need for a block to work even. Do you have any other web admins that may have tried to configure a block and just didnt relay the info to you of what they were up too? Im at a loss on this one. <img>
Last edited by MWE_001 on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 7:59 pm
Cash on hand: 0.00
Location: Illinois

PostAuthor: ayasha » Fri Dec 15, 2006 11:00 pm

could be MWE, that is why i asked if there was a block that i could use. i like the idea of having one, but have no idea how to make one <img>

also, a few post back, i asked for some help in finding the code edit for the profilcp/def/def_userfuncs_std.php file, can anyone help me?
Last edited by ayasha on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
No one can make you feel inferior without your consent.
~Eleanor Roosevelt

ayasha
Sr Integra Member
Sr Integra Member
 
Posts: 634
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 6:10 pm
Cash on hand: 0.00

Re: [solved] Activity Mod for 141

PostAuthor: MWE_001 » Sat Dec 16, 2006 5:04 pm

Ok Cleo, I copied your file and added the edit. try this code and let me know what happens and in the meantime I will work on a trophy King block as well.

Code: Select all
<?php  /***************************************************************************  *                            def_userfuncs_std.php  *                            ---------------------  *    begin                : 04/10/2003  *    copyright            : Ptirhiik  *    email                : Ptirhiik@rpgnet.clanmckeen.com  *  *    version                : 1.0.1 - 30/10/2003  *  ***************************************************************************/  /***************************************************************************  *  *   This program is free software; you can redistribute it and/or modify  *   it under the terms of the GNU General Public License as published by  *   the Free Software Foundation; either version 2 of the License, or  *   (at your option) any later version.  *  *  ***************************************************************************/  if ( !defined('IN_PHPBB') ) {     die('Hacking attempt');     exit; }  //----------------------------------- // // user_online output function // //----------------------------------- function pcp_output_user_online($field_name, $view_userdata, $map_name='') {     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;       $txt = '';     $img = '';     $res = '';     if  ( $view_userdata['user_id'] != ANONYMOUS )     {         // offline         $txt = $lang['Offline'];         $img = '<img>';         if ( !empty($view_userdata[$field_name]) )         {             // hidden             $txt = $lang['Hidden'];             $img = '<img>';               // not hidden set : online             if ($view_userdata['user_allow_viewonline'] == YES)             {                 $txt = $lang['Online'];                 $img = '<img>';             }         }           // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res; }  //----------------------------------- // // user_my_friend output function // //----------------------------------- function pcp_output_my_friend($field_name, $view_userdata, $map_name='') {     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;       // use user_my_ignore       $txt = '';     $img = '';     $res = '';     if ( ($userdata['user_id'] != $view_userdata['user_id']) && ($view_userdata['user_id'] != ANONYMOUS) && $userdata['session_logged_in'] && ($userdata['user_id'] != ANONYMOUS) )     {         $from = '&from=profil';         $maps = explode('.', $map_name);         if ( empty($maps) )         {             $from = '&from=profil';         }         if ( in_array('viewprofile', $maps) )         {             $from = '&from=profil';         }         else if ( in_array('viewtopic', $maps) )         {             $from = '&from=topic&' . POST_POST_URL . '=' . $view_userdata['post_id'];         }         else if ( in_array('privmsgs', $maps) )         {             $from = '&from=privmsg&' . POST_POST_URL . '=' . $view_userdata['privmsgs_id'];         }         if ( $view_userdata['user_my_friend'] )         {             $temp_url = append_sid("./profile.$phpEx?mode=buddy&sub=friend&b=" . $view_userdata['user_id'] . "&set=remove" . $from);             $title = $lang['Remove_from_friend_list'];             $icon = $images['icon_friend_remove'];             $txt = '<a>' . $title . '</a>';             $img = '<a><img></a>';         }         else if ( !$view_userdata['user_my_ignore'] )         {             $temp_url = append_sid("./profile.$phpEx?mode=buddy&sub=friend&b=" . $view_userdata['user_id'] . "&set=add" . $from);             $title = $lang['Add_to_friend_list'];             $icon = $images['icon_friend_add'];             $txt = '<a>' . $title . '</a>';             $img = '<a><img></a>';         }                   // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res; }  //----------------------------------- // // user_my_friend output function for buddy list // //----------------------------------- function pcp_output_my_friend_buddy($field_name, $view_userdata, $map_name='') {     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;       // use user_my_visible       $txt = '';     $img = '';     $res = '';     if ( ($userdata['user_id'] != $view_userdata['user_id']) && ($view_userdata['user_id'] != ANONYMOUS) && $userdata['session_logged_in'] && ($userdata['user_id'] != ANONYMOUS) )     {         if ( $view_userdata['user_my_friend'] )         {             $temp_url = append_sid( "./profile.$phpEx?mode=buddy&sub=friend&b=" . $view_userdata['user_id'] . "&set=" . ( $view_userdata['user_my_visible'] ? 'inv' : 'vis') );             $title = $view_userdata['user_my_visible'] ? $lang['Always_visible'] : $lang['Not_always_visible'];             $icon = $view_userdata['user_my_visible'] ? $images['icon_visible'] : $images['icon_not_visible'];             $txt = '<a>' . $title . '</a>';             $img = '<a><img></a>';         }           // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res; }  //----------------------------------- // // user_my_ignore output function // //----------------------------------- function pcp_output_my_ignore($field_name, $view_userdata, $map_name='') {     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;       // uses user_my_friend       $txt = '';     $img = '';     if ( ($view_userdata['user_id'] != $userdata['user_id']) && ($view_userdata['user_id'] != ANONYMOUS) && $userdata['session_logged_in'] && ($userdata['user_id'] != ANONYMOUS) )     {         $from = '&from=profil';         $maps = explode('.', $map_name);         if ( empty($maps) )         {             $from = '&from=profil';         }         if ( in_array('viewprofile', $maps) )         {             $from = '&from=profil';         }         else if ( in_array('viewtopic', $maps) )         {             $from = '&from=topic&' . POST_POST_URL . '=' . $view_userdata['post_id'];         }         else if ( in_array('privmsgs', $maps) )         {             $from = '&from=privmsg&' . POST_POST_URL . '=' . $view_userdata['privmsgs_id'];         }         if ( $view_userdata['user_my_ignore'] )         {             $temp_url = append_sid("./profile.$phpEx?mode=buddy&sub=ignore&b=" . $view_userdata['user_id'] . "&set=remove" . $from);             $title = $lang['Remove_from_ignore_list'];             $icon = $images['icon_ignore_remove'];             $txt = '<a>' . $title . '</a>';             $img = '<a><img></a>';         }         else if (!is_admin($userdata) && !is_admin($view_userdata) && (get_user_level($userdata) != MOD) && (get_user_level($view_userdata) != MOD) && !$view_userdata['user_my_friend'])         {             $temp_url = append_sid("./profile.$phpEx?mode=buddy&sub=ignore&b=" . $view_userdata['user_id'] . "&set=add" . $from);             $title = $lang['Add_to_ignore_list'];             $icon = $images['icon_ignore_add'];             $txt = '<a>' . $title . '</a>';             $img = '<a><img></a>';         }           // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res; }  //----------------------------------- // // username output function // //----------------------------------- function pcp_output_username($field_name, $view_userdata, $map_name='') {     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;       $txt = '';     $img = '';     $res = '';       $poster = ($view_userdata['user_id'] != ANONYMOUS) ? $view_userdata[$field_name] : ( (isset($view_userdata['post_username']) && ($view_userdata['post_username'] !='') ) ? $view_userdata['post_username'] : $lang['Guest'] );     $usereffects = explode("ÃÅÂ ¸", $view_userdata['user_effects']);     $userprivs = explode("ÃÅÂ ¸", $view_userdata['user_privs']);     $usercustitle = explode("ÃÅÂ ¸", $view_userdata['user_custitle']);     $userbs = array();     $usercount = count($userprivs);     for ($x = 0; $x < $usercount; $x++) { $temppriv = explode("ÃÅÂ ¾", $userprivs[$x]); $userbs[] = $temppriv[0]; $userbs[] = $temppriv[1]; }     $usercount = count($usereffects);     for ($x = 0; $x < $usercount; $x++) { $temppriv = explode("ÃÅÂ ¾", $usereffects[$x]); $userbs[] = $temppriv[0]; $userbs[] = $temppriv[1]; }     $usercount = count($usercustitle);     for ($x = 0; $x < $usercount; $x++) { $temppriv = explode("ÃÅÂ ¾", $usercustitle[$x]); $userbs[] = $temppriv[0]; $userbs[] = $temppriv[1]; }     $shoparray = explode("ÃÅÂ ¸", $board_config['specialshop']);     $shoparraycount = count ($shoparray);     $shopstatarray = array();     for ($x = 0; $x </font>'.$poster.'</span>';         $poster = $nameeffects;     }     if ((($userbs[24] == on) && ($shopstatarray[24] == on)) || (($userbs[20] == on) && ($shopstatarray[22] == on)) || (($userbs[22] == on) && ($shopstataray[20] = on)) || (($userbs[18] == on) && ($shopstatarray[18] == on))) {         $titleeffects = '</font>'.$poster_rank.'</span>';         $poster_rank = $titleeffects;     }     $username = ($view_userdata['user_id'] != ANONYMOUS) ? $view_userdata[$field_name] : ( (isset($view_userdata['post_username']) && ($view_userdata['post_username'] !='') ) ? $view_userdata['post_username'] : $lang['Guest'] );     $temp_url = append_sid("./profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $view_userdata['user_id']);     // txt     $txt = '<span>' . $poster . '</span>';       // img     /* Hide Buttons :: Altered     if ( $view_userdata['user_id'] != ANONYMOUS )*/     if($userdata['user_id'] != ANONYMOUS && $view_userdata['user_id'] != ANONYMOUS ) {           $temp_url = append_sid("./profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $view_userdata['user_id']);           $img = '<a><img></a>';       }         // result     $res = pcp_output_format($field_name, $txt, $img, $map_name);     return $res; } //-----------------------------------  //  // username output function with link on txt  //  //-----------------------------------  function pcp_output_username_linked($field_name, $view_userdata, $map_name='')  {       global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;       global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;         $txt = '';       $img = '';       $username = ($view_userdata['user_id'] != ANONYMOUS) ? $view_userdata[$field_name] : ( (isset($view_userdata['post_username']) && ($view_userdata['post_username'] !='') ) ? $view_userdata['post_username'] : $lang['Guest'] );         // txt       /* Hide Buttons :: Altered     if ( $view_userdata['user_id'] != ANONYMOUS )     {         $temp_url = append_sid("./profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $view_userdata['user_id']);         $txt = '<a>' . $username . '</a>';         $img = '<a><img></a>';     }     else     {         $txt = '<span>' . $username . '</span>';     }*/     if($userdata['user_id'] == ANONYMOUS || $view_userdata['user_id'] == ANONYMOUS )    {           $txt = '<span>' . $username . '</span>';       } else {           $temp_url = append_sid("./profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $view_userdata['user_id']);           $txt = '<a>' . $username . '</a>';           $img = '<a><img></a>';       }       // result       $res = pcp_output_format($field_name, $txt, $img, $map_name);       return $res;  }  //----------------------------------- // // user_pm output function // //----------------------------------- function pcp_output_user_pm($field_name, $view_userdata, $map_name='') {     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;       $txt = '';     $img = '';     $res = '';     if ( !empty($view_userdata[$field_name]) && ($view_userdata['user_id'] != ANONYMOUS) && ($userdata['user_id'] != ANONYMOUS))     {         $temp_url = append_sid("./privmsg.$phpEx?mode=post&" . POST_USERS_URL . '=' . $view_userdata['user_id']);         $txt = '<a>' . $lang['Send_private_message'] . '</a>';         $img = '<a><img></a>';           // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res; }  //----------------------------------- // // user_email output function // //----------------------------------- function pcp_output_user_email($field_name, $view_userdata, $map_name='') {     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;           // add text for admin view in buddy/memberlist     if ( in_array($map_name, array('PCP.buddy')) && is_admin($userdata))     {         $user_maps[$map_name]['fields'][$field_name]['txt'] = true;         $user_maps[$map_name]['fields'][$field_name]['crlf'] = true;     }       $txt = '';     $img = '';     $res = '';     if ( !empty($view_userdata[$field_name]) && ($view_userdata['user_id'] != ANONYMOUS)  )     {         $temp_url = ( $board_config['board_email_form'] ) ? append_sid("./profile.$phpEx?mode=email&" . POST_USERS_URL . '=' . $view_userdata['user_id']) : 'mailto:' . $view_userdata[$field_name];           $txt_title = ( is_admin($userdata) || $user_maps[$map_name]['fields'][$field_name]['img'] || $board_config['board_email_form'] ) ? $lang['Send_email'] : $view_userdata[$field_name];         $txt_link = ( is_admin($userdata) || ($user_maps[$map_name]['fields'][$field_name]['img'] && !$board_config['board_email_form'] ))? $view_userdata[$field_name] : $lang['Send_email'];         $txt = '<a>' . $txt_link . '</a>';         $txt_title = (is_admin($userdata) || !$board_config['board_email_form']) ? $view_userdata[$field_name] : $lang['Send_email'];         $img = '<a><img></a>';           // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res; }  //----------------------------------- // // user_icq output function // //----------------------------------- function pcp_output_icq($field_name, $view_userdata, $map_name='') {     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;       $txt = '';     $img = '';     $res = '';     if ( !empty($view_userdata[$field_name]) && ($view_userdata['user_id'] != ANONYMOUS) )     {         $temp_url = 'http://wwp.icq.com/' . $view_userdata[$field_name] . '#pager';         $img = '<a><img></a>';         $txt = '<a>' . $lang['ICQ'] . '</a>';           // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res; } //----------------------------------- // // user_aim output function // //----------------------------------- function pcp_output_aim($field_name, $view_userdata, $map_name='') {     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;       $txt = '';     $img = '';     $res = '';     if ( !empty($view_userdata[$field_name]) && ($view_userdata['user_id'] != ANONYMOUS) )     {         $temp_url = 'aim:goim?screenname=' . $view_userdata[$field_name] . '&message=Hello+Are+you+there?';         $txt = '<a>' . $lang['AIM'] . '</a>';         $img = '<a><img></a>';           // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res; }  //----------------------------------- // // user_yim output function // //----------------------------------- function pcp_output_yim($field_name, $view_userdata, $map_name='') {     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;       $txt = '';     $img = '';     $res = '';     if ( !empty($view_userdata[$field_name]) && ($view_userdata['user_id'] != ANONYMOUS) )     {         $temp_url = 'http://edit.yahoo.com/config/send_webmesg?.target=' . $view_userdata[$field_name] . '&.src=pg';         $txt = '<a>' . $lang['YIM'] . '</a>';         $img = '<a><img></a>';           // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res; }  //----------------------------------- // // user_msnm output function // //----------------------------------- function pcp_output_msnm($field_name, $view_userdata, $map_name='') {     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;       $res = '';     if ( !empty($view_userdata[$field_name]) && ($view_userdata['user_id'] != ANONYMOUS) )     {         $temp_url = (substr($map_name, 0, 6) == 'PHPBB.') ? append_sid("./profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $view_userdata['user_id']) : 'mailto:' . $view_userdata[$field_name];         $txt = '<a>' . $lang['MSNM'] . '</a>';         $img = '<a><img></a>';           // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res; }  //----------------------------------- // // user_timezone output function // //----------------------------------- function pcp_output_timezone($field_name, $view_userdata, $map_name='') {     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;       $txt = '';     $img = '';     $res = '';     if ( $view_userdata['user_id'] != ANONYMOUS )     {         @reset($lang['tz']);         while ( list($offset, $value) = @each($lang['tz']) )         {             if ( $view_userdata[$field_name] == $offset )             {                 $txt = $value . ' (' . create_date($userdata['user_dateformat'], time(), $view_userdata['user_timezone']) . ')';                 $img = '<img>';                 break;             }         }           // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res; }  //----------------------------------- // // user_website output function // //----------------------------------- function pcp_output_website($field_name, $view_userdata, $map_name='') {     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;       $txt = '';     $img = '';     $res = '';     if ( !empty($view_userdata[$field_name]) && ($view_userdata['user_id'] != ANONYMOUS) )     {         if (strtolower(substr($view_userdata[$field_name],0,7)) != 'http://'){                 $view_userdata[$field_name] = 'http://'.$view_userdata[$field_name];         }         if ( substr($map_name, 0, 4) == 'PCP.' )         {             $link = $view_userdata[$field_name];             $title = $lang['Visit_website'];         }         else         {             $link = $lang['Visit_website'];             $title = $view_userdata[$field_name];         }         $txt = '<a>' . $link . '</a>';         $img = '<a><img></a>';           // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res; }  //----------------------------------- // // user_gender output function // //----------------------------------- function pcp_output_gender($field_name, $view_userdata, $map_name='') {     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;       $txt = '';     $img = '';     $res = '';     if ( $view_userdata['user_id'] != ANONYMOUS )     {         switch ($view_userdata[$field_name])         {             case 0:                 $txt = $lang['No_gender_specify'];                 $img = '<img>';                 break;             case 1:                 $txt = $lang['Male'];                 $img = '<img>';                 break;          case 2:               $txt = $lang['Female'];               $img = '<img>';               break;         }           // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res; }  //----------------------------------- // // user_age output function // //----------------------------------- function pcp_output_age($field_name, $view_userdata, $map_name='') {     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;       // use user_birthday     $pm_display = pcp_get_class_check('pm', $view_userdata);       $txt = '';     $img = '';     $res = '';     if ( !empty($view_userdata['user_birthday']) && ($view_userdata['user_id'] != ANONYMOUS) )     {         $temp_url = $pm_display ? append_sid("./privmsg.$phpEx?mode=post&" . POST_USERS_URL . '=' . $view_userdata['user_id']) : '';         $img = ( intval(substr($view_userdata['user_birthday'], 4, 4)) == date('md', cal_date(time(),$board_config['board_timezone'])) ) ? ( $pm_display ? '<a><img></a>' : '<img>') : '';         $txt = date('Y', cal_date(time(),$board_config['board_timezone'])) - intval(substr($view_userdata['user_birthday'], 0, 4));         if ( intval(substr($view_userdata['user_birthday'], 4, 4)) > date('md', cal_date(time(),$board_config['board_timezone'])) )         {             $txt--;         }         if ($txt < 0)         {             $txt = '';             $img = '';         }           // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res; }  //----------------------------------- // // user_rank_title output function // //----------------------------------- function pcp_output_rank_title($field_name, $view_userdata, $map_name='') {    global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;    global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;      if ( $view_userdata['user_id'] != ANONYMOUS )    {       $rank = get_user_rank($view_userdata);    if ($board_config['ina_use_trophy'])       {       switch ($view_userdata['user_gender'])        {          case 0:             $trophy_leader = $lang['Trophy_Unknown'];             break;          case 1:             $trophy_leader = $lang['Trophy_King'];                 break;             case 2:                 $trophy_leader = $lang['Trophy_Queen'];                 break;          }    include_once($phpbb_root_path .'language/lang_'. $board_config['default_lang'] .'/lang_activity.'. $phpEx);    $trophy_image = '<img>';                 }       if ($view_userdata['user_id']   == $board_config['ina_trophy_king'])       {              $rank['rank_image'] = $trophy_image;                 $rank['rank_title'] = $trophy_leader;               $txt = $rank['rank_title'];              $img = $rank['rank_image'];       }       $txt = $rank['rank_title'];       $img = $rank['rank_image'];         // result       $res = pcp_output_format($field_name, $txt, $img, $map_name);    }    return $res; }  //----------------------------------- // // user_avatar output function // //----------------------------------- function pcp_output_avatar($field_name, $view_userdata, $map_name='') {     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;       $txt = '';     $img = '';     $res = '';     if ( !empty($view_userdata[$field_name]) && $userdata['user_viewavatar'] && $view_userdata['user_allowavatar'] && ($view_userdata['user_id'] != ANONYMOUS) )     {         switch ($view_userdata[$field_name . '_type'] )         {             case USER_AVATAR_UPLOAD:                 $img = ( $board_config['allow_avatar_upload'] ) ? '<img>' : '';                 break;             case USER_AVATAR_REMOTE:                 $img = ( $board_config['allow_avatar_remote'] ) ? '<img>' : '';                 break;             case USER_AVATAR_GALLERY:                 $img = ( $board_config['allow_avatar_local'] ) ? '<img>' : '';                 break;       }                   if ( ($img) && ($map_name == 'PHPBB.viewtopic.left') )                   {                           $tmp = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $view_userdata['user_id']);                           $img = '<a>'. $img .'</a>';                   }                   $shoparray = explode("ÃÅÂ ¸", $board_config['specialshop']);                   $shoparraycount = count ($shoparray);                   for ($x = 0; $x < $shoparraycount; $x++)                   {                           $temparray = explode("ÃÅÂ ¾", $shoparray[$x]);                           $shopstatarray[] = $temparray[0];                           $shopstatarray[] = $temparray[1];                   }                   $userprivs = array();                   $usereffects = array();                   $usercustitle = array();                   $userbs = array();                   $userprivs = explode("ÃÅÂ ¸", $view_userdata['user_privs']);                   $usercount = count($userprivs);                   for ($x = 0; $x </is> 0)                   {                           $user_sig = str_replace('"', '"', substr(preg_replace('#(>(((?>([^><R>' . $user_sig . '<'), 1, -1));                   }                   $txt = str_replace("n", "n<br>n", $user_sig);                       $shoparray = explode("ÃÅÂ ¸", $board_config['specialshop']);                   $shoparraycount = count ($shoparray);                   for ($x = 0; $x < $shoparraycount; $x++)                   {                           $temparray = explode("ÃÅÂ ¾", $shoparray[$x]);                           $shopstatarray[] = $temparray[0];                           $shopstatarray[] = $temparray[1];                   }                   $userprivs = array();                   $usereffects = array();                   $usercustitle = array();                   $userbs = array();                   $userprivs = explode("ÃÅÂ ¸", $view_userdata['user_privs']);                   $usercount = count($userprivs);                   for ($x = 0; $x </a>sql_query($sql) )             {                 message_die(GENERAL_ERROR, 'Could not get most active topic informations', '', __LINE__, __FILE__, $sql);             }             if ( $row = $db->sql_fetchrow($result) )             {                 // Define censored word matches                 $orig_word = array();                 $replacement_word = array();                 obtain_word_list($orig_word, $replacement_word);                   // get the info                 $most_active_topic_id = $row['topic_id'];                 $most_active_topic_title = ( count($orig_word) ) ? preg_replace($orig_word, $replacement_word, $row['topic_title']) : $row['topic_title'];                 $most_active_topic_posts = $row['posts_count'];                 $most_active_topic_posts_total = $row['topic_posts'];                 $most_active_topic_posts_total_forum = $row['forum_posts'];             }               // display             if ( $most_active_topic_id > -1 )             {                 // topic                 $temp_url = append_sid("./viewtopic.$phpEx?" . POST_TOPIC_URL . "=$most_active_topic_id");                 $txt = '<a>' . $most_active_topic_title . '</a>';                 $txt .= '<br><span>' . sprintf( '[' . $lang['Most_active_topic_stat'] . ']', $most_active_topic_posts, ( ($most_active_topic_posts*100) / $most_active_topic_posts_total ), ( ($most_active_topic_posts*100) / $most_active_topic_posts_total_forum ) ) . '</span>';             }         }         // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res; }  //----------------------------------- // // user_forums_stat output function // //----------------------------------- function pcp_output_forums_stat($field_name, $view_userdata, $map_name='') {     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;     global $db;       $txt = '';     $img = '';     $res = '';     if ( !empty($view_userdata['user_posts']) && ($view_userdata['user_id'] != ANONYMOUS) )     {         $most_active_forum_id = -1;         $most_active_forum_name = '';         $most_active_forum_posts = 0;         $most_active_forum_posts_total = 0;         $total_posts = get_db_stat('postcount');           $is_auth = auth(AUTH_VIEW, AUTH_LIST_ALL, $userdata);         $forum_ids = array();         while (list($forum_id, $auth) = @each($is_auth) )         {             if ($auth['auth_view']) $forum_ids[] = $forum_id;         }         if ( !empty($forum_ids) )         {             $s_forum_ids = implode(', ', $forum_ids);               // most active forum             $sql = "SELECT t.forum_id, f.forum_name, f.forum_posts, count(p.post_id) AS posts_count                     FROM " . POSTS_TABLE . " p, " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f                     WHERE p.poster_id = " . $view_userdata['user_id'] . "                         AND t.topic_id = p.topic_id                         AND t.forum_id IN ($s_forum_ids)                         AND f.forum_id = t.forum_id                     GROUP BY t.forum_id                     ORDER BY posts_count DESC                     LIMIT 0, 1";             if ( !$result = $db->sql_query($sql) )             {                 message_die(GENERAL_ERROR, 'Could not get most active forum informations', '', __LINE__, __FILE__, $sql);             }             if ( $row = $db->sql_fetchrow($result) )             {                 $most_active_forum_id = $row['forum_id'];                 $most_active_forum_name = isset($lang[ $row['forum_name'] ]) ? $lang[ $row['forum_name'] ] : $row['forum_name'];                 $most_active_forum_posts = $row['posts_count'];                 $most_active_forum_posts_total = $row['forum_posts'];             }               // display             if ( $most_active_forum_id > -1 )             {                 // forum                 $temp_url = append_sid("./viewforum.$phpEx?" . POST_FORUM_URL . "=$most_active_forum_id");                 $txt = '<a>' . $most_active_forum_name . '</a>';                 $txt .= '<br><span>' . sprintf( '[' . $lang['Most_active_forum_stat'] . ']', $most_active_forum_posts, ( ($most_active_forum_posts*100) / $most_active_forum_posts_total ), ( ($most_active_forum_posts*100) / $total_posts ) ) . '</span>';             }         }           // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res; }  //----------------------------------- // // user_groups output function // //----------------------------------- function pcp_output_usergroups($field_name, $view_userdata, $map_name='') {     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;     global $db, $template;       $txt = '';     $img = '';     $res = '';     if ( $view_userdata['user_id'] != ANONYMOUS )     {         // save template state         $sav_tpl = $template->_tpldata;           // template file         $template->set_filenames(array(             '_box_groups' => 'profilcp/public_groups_body.tpl')         );           $template->assign_block_vars('tiny_panel', array());           // groupes         $sql = "SELECT                      g.group_id,                      g.group_name,                      g.group_description,                      g.group_type                  FROM                      " . USER_GROUP_TABLE . " l,                      " . GROUPS_TABLE . " g                  WHERE l.user_pending = 0                      AND g.group_single_user = 0                      AND l.user_id = " . $view_userdata['user_id'] . "                     AND g.group_id = l.group_id                  ORDER BY                      g.group_name,                      g.group_id";         if ( !$result = $db->sql_query($sql) )           {             message_die(GENERAL_ERROR, 'Could not read groups', '', __LINE__, __FILE__, $sql);             }         $groups = array();         while ($row = $db->sql_fetchrow($result))         {             $groups[] = $row;         }           $template->assign_vars(array(             'L_USERGROUPS'    => $lang['Usergroups'],             'L_NO_GROUPS'    => $lang['None'],             'TXTCLASS'        => 'gensmall',             )         );         $nb = 0;         if (count($groups) > 0)         {             $class = false;             for ($i=0; $i <count>sql_query($sql) )                     {                         message_die(GENERAL_ERROR, 'Couldn't obtain viewer group list', '', __LINE__, __FILE__, $sql);                     }                     $is_ok = ( $row = $db->sql_fetchrow($result) );                 }                   // group allowed : display                 if ($is_ok)                 {                     $nb++;                     $class = !$class;                     $u_group_name = append_sid("groupcp.$phpEx?" . POST_GROUPS_URL . '=' . $groups[$i]['group_id']);                     $l_group_name = $groups[$i]['group_name'];                     $l_group_desc = $groups[$i]['group_description'];                     $template->assign_block_vars('groups',array(                         'CLASS'            => ($class) ? "row1" : "row2",                         'U_GROUP_NAME'    => $u_group_name,                         'L_GROUP_NAME'    => $l_group_name,                         'L_GROUP_DESC'    => $l_group_desc,                         )                     );                 }  // end if ($is_ok)             }  // end for ($i=0; $i <count> 0)           if ($nb == 0)         {             $template->assign_block_vars('no_groups', array('SPAN' => 1));         }           // transfert to a var         $template->assign_var_from_handle('_box', '_box_groups');         $txt = $template->_tpldata['.'][0]['_box'];           // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res; }  //-- mod : add-on country flags for pcp ------------------------------------------------------------ //-- add //----------------------------------- // // user_flag output function // //----------------------------------- function pcp_output_flag($field_name, $view_userdata, $map_name='') {     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;       $txt = '';     $img = '';     $res = '';       if ( $view_userdata['user_id'] != ANONYMOUS )     {             if (!empty($view_userdata['user_flag']))             {                 $img = '<img>';             }             else             {                 $img = '';             }         // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res; } //-- fin mod : add-on country flags for pcp --------------------------------------------------------  //-- mod : add-on holidays for pcp ----------------------------------------------------------------- //-- add //----------------------------------- // // user_holidays output function // //----------------------------------- function pcp_output_holidays($field_name, $view_userdata, $map_name='') {     global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;     global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;       $txt = '';     $img = '';     $res = '';     if ( $view_userdata['user_id'] != ANONYMOUS )     {         switch ($view_userdata[$field_name])         {             case 1:                 $txt = $lang['On_Holidays'];                 $img = '<img>';                 break;         }           // result         $res = pcp_output_format($field_name, $txt, $img, $map_name);     }     return $res; } //-- fin mod : add-on holidays for pcp -------------------------------------------------------------  ?>      
Last edited by MWE_001 on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 7:59 pm
Cash on hand: 0.00
Location: Illinois

PostAuthor: ayasha » Sat Dec 16, 2006 6:09 pm

thanks MWE <img>
Last edited by ayasha on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
No one can make you feel inferior without your consent.
~Eleanor Roosevelt

ayasha
Sr Integra Member
Sr Integra Member
 
Posts: 634
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 6:10 pm
Cash on hand: 0.00

Re: [solved] Activity Mod for 141

PostAuthor: MWE_001 » Mon Dec 18, 2006 1:19 am

No Probs Cleo. Did that do the trick for you?
Last edited by MWE_001 on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 7:59 pm
Cash on hand: 0.00
Location: Illinois

PostAuthor: ayasha » Mon Dec 18, 2006 5:50 am

yes, that worked <img>
Last edited by ayasha on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
No one can make you feel inferior without your consent.
~Eleanor Roosevelt

ayasha
Sr Integra Member
Sr Integra Member
 
Posts: 634
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 6:10 pm
Cash on hand: 0.00

PreviousNext

Return to IntegraMOD Modifications

Who is online

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