إنضمامك إلي منتديات استراحات زايد يحقق لك معرفة كل ماهو جديد في عالم الانترنت ...

انضم الينا
استراحات زايد الصفحة الرئيسية

         :: أبواب الألمنيوم الخارجية في مصر من الوسولوشن حلّ مثالي للأناقة والأمان (آخر رد :احمد عبدالخالق 15)       :: المواد العطرية من الأراضي (آخر رد :اسماعيل رضا)       :: تفسير حلم اكل البيض المسلوق (آخر رد :نوران نور)       :: الدفن في المنام (آخر رد :نوران نور)       :: مزايا تخزين الاثاث بالخبر (آخر رد :رودى طه)       :: ارخص شركة تخزين اثاث بالقطيف (آخر رد :رودى طه)       :: طرق تخزين العفش بالاحساء (آخر رد :رودى طه)       :: تعليم التجويد (آخر رد :اسماعيل رضا)       :: برامج الرشاقة السعيدة (آخر رد :دارين الدوسري)       :: نصائح اختيار شركة لإدارة حسابات وإعلانات السوشيال ميديا (آخر رد :حسن سليمة)      

إضافة رد
 
LinkBack أدوات الموضوع انواع عرض الموضوع
  #1  
قديم 08-31-2010, 05:10 AM
عضو ماسي
بيانات محروم.كوم
 رقم العضوية : 503
 تاريخ التسجيل : Dec 2007
الجنس : female
علم الدوله :
 المشاركات : 2,100,612
عدد الـنقاط :3341
 تقييم المستوى : 2139

Ok, I posted this on vB.org, but I guess no one wants to help there, so I figured, although this is for a modification, I would post it here and see if anyone here could spot what I am doing wrong.

I am adding the ability to upload an image to a product. I have looked around in the vB files and I am using some code I found, but it doesnt want to work.

This part works fine.
PHP Code:
print_upload_row($vbphrase['filename'], 'upload');

This is the code I am not fully sure about.
PHP Code:
$vbulletin->input->clean_array_gpc('f', array(
'upload' => TYPE_FILE,
));

$imagespath = "images/shop";

$upload = new vB_Upload_Image($vbulletin);
$upload->image =& vB_Image::fetch_library($vbulletin);
$upload->path = $imagespath;

$imgurl = $vbulletin->options['bburl'] . $imagespath . $vbulletin->GPC['upload']['name'] . ".jpg";

Then I have it set to add $imgurl to my database which works fine except the file name isn't there. That and I am not sure if I am missing any code cause the file doesnt actually get put into the folder. This code is in an admincp file, but the images should be save to the shop folder within the default vB images folder, so.

When I use this, it is just blank.
PHP Code:
$vbulletin->GPC['upload']['name']


Also, I do not get any errors with this code. The entry gets added to the database just fine, just not all the info is there.
__DEFINE_LIKE_SHARE__
رد مع اقتباس
إضافة رد

مواقع النشر (المفضلة)


تعليمات المشاركة
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك

BB code is متاحة
كود [IMG] متاحة
كود HTML معطلة
Trackbacks are متاحة
Pingbacks are متاحة
Refbacks are متاحة



الساعة الآن 02:42 PM


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By Almuhajir

RSS RSS 2.0 XML MAP HTML