|
إنضمامك إلي منتديات استراحات زايد يحقق لك معرفة كل ماهو جديد في عالم الانترنت ...
انضم الينا
#1
| ||
| ||
I'd like to extend the Memcache datastore* and it would be terribly nice if we could simply define our own datastore... in init.php* it would be as simple as changing this: PHP Code: if ($datastore_class != 'vB_Datastore') { require_once(DIR . '/includes/class_datastore.php'); } to this: PHP Code: if ($datastore_class != 'vB_Datastore') { if (substr($datastore_class* 0* 3) == 'vB_') { require_once(DIR . '/includes/class_datastore.php'); } else { require_once(DIR . '/includes/class_datastore_' . $datastore_class . '.php'); } } ...or something along those lines. If the datastore class you want to use starts with "vB_"* use the standard class_datastore.php file... if it's something else* use a file named by the datastore. __DEFINE_LIKE_SHARE__ |
مواقع النشر (المفضلة) |
| |
المواضيع المتشابهه | ||||
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
Forum is there a more efficient way of adding custom code to custom profile fields? | محروم.كوم | منتدى أخبار المواقع والمنتديات العربية والأجنبية | 0 | 05-10-2010 03:30 AM |
CMS Custom Article pages with Custom fields in create a article | محروم.كوم | منتدى أخبار المواقع والمنتديات العربية والأجنبية | 0 | 03-10-2010 11:10 PM |
Get Rid of IE6 Support | محروم.كوم | منتدى أخبار المواقع والمنتديات العربية والأجنبية | 0 | 01-21-2010 10:19 AM |
Forum support vs. ticket support | محروم.كوم | منتدى أخبار المواقع والمنتديات العربية والأجنبية | 0 | 11-10-2009 09:50 PM |
Does 1.x.x support php tag? | محروم.كوم | منتدى أخبار المواقع والمنتديات العربية والأجنبية | 0 | 05-01-2009 09:10 PM |