Bakenam
01-19-2009, 05:24 AM
بسم الله
وضع علامة او شعار لموقعك على الصور التي ترفع في الالبوم
مثال
http://www.7lanet.com/vb/album.php?a...pictureid=1817 (http://www.7lanet.com/vb/album.php?albumid=109&pictureid=1817)
عمل الهاك
يقوم بدمج شعار على الصور التي ترفع في الالبوم
طريقة التركيب
اولاً قم بأنشاء صورة png واسمها watermark ,كشعار وقم برفعها في vb
ثانياً قم بالدخول على ملف
/includes/functions_album.php
واضف بعد حقوق الشركة الكود التالي
رمز PHP:
////////////////////////////////////////////////////////////
//////////// -ALBUM WATERMARK MOD - image createfrom/saveto file functions-////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
function imagecreatefromfile($path)
{
$info = @getimagesize($path);
if(!$info)
{
return false;
}
$functions = array(
IMAGETYPE_GIF => 'imagecreatefromgif',
IMAGETYPE_JPEG => 'imagecreatefromjpeg',
IMAGETYPE_PNG => 'imagecreatefrompng',
IMAGETYPE_WBMP => 'imagecreatefromwbmp',
IMAGETYPE_XBM => 'imagecreatefromwxbm',
);
if(!$functions[$info[2]])
{
return false;
}
if(!function_exists($functions[$info[2]]))
{
return false;
}
return $functions[$info[2]]($path);
}
function imagesavetofile($image,$path)
{
$info = @getimagesize($path);
if(!$info)
{
return false;
}
$functions = array(
IMAGETYPE_GIF => 'imagegif',
IMAGETYPE_JPEG => 'imagejpeg',
IMAGETYPE_PNG => 'imagepng',
IMAGETYPE_WBMP => 'imagewbmp',
IMAGETYPE_XBM => 'imagewxbm',
);
if(!$functions[$info[2]])
{
return false;
}
if(!function_exists($functions[$info[2]]))
{
return false;
}
return $functions[$info[2]]($image,$path);
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////// -ALBUM WATERMARK MOD - image createfrom/saveto file functions-////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
ثم قم برفع البلوقن
تحميل البلوقن من المرفقات
الصور المصغرة المرفقةhttp://traidnt.net/vb/attachment.php?attachmentid=263208&stc=1&thumb=1&d=1213834982 (http://traidnt.net/vb/attachment.php?attachmentid=263208&d=1213834982)
الصور المرفقةhttp://traidnt.net/vb/attachment.php?attachmentid=263209&stc=1&d=1213834982
الملفات المرفقةhttp://traidnt.net/vb/images/attach/zip.gifvbulletin-plugins.zip (http://traidnt.net/vb/attachment.php?attachmentid=263207&d=1213834683) (494 بايت, عدد مرات المشاهدة 272 مرة)
وضع علامة او شعار لموقعك على الصور التي ترفع في الالبوم
مثال
http://www.7lanet.com/vb/album.php?a...pictureid=1817 (http://www.7lanet.com/vb/album.php?albumid=109&pictureid=1817)
عمل الهاك
يقوم بدمج شعار على الصور التي ترفع في الالبوم
طريقة التركيب
اولاً قم بأنشاء صورة png واسمها watermark ,كشعار وقم برفعها في vb
ثانياً قم بالدخول على ملف
/includes/functions_album.php
واضف بعد حقوق الشركة الكود التالي
رمز PHP:
////////////////////////////////////////////////////////////
//////////// -ALBUM WATERMARK MOD - image createfrom/saveto file functions-////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
function imagecreatefromfile($path)
{
$info = @getimagesize($path);
if(!$info)
{
return false;
}
$functions = array(
IMAGETYPE_GIF => 'imagecreatefromgif',
IMAGETYPE_JPEG => 'imagecreatefromjpeg',
IMAGETYPE_PNG => 'imagecreatefrompng',
IMAGETYPE_WBMP => 'imagecreatefromwbmp',
IMAGETYPE_XBM => 'imagecreatefromwxbm',
);
if(!$functions[$info[2]])
{
return false;
}
if(!function_exists($functions[$info[2]]))
{
return false;
}
return $functions[$info[2]]($path);
}
function imagesavetofile($image,$path)
{
$info = @getimagesize($path);
if(!$info)
{
return false;
}
$functions = array(
IMAGETYPE_GIF => 'imagegif',
IMAGETYPE_JPEG => 'imagejpeg',
IMAGETYPE_PNG => 'imagepng',
IMAGETYPE_WBMP => 'imagewbmp',
IMAGETYPE_XBM => 'imagewxbm',
);
if(!$functions[$info[2]])
{
return false;
}
if(!function_exists($functions[$info[2]]))
{
return false;
}
return $functions[$info[2]]($image,$path);
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////// -ALBUM WATERMARK MOD - image createfrom/saveto file functions-////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
ثم قم برفع البلوقن
تحميل البلوقن من المرفقات
الصور المصغرة المرفقةhttp://traidnt.net/vb/attachment.php?attachmentid=263208&stc=1&thumb=1&d=1213834982 (http://traidnt.net/vb/attachment.php?attachmentid=263208&d=1213834982)
الصور المرفقةhttp://traidnt.net/vb/attachment.php?attachmentid=263209&stc=1&d=1213834982
الملفات المرفقةhttp://traidnt.net/vb/images/attach/zip.gifvbulletin-plugins.zip (http://traidnt.net/vb/attachment.php?attachmentid=263207&d=1213834683) (494 بايت, عدد مرات المشاهدة 272 مرة)