Portrait picture with Polaroid style !

17 years 2 weeks ago #35608 by tomsawyer1234
Portrait picture with Polaroid style ! was created by tomsawyer1234
Hi

Check this site: pon.josti.nl/
or
polaroidonizer.b3ta.org/

I would like to integrate this effect into CB portait upload process so that all portait are displayed like polaroid picture.

They provide the source code: pon.josti.nl/polaroidonizer_v0.7.zip

I know that this script has been adapted for wordpress so it might be adapatable to joomla.

Anyone interested in converting this script into a cb plugin or can adapt the upload code of the portrait function?

tks in advance.

Florian



Post edited by: tomsawyer1234, at: 2007/04/13 18:36

Post edited by: tomsawyer1234, at: 2007/08/30 18:03

Please Log in to join the conversation.

17 years 2 weeks ago #35613 by montana
Replied by montana on topic Re:Portrait picture with Polaroid style !
Hi thanks fot the Link, this page is nice!:P

Please Log in to join the conversation.

17 years 2 weeks ago #35766 by tomsawyer1234
Replied by tomsawyer1234 on topic Portrait picture with Polaroid style ! need help
Anyone coulr help me to integrate this feature into cb?

tks

Florian

Please Log in to join the conversation.

16 years 11 months ago #36805 by ffaabbss
Replied by ffaabbss on topic Re:Portrait picture with Polaroid style !
i would also love to have that function as i would make all profile avatars the same size and dimensions and makes all profiles look a bit standard which is great for branding and look&feel!
Really really interested!
Thx
Fabs

Please Log in to join the conversation.

16 years 8 months ago #44480 by carlaf
Replied by carlaf on topic Re:Portrait picture with Polaroid style !
hey guys I couldn't see the link, is not working right now, but I think I know what you want.
If you know css this can be easily done by editing the cb.core.php
in: components/com_profiler/plugin/user/plug_cbcore/

here in:

function getDisplayTab($tab,$user,$ui) {
global $cbMyIsModerator, $ueConfig, $mosConfig_lang;
// Display Avatar/Image:
$return = "";
if ($ueConfig=="1") {
if($tab->description != null) $return .= "\t\t<div class=\"tab_Description\">".unHtmlspecialchars(getLangDefinition($tab->description))."</div>\n";

$name = htmlspecialchars(getNameFormat($user->name,$user->username,$ueConfig));
$return .= "\n\t\t\t\t<table cellpadding=\"5\" cellspacing=\"0\" border=\"0\" width=\"100%\" class=\"foto\"><tr class=\"foto1\">";
$uimage=$user->avatar;
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="images/comprofiler/".$uimage;
$return .= "<td align=\"center\" width=\"100%\" class=\"foto2\"><img src=\"".sefRelToAbs($uimage)."\" alt=\"".$name."\" title=\"".$name."\" /></td>";
if ($user->avatarapproved==0 && $cbMyIsModerator) {
$uimage="images/comprofiler/".$user->avatar;
$return .= "<td align=\"center\" width=\"100%\">"._UE_IMAGE_ADMIN_SUB.":<br /><br />"
. "<img src=\"".$uimage."\" alt=\"".$name."\" title=\"".$name."\" /></td>";
}
$return .= "</tr></table>";[/code]

you can create class in table, tr, td and play with css, I just add class (foto, foto1, foto2) and in my template css I just add border, padding, etc etc.

I hope this can help you guys.

Please Log in to join the conversation.

16 years 8 months ago #44497 by tomsawyer1234
Replied by tomsawyer1234 on topic Re:Portrait picture with Polaroid style !
Cool!

Does it work for you? Do you have a link of your site?

here is a working link:http://polaroidonizer.b3ta.org/


Flo

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 1.135 seconds

Facebook Twitter LinkedIn