slm arkadaşlar...
Forumlara eklediğimiz resimlerin üzerine otomatic olarak nasıl bir yazı veya logo koyabiliriz..
Böyle bir eklenti bilen veya yazabilecek arkadaş varmı?
nasıl boyutlandırıyor aynı öyle resimlerin üzerine Yazı veya Logo koyacak bu da en azından emek hırsızlığını bir nemze olsun sınırlar diye düşünüyorum...
bu eklentiyi bilen veya bulan burda paylaşırsa çok güzel bir paylaşım olacağı kanısındayım...
yada böyle bir eklenti yoksa yazabilecek arkadaşlar özel mesaj ile maliyet bilgisi verebilirlerse çok makbule geçer..
yanlız başdan söyleyim yazacak bir arkadaşımız çıkarsa ödemeyi ancak bayram sonu yapabilirim..
ilgilenen arkadaşlara şimdiden teşekkürler..
foruma atılan resimleri otomatik iaşretleme
8
●472
- 05-12-2008, 17:16:19Üyeliği durdurulduCagonni adlı üyeden alıntı: mesajı görüntüle
Teşekkür Ederim Arkadaşım Sanırım Tam istediğim şey ama çalıştıramadım...
bunun nasıl çalıştığını bilen varmı peki..
Yol: linux sunucuda cpanel olarak vermişler örneklerde linux sunucuda plesk panele göre yazıyorum yolu ama çıkmıyor... anlayamadım gitti...
nasıl çalıştığını bilen arkadaşlar lütfen burda paylaşırlarsa çok makbule geçer.. - 05-12-2008, 20:32:15Üyeliği durdurulduİlgin İçin Teşekkürler Arkadaşım Ama Bu İşlemi ben "Forumpath.php" de yaptım senin eklediğin dosy ile de denedim ama malesef bir türlü çalıştıramadım..Cagonni adlı üyeden alıntı: mesajı görüntüle
bunun tam bir anlatımı varsa paylaşabilirmisin...
2 saatir denemediğim şekli kalmadı bulamıyorum yolu yazıyorum "bottum_left" kısmını olduğu gibi birakıyorum users ID kısmını da 0 yani olduğu gibi bıraktım değiştim yok yukardaki ayarlardan vbulletinde bıraktım altındakini attacmend den "showthread" "_post_start" her türlüsünü yaptım ama hala sonuç alamadım dediğim gibi bu eklenti ile ilgili bir kurulum ve ayar dökümanı varsa paylaşabilirmisin...
ilgine tekrar teşekkürler..
+ rep verilmiştir.. - 05-12-2008, 21:00:09Version: 3.5.4
3.7.x de çalışmıyo olabilir..ben son mesajlara baktım çalıştıranlar vardı o yüzden verdim.
Attached Image Watermarking PLUS Guest Viewing of Thumbnails - vBulletin.org Forum
birde bunu deneyin. - 05-12-2008, 21:58:23Üyeliği durdurulduTeşekkürler arkadaşm fakat yok bu eklentiyi çalıştıramıcaz manzara onu gösteriyor...Cagonni adlı üyeden alıntı: mesajı görüntüle
Günceli Çıkana kadar beklicez sanırım.. aslında iyi bir eklenti neden devamı gelmemiş kii...
- 03-02-2009, 13:54:05Üyeliği durduruldu=============================================
STEP 1:
Since the resulting file contains too much vBulletin code, I am unable to include it with this modification. So, the first step is to copy vBulletin's attachment.php to a file named attachment_watermark.php. Then, edit attachment_watermark.php, making the following changes.
=============================================
STEP 2:
You need to delete a LOT of lines from the top of the file. Find this line...
$idname = $vbphrase['attachment'];
...and delete everything ABOVE it other than the <?php line at the top of the file.
Your attachment_watermark.php file should begin with this code when you've completed this step:
<?php $idname = $vbphrase['attachment'];
=============================================
STEP 3:
Find this line of code:
if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canview']) OR !($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewthreads']) OR !($forumperms & $vbulletin->bf_ugp_forumpermissions['cangetattachment']) OR (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewothers']) AND ($attachmentinfo['postuserid'] != $vbulletin->userinfo['userid'] OR $vbulletin->userinfo['userid'] == 0)))
REPLACE with this code:
if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canview']) OR !($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewthreads']) OR (!($forumperms & $vbulletin->bf_ugp_forumpermissions['cangetattachment']) AND !$vbulletin->GPC['thumb']) OR (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewothers']) AND ($attachmentinfo['postuserid'] != $vbulletin->userinfo['userid'] OR $vbulletin->userinfo['userid'] == 0)))
=============================================
STEP 4:
Find these lines of code:
else { $attachpath = fetch_attachment_path($attachmentinfo['userid'], $attachmentinfo['attachmentid']);Add this code BELOW the lines referenced above:
// ######################################### // ##### Start modified section for watermarks // ######################################### $vbulletin->options['attach_water_exforums'] = explode(',', $vbulletin->options['attach_water_exforums']); $vbulletin->options['attach_water_exgroups'] = explode(',', $vbulletin->options['attach_water_exgroups']); if ($vbulletin->options['attach_water_filelocation'] AND in_array($extension, array('jpg', 'jpeg', 'png')) AND !in_array($attachmentinfo['forumid'], $vbulletin->options['attach_water_exforums']) AND !array_intersect(fetch_membergroupids_array($vbulletin->userinfo), $vbulletin->options['attach_water_exgroups']) ) { $attachsize = getimagesize($attachpath); if ($attachsize[0] >= $vbulletin->options['attach_water_minsize'] AND $attachsize[1] >= $vbulletin->options['attach_water_minsize']) { $waterimage =& $vbulletin->options['attach_water_filelocation']; $watersize = getimagesize($waterimage); $waterext = strtolower(substr($waterimage, strrpos($waterimage, '.') + 1)); // Coordinates (height) switch ($vbulletin->options['attach_water_coordinates'][0]) { case 'n': $waterpos['height'] = 0 + $vbulletin->options['attach_water_padding']; break; case 'm': $waterpos['height'] = round(($attachsize[1] - $watersize[1]) / 2); break; case 's': $waterpos['height'] = round(($attachsize[1] - $watersize[1])) - $vbulletin->options['attach_water_padding']; break; } // Coordinates (width) switch ($vbulletin->options['attach_water_coordinates'][1]) { case 'w': $waterpos['width'] = 0 + $vbulletin->options['attach_water_padding']; break; case 'c': $waterpos['width'] = round(($attachsize[0] - $watersize[0]) / 2); break; case 'e': $waterpos['width'] = round(($attachsize[0] - $watersize[0])) - $vbulletin->options['attach_water_padding']; break; } // Watermark ext switch ($waterext) { case 'jpg': case 'jpeg': $watermark = imagecreatefromjpeg($waterimage); break; case 'png': $watermark = imagecreatefrompng($waterimage); break; } // Attachment ext switch ($extension) { case 'jpg': case 'jpeg': $attachimage = imagecreatefromjpeg($attachpath); break; case 'png': $attachimage = imagecreatefrompng($attachpath); break; } imagealphablending($attachimage, true); $watermark_width = imagesx($watermark); $watermark_height = imagesy($watermark); imagecopy($attachimage, $watermark, $waterpos['width'], $waterpos['height'], 0, 0, $watersize[0], $watersize[1]); define('WATERMARKED', true); } } // ######################################### // ##### End modified section for watermarks // #########################################
=============================================
STEP 5:
Find this line of code:
header('Content-Length: ' . (($lastbyte + 1) - $startbyte));REPLACE with this code:
// ######################################### // ##### Start modified section for watermarks // ##### Changed to prevent filesize header on watermarked images // ######################################### if (!defined('WATERMARKED')) { header('Content-Length: ' . (($lastbyte + 1) - $startbyte)); } // ######################################### // ##### End modified section for watermarks // #########################################
=============================================
STEP 6:
Find this line of code:
($hook = vBulletinHook::fetch_hook('attachment_display')) ? eval($hook) : false;REPLACE with this code:
// ######################################### // ##### Start modified section for watermarks // ######################################### if (!$vbulletin->GPC['thumb'] AND defined('WATERMARKED')) { imagejpeg($attachimage); imagedestroy($attachimage); imagedestroy($watermark); } // ######################################### // ##### End modified section for watermarks=============================================
STEP 7:
Find this line of code:
($hook = vBulletinHook::fetch_hook('attachment_complete')) ? eval($hook) : false;REPLACE with this code:
exit;
=============================================
STEP 8:
Save and upload attachment_watermark.php to your forum root directory.
=============================================
STEP 9:
Install the product-attach_watermark.xml Product via the vBulletin AdminCP Product Manager.
=============================================
STEP 10:
Configure the options at AdminCP -> vBulletin Options -> Attachment Watermarks. All fields should be self-explanatory.
3.7 için bunu buldum bide xml dosyasını bu yukarıda kini nasıl yapıcaz anlatabilicek olan var mı ? - 03-02-2009, 13:54:38Üyeliği durduruldu=============================================
STEP 1:
Since the resulting file contains too much vBulletin code, I am unable to include it with this modification. So, the first step is to copy vBulletin's attachment.php to a file named attachment_watermark.php. Then, edit attachment_watermark.php, making the following changes.
=============================================
STEP 2:
You need to delete a LOT of lines from the top of the file. Find this line...
$idname = $vbphrase['attachment'];
...and delete everything ABOVE it other than the <?php line at the top of the file.
Your attachment_watermark.php file should begin with this code when you've completed this step:
<?php $idname = $vbphrase['attachment'];
=============================================
STEP 3:
Find this line of code:
if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canview']) OR !($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewthreads']) OR !($forumperms & $vbulletin->bf_ugp_forumpermissions['cangetattachment']) OR (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewothers']) AND ($attachmentinfo['postuserid'] != $vbulletin->userinfo['userid'] OR $vbulletin->userinfo['userid'] == 0)))
REPLACE with this code:
if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canview']) OR !($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewthreads']) OR (!($forumperms & $vbulletin->bf_ugp_forumpermissions['cangetattachment']) AND !$vbulletin->GPC['thumb']) OR (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewothers']) AND ($attachmentinfo['postuserid'] != $vbulletin->userinfo['userid'] OR $vbulletin->userinfo['userid'] == 0)))
=============================================
STEP 4:
Find these lines of code:
else { $attachpath = fetch_attachment_path($attachmentinfo['userid'], $attachmentinfo['attachmentid']);Add this code BELOW the lines referenced above:
// ######################################### // ##### Start modified section for watermarks // ######################################### $vbulletin->options['attach_water_exforums'] = explode(',', $vbulletin->options['attach_water_exforums']); $vbulletin->options['attach_water_exgroups'] = explode(',', $vbulletin->options['attach_water_exgroups']); if ($vbulletin->options['attach_water_filelocation'] AND in_array($extension, array('jpg', 'jpeg', 'png')) AND !in_array($attachmentinfo['forumid'], $vbulletin->options['attach_water_exforums']) AND !array_intersect(fetch_membergroupids_array($vbulletin->userinfo), $vbulletin->options['attach_water_exgroups']) ) { $attachsize = getimagesize($attachpath); if ($attachsize[0] >= $vbulletin->options['attach_water_minsize'] AND $attachsize[1] >= $vbulletin->options['attach_water_minsize']) { $waterimage =& $vbulletin->options['attach_water_filelocation']; $watersize = getimagesize($waterimage); $waterext = strtolower(substr($waterimage, strrpos($waterimage, '.') + 1)); // Coordinates (height) switch ($vbulletin->options['attach_water_coordinates'][0]) { case 'n': $waterpos['height'] = 0 + $vbulletin->options['attach_water_padding']; break; case 'm': $waterpos['height'] = round(($attachsize[1] - $watersize[1]) / 2); break; case 's': $waterpos['height'] = round(($attachsize[1] - $watersize[1])) - $vbulletin->options['attach_water_padding']; break; } // Coordinates (width) switch ($vbulletin->options['attach_water_coordinates'][1]) { case 'w': $waterpos['width'] = 0 + $vbulletin->options['attach_water_padding']; break; case 'c': $waterpos['width'] = round(($attachsize[0] - $watersize[0]) / 2); break; case 'e': $waterpos['width'] = round(($attachsize[0] - $watersize[0])) - $vbulletin->options['attach_water_padding']; break; } // Watermark ext switch ($waterext) { case 'jpg': case 'jpeg': $watermark = imagecreatefromjpeg($waterimage); break; case 'png': $watermark = imagecreatefrompng($waterimage); break; } // Attachment ext switch ($extension) { case 'jpg': case 'jpeg': $attachimage = imagecreatefromjpeg($attachpath); break; case 'png': $attachimage = imagecreatefrompng($attachpath); break; } imagealphablending($attachimage, true); $watermark_width = imagesx($watermark); $watermark_height = imagesy($watermark); imagecopy($attachimage, $watermark, $waterpos['width'], $waterpos['height'], 0, 0, $watersize[0], $watersize[1]); define('WATERMARKED', true); } } // ######################################### // ##### End modified section for watermarks // #########################################=============================================
STEP 5:
Find this line of code:
header('Content-Length: ' . (($lastbyte + 1) - $startbyte));REPLACE with this code:
// ######################################### // ##### Start modified section for watermarks // ##### Changed to prevent filesize header on watermarked images // ######################################### if (!defined('WATERMARKED')) { header('Content-Length: ' . (($lastbyte + 1) - $startbyte)); } // ######################################### // ##### End modified section for watermarks // #########################################=============================================
STEP 6:
Find this line of code:
($hook = vBulletinHook::fetch_hook('attachment_display')) ? eval($hook) : false;REPLACE with this code:
// ######################################### // ##### Start modified section for watermarks // ######################################### if (!$vbulletin->GPC['thumb'] AND defined('WATERMARKED')) { imagejpeg($attachimage); imagedestroy($attachimage); imagedestroy($watermark); } // ######################################### // ##### End modified section for watermarks=============================================
STEP 7:
Find this line of code:
($hook = vBulletinHook::fetch_hook('attachment_complete')) ? eval($hook) : false;REPLACE with this code:
exit;
=============================================
STEP 8:
Save and upload attachment_watermark.php to your forum root directory.
=============================================
STEP 9:
Install the product-attach_watermark.xml Product via the vBulletin AdminCP Product Manager.
=============================================
STEP 10:
Configure the options at AdminCP -> vBulletin Options -> Attachment Watermarks. All fields should be self-explanatory.
3.7 için bunu buldum bide xml dosyasını bu yukarıda kini nasıl yapıcaz anlatabilicek olan var mı ?
Günceli Çıkana kadar beklicez sanırım.. aslında iyi bir eklenti neden devamı gelmemiş kii...