Play Legend of the Green Dragon Play BNT Play Promisance Play Alien Assault Traders Play Quantum Star Play Some Chess  
   D3jsp RPGRPG   ArcadeArcade   Multiplayer PokerD3Jsp Poker   FAQ/RulesFAQ/Rules  SearchSearch  MemberlistMemberlist   UsergroupsUsergroups   ChatroomLive Chat   Log inLog in   RegisterRegister 

Avatar in PMs

 
Post new topic  Reply to topic  d3jsp Forum Index -> General Chat
View previous topic :: View next topic ::  


Author Message
Pinko


Group: Scammer
Joined: 12 Jul 2008
Posts: 4415
Gold: Locked
Clan: Elite


Status:
Warn:
Reputation: 43    


<b><font color=red>Scammer</font></b>

Post#1 Posted: 17 Mar 2009 06:36 pm    Post subject: Avatar in PMs Reply with quote

Code:
##############################################################
## MOD Title: Avatar in PM Inbox/Sent Box/Outbox/Savebox
## MOD Author: lefty74 <lefty_74> (Heiko Carstens) http://www.lefty74.com
## MOD Description: Shows the sender's avatar in the PM listings (Inbox/Sent Box/Outbox/Savebox)
## MOD Version: 1.0.1
##
## Installation Level: (Easy)
## Installation Time: 5 Minutes
## Files To Edit: privmsg.php,
##      templates/subSilver/privmsgs_body.tpl,
##
## Included Files: (N/A)
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes: Might more useful if users use real pics as avatars
##
##############################################################
## MOD History:
##
##   2006-08-27 - Version 1.0.1
##      - fixed error for Easymod installation
##
##   2006-08-13 - Version 1.0.0
##      - First release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]------------------------------------------
#
privmsg.php
#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT pm.privmsgs_type, pm.privmsgs_id, pm.privmsgs_date, pm.privmsgs_subject, u.user_id, u.username
#
#-----[ IN-LINE FIND ]------------------------------------------
#
u.username
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, u.user_avatar, u.user_avatar_type, u.user_allowavatar

#
#-----[ FIND ]------------------------------------------
#
   'L_SAVE_MARKED' => $lang['Save_marked'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
   'L_AVATAR' => $lang['Avatar'],
#
#-----[ FIND ]------------------------------------------
#
      $msg_date = create_date($board_config['default_dateformat'], $row['privmsgs_date'], $board_config['board_timezone']);
#
#-----[ AFTER, ADD ]------------------------------------------
#
      $msg_avatar = '';
      if ( $row['user_avatar_type'] && $row['user_allowavatar'] )
      {
         switch( $row['user_avatar_type'] )
         {
            case USER_AVATAR_UPLOAD:
               $msg_avatar = ( $board_config['allow_avatar_upload'] ) ? '<img>' : '';
               break;
            case USER_AVATAR_REMOTE:
               $msg_avatar = ( $board_config['allow_avatar_remote'] ) ? '<img>' : '';
               break;
            case USER_AVATAR_GALLERY:
               $msg_avatar = ( $board_config['allow_avatar_local'] ) ? '<img>' : '';
               break;
         }
      }
#
#-----[ FIND ]------------------------------------------
#
         'DATE' => $msg_date,
#
#-----[ AFTER, ADD ]------------------------------------------
#
         'AVATAR' => $msg_avatar,
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/privmsgs_body.tpl
#
#-----[ FIND ]------------------------------------------
#
        <td><span>{BOX_SIZE_STATUS}</span></td>
#
#-----[ INCREMENT ]------------------------------------------
#
%:1 +1
#
#
#-----[ FIND ]------------------------------------------
#
        <td>
#
#-----[ INCREMENT ]------------------------------------------
#
%:1 +1
#
##-----[ FIND ]------------------------------------------
#
     <th>&nbsp;{L_SUBJECT}&nbsp;</th>
#
#-----[ INCREMENT ]------------------------------------------
#
%:1 -5
#
#-----[ FIND ]------------------------------------------
#
     <th>&nbsp;{L_FROM_OR_TO}&nbsp;</th>
#
#-----[ AFTER, ADD ]------------------------------------------
#
       <th>&nbsp;{L_AVATAR}&nbsp;</th>
#
#-----[ FIND ]------------------------------------------
#
     <td><span>&nbsp;<a>{listrow.SUBJECT}</a></span></td>
#
#-----[ INCREMENT ]------------------------------------------
#
%:1 -5
#
#-----[ FIND ]------------------------------------------
#
     <td><span>&nbsp;<a>{listrow.FROM}</a></span></td>
#
#-----[ AFTER, ADD ]------------------------------------------
#
     <td><a>{listrow.AVATAR}</a></td>
#
#-----[ FIND ]------------------------------------------
#
     <td><span>{L_NO_MESSAGES}</span></td> 
#
#-----[ INCREMENT ]------------------------------------------
#
%:1 +1
#
#-----[ FIND ]------------------------------------------
#
     <td> {S_HIDDEN_FIELDS}
#
#-----[ INCREMENT ]------------------------------------------
#
%:1 +1
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM


Last edited by Pinko on 17 Mar 2009 06:36 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail


Mr.dick


Group: Banned
Joined: 18 Mar 2009
Posts: 4
Gold: 2.00


Status:
Warn: Banned
Reputation: 0    


Banned

Post#2 Posted: 18 Mar 2009 04:31 am    Post subject: Reply with quote

ty for this not-needed feature
but if i ever needed it i would google it myself
SO GTFO MY ENETS BITCH

_________________
This user's signature has been disabled
Back to top
View user's profile Send private message
Display posts from previous:   
1 Members: Guest
Post new topic  Reply to topic  d3jsp Forum Index -> General Chat All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum



D3jsp is proudly powered by phpBB © 2.0
Theme and Forum by tramway