watermarkPhotos

kameleon

Avatar: kameleon

2012-11-20 19:32

HowTo Install
------------------------------
step 1) Copy "libraries/FotoJobs.php" to Quick.Cms "libraries/" directory (overwrite it).

#######################

step 2) open file "core/files-admin.php" and in function "addFiles" AFTER code:
$this->generateThumbs( $aData['sFileName'], $aData['iSize1'], $aData['iSize2'] );

paste:
if( !isset( $oFoto ) )
$oFoto = FotoJobs::getInstance( );
$oFoto->createCustomThumb( DIR_FILES.$aData['sFileName'], DIR_FILES, $oFoto->throwImgSize( DIR_FILES.$aData['sFileName'], 'longer' ), $aData['sFileName'], true, Array( 'bWatermark' => true ) );

#######################

step 3) open file "core/files-admin.php" and in function "deleteFilesFromDirs" AFTER code:
unlink ( DIR_FILES.$sFileName );

paste:
if( is_file( DIR_FILES.DIR_NO_WATERMARK.$sFileName ) )
unlink ( DIR_FILES.DIR_NO_WATERMARK.$sFileName );

#######################

step 4) open file "config/general.php" and at the end of that file BEFORE code:
?>

paste:
define( 'DIR_NO_WATERMARK', 'no_watermark/' );
define( 'WATERMARK_IMG', DIR_FILES.DIR_NO_WATERMARK.'copyrights_small.png' );

#######################

step 5) If you want to chage watermark image create it and place in "files/no_watermark" directory.
Then change default watermark file name in config/general.php in line:

define( 'WATERMARK_IMG', DIR_FILES.DIR_NO_WATERMARK.'copyrights_small.png' );

to eg.:
define( 'WATERMARK_IMG', DIR_FILES.DIR_NO_WATERMARK.'your_watermark_image.png' );

Watermark image should be transparent png file as for example default "copyrights_small.png"

#######################

NOTICE:
System creates big photos with watermark but it saves oryginal copy of that image in "files/no_watermark/" directory.

Zrobiłam wszystko, zgodnie z instrukcją - a i tak nie widać znaku wodnego. W czym tkwi problem? Mam zainstalowanego "fancybox'a"...

» Quick.Cms v3.x

kameleon

Avatar: kameleon

2012-11-21 21:49

Czy ktoś wie ???

kameleon

Avatar: kameleon

2012-11-22 17:17

???

selekcjoner

Avatar: selekcjoner

2012-11-22 23:26

Jeśli punkt po punkcie zrobiłaś tak jak jest w instrukcji i nie działa, to pozostaje tylko jedno pytanie: czy przekopiowałaś folder files/no_watermark który zawiera ten znak wodny?

simlution.org

kameleon

Avatar: kameleon

2012-11-23 02:41

Na jednej stronie działa a na innej...

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@hosting4533107.az.pl and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


Chciałam wgrać zdjęcie i zapisać. Wyskakuje ww. komunikat. Treści edytuję bez problemu...

kameleon

Avatar: kameleon

2012-11-23 02:48

Warning: imagecreatefrompng(WATERMARK_IMG) [function.imagecreatefrompng]: failed to open stream: No such file or directory in /home/fl142497/public_html/libraries/FotoJobs.php on line 367

Warning: imagesx(): supplied argument is not a valid Image resource in /home/fl142497/public_html/libraries/FotoJobs.php on line 368

Warning: imagesy(): supplied argument is not a valid Image resource in /home/fl142497/public_html/libraries/FotoJobs.php on line 369

Warning: Division by zero in /home/fl142497/public_html/libraries/FotoJobs.php on line 370

Warning: Division by zero in /home/fl142497/public_html/libraries/FotoJobs.php on line 371

Warning: Division by zero in /home/fl142497/public_html/libraries/FotoJobs.php on line 372

Warning: Cannot modify header information - headers already sent by (output started at /home/fl142497/public_html/libraries/FotoJobs.php:367) in /home/fl142497/public_html/actions_admin/p.php on line 22

treewood (OpenSolution)

Avatar: treewood

2012-11-26 07:04

kameleon - brakuje Ci definicji "WATERMARK_IMG" czyli jednak nie zrobilas wszystkich punktow. Brakuje wykonania kroku 5tego.

Do góry
o nas | kontakt