miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
Specific miniBB Support Forums / Specific /  
 

Add Avatar from Exisinting user gallery table

 
Author blade2
Partaker
#1 | Posted: 21 Mar 2007 11:25 
I have a coded a web system the enables users to upload multple pictures of themselves.
image locations are stored in a separate table called "Galleries". Each image belongs to a particular user in the "Users" table.
the users can choose one particular image as their default image on my system.

how do i get miniBB to use my users default image!?

Below is what i tried.
I moified the bb_func_vthread.php around line 199.
it shows the correct image....but it doesnt loop through all the Posts!!


if ($cols[0]!=0) {
$cc=$cols[0];
if (isset($userRanks[$cc])) $ins=$userRanks[$cc];
elseif (isset($mods[$forum]) and is_array($mods[$forum]) and in_array($cc,$mods[$forum])) $ins=$l_moderator;
else { $ins=($cc==1?$l_admin:$l_member); }
if(!defined('NOFOLLOW')) $nof=' rel="nofollow"'; else $nof='';
$viewReg="<a href=\"../user.php?id={$cc}\"{$nof}>$ins</a>";
}
else $viewReg='';

$userImage = db_simpleSelect(0, 'galleries', '*', 'user_id', '=', '{cc}', '', '', 'main', '=', '1');
$posterName="<img src=\"../store/ports/thumbs/$userImage[7]\" /><br />$cols[1]</a>"; //.'<br />;



help

Specific miniBB Support Forums / Specific /
 Add Avatar from Exisinting user gallery table
 Share Topic's Link

Your Reply Click this icon to move up to the quoted message


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑