Directe link naar de modificatie: http://www.phpbbhacks.com/download/229
Adres van je forum: http://www.bus-forum.nl
phpBB versie: 2.0.19
Hallo mensen,
Ik heb vandaag de Profile Photo MOD, geschreven door AcydBurn, op ons Forum geinstalleerd. Hiermee kunnen gebruikers een foto aan hun profiel toevoegen.
nu bestaat er ook een ADD ON voor deze MOD waarmee er in een topic een link naar de profielfoto verschijnt als een gebruiker een foto geupload heeft in zijn profiel. De beheerder van een ander Forum, waar ik actief op ben, schreef mij dat hij hiervoor de volgende MOD heeft gebruikt:
Code: Selecteer alles
##############################################################
## MOD Title: ADD ON to Photo in Profile MOD (User Photo in Memberlist & Viewtopic)
## MOD Authors: discipleAO <admin> (Wayne Stuart) www.hisdisciple.net
## zleviticus <webmaster> (Zeph) www.fitnessnow.org
## w/ inspiration from AcydBurn www.opentools.de
##
## MOD Description: This is an Add-On to AcydBurn's Photo in Profile MOD
## It will not work without it. If you do not have it installed yet, get it
## @--> http://www.opentools.de/
## I also include the little camera icon I use, but you can use
## any icon you like.
## This will add 2 things AFTER you install Photo in Profile:
## PART 1) A column in memberlist that displays a little icon if the member has
## a photo in their profile
##
## PART 2) A text link in viewtopic that indicates whether or not a poster has
## a photo in their profile
##
## MOD Version: 1.0.0
## PHPBB Version: 2.0.0 - 2.0.3
## Installation Level: (easy)
## Installation Time: <10 Minutes
## Files To Edit: Part 1:
## memberlist.php
## memberlist_body.tpl
## Part 2:
## viewtopic.php
## viewtopic_body.tpl
##
## Included Files: photo.gif, photoinprofile.zip (required)
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
##############################################################
## Author Notes: This is an Add-On to AcydBurn's Photo in Profile MOD
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ ACTION ]------------------------------------------
#
Install AcydBurn's Photo in Profile MOD...then...
#
#-----[ PART 1 ]------------------------------------------
#
This section will add a column to memberlist, and an icon that will only
be displayed when a user has a photo in their profile
#
#-----[ UPLOAD ]------------------------------------------
#
photo.gif to /images/photo.gif
#
#-----[ OPEN ]------------------------------------------
#
memberlist.php
#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT username, user_id, user_viewemail, user_posts, user_regdate, user_from, user_website, user_email, user_icq, user_aim, user_yim, user_msnm, user_avatar, user_avatar_type, user_allowavatar
#
#-----[ IN LINE, FIND ]------------------------------------------
#
user_id,
#
#-----[ AFTER, ADD ]------------------------------------------
#
user_photo,
#
#-----[ FIND ]------------------------------------------
#
$username = $row['username'];
#
#-----[ AFTER ADD ]------------------------------------------
#
$photo = ( $row['user_photo'] ) ? '<img src="/images/photo.gif" width="16" height="12" border="0">' : '';
#
#-----[ FIND ]------------------------------------------
#
'POSTS' => $posts,
#
#-----[ AFTER ADD ]------------------------------------------
#
'photo' => $photo,
#
#-----[ OPEN ]------------------------------------------
#
memberlist_body.tpl
## You need to add a column (and probably resize the existing ones)
## Some of the following will be up to your preference
## I edited this section in Dreamweaver so I could see the columns
#
#-----[ FIND ]------------------------------------------
#
<th class="thTop" width="20%">{L_USERNAME}</th> ## yours may be different
## {L_USERNAME} is the important part
#
#-----[ AFTER ADD ]------------------------------------------
#
<th class="thTop" width="3%">Pic</th>
## This adds a "Pic" column where the icon will be displayed
## You may have to change the table widths of the adjacent columns to suit your taste
#
#-----[ FIND ]------------------------------------------
#
class="gen"><b>{memberrow.USERNAME}</b></a></span></td> ## yours may be different
## {L_USERNAME} is the important part
#
#-----[ AFTER, ADD ]------------------------------------------
#
<td class="{memberrow.ROW_CLASS}" align="center" width="3%"><span class="gen">{memberrow.photo}<b><br>
## You may have to change the table widths of the adjacent columns to suit your taste
#
#-----[ END OF PART 1 (MEMBERLIST SECTION) ]------------------------------------------
#
#
#-----[ SAVE AND CLOSE ALL FILES ]------------------------------------------
#
#
# EoM
Groeten,
Erik