Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


<< Start < Prev 1 2 3 4 5 6 Next > End >>
Re:Watermark in Userpicture
Date: 2006/02/01 23:21 By: Freubelaar Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 4
graphgraph
Hey Guys,

I'm looking for this plug-in too. If I can do some testing let me know...

Marcel
Click here to see the profile of this user 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
graphgraph
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

File Attachment:
File name: watermark.zip
File size:995 bytes

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
Click here to see the profile of this user 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
graphgraph
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
Click here to see the profile of this user 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
graphgraph
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
Click here to see the profile of this user 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
graphgraph
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
Click here to see the profile of this user The topic has been locked.

Re:Watermark in Userpicture
Date: 2006/02/08 23:06 By: beat Status: Admin  
Karma: 242  
Admin

Posts: 4063
graphgraph
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
Click here to see the profile of this user The topic has been locked.

<< Start < Prev 1 2 3 4 5 6 Next > End >>

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC2)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC3, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers at this time.

CB Login