التغطية المصورة ليوم سوالف: الجزء الأول، الجزء الأخير
الفائزون في المسابقة الأصغر لسوالف كاست

 

العودة   سوالف سوفت > قسم تطوير المنتديات > إصلاح وصيانة المنتديات
المدوّنات البحث مشاركات اليوم اجعل كافة المشاركات مقروءة

موضوع مغلق  
 
LinkBack أدوات الموضوع
عضو فعال جدا
تاريخ التسجيل: Nov 2000-
#1 (permalink)  
من يملك هذا الهاك ؟


السلام عليكم

ارجو من يملك الهاك المشار إليه في هذا الموضوع للأخ arabnuke الذي طرحه في موقعه ولكن لا وجود لهذا الموقع الآن !

بالإضافة إلى ان الموضوع الأصلي في موقع vbulletin.org لا يفتح معي !! بالذات هذا الموضوع لا يفتح .. شيء غريب !
إسم الموضوع : Let users choose their own date and time format
وكان مطروح للنسخة : 2.2.3

شاكر ومقدر حسن تجاوبكم مقدماً ,,,






__________________
سبحانك اللهم وبحمدك أشهد أن لا إله إلا أنت أستغفرك وأتوب إليك
ابومنار غير متواجد حالياً   قديم 13-04-2003, 03:43 AM
عضو نشيط جدا
تاريخ التسجيل: Dec 2001-
#2 (permalink)  

هلا أبو منار

يفتح الموقع معي وحفظت الصفحة لك وتلاقيها في المرفقات

الهاك مشروح في الموضوع بدون مرفقات






الملفات المرفقة
نوع الملف: zip vbulletin.zip‏ (105.1 كيلوبايت, المشاهدات 52)
fahad_ss غير متواجد حالياً   قديم 13-04-2003, 04:26 AM
عضو فعال جدا
تاريخ التسجيل: Nov 2000-
#3 (permalink)  

الف الف شكر أخوي فهد .. بارك الله فيك

بس والله شي عجيب ... جربت عشرين مرة افتح الموضوع ... عجزت !

يطلع لي هذا الخطأ :

Fatal error: Maximum execution time of 15 seconds exceeded in /www/vbulletin.org/htdocs/forum/admin/functions.php on line 1130



اكرر شكري الجزيل لك يالغالي .






__________________
سبحانك اللهم وبحمدك أشهد أن لا إله إلا أنت أستغفرك وأتوب إليك
ابومنار غير متواجد حالياً   قديم 13-04-2003, 04:52 AM
عضو فعال جدا
تاريخ التسجيل: Nov 2000-
#4 (permalink)  

للأسف اخوي فهد .. فيه مشكلة غريبة

الشفرات الموضوعه ... غير موجودة !!! يأتي بدلاً من أي كود هذه العبارة :

You cannot view codes as long as you haven't prooved your license status!

ياريت إذا كانت الأكواد ظاهرة لك ... تقوم بتظليل الموضوع الأصلي والردود ايضا ونسخها ووضعها في ملف نصي .. جزاك الله خير

الغريب مرة اخرى .. انني استطعت الدخول على الصفحة الثانية والثالثة .. أما الأولى فـ no way !






__________________
سبحانك اللهم وبحمدك أشهد أن لا إله إلا أنت أستغفرك وأتوب إليك
ابومنار غير متواجد حالياً   قديم 13-04-2003, 05:00 AM
عضو فعال
تاريخ التسجيل: Nov 2002-
#5 (permalink)  

كان ودى اساعدك لاكن دخلت على الموضوع

وظهر

Fatal error: Maximum execution time of 15 seconds exceeded in /www/vbulletin.org/htdocs/forum/admin/functions.php on line 1130



ولما دخلت على الموضوع الى قبله مثلا
اهو اخره 3
بدلته ب2

ظهر انه لايوجد وراسل المشرف

اظاهر عندهم مشكله







__________________
نــــــــــحو سـوالف أفضل...
All-the-vb site
All-the-vb forum
all-the-vb غير متواجد حالياً   قديم 13-04-2003, 05:07 AM
عضو فعال جدا
تاريخ التسجيل: Nov 2000-
#6 (permalink)  

خلاص جزاكم الله خير انحلّت .. سويت إقتباس من موضوع فاير فلاي من الصفحة اللي ارسلها لي الأخ فهد بارك الله فيه وطلع كل شي

هذا هو الهاك للفائدة ... شاكر لكم تفاعلكم

اقتباس:
09-16-01 at 01:29 PM FireFly said this in Post #1
This hack adds an option for the user to select the date format and time format he wants to use in the forum.
Good for people from different countries, that use different formats.
Requested by markrt.

Demo:


Run this query:
كود:
ALTER TABLE user ADD dateformat VARCHAR(4) DEFAULT '-1' not null AFTER timezoneoffset, ADD timeformat VARCHAR(4) DEFAULT '-1' not null AFTER dateformat;
(for more information on running queries visit the Troubleshooting and Problems forum)

In your modifyoptions template add this code:
كود:
<tr>
	<td bgcolor="{secondaltcolor}"><normalfont><b>Date format</b></normalfont><br>
	<smallfont>Select what format you would like to use for dates.</smallfont></td>
	<td bgcolor="{secondaltcolor}"><smallfont>
	<select name="newdateformat">
		<option value="-1" $datedefselected>Use forum default</option>
		<option value="0" $date0selected>04-25-1998</option>
		<option value="1" $date1selected>04-25-98</option>
		<option value="2" $date2selected>04.25.1998</option>
		<option value="3" $date3selected>04.25.98</option>
		<option value="4" $date4selected>25-04-1998</option>
		<option value="5" $date5selected>25-04-98</option>
		<option value="6" $date6selected>25.04.1998</option>
		<option value="7" $date7selected>25.04.98</option>
		<option value="8" $date8selected>April 25th, 1998</option>
		<option value="9" $date9selected>Saturday, April 25th, 1998</option>
		<option value="10" $date10selected>25th April 1998</option>
		<option value="11" $date11selected>Saturday, 25th April 1998</option>
	</select></smallfont></td>
</tr>
<tr>
	<td bgcolor="{firstaltcolor}"><normalfont><b>Time format</b></normalfont><br>
	<smallfont>Select what format you would like to use for times.</smallfont></td>
	<td bgcolor="{firstaltcolor}"><smallfont>
	<select name="newtimeformat">
		<option value="-1" $timedefselected>Use forum default</option>
		<option value="0" $time0selected>08:15 pm</option>
		<option value="1" $time1selected>08:15:48 pm</option>
		<option value="2" $time2selected>08:15 PM</option>
		<option value="3" $time3selected>08:15:48 PM</option>
		<option value="4" $time4selected>20:15</option>
		<option value="5" $time5selected>20:15:48</option>
	</select></smallfont></td>
</tr>
right after
كود:
		<option value="+12" $timezonesel[120]>(GMT +12:00 hours) Auckland, Wellington, Fiji, Kamchatka, Marshall Island</option>
	</select></smallfont></td>
</tr>
In member.php add this code:
كود PHP:
  if ($bbuserinfo[dateformat]!=-1) {
    
$dateformat="date".$bbuserinfo[dateformat]."selected";
    $
$dateformat "selected";
  } else {
    
$datedefselected "selected";
  }

  if (
$bbuserinfo[timeformat]!=-1) {
    
$timeformatsel="time".$bbuserinfo[timeformat]."selected";
    $
$timeformatsel "selected";
  } else {
    
$timedefselected "selected";
  } 
right after
كود PHP:
  if ($bbuserinfo[timezoneoffset]<0) {
    
$timezonesel["n".(-$bbuserinfo[timezoneoffset]*10)]="selected";
  } else {
    
$timezonesel[$bbuserinfo[timezoneoffset]*10]="selected";
  } 
Still in member.php, replace this code:
كود:
  $DB_site->query("UPDATE user
                   SET ".$updatestyles."adminemail='$adminemail',
                      showemail='$showemail',invisible='$invisible',cookieuser='$cookieuser',
                      maxposts='".addslashes($umaxposts)."',daysprune='".addslashes($prunedays)."',
                      timezoneoffset='".addslashes($timezoneoffset)."',emailnotification='$emailnotification',
                      startofweek='".addslashes($startofweek)."',options='$options',receivepm='$receivepm',
                      emailonpm='$emailonpm',pmpopup='$pmpopup',usergroupid='$bbuserinfo[usergroupid]',
                      nosessionhash='$nosessionhash'
                   WHERE userid='$bbuserinfo[userid]'");
with this code:
كود:
  $DB_site->query("UPDATE user
                   SET ".$updatestyles."adminemail='$adminemail',
                      showemail='$showemail',invisible='$invisible',cookieuser='$cookieuser',
                      maxposts='".addslashes($umaxposts)."',daysprune='".addslashes($prunedays)."',
                      dateformat='".addslashes($newdateformat)."',timeformat='".addslashes($newtimeformat)."',
                      timezoneoffset='".addslashes($timezoneoffset)."',emailnotification='$emailnotification',
                      startofweek='".addslashes($startofweek)."',options='$options',receivepm='$receivepm',
                      emailonpm='$emailonpm',pmpopup='$pmpopup',usergroupid='$bbuserinfo[usergroupid]',
                      nosessionhash='$nosessionhash'
                   WHERE userid='$bbuserinfo[userid]'");
(note: this code might be changed in your file due to another hack. If so, just add the code that is in red)

In global.php (main directory) add this code:
كود PHP:
// change to right date format
if ($bbuserinfo[dateformat]!="-1") {
  if (
$bbuserinfo[dateformat]=="0") {
    
$dateformat "m-d-Y";
  } elseif (
$bbuserinfo[dateformat]=="1") {
    
$dateformat "m-d-y";
  } elseif (
$bbuserinfo[dateformat]=="2") {
    
$dateformat "m.d.Y";
  } elseif (
$bbuserinfo[dateformat]=="3") {
    
$dateformat "m.d.y";
  } elseif (
$bbuserinfo[dateformat]=="4") {
    
$dateformat "d-m-Y";
  } elseif (
$bbuserinfo[dateformat]=="5") {
    
$dateformat "d.m.y";
  } elseif (
$bbuserinfo[dateformat]=="6") {
    
$dateformat "d.m.y";
  } elseif (
$bbuserinfo[dateformat]=="7") {
    
$dateformat "d.m.y";
  } elseif (
$bbuserinfo[dateformat]=="8") {
    
$dateformat "F jS, Y";
  } elseif (
$bbuserinfo[dateformat]=="9") {
    
$dateformat "l, F jS, Y";
  } elseif (
$bbuserinfo[dateformat]=="10") {
    
$dateformat "jS F Y";
  } elseif (
$bbuserinfo[dateformat]=="11") {
    
$dateformat "l, jS F Y";
  } else {
    
$dateformat "$dateformat";
  }
}

// change to right time format
if ($bbuserinfo[timeformat]!="-1") {
  if (
$bbuserinfo[timeformat]=="0") {
    
$timeformat "h:i a";
  } elseif (
$bbuserinfo[timeformat]=="1") {
    
$timeformat "h:i:s a";
  } elseif (
$bbuserinfo[timeformat]=="2") {
    
$timeformat "h:i A";
  } elseif (
$bbuserinfo[timeformat]=="3") {
    
$timeformat "h:i:s A";
  } elseif (
$bbuserinfo[timeformat]=="4") {
    
$timeformat "H:i";
  } elseif (
$bbuserinfo[timeformat]=="5") {
    
$timeformat "H:i:s";
  } else {
    
$timeformat "$timeformat";
  }

right after
كود PHP:
// ###################### Referrer Stuff ######################### 
That's it.
I know it might look long, but it's really very very easy to install.
If you have any troubles with that block I told you about, ask for help here.

Feedback please!






__________________
سبحانك اللهم وبحمدك أشهد أن لا إله إلا أنت أستغفرك وأتوب إليك
ابومنار غير متواجد حالياً   قديم 13-04-2003, 05:29 AM
عضو فعال
تاريخ التسجيل: Nov 2002-
#7 (permalink)  

شكراً






__________________
البريد
almuslim@gmail.com
الماسنجر
muslem@php.net
Mr.Muslem غير متواجد حالياً   قديم 13-04-2003, 06:11 AM
موضوع مغلق


 

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

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

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



الساعة الآن: 12:01 AM بتوقيت المملكة العربية السعودية