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

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

         :: مواصفات سيارة تويوتا كامري 2023 (آخر رد :saddkn)       :: طرق عزل الاسطح بالخبر (آخر رد :رودى طه)       :: كيف تحمي منزلك من هجوم الحشرات (آخر رد :رودى طه)       :: برامج الرشاقة السعيدة (آخر رد :دارين الدوسري)       :: تبي متابعين تيك توك مجاناً؟ (آخر رد :ريم جاسم)       :: قهوجي جدة صبابين قهوه مباشرات ضيافه 0539307706 (آخر رد :ksa ads)       :: وانيت نقل عفش بالرياض 0539735360 ونيت توصيل اثاث مشاوير (آخر رد :ksa ads)       :: متجر Google Play: (آخر رد :محمد العوضي)       :: فوائد تحميل التطبيقات: (آخر رد :محمد العوضي)       :: تحميل التطبيقات ومصادرها: دليل شامل (آخر رد :محمد العوضي)      

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

I just posted this at vb.org and waiting for it to be approved. But here it is for those who don't go there, or won't, or don't know how (haha).




================================================== ============
This post discusses code modifications made directly in the files, and will
need to be done each time you upgrade vBulletin. If possible I will write a
plugin when I get a chance, and this note and
post will become irrelevant.

================================================== ============





[How-To] Disable Double-Click On Reply Buttons

A lot of people agree that the new double-click functionality for the "Reply With Quote" and "+ Reply to Thread" buttons is not user friendly, and not a standard behavior for buttons on a web page. The biggest complaint is having to click twice to get to the regular Advanced editor.
It doesn't appear that the developers are going to change this soon, if ever, so until they do I went digging for a solution to bring back the familiar and very user friendly single-click action for these buttons.

Go to your clientscript folder, and open the vbulletin_quick_reply.js file. Look for this section of code:
Code:
function qr_init_buttons(obj)
{
// intercept post button clicks to use inline form
var anchors = fetch_tags(obj, 'a');
for (var i = 0; i < anchors.length; i++)
{
// reply button
if (anchors[i].id && (anchors[i].id.substr(0, 3) == 'qr_' || anchors[i].id.substr(0, 5) == 'qrwq_'))
{
YAHOO.util.Event.on(anchors[i], "click", qr_newreply_activate, this);
//anchors[i].onclick = function(e) { return qr_newreply_activate(this.id.substr(3), false); };
}
}

// set the "+Reply to Thread" buttons onlclick events
var replytothreadids = ["newreplylink_top", "newreplylink_bottom"];
YAHOO.util.Event.on(replytothreadids, "click", qr_replytothread_activate, this);
//YAHOO.util.Event.on(replytothreadids, "dblclick", function(e) { window.location = this.href; }, this);
}
In that section, comment out two of the lines as shown below. All you need to do is add the forward slashes that I've highlighted in red and blue:
Code:
function qr_init_buttons(obj)
{
// intercept post button clicks to use inline form
var anchors = fetch_tags(obj, 'a');
for (var i = 0; i < anchors.length; i++)
{
// reply button
if (anchors[i].id && (anchors[i].id.substr(0, 3) == 'qr_' || anchors[i].id.substr(0, 5) == 'qrwq_'))
{
//YAHOO.util.Event.on(anchors[i], "click", qr_newreply_activate, this);
//anchors[i].onclick = function(e) { return qr_newreply_activate(this.id.substr(3), false); };
}
}

// set the "+Reply to Thread" buttons onlclick events
var replytothreadids = ["newreplylink_top", "newreplylink_bottom"];
//YAHOO.util.Event.on(replytothreadids, "click", qr_replytothread_activate, this);
//YAHOO.util.Event.on(replytothreadids, "dblclick", function(e) { window.location = this.href; }, this);
}
The red commented line reverts the "Reply With Quote" button back to a single click, and takes you directly to the regular Advanced editor with the quoted post included.

The blue commented line reverts the "+ Reply to Thread" buttons back to single click, which takes you directly to the Advanced editor.

And in case you're wondering:
  • Multi-quote behavior is not broken, and
  • The regular "Reply" button in the postbit still opens Quick Reply as usual.
If you ever want to use the default double-click behavior for either button, simply remove the two forward slashes that you added. And remember, until I create the plugin/product, you will need to make this change each time you upgrade your forums.
__DEFINE_LIKE_SHARE__
رد مع اقتباس
إضافة رد

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

أدوات الموضوع
انواع عرض الموضوع

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

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



الساعة الآن 07:46 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