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

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

         :: افضل مركز للعناية بالسيارات بالرياض (آخر رد :رودى طه)       :: دورة الملكية الفكرية في التراث الشعبي (الفلوكلور) تقديم د.رباب المعبي (آخر رد :عمران بحر)       :: افضل انواع يد بلاستيشن 5 (آخر رد :بوابة الصين العربية)       :: موقع خاص لحجوزات الأفضل لتذاكر الطيران و حجوزات الفنادق (آخر رد :عمران بحر)       :: مقاول أسمنت بورد بالرياض | تركيب احترافي وجودة عالية 0551033861 (آخر رد :ksa ads)       :: افضل فساتين باسعار مميزة في السعودية (آخر رد :رودى طه)       :: افضل فساتين باسعار مميزة في السعودية (آخر رد :رودى طه)       :: دعوى ميراث بالرياض: دليل شامل لفهم الإجراءات القانونية (آخر رد :نادية معلم)       :: اخصائية مساج الخبر منزلى 0533972744 (آخر رد :رودى طه)       :: massage in riyadh (آخر رد :رودى طه)      

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

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 متاحة



الساعة الآن 03:34 PM


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

RSS RSS 2.0 XML MAP HTML