15 years on The Web
miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Specific miniBB Support Forums / Specific /   

Add Avatar from Exisinting user gallery table

Author blade2
#1 | Posted: 21 Mar 2007 11:25 | Edited by: blade2 
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) {
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='';
else $viewReg='';

$userImage = db_simpleSelect(0, 'galleries', '*', 'user_id', '=', '{cc}', '', '', 'main', '=', '1');
$cols[1]"; //.'


Specific miniBB Support Forums / Specific / Add Avatar from Exisinting user gallery table Top

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

 Short link for this topic:

You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.

Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Check out the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB