Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
The FireBoard forum component development is still going on. In order to get better, FireBoard will be moved from the Best of Joomla website.
During this transition period, the forum in Best of Joomla will be closed to new posts.
Welcome, Guest
Please Login or Register.    Lost Password?
FireBoard Manual Latest release discussions Download FireBoard
Could I use the Best of Joomla Avatar Gallary? (1 viewing) (1) Guest
TOPIC: Could I use the Best of Joomla Avatar Gallary?
#13642
Could I use the Best of Joomla Avatar Gallary? 1 Year, 6 Months ago  
How do we use the built in avatars? Are they available somewhere? Is it legal?

Right now my avatar gallery consists solely of the community builder avatars which are bland at best.
neovita (User)
Fresh Boarder
Posts: 18
graphgraph
User Offline Click here to see the profile of this user
Gender: Male
Logged Logged
 
 
 
#13647
Re:Could I use the Best of Joomla Avatar Gallary? 1 Year, 6 Months ago  
Ok I figured out how to do it for those of you who are searching. You want to upload the new files into the

/ (root directory) -> components -> com_fireboard -> avatars

directory.

Then just make sure that the avatar handling is being done by fireboard and not community builder.
neovita (User)
Fresh Boarder
Posts: 18
graphgraph
User Offline Click here to see the profile of this user
Gender: Male
Logged Logged
 
 
 
#14172
Re:Could I use the Best of Joomla Avatar Gallary? 1 Year, 6 Months ago  
I was also wondering about using the Fireboard avatars on my site??

Anyway, IF we're allowed to & you want to use them (or other new avatars) in Community Builder & let it handle profiles & avatars, the boring default ones are stored in 2 folders that I've found:
(root directory)/components/com_comprofiler/images/gallery/
and (root directory)/images/comprofiler/gallery/
I guess changes need to be made to both folders.

Oh & for general information, if anyone's looking, the CB user uploaded ones only seem to be in one folder:
(root directory)/images/comprofiler/
with a randomly generated name for the "large" image & the same name with a prefix of "tn" for the small thumbnails. (Eg. 101_a12b3cd4.jpg & tn101_a12b3cd4.jpg)

Hez.
Hezeel (User)
Fresh Boarder
Posts: 19
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#15232
Re:Could I use the Best of Joomla Avatar Gallary? 1 Year, 5 Months ago  
Well i used a sligtly different approach to the matter

in fireboard integration config change the avatar control to fireboard

but to show this avatar to the CB profile you need to change some of the code

below i will post the code i changed in /components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php


function getDisplayTab($tab,$user,$ui) {
global $cbMyIsModerator, $ueConfig, $mosConfig_lang, $database, $my;
//first we gather some information about this person
$database->setQuery("SELECT * FROM #__fb_users as su " . "nLEFT JOIN #__users as u on u.id=su.userid WHERE su.userid=$user->id";
$userDetails = $database->loadObjectList();

$fbavatar = $userDetails[0]->avatar;

list($avWidth, $avHeight) = @getimagesize($avatar);
//that's it we got now; later the 'future_use' columns can be used..

echo "Avatar: ". $fbavatar;

// Display Avatar/Image:
$return = "";
if ($ueConfig['allowAvatar']=="1" {
if($tab->description != null) $return .= "tt".unHtmlspecialchars(getLangDefinition($tab->description))."n";

$name = htmlspecialchars(getNameFormat($user->name,$user->username,$ueConfig['name_format']));
$return .= "ntttt";
$uimage=$fbavatar;
if (file_exists("components/com_comprofiler/plugin/language/".$mosConfig_lang."/images")
$uimagepath="components/com_comprofiler/plugin/language/".$mosConfig_lang."/images/";
else $uimagepath="components/com_comprofiler/plugin/language/default_language/images/";
if($user->avatarapproved==0) $uimage=$uimagepath."pendphoto.jpg";
elseif($user->avatar=='' || $user->avatar==null) $uimage=$uimagepath."nophoto.jpg";
else $uimage="components/com_fireboard/avatars/".$uimage;
$return .= "";
if ($user->avatarapproved==0 && $cbMyIsModerator) {
$uimage="components/com_fireboard/avatars/".$fbavatar;
$return .= ""._UE_IMAGE_ADMIN_SUB.":"
. "";
}
$return .= "";
}
return $return;
}


what i do is get the user details stored in the fireboard table and set up the path for showing the avatar from there!

Also i changed the links of "Update my image" menu links in cb profile.

to take it further a change is needed to the templates/default/avatar_upload.php in fireboard folder to return to the cb profile page

works fine till now, but not on a large scale website, cause i haven;t gone live yet

similar changes i guess will be needed in every case the avatar must be visible!

edit: also change needs the query retrieving user details, $my->id changed to $user->id for getting the correct image for the user and notyourself in every user's profile
BLaCKie_MoRGaN (User)
Hit me... Nail me.. Make me GOD!!!
Junior Boarder
Posts: 89
graphgraph
User Offline Click here to see the profile of this user
Gender: Male BLaCKie_MoRGaN kostas_milkos@hotmail.com Location: Ioannina, Greece Birthdate: 1978-07-03
Logged Logged
 
Last Edit: 2007/07/20 10:29 By BLaCKie_MoRGaN.
 
[-] Online Games.gr
[/] The Gathering
[|] I am not a Freak! I am a PROTOTYPE!!!
 
 
Go to top