|
|
Re:Watermark in Userpicture
|
|
Date: 2006/02/01 23:21
|
By: Freubelaar
|
Status: User
|
|
|
Karma: 0  
|
|
Fresh Joomlapolitan  | Posts: 4 |   | |
|
Hey Guys,
I'm looking for this plug-in too. If I can do some testing let me know...
Marcel
|
|
The topic has been locked. |
|
|
|
Re:Watermark in Userpicture
|
|
Date: 2006/02/07 03:08
|
By: hedingsi
|
Status: User
|
|
|
Karma: 19  
|
|
Expert Joomlapolitan  | Posts: 111 |   | |
|
Finaly im not able to add a long post... don't know why...
so there we are. I need your help. i adaptet the cb.core plugin (only the avatar section) everything works great, but when i disable the cb.core plugin no picture is displayed. if cb.core is enabled two pictures are displayed.
other methods in the next post
CB3PD (Community Builder 3rd Party Developer) -*-*-*-*-*-*-*Current Projects*-*-*-*-*-*-*-*-*-*- Karmaplugin with Lennox Mood Pluding with avarage rate and statement function Watermark Upload Conrtibute -*-*-*-*-*-*-*Homepage*-*-*-*-*-*-*-*-*-*- http://www.soundofdream.com
|
|
The topic has been locked. |
|
|
|
Re:Watermark in Userpicture
|
|
Date: 2006/02/07 03:18
|
By: hedingsi
|
Status: User
|
|
|
Karma: 19  
|
|
Expert Joomlapolitan  | Posts: 111 |   | |
|
here i am
first method: hack the cb.core file and add the watermark.php in teh cb.core folder. here only the displayed picture in the profile will have a watermark (on the fly) and only this! CB3PD (Community Builder 3rd Party Developer) -*-*-*-*-*-*-*Current Projects*-*-*-*-*-*-*-*-*-*- Karmaplugin with Lennox Mood Pluding with avarage rate and statement function Watermark Upload Conrtibute -*-*-*-*-*-*-*Homepage*-*-*-*-*-*-*-*-*-*- http://www.soundofdream.com
|
|
The topic has been locked. |
|
|
|
Re:Watermark in Userpicture
|
|
Date: 2006/02/07 03:19
|
By: hedingsi
|
Status: User
|
|
|
Karma: 19  
|
|
Expert Joomlapolitan  | Posts: 111 |   | |
|
second method: add a rewrite rule in htaccess (apache only) here all jpg files will be watermarked (on the fly). here we have to add a watermark php in the root directory CB3PD (Community Builder 3rd Party Developer) -*-*-*-*-*-*-*Current Projects*-*-*-*-*-*-*-*-*-*- Karmaplugin with Lennox Mood Pluding with avarage rate and statement function Watermark Upload Conrtibute -*-*-*-*-*-*-*Homepage*-*-*-*-*-*-*-*-*-*- http://www.soundofdream.com
|
|
The topic has been locked. |
|
|
|
Re:Watermark in Userpicture
|
|
Date: 2006/02/07 03:19
|
By: hedingsi
|
Status: User
|
|
|
Karma: 19  
|
|
Expert Joomlapolitan  | Posts: 111 |   | |
|
in both methods the original file will be still untuched (unmarked, the files will be watermarked on the fly. this cost server ressources!!!) and we need to add watermark png files.
im on the way to hack the uploadfunction to watermark the picture during the uploadprocedure. ( i would find it great if this would implementet ond the next release , so we don't need to "hack" the core files)
Post edited by: hedingsi, at: 2006/02/06 21:20 CB3PD (Community Builder 3rd Party Developer) -*-*-*-*-*-*-*Current Projects*-*-*-*-*-*-*-*-*-*- Karmaplugin with Lennox Mood Pluding with avarage rate and statement function Watermark Upload Conrtibute -*-*-*-*-*-*-*Homepage*-*-*-*-*-*-*-*-*-*- http://www.soundofdream.com
|
|
The topic has been locked. |
|
|
|
Re:Watermark in Userpicture
|
|
Date: 2006/02/08 23:06
|
By: beat
|
Status: Admin
|
|
|
Karma: 242  
|
|
Admin  | Posts: 4063 |   | |
|
hedingsi wrote: in both methods the original file will be still untuched (unmarked, the files will be watermarked on the fly. this cost server ressources!!!) and we need to add watermark png files.
im on the way to hack the uploadfunction to watermark the picture during the uploadprocedure. ( i would find it great if this would implementet ond the next release , so we don't need to "hack" the core files)<br><br>Post edited by: hedingsi, at: 2006/02/06 21:20
Your wish is fulfilled 
| Code: |
$_PLUGINS->trigger( 'onBeforeUserAvatarUpdate', array(&$row,&$rowExtras,$isModerator,&$_FILES['avatar']['tmp_name']));
if ($_PLUGINS->is_errors()) {
MOSredirect(sefRelToAbs("index.php?option=com_comprofiler&task=userAvatar&Itemid=".$Itemid),$_PLUGINS->getErrorMSG());
}
...
$_PLUGINS->trigger( 'onAfterUserAvatarUpdate', array(&$row,&$rowExtras,$isModerator,$newFileName) );
|
It will be like above in build 2 of 1.0 stable. Please PM Nick to be part of 3PD, if not already part of it, so you can download build 2 when released to testteam and 3PD.
As a counterpart, please test with build 2 and post here the results Beat - Developer on Community Builder core Team - If you like CB and this forum, you will love Nick's CB 1.1 reference manual ! : Click here to Get it now  - Would like to help us move faster ? Get it, and/or help us spend more time coding by helping others in this forum, many thanks
|
|
The topic has been locked. |
|
|