تذكرني !
تابعنا على
Bleach 25-26 منتديات العاشق
قسم الأرشيف والمواضيع المحذوفة قسم خاص بجميع المواضيع المحذوفة و المُكررة والتي لاتنطبق على الشروط والقوانين والتي لا شأن لها في أي قسم من أقسام المُنتدى

[Product] : فورم طلبات الاشراف

 
 
أدوات الموضوع انواع عرض الموضوع
  #1  
قديم 01-02-2009, 06:11 PM
الصورة الرمزية العاشق 2005  
رقـم العضويــة: 365
تاريخ التسجيل: Sep 2008
المشـــاركـات: 94,808
نقـــاط الخبـرة: 85
افتراضي [Product] : فورم طلبات الاشراف

السلام عليكم


تم وبحمدالله الانتهاء من تعريب فورم طلبات الاشراف

طريقة التركيب :

ندخل على
Product الهاكات Plugins



بعدها
اضافة منتج


بعدها
نحدد مكان الملف ونضغط برودكت


بعدها
التحكم بالاضافات البرمجيه


بعدها
نروح للبرودكت بعدين تعديل


بعدها
نحذف الكود الموجود بالـ كود PHP الخاص بالإضافة




ونستبدله بالكود التالي


كود PHP:
رمز PHP:
// **** of this form
$form**** = "form";

if (
$_REQUEST['do'] == $form****)
{

$vbulletin->input->clean_array_gpc('p', array(
'normalanswer1' => STR,
'radioanswer1' => STR,
'radioanswer2' => STR,
'radioanswer3' => STR,
'radioanswer3other' => STR,
'answer1' => STR,
'answer2' => STR,
'answer3' => STR,
'longanswer1' => STR,
'action' => STR
));

$normalanswer1 =& $vbulletin->GPC['normalanswer1'];
$radioanswer1 =& $vbulletin->GPC['radioanswer1'];
$radioanswer2 =& $vbulletin->GPC['radioanswer2'];
$radioanswer3 =& $vbulletin->GPC['radioanswer3'];
$radioanswer3other =& $vbulletin->GPC['radioanswer3other'];
$answer1 =& $vbulletin->GPC['answer1'];
$answer2 =& $vbulletin->GPC['answer2'];
$answer3 =& $vbulletin->GPC['answer3'];
$longanswer1 =& $vbulletin->GPC['longanswer1'];

// ################################################## #####################
// ######################## CUSTOMIZE VARIABLES ##########################
// ################################################## #####################

////////////////////////////////////////////////////////////////////////////////////////////////////
////// BEGIN CUSTOMIZATION BELOW////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//USERGROUPS ALLOWED
//You can add or remove usegroups that are ALLOWED to use this form by changing the numbers below in the array.
//You may remove this feature by adding a '//' before the 'if'.
////////////////////////////////////////////////////////////////////////////////////////////////////

if (!in_array($vbulletin->userinfo['usergroupid'], array(2,5,6,7))) print_no_permission();

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//**** OF TEMPLATES - DO THIS BIT IF YOU ARE MAKING MORE FORMS أسماء القوالب - إستخدم هذه القوالب إذا كنت إضافة أكثر من فورم
////////////////////////////////////////////////////////////////////////////////////////////////////

// **** of the main template
$maintemplate = "form";
// **** of the answer template
$answertemplate = "formanswers";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//CHOOSE WHETHER YOU WANT FORM TO BE POSTED IN A NEW THREAD, NEW POLL, REPLY TO EXISITING THREAD, PMed OR EMAILED
//خيارات إضافة الطلبات في موضوع جديد ، تصويت ، مشاركة على موضوع ، رسالة خاصة ، أو رسالة بريدية
///////////////////////////////////////////////////////////////////////////////////////////////////

//ENABLE FORM TO BE POSTED - 1 = yes, 0 = no لتفعيل الفورم 1 = نعم ، 0 = لا
$formforum = "1";

//FORUM TO POST NEW THREAD IN حدد رقم القسم المراد اضافة الموضوع فيه. فم بالتغيير على الرقه 14 الى رقم القسم المراد
$formforumid = "14";

//ENABLE POLL TO BE CREATED - 1 = yes, 0 = no غير الرقم الى 1 اذا كنت تريد تفعيل التصويت
$formpoll = "0";
$polloption[1] = "نعم";
$polloption[2] = "لا";
$polloption[3] = "ربما";

////////////////////////////////////////////////////////////////////////////////////////////////////

//ENABLE FORM TO REPLY TO EXISTING THREAD - 1 = yes, 0 = no غير الرقم الى 1 اذا كنت تريد الطلب يضاف الى موضوع
$formreply = "0";

//EXISTING THREAD ID FOR FORM TO REPLY IN حدد الموضوع الذي تريد الطلب يضاف اليها
$formreplythreadid = "12345";

////////////////////////////////////////////////////////////////////////////////////////////////////

//ENABLE FORM TO BE PMED - 1 = yes, 0 = no لإرسال الطلبات على الرسائل الخاصه غير الرقم الى 1
$formpm = "0";

//USER**** TO PM TO اكتب اسم العضو الذي تريد تصل اليه الطلبات
$formpm**** = "بوأحمد";

////////////////////////////////////////////////////////////////////////////////////////////////////

//ENABLE FORM TO BE EMAILED - 1 = yes, 0 = no غير الرقم الى 1 اذا اردت ارسال الطلبات على البريد
$formemail = "0";

//EMAIL ADDRESS TO EMAIL TO حدد الايميل المراد
$formemailaddress = "[email protected]";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//REDIRECT OPTIONS: بعد تقديم الطلب ماذا تريد ان تفعل
// 0 - thank you message (thread, reply, pm, or email) رسالة شكر
// 1 - redirect to post (thread or reply) الإنتقال الى الموضوع او المشاركه
// 2 - redirect to thread (thread only) الانتقال الى الموضوع
// 3 - redirect to forum (thread only) الانتقال الى القسم
// 4 - redirect to editpost to upload attachments (thread or reply) الانتقال الى الموضوع مع التعديل عليه لإضافة مرفقات
//
// Feel free to change the thank you message if you choose option 0
////////////////////////////////////////////////////////////////////////////////////////////////////

$redirectoption = "0";

$errormessage = "شكراً لك لتقيدم الطلب. وستقوم الإدارة بمراسلتك قريباً."; //This is the thank you message

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//FORCE USER TO ANSWER ALL QUESTIONS - 1 = yes, 0 = no غير الرقم الى 1 اذا اردت فرض اجابة جميع الاسئلة
////////////////////////////////////////////////////////////////////////////////////////////////////

$answerall = "0";

////////////////////////////////////////////////////////////////////////////////////////////////////
//TITLE OF FORM (do not use quotation marks or you will get a parse error) عنوان الفورم
////////////////////////////////////////////////////////////////////////////////////////////////////

$formtitle = "طلبات الإشراف";

////////////////////////////////////////////////////////////////////////////////////////////////////
//TITLE OF THREAD/POST/PM/EMAIL (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////

$posttitle = "$formtitle";

////////////////////////////////////////////////////////////////////////////////////////////////////
//PURPOSE OF FORM (do not use quotation marks or you will get a parse error) شرح للفورم
////////////////////////////////////////////////////////////////////////////////////////////////////

$formpurpose = "هذا الملف تم عمله لإستقبال طلبات الإشراف.";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//NORMAL INPUT BOX : QUESTION 1 (do not use quotation marks or you will get a parse error) سؤال عام
////////////////////////////////////////////////////////////////////////////////////////////////////

$normalquestion1 = "القسم المراد الإشراف عليه؟";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//RADIO BOX CHOICES : QUESTION 1 (do not use quotation marks or you will get a parse error) سؤال خياري
////////////////////////////////////////////////////////////////////////////////////////////////////

$radioquestion1 = "الجنس؟";

// The following choices must NOT have quotation marks
$radiochoice1a = "ذكر";
$radiochoice1b = "إنثى";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//RADIO BOX CHOICES : QUESTION 2 (do not use quotation marks or you will get a parse error) سؤال خياري بثلاث خيارات
////////////////////////////////////////////////////////////////////////////////////////////////////

$radioquestion2 = "مدة التسجيل؟";

// The following choices must NOT have quotation marks
$radiochoice2a = "اسبوع";
$radiochoice2b = "شهر";
$radiochoice2c = "سنه";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//RADIO BOX CHOICES : QUESTION 3 (do not use quotation marks or you will get a parse error) سؤال خياري مع الشرح اذا كانت اجابتك بنعم
////////////////////////////////////////////////////////////////////////////////////////////////////

$radioquestion3 = "هل تستحق الإشراف؟";

// The following choices must NOT have quotation marks
$radiochoice3a = "نعم";
$radiochoice3b = "لا";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//QUESTION 1 (do not use quotation marks or you will get a parse error)
$question1 = "الإسم الحقيقي؟";
$explain1 = "هنا اكتب اسمك الحقيقي.";

//QUESTION 2 (do not use quotation marks or you will get a parse error)
$question2 = "البريد الشخصي؟";
$explain2 = "هنا اكتب بريدك الشخصي.";

//QUESTION 3 (do not use quotation marks or you will get a parse error)
$question3 = "تأكيد البريد الشخصي؟";
$explain3 = "هنا أعد كتابة البريد الشخصي.";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//LONG **** AREA INPUT: QUESTION 1 (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////

$longquestion1 = "تحدث عن نفسك وعن خبراتك في القسم المحدد؟";
$longexplain1 = "هنا تحدث عن نفسك بما ينفعك للحصول على الإشراف والتغييرات التي تتوقع إحداثها على القسم.";

////////////////////////////////////////////////////////////////////////////////////////////////
////// END OF CUSTOMIZATION ////////////////////////////////////////////////////////////////////
///// DO NOT CHANGE BELOW UNLESS YOU KNOW WHAT YOU ARE DOING!!! ////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////

// ################################################## #####################
// ######################## START MAIN ****** ############################
// ################################################## #####################
$bbuserinfo = $vbulletin->userinfo;

// start navbar
$navbits = array();
$navbits['newthread.php?' . $vbulletin->session->vars['sessionurl'] . "do=$form****"] = $formtitle;

$navbits = construct_navbits($navbits);
eval(
'$navbar = "' . fetch_template('navbar') . '";');

if (
$vbulletin->GPC['action']=="submit")
{

if (
$answerall == "1")
{
if (
$normalanswer1 == '' OR $radioanswer1 == '' OR $radioanswer2 == '' OR $radioanswer3 == '' OR $answer1 == '' OR $answer2 == '' OR $answer3 == '' OR $longanswer1 == '')
{
$errormessage = "$bbuserinfo[user****], you need to answer every question!";
eval(
'print_output("' . fetch_template('STANDARD_ERROR') . '");');
exit();
}
}

eval(
'$formsend = "' . fetch_template("$answertemplate") . '";');

if (
$formforum == "1")
{
$foruminfo = verify_id('forum', $formforumid, 0, 1);
$forumperms = fetch_permissions($foruminfo[forumid]);
$newpost['message'] =& $formsend;
$newpost['title'] =& $posttitle;
$newpost['parseurl'] = '1';
$newpost['emailupdate'] = '9999';

if (
$vbulletin->userinfo['signature'] != '')
{
$newpost['signature'] = '1';
}
else
{
$newpost['signature'] = '0';
}

build_new_post('thread', $foruminfo, array(), array(), $newpost, $errors);

if (
$formpoll == "1")
{
$threadinfo = verify_id('thread', $newpost[threadid], 0, 1);
$polloptions = count($polloption);
$question = $posttitle;
$vbulletin->GPC['options'] = $polloption;

$counter = 0;
$optioncount = 0;
$badoption = '';
while (
$counter++ options['maxpolllength'] AND vbstrlen($vbulletin->GPC['options']["$counter"]) > $vbulletin->options['maxpolllength'])
{
$badoption .= iif($badoption, ', ') . $counter;
}
if (!empty(
$vbulletin->GPC['options']["$counter"]))
{
$optioncount++;
}
}

// Add the poll
$poll =& datamanager_init('Poll', $vbulletin, ERRTYPE_STANDARD);

$counter = 0;
while (
$counter++ GPC['options']["$counter"] != '')
{
$poll->set_option($vbulletin->GPC['options']["$counter"]);
}
}

$poll->set('question', $question);
$poll->set('dateline', TIMENOW);
$poll->set('active', '1');

$pollid = $poll->save();
//end create new poll

// update thread
$threadman =& datamanager_init('Thread', $vbulletin, ERRTYPE_STANDARD, 'threadpost');
$threadman->set_existing($threadinfo);
$threadman->set('pollid', $pollid);
$threadman->save();

}
}

if (
$formreply == "1")
{
$threadinfo = verify_id('thread', $formreplythreadid, 0, 1);
$forumperms = fetch_permissions($threadinfo[forumid]);
$newpost['message'] =& $formsend;
$newpost['title'] =& $posttitle;
$newpost['parseurl'] = "1";
$newpost['emailupdate'] = '9999';

if (
$vbulletin->userinfo['signature'] != '')
{
$newpost['signature'] = '1';
}
else
{
$newpost['signature'] = '0';
}

build_new_post('reply', $foruminfo, $threadinfo, $postinfo, $newpost, $errors);
}

if (
$formpm == "1")
{
$vbulletin->GPC['message'] =& $formsend;
$vbulletin->GPC['title'] =& $posttitle;
$vbulletin->GPC['recipients'] =& $formpm****;

$pm['message'] =& $vbulletin->GPC['message'];
$pm['title'] =& $vbulletin->GPC['title'];
$pm['recipients'] =& $vbulletin->GPC['recipients'];


// create the DM to do error checking and insert the new PM
$pmdm =& datamanager_init('PM', $vbulletin, ERRTYPE_ARRAY);

$pmdm->set('fromuserid', $vbulletin->userinfo['userid']);
$pmdm->set('fromuser****', $vbulletin->userinfo['user****']);
$pmdm->setr('title', $pm['title']);
$pmdm->setr('message', $pm['message']);
$pmdm->set_recipients($pm['recipients'], $permissions);
$pmdm->set('dateline', TIMENOW);

// everything's good!
$pmdm->save();
}

if (
$formemail == "1")
{
vbmail($formemailaddress, $posttitle, $formsend);
}

if (
$redirectoption == "1")
{
$vbulletin->url = 'showthread.php?' . $vbulletin->session->vars['sessionurl'] . "p=$newpost[postid]";
eval(
print_standard_redirect('redirect_postthanks'));
exit();
}
if (
$redirectoption == "2")
{
$vbulletin->url = 'showthread.php?' . $vbulletin->session->vars['sessionurl'] . "t=$newpost[threadid]";
eval(
print_standard_redirect('redirect_postthanks'));
exit();
}
if (
$redirectoption == "3")
{
$vbulletin->url = 'forumdisplay.php?' . $vbulletin->session->vars['sessionurl'] . "f=$foruminfo[forumid]";
eval(
print_standard_redirect('redirect_postthanks'));
exit();
}
if (
$redirectoption == "4")
{
$vbulletin->url = 'editpost.php?do=editpost&' . $vbulletin->session->vars['sessionurl'] . "p=$newpost[postid]";
eval(
print_standard_redirect('redirect_postthanks'));
exit();
}
eval(
'print_output("' . fetch_template('STANDARD_ERROR') . '");');
exit();
}

eval(
'print_output("' . fetch_template("$maintemplate") . '");');
}



من ثم اطلب هذا العنوان من المتصفح وستجد الفورم جاهز
http://www.xxxx.com/vb/newthread.php?do=form


مع مراعاة تغيير xxxx الى عنوان موقعك

تم التعريب والتكريب والحمدلله

والبرودكت مع التعريب بالمرفقات
</div>
الملفات المرفقة فورم طلبات الإشراف.zip (8.5 كيلوبايت)
 


الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1)
 

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

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

الانتقال السريع

المواضيع المتشابهه للموضوع [Product] : فورم طلبات الاشراف:
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
[Product] : فروم طلبات الاشراف بدون تعديل شي !!! العاشق 2005 قسم الأرشيف والمواضيع المحذوفة 0 01-05-2009 04:10 PM
[Product] : [Product] : طلبات الاشراف روعه + مثال للهاك العاشق 2005 قسم الأرشيف والمواضيع المحذوفة 0 10-18-2008 12:50 PM
[Product] : طلبات الاشراف روعه + مثال للهاك العاشق 2005 قسم الأرشيف والمواضيع المحذوفة 0 10-15-2008 07:10 PM
[Product] : تعدل هاك طلبات الاشراف من تطوير منتديات احبك موت للنسخه 3.7.0 واكثر ! Al3asq قسم الأرشيف والمواضيع المحذوفة 0 09-12-2008 02:03 AM
[Product] : طلبات الاشراف بشكل رائع شجع اعضائك على التفاعل ! Al3asq قسم الأرشيف والمواضيع المحذوفة 0 09-10-2008 02:53 PM

الساعة الآن 11:52 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.

كُل ما يُكتب أو يُنشر في منتديات العاشق يُمثل وجهة نظر الكاتب والناشر فحسب، ولا يمثل وجهه نظر الإدارة

rel="nofollow" maxseven simplicity and clarity