1
Mods & Plugins (Releases & Support) / Re: [Mod] Avatar v2.01
« on: April 19, 2003, 05:09:25 PM »
This one can't be too hard to integrate in phpBB I think. Here's a guess by using some code of V@no.
open details.php
repeat this step
Find code:
add after
then find
add after
then find
add after
open the comment_bit.html of your template, then add this wherever you like in your user field. For example find
add after
Save and close all files. I'm not sure if this works with vbb, but if you know a bit of mysql look up the avatar field in your user table copy the table name and replace the user_avatar string with your avatar field you found in your usertable.
You could use this trick to add various information from the user table if you understand what I've just written
open details.php
repeat this step
Find code:
Code: [Select]
$comment_user_id = $comment_row[$i]['user_id'];
add after
Code: [Select]
$user_row_comment = get_user_info($comment_user_id);
then find
Code: [Select]
$comment_user_info .= (isset($comment_row[$i][$user_table_fields['user_comments']])) ? "<br />".$lang['comments']." ".$comment_row[$i][$user_table_fields['user_comments']] : "";
add after
Code: [Select]
$comment_user_avatar = $user_row_comment['user_avatar'];
then find
Code: [Select]
"comment_user_id" => $comment_user_id,
add after
Code: [Select]
"comment_user_avatar" => $comment_user_avatar,
open the comment_bit.html of your template, then add this wherever you like in your user field. For example find
Code: [Select]
{comment_user_info}<br />
add after
Code: [Select]
<img src="{comment_user_avatar}">
Save and close all files. I'm not sure if this works with vbb, but if you know a bit of mysql look up the avatar field in your user table copy the table name and replace the user_avatar string with your avatar field you found in your usertable.
Code: [Select]
$comment_user_avatar = $user_row_comment['user_avatar'];
You could use this trick to add various information from the user table if you understand what I've just written