| 
|  تسجيل دخول |  
|  |  
 |  |  |  |  | 
|  ملاحظة |  
| الموقع متاح للإطلاع والقراءة فقط، المشاركة والمواضيع الجديدة غير متاحة حالياً لحين تطوير الموقع. |  |  |  |  |  | 
 
 
 |  | 
 
 
 
الموقع متاح للإطلاع والقراءة فقط، المشاركة والمواضيع الجديدة غير متاحة حالياً لحين تطوير الموقع.
|  |  
 
 
	
		| تطويرالمواقع تبادل خبرات ، سكربتات ، تصاميم ،استفسارات |  
 
	
		|    |  |  
	
	
		
	
		
|  |  |  |  | 
	| 
			
			 
			
				10-12-2005, 03:28 AM
				
			
			
			
		 |  
	| 
		
		
			
			| عضو |  | 
					تاريخ التسجيل: May 2005 
						مشاركة: 267
					 
                    
					
                    مستوى تقييم العضوية: 21      |  |  
	| 
				 مكتبة هاكات الجيل الثالث 
 بسم الله الرحمن الرحيم  
اللهم لا علم لنا الا ما علمتنا 
 
قبل البدءبالهاكات أطلب من الجميع وضع عين الاعتبار في بعض الأمور نذكر منها :  
1- عند التطبيق يجب أن تكون على نسخة من ملف (php) احتياطية يتم عليها التطبيق  
2- اجعل هناك مسافات في القوالب للتطبيق حتى لا تكون هناك مشاكل فإذا تم بشكل صحيح قارب المسافات  
3- ( مهم ) يجب أخذ نسخ احتياطية من قاعدة البيانات قبل عمل أي نسخ سواء للتطبيق أو التثبيت حتى لا تقع مشاكل  
4- نفذ المطلوب بشكل صحيح وخطوة خطوة فلا تحدث مشاكل  
5- في حال مللت من الهاك وأحببت تغييره أو حذفه يجب أن يتطابق القالب مع ملف (php ) فلو حذفت القالب فقط لسبب لك مشاكل فيجب الانتباه لذلك 
 
عند الترقية أو اضافة هاكات أو عمل صيانة للمنتديات يجب عمل نسخ احتياطية لقاعدة البيانات ( كاملة البيانات ) كل بعد اسبوع لأجل ما يكون هناك أي مشاكل بعدين .أو حتى بعض ضعاف النفوس واللي مايخافون من الله ما يحاولون يسوون شيء . إليكم هذه الطريقة :  
بالصور : 
1/ النسخ الإحتياطي لقاعدة البيانات ( من لوحة التحكم ) اختار : 
   
2/ قواعد البيانات التي ترغب في أخذ نسخة منها ثم اختار ( اذهب ) واحفظها مع استخدام CD لحفظ القاعدة فيما لو ضرب الجهاز ثم اذهب إلى : 
   
3/ حفظ البيانات إلى ملف على الخادم واكتب داخل المربع ( بعد نسخ هذا.. ولصقه مكان النقط ) واكتب مكان النقط اسم موقعك فقط بدون (www.com ) 
 
	كود: /home/......../public_html/vb/admincp/forumbackup-02-01-2005.sql و بعدها قم بعمل حفظ 
 
وتأكد من الأدمن إنها فيه  
vb/admincp/forumbackup-02-01-2005.sql أقصد هذا 
 
و ان شاء الله موفقين و اي استفسار او طلب أهلا بكم 
 
 
 
 
 
			
			
			
			
			
			
			
			
            
            
                
           	
			
			
		 |  |  |  |  |  | 
 
	
		
	
		
|  |  |  |  | 
	| 
			
			 
			
				10-12-2005, 03:29 AM
				
			
			
			
		 |  
	| 
		
		
			
			| عضو |  | 
					تاريخ التسجيل: May 2005 
						مشاركة: 267
					 
                    
					
                    مستوى تقييم العضوية: 21      |  |  
	| 
				  
 هاك اخر زيارة (بالتاريخ والوقت) 
افتح ملف : includes/functions_showthread.php 
بحث عن/
 
	كود: $post['joindate'] = vbdate($vboptions['registereddateformat'], $post['joindate']); اضف بعده /
 
	كود: $post['lso_date'] = vbdate($vboptions['dateformat'], $post['lastactivity'], true);
$post['lso_time'] = vbdate($vboptions['timeformat'], $post['lastactivity'], false افتح تمبلت postbit أو postbit_legacy/
 
	كود: <input type="text" name="lastactivity" size="24" dir="rtl" value="اخر زيارة : $post[lso_date]" style="border-style:solid; border-width:1px; font-family:MS Sans Serif; font-size:10px; vertical-align:middle; letter-spacing:0;; padding-left:4px; padding-right:4px; padding-top:1px; padding-bottom:1px; background-color:#FCEBFF; color:#6C2A78"><br>
<input type="text" name="lastactivity" size="24" dir="rtl" value="بالساعة : $post[lso_time]" style="border-style:solid; border-width:1px; font-family:MS Sans Serif; font-size:10px; vertical-align:middle; letter-spacing:0;; padding-left:4px; padding-right:4px; padding-top:1px; padding-bottom:1px; background-color:#FCEBFF; color:#6C2A78"><br> و بالله التوفيق
 
 
 
 
 
			
			
			
			
			
			
			
			
            
            
                
           	
			
			
		 |  |  |  |  |  | 
 
	
		
	
		
|  |  |  |  | 
	| 
			
			 
			
				10-12-2005, 03:30 AM
				
			
			
			
		 |  
	| 
		
		
			
			| عضو |  | 
					تاريخ التسجيل: May 2005 
						مشاركة: 267
					 
                    
					
                    مستوى تقييم العضوية: 21      |  |  
	| 
				  
 هاك الاعضاء الذين تواجدوا اليوم في المنتدى 
فتح ملف/ index.php 
بحث عن/
 
	كود PHP: 
		
			
// ### ALL DONE! SPIT OUT THE HTML AND LET'S GET OUTA HERE... ### 
 اضف فوقه / 
 
	كود PHP: 
		
			
// ### TODAY ONLINE USERS BY ANIMEWEBBY ###########################################
$todayactiveusers = '';
 $todaystarttime = mktime(0, 0, 0, date('m'), date('d'), date('Y'));
 
 $todaynumbervisible = 0;
 $todaynumberregistered = 0;
 
 $todayforumusers = $DB_site->query("SELECT
 user.userid, user.username, (user.options & $_USEROPTIONS[invisible]) AS invisible, user.usergroupid, user.lastactivity,
 IF(displaygroupid=0, user.usergroupid, user.displaygroupid) AS displaygroupid
 FROM " . TABLE_PREFIX . "user
 WHERE user.lastactivity >= $todaystarttime
 ORDER BY " . iif($permissions['genericpermissions'] & CANSEEHIDDEN, 'invisible ASC, ') . "username ASC, lastactivity DESC
 ");
 
 if ($bbuserinfo['userid'])
 {
 // fakes the user being online for an initial page view of index.php
 $bbuserinfo['joingroupid'] = iif($bbuserinfo['displaygroupid'], $bbuserinfo['displaygroupid'], $bbuserinfo['usergroupid']);
 $todayuserinfos = array
 (
 $bbuserinfo['userid'] => array
 (
 'userid' => $bbuserinfo['userid'],
 'username' => $bbuserinfo['username'],
 'invisible' => $bbuserinfo['invisible'],
 'lastactivity' => TIMENOW,
 'musername' => fetch_musername($bbuserinfo, 'joingroupid')
 )
 );
 $todaynumberregistered = 1;
 $todaynumbervisible = 1;
 fetch_online_status($todayuserinfos[$bbuserinfo['userid']]);
 $todayloggedin = $todayuserinfos[$bbuserinfo['userid']];
 eval('$todayactiveusers = ", ' . fetch_template('forumhome_todayloggedinuser') . '";');
 }
 else
 {
 $todayuserinfos = array();
 }
 
 while ($todayloggedin = $DB_site->fetch_array($todayforumusers))
 {
 $todayuserid = $todayloggedin[userid];
 if (!$todayuserid)
 {    // Guest
 $todaynumberguest++;
 }
 else if (empty($todayuserinfos["$todayuserid"]['lastactivity']) OR ($todayuserinfos["$todayuserid"]['lastactivity'] < $todayloggedin['lastactivity']))
 {
 $todayuserinfos["$todayuserid"] = $todayloggedin;
 $todaynumberregistered++;
 $todayloggedin['musername'] = fetch_musername($todayloggedin);
 
 if ($todayloggedin['invisible'])
 {
 if (($permissions['genericpermissions'] & CANSEEHIDDEN) OR $todayloggedin['userid'] == $bbuserinfo['userid'])
 {
 // user is online and invisible BUT bbuser can see them
 $todayloggedin['invisiblemark'] = '*';
 $todaynumbervisible++;
 eval('$todayactiveusers .= ", ' . fetch_template('forumhome_todayloggedinuser') . '";');
 }
 }
 else
 {
 // user is online and visible
 $todaynumbervisible++;
 eval('$todayactiveusers .= ", ' . fetch_template('forumhome_todayloggedinuser') . '";');
 }
 
 //if (fetch_online_status($todayloggedin))
 //{
 //    $todaynumbervisible++;
 //    eval('$todayactiveusers .= ", ' . fetch_template('forumhome_todayloggedinuser') . '";');
 //}
 }
 }
 
 // memory saving
 unset($todayuserinfos, $todayloggedin);
 
 $todayactiveusers = substr($todayactiveusers , 2); // get rid of initial comma
 
 $DB_site->free_result($todayloggedins);
 
 $todaynumberinvisible = $todaynumberregistered - $todaynumbervisible;
 $todaytotalonline = $todaynumberregistered - $todaynumberinvisible;
 
 // ### MAX LOGGEDIN USERS ################################
 $todaymaxusers = unserialize($datastore['todaymaxonline']);
 if (intval($todaymaxusers['todaymaxonline']) <= $todaynumberregistered)
 {
 $todaymaxusers['todaymaxonline'] = $todaynumberregistered;
 $todaymaxusers['todaymaxonlinedate'] = TIMENOW;
 $DB_site->query("REPLACE INTO " . TABLE_PREFIX . "datastore (title, data) VALUES ('todaymaxonline', '" . addslashes(serialize($todaymaxusers)) . "')");
 }
 
 $todayrecordusers = $todaymaxusers['todaymaxonline'];
 $todayrecorddate = vbdate($vboptions['dateformat'], $todaymaxusers['todaymaxonlinedate'], 1);
 
 أضف تمبلت جديد بأسم / forumhome_todayloggedinuser
 
	كود PHP: 
		
			
<a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$userid">
<input style="font-size: 10px; vertical-align: middle; color: #3858AD; font-family: MS Sans Serif; letter-spacing: 0px; text-align: center; border-style: solid; border-width: 1px; padding-left: 0px; padding-right: 2px; padding-top: 0px; padding-bottom: 0px; background-color: #FFFFFF" size="15" value="$todayloggedin[musername]" name="oline"></a>$invisibleuser
 
 أفتح تمبلت /FORUMHOME 
بحث عن/
 
	كود PHP: 
		
			
<!-- end logged-in users -->
</if>
 
 أضف تحته التالي /
 
	كود PHP: 
		
			
<!-- today logged-in users -->
<tbody>
 <tr>
 <td class="thead" colspan="2">
 <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_todayactiveusers')"><img id="collapseimg_forumhome_todayactiveusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_todayactiveusers].gif" alt="" border="0" /></a>
 عدد الاعضاء الذي تواجدوا اليوم في المنتدى  : $todaytotalonline
 </td>
 </tr>
 </tbody>
 <tbody id="collapseobj_forumhome_todayactiveusers" style="$vbcollapse[collapseobj_forumhome_todayactiveusers]">
 <tr>
 <td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_link.gif" border="0" /></td>
 <td class="alt1" width="100%">
 <div class="smallfont">
 <div>$todayactiveusers</div>
 </div>
 </td>
 </tr>
 </tbody>
 <!-- end today logged-in users-->
 
 
 
 
 
 
			
			
			
			
			
			
			
			
            
            
                
           	
			
			
		 |  |  |  |  |  | 
 
	
		
	
		
|  |  |  |  | 
	| 
			
			 
			
				10-12-2005, 03:31 AM
				
			
			
			
		 |  
	| 
		
		
			
			| عضو |  | 
					تاريخ التسجيل: May 2005 
						مشاركة: 267
					 
                    
					
                    مستوى تقييم العضوية: 21      |  |  
	| 
 منع التواقيع والصور الرمزية في القسم الاسلامي
 او اي قسم تريد حجب تواقيعه..
 
 الشرح مرفق في الهاك
 
 
 
 
 
 
			
			
			
			
			
			
			
			
            
            
                
           	
			
			
		 |  |  |  |  |  | 
 
	
		
	
		
|  |  |  |  | 
	| 
			
			 
			
				10-12-2005, 03:32 AM
				
			
			
			
		 |  
	| 
		
		
			
			| عضو |  | 
					تاريخ التسجيل: May 2005 
						مشاركة: 267
					 
                    
					
                    مستوى تقييم العضوية: 21      |  |  
	| 
 اليكم هاك اخر 10 مواضيع بالمنتدي 
 مقفول الثغرة
 
 الهاك بالمرفق
 
 
 
 
 
 
			
			
			
			
			
			
			
			
            
            
                
           	
			
			
		 |  |  |  |  |  | 
 
	
		
	
		
|  |  |  |  | 
	| 
			
			 
			
				10-12-2005, 03:33 AM
				
			
			
			
		 |  
	| 
		
		
			
			| عضو |  | 
					تاريخ التسجيل: May 2005 
						مشاركة: 267
					 
                    
					
                    مستوى تقييم العضوية: 21      |  |  
	| 
				  
 هاك الإحصائيات المنتدي 
افتح ملف/ index.php 
ابحث عن /
 
	كود PHP: 
		
			
'forumhome_subforumseparator_post' 
 استبدله بهذا /
 
	كود PHP: 
		
			
'forumhome_subforumseparator_post', 
'forumhome_stats_poster',
 'forumhome_stats_member',
 'forumhome_stats_thread',
 
 ابحث عن /
 
	كود PHP: 
		
			
// ### ALL DONE! SPIT OUT THE HTML AND LET'S GET OUTA HERE... ### 
 أضف فوقه /
 
	كود PHP: 
		
			
// ### TOP 5 STATS BY ANIMEWEBBY ########################################### 
$displayrecords = "5"; // how many records should we show?
 $excludedforums = "13"; // forums to be excluded from latest threads. Format "0,5,7"
 $threadchars = "30"; // number of characters in thread title before '...' is added
 
 $getstats_posters = $DB_site->query("SELECT userid, username, posts FROM " . TABLE_PREFIX . "user ORDER BY posts DESC LIMIT 0, $displayrecords");
 while ($getstats_poster = $DB_site->fetch_array($getstats_posters))
 {
 eval('$stats_posters .= "' . fetch_template('forumhome_stats_poster') . '";');
 }
 
 $getstats_members = $DB_site->query("SELECT userid, username, posts, joindate FROM " . TABLE_PREFIX . "user ORDER BY joindate DESC LIMIT 0, $displayrecords");
 while ($getstats_member = $DB_site->fetch_array($getstats_members))
 {
 eval('$stats_members .= "' . fetch_template('forumhome_stats_member') . '";');
 }
 
 // filter out deletion notices if can't be seen
 $forumperms = fetch_permissions($forumid);
 if (!($permissions['forumpermissions'] & CANSEEDELNOTICE))
 {
 $delquery = ", NOT ISNULL(deletionlog.primaryid) AS isdeleted, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason";
 $delthreadlimit = "AND deletionlog.primaryid IS NULL";
 $deljoin = "LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')";
 }
 else
 {
 $delquery = ", NOT ISNULL(deletionlog.primaryid) AS isdeleted, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason";
 $delthreadlimit = "";
 $deljoin = "LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')";
 }
 
 $getstats_threads = $DB_site->query("
 SELECT thread.threadid, thread.title, thread.lastpost, thread.forumid, thread.replycount, thread.lastposter, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, thread.visible, user.username, user.userid
 $delquery
 FROM " . TABLE_PREFIX . "thread AS thread
 LEFT JOIN  " . TABLE_PREFIX . "user AS user ON (user.username = thread.lastposter)
 $deljoin
 WHERE thread.forumid NOT IN ($excludedforums)
 $delthreadlimit
 ORDER BY thread.lastpost DESC LIMIT 0, $displayrecords");
 
 while ($getstats_thread = $DB_site->fetch_array($getstats_threads))
 {
 $getstats_thread[title] = unhtmlspecialchars($getstats_thread[title]);
 if (strlen($getstats_thread[title]) > $threadchars)
 {
 $getstats_thread[titletrimmed] = substr($getstats_thread[title], 0, strrpos(substr($getstats_thread[title], 0, $threadchars), ' ')) . '...';
 }
 else
 {
 $getstats_thread[titletrimmed] = $getstats_thread[title];
 }
 if ($getstats_thread[lastpost] > $bbuserinfo[lastvisit])
 {
 $getstats_thread[newpost] = true;
 }
 if ($getstats_thread[isdeleted])
 {
 $getstats_thread[isdeleted] = true;
 }
 eval('$stats_threads .= "' . fetch_template('forumhome_stats_thread') . '";');
 }
 
 
اضف تمبلت جديد باسم / forumhome_stats_member
 
	كود PHP: 
		
			
<tr> 
<td class="smallfont" width="100%"><b><a href="member.php?u=$getstats_member[userid]">$getstats_member[username]</a></b></td>
 <td class="smallfont" align="right"><b>$getstats_member[posts]</b></td>
 </tr>
 
 اضف تمبلت جديد باسم/ forumhome_stats_poster
 
	كود PHP: 
		
			
<tr> 
<td width="100%"><b><a href="member.php?u=$getstats_poster[userid]">$getstats_poster[username]</a></b></td>
 <td class="smallfont" align="right"><b>$getstats_poster[posts]</b></td>
 </tr>
 
 اضف تمبلت جديد باسم/ forumhome_stats_thread
 
	كود PHP: 
		
			
<tr> 
<td class="smallfont"><strong>[<i><if condition="$getstats_thread[newpost]">جديد<else />قديم</if></i>] <a href="showthread.php?$session[sessionurl]goto=newpost&t=$getstats_thread[threadid]" title="<phrase 1="$getstats_thread[title]">$vbphrase[go_first_unread_in_thread_x]</phrase>">$getstats_thread[titletrimmed]</a></strong></td>
 <if condition="$getstats_thread[isdeleted]">
 <td  class="smallfont"colspan=3" align="left"><phrase 1="member.php?$session[sessionurl]u=$getstats_thread[del_userid]" 2="$getstats_thread[del_username]">$vbphrase[thread_deleted_by_x]</phrase></td>
 <else />
 <td class="smallfont"><strong><a href="member.php?$session[sessionurl]u=$getstats_thread[userid]">$getstats_thread[lastposter]</a></strong></td>
 <td class="smallfont" align="right"><strong>$getstats_thread[views]</strong></td>
 <td class="smallfont" align="right"><strong>$getstats_thread[replycount]</strong></td>
 </if>
 </tr>
 
 افتح تمبلت/ FORUMHOME 
 
	كود PHP: 
		
			
<!-- end whats going on box --> 
 أضف فوقه /
 
	كود PHP: 
		
			
<!-- top statistics box --> 
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
 <thead>
 <tr>
 <td class="tcat" colspan="3">
 <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_statistics')"><img id="collapseimg_forumhome_statistics" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_statistics].gif" alt="" border="0" /></a>
 <span lang="ar-sa">احصائيات المنتدى</span></td>
 </tr>
 </thead>
 <tbody id="collapseobj_forumhome_statistics" style="$vbcollapse[collapseobj_forumhome_statistics]">
 <tr>
 <td class="thead" width="23%" align="center" nowrap><span lang="ar-sa">
 اكثر الاعضاء نشاطاَ</span></td>
 <td class="thead" width="22%" align="center" nowrap><span lang="ar-sa">
 الاعضاء الجدد</span></td>
 <td class="thead" width="55%" nowrap align="center"><span lang="ar-sa">
 المشاركات الاخيرة</span></td>
 </tr>
 <tr>
 <td class="alt2" width="23%" valign="top">
 <table>
 <tr>
 <td class="smallfont" width="100%"><span lang="ar-sa">الاسم</span></td>
 <td class="smallfont" align="right" nowrap><span lang="ar-sa">
 المشاركات</span></td>
 </tr>
 $stats_posters
 </table>
 </td>
 <td class="alt1" width="22%" valign="top">
 <table>
 <tr>
 <td class="smallfont" width="100%" nowrap><span lang="ar-sa">
 الاسم</span></td>
 <td class="smallfont" align="right" nowrap><span lang="ar-sa">
 المشاركات</span></td>
 </tr>
 $stats_members
 </table>
 </td>
 <td class="alt2" width="55%" valign="top">
 <table>
 <tr>
 <td class="smallfont" width="70%" nowrap><span lang="ar-sa">
 الموضوع</span></td>
 <td class="smallfont" width="30%" nowrap><span lang="ar-sa">
 المشاركات الاخيرة</span></td>
 <td class="smallfont" align="right" nowrap><span lang="ar-sa">
 المشاهدات</span></td>
 <td class="smallfont" align="right" nowrap><span lang="ar-sa">
 المشاركات</span></td>
 
 
 </tr>
 $stats_threads
 </table>
 </td>
 </tr>
 </tbody>
 </table>
 <br />
 <br />
 <!-- end top statistics box -->
 
 
 
 
 
 
			
			
			
			
			
			
			
			
            
            
                
           	
			
			
		 |  |  |  |  |  | 
 
	
		
	
		
|  |  |  |  | 
	| 
			
			 
			
				10-12-2005, 03:34 AM
				
			
			
			
		 |  
	| 
		
		
			
			| عضو |  | 
					تاريخ التسجيل: May 2005 
						مشاركة: 267
					 
                    
					
                    مستوى تقييم العضوية: 21      |  |  
	| 
				  
 هاك تصغير الصور تلقائياً 
افتح ملف / functions_bbcodeparse.php  
ابحث عن/
 
	كود PHP: 
		
			
// ********************* REMOVE HTML CODES *************************** 
if (!$dohtml)
 {
 /*static $html_find = array('<', '>', '<', '>');
 static $html_replace = array('&lt;', '&gt;', '<','>');
 
 $bbcode = str_replace($html_find, $html_replace, $bbcode);*/
 $bbcode = htmlspecialchars_uni($bbcode);
 $html_allowed = false;
 } // end html
 
 أضف فوقه /
 
	كود PHP: 
		
			
// أضيف بواسطـة المحترفين العرب ، لاستبدال الصور الكبيرة 
 // قم بضبط  max_imgsize إلى المقـاس الذي ترغــب به .
 global $max_imgsize;
 $max_imgsize=560;
 
 
 if (strstr(strtolower($bbcode),'<img') AND $dohtml) {
 $tagstartcounter=0;
 do {
 $bbcodelength=strlen($bbcode);
 // pull tag from bbcode
 $tagopen=(strpos(strtolower($bbcode),'<img',$tagstartcounter));
 $tagclose=(strpos($bbcode,'>',$tagopen));
 $bbtag=substr($bbcode,$tagopen,($tagclose-$tagopen+1));
 $bbtag = str_replace('\'','"',$bbtag);
 
 
 $linkopen=(strpos(strtolower($bbtag),'<img'));
 $linkopen2=(strpos(strtolower($bbtag),'"',$linkopen));
 $linkclose=(strpos($bbtag,'"',$linkopen2+1));
 $link=substr($bbtag,$linkopen2+1,($linkclose-$linkopen2-1));
 
 $link = str_replace('  ', '', $link);
 
 
 $image= ($link);
 if (@fclose(@fopen("$image", "r"))) {
 
 $img_width = getimagesize($link);
 if ($img_width[0] > $max_imgsize) {
 $bbtag = '<table><tr><td align="center"><a href="' . $link . '"><img src="'
 . $link . '" width="'.$max_imgsize.'" border="0"'.substr($bbtag,$linkclose+1,strlen($bbtag)-$linkclose+1).'<br>تم تصغـير الصورة تلقـائيـا ، اضغط هنا لمشاهدة الصورة بحجمها الطـبيعي .</a></td></tr></table>';
 }
 }
 else {
 
 $bbtag='<table border="1" cellpadding="0"><tr><td><FONT color="#FF0000">عفـواً .. الصـورة غير موجودة</font></td></tr></table>';
 }
 
 $bbcode=substr($bbcode,0,$tagopen).$bbtag.substr($  bbcode,$tagclose+1,$bbcodelength-$tagclose);
 
 
 $tagopen=$tagopen+(strpos(strtolower($bbtag),'<img'));
 
 
 $tagstartcounter=(strpos($bbcode,'>',$tagopen));
 } while (strpos(strtolower($bbcode),'<img',$tagstartcounter));
 
 
 }
 
 //
 
 ابحث عن/
 
	كود PHP: 
		
			
return '<img src="' .  $link . '" border="0" alt="" />'; 
 استبدلـه /
 
	كود PHP: 
		
			
// return '<img src="' .  $link . '" border="0" alt="" />'; 
 global $max_imgsize;
 
 $image= ($link);
 
 if (@fclose(@fopen("$image", "r"))) {
 $img_width = getimagesize($link);
 if ($img_width[0] > $max_imgsize) {
 $biglink = '<table><tr><td align="center"><a href="' . $link . '" ><img src="'
 . $link . '" width="'.$max_imgsize.'" border="0" alt=""><br>تم تصغـير الصورة تلقـائيـا ، اضغط هنا لمشاهدة الصورة بحجمها الطـبيعي .</a></td></tr></table>';
 return $biglink;
 }
 else {
 return '<img src="' .  $link . '" border="0" alt="" />';
 }
 }
 else {
 return '<table border="1" cellpadding="2"><tr><td><FONT color="#FF0000">عفـواً .. الصـورة غير موجودة</font></td></tr></table>';
 }
 
 //
 
 
 
 
 
 
			
			
			
			
			
			
			
			
            
            
                
           	
			
			
		 |  |  |  |  |  | 
 
	
		
	
		
|  |  |  |  | 
	| 
			
			 
			
				10-12-2005, 03:35 AM
				
			
			
			
		 |  
	| 
		
		
			
			| عضو |  | 
					تاريخ التسجيل: May 2005 
						مشاركة: 267
					 
                    
					
                    مستوى تقييم العضوية: 21      |  |  
	| 
 هاك أظهار عدد المواضيع وعدد الردود 
افتح ملف /includes/functions_showthread 
ابحث عن/
 
	كود PHP: 
		
			
function construct_postbit($post, $maintemplatename = 'postbit', $alternate = '')
{
 
 أضف فوقه /
 
	كود PHP: 
		
			
global $DB_site; 
 ابحث عن/
 
	كود PHP: 
		
			
$show['buddy'] = false;
}
 
 أضف فوقه /
 
	كود PHP: 
		
			
$usertherd = $DB_site->query_first("SELECT COUNT(threadid) AS total FROM thread WHERE postuserid=$post[userid] ");
$usertherdcoun = $usertherd[total];
 $userpostdcoun = $post[posts] - $usertherdcoun ;
 
 افتح تمبلت/postbit 
ابحث عن/
 
	كود PHP: 
		
			
<tr> 
<td align="right"><span class="smallfont">$vbphrase[posts] :</span></td>
 <td align="right"><span class="smallfont">$post[posts]</span></td>
 </tr>
 
 أضف فوقه /
 
	كود PHP: 
		
			
<tr> 
<td align="right"><span class="smallfont">$vbphrase[threads] :</span></td>
 <td align="right">$usertherdcoun</td>
 </tr>
 <tr>
 <td align="right"><span class="smallfont">$vbphrase[replies] :</span></td>
 <td align="right"><span class="smallfont">$userpostdcoun</span></td>
 </tr>
 
 
 
 
 
 
			
			
			
			
			
			
			
			
            
            
                
           	
			
			
		 |  |  |  |  |  | 
 
	
		
	
		
|  |  |  |  | 
	| 
			
			 
			
				10-12-2005, 03:36 AM
				
			
			
			
		 |  
	| 
		
		
			
			| عضو |  | 
					تاريخ التسجيل: May 2005 
						مشاركة: 267
					 
                    
					
                    مستوى تقييم العضوية: 21      |  |  
	| 
				  
 التعديل السريع للموضوع 
افتح ملف/ includes/functions_showthread.php 
ابحث عن/
 
	كود PHP: 
		
			
            $show['reputationlink'] = iif($vboptions['reputationenable'] AND $bbuserinfo['userid'] AND $post['userid'] AND !($usergroupcache["$post[usergroupid]"]['genericoptions'] & ISBANNEDGROUP), true, false);
break;
 }
 
 أضف فوقه /
 
	كود PHP: 
		
			
// Quick Edit hack
if ($post['userid'] == $bbuserinfo['userid'])
 {
 $edittext = htmlspecialchars_uni($post['pagetext']);
 eval('$quickedit = "' . fetch_template('showthread_quickedit') . '";');
 }
 else
 {
 $edittext="";
 $quickedit="";
 }
 // End Quick Edit hack
 
 افتح ملف/ showthread.php 
ابحث عن/
 
	كود PHP: 
		
			
'showthread_quickreply', 
 أضف فوقه /
 
	كود PHP: 
		
			
'showthread_quickedit', 
 افتح تمبلت/ showthread 
ابحث عن/
 أضف فوقه /
 
	كود PHP: 
		
			
<script language="JavaScript"> 
function toggleT(_w,_h) {
 if(document.getElementById) { //This for Mozilla
 if (_h=='s') eval("document.getElementById(_w).style.visibility='visible';");
 if (_h=='h') eval("document.getElementById(_w).style.visibility='hidden';");
 }
 if (document.all) { // is IE
 if (_h=='s') eval("document.all."+_w+".style.visibility='visible';");
 if (_h=='h') eval("document.all."+_w+".style.visibility='hidden';");
 }
 else { // is NS?
 if (_h=='s') eval("document.layers['"+_w+"'].visibility='show';");
 if (_h=='h') eval("document.layers['"+_w+"'].visibility='hide';");
 }
 }
 </script>
 
 افتح تمبلت/ postbit أو postbit_legacy 
ابحث عن/
 
	كود PHP: 
		
			
<!-- / status icon and date --> 
 أضف فوقه /
 
	كود PHP: 
		
			
<if condition="$post['pmid']==""">
$quickedit
 </if>
 
 اضف تمبلت جديد باسم/ showthread_quickedit
 
	كود PHP: 
		
			
<form enctype="multipart/form-data" name="vbulletinform" style="display:inline;"  action="editpost.php" method="post">
<a href="javascript:return false;" onClick="toggleT('e$post[postid]','s');return false;"><img src="$stylevar[imgdir_button]/quickedit_icon.gif" alt="تعديل سريع" border="0" /></a>
 <div id="e$post[postid]" style="VISIBILITY:hidden;  z-index:1; position:absolute;">
 <input type="hidden" name="s" value="$session[sessionhash]" />
 <input type="hidden" name="do" value="updatepost" />
 <input type="hidden" name="p" value="$post[postid]" />
 <input type="hidden" name="posthash" value="$posthash" />
 <input type="hidden" name="poststarttime" value="$poststarttime" />
 
 <table cellpadding="0" cellspacing="0" border="0" bgcolor="#000000" width="67" align="center"><tr><td>
 <table cellpadding="4" cellspacing="1" border="0" width="100%">
 <tr>
 <td class="tcat" colspan="2"><b>التعديل السريع للمشاركة</b></td>
 </tr>
 <tr>
 <td class="$bgclass"nowrap><b>العنوان:</b></td>
 <td class="$bgclass"><input type="text" class="bginput" name="title" value="$post[title]" size="63" maxlength="85" tabindex="1"></td>
 </tr>
 <tr>
 <td class="$bgclass" valign="top" nowrap><b>الموضوع:</b>
 <p>
 </td>
 <td class="$bgclass">
 <table cellpadding="0" cellspacing="0" border="0">
 <tr valign="top">
 <td><textarea name="message" class="bginput" style="width:455px; height:85px;" wrap="virtual" tabindex="1">$edittext</textarea><br>
 
 <input type="submit" class="button" name="sbutton" accesskey="s" value="احفظ التعديلات" tabindex="3" />
 <input type="reset" class="button" value="اعد الرساله القديمه" tabindex="4">
 <input type="button" class="button" value="تراجع" onClick="toggleT('e$post[postid]','h')">
 
 <if condition="$bbuserinfo['signature']">                            <label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="5" checked="checked" />Sig</label>
 </if>
 
 </td>
 </tr>
 </table>
 </td>
 </tr>
 </table>
 </td></tr></table>
 <br />
 </div>
 </form>
 
 
 
 
 
 
			
			
			
			
			
			
			
			
            
            
                
           	
			
			
		 |  |  |  |  |  | 
 
	
		
	
		
|  |  |  |  | 
	| 
			
			 
			
				10-12-2005, 03:37 AM
				
			
			
			
		 |  
	| 
		
		
			
			| عضو |  | 
					تاريخ التسجيل: May 2005 
						مشاركة: 267
					 
                    
					
                    مستوى تقييم العضوية: 21      |  |  
	| 
				  
 هاك الأعلانات يتم وضعه في المكان الذي ترغب به في تمبلت HEADER 
	كود PHP: 
		
			
<!-- / بداية هاك الاعلان -->
 
 </if>
 <table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" id="table5">
 <thead>
 <tr>
 <td class="thead">
 <p align="center">
 <a style="float:left" href="#top" onclick="return toggle_collapse('omanidream_ehdaa')"><img id="collapseimg_omanidream_ehdaa" src="islamic-noor/buttons/collapse_thead.gif" alt="" border="0" /></a><span lang="ar-sa"><marquee direction="right" width="523">هنـــــا يتم عرض الاعلانات اذا كنت ترغب في نشر اعلانك راسل المشرف العام
 </marquee></span></td>
 </tr>
 </thead>
 <tbody id="collapseobj_omanidream_ehdaa" style="">
 <tr>
 <td class="alt1" align="center" valign="top">
 
 <div align="left" class="smallfont">
 <table border="0" width="100%" id="table6" cellspacing="4">
 <tr>
 <td>
 <p align="center">
 <a href="images/banner3.gif">
 <img id="collapseimg_omanidream_ehdaa2" src="images/banner3.gif" alt="مساحة اعلانية " border="0" width="120" height="60" /></a></td>
 <td>
 <p align="center">
 <a href="images/banner3.gif">
 <img id="collapseimg_omanidream_ehdaa1" src="images/banner3.gif" alt="مساحة اعلانية " border="0" width="120" height="60" /></a></td>
 <td>
 <p align="center">
 <a href="http://ضع رابط الموقع المعلن هنا">
 <img id="collapseimg_omanidream_ehdaa4" src="images/banner3.gif" alt="مساحة اعلانية " border="0" width="120" height="60" /></a></td>
 <td>
 <p align="center">
 <a href="images/banner3.gif">
 <img id="collapseimg_omanidream_ehdaa3" src="images/banner3.gif" alt="مساحة اعلانية  " border="0" width="120" height="60" /></a></td>
 </tr>
 </table>
 </div>
 </td>
 </tr>
 </tbody>
 </table>
 
 
 
 
 
 
			
			
			
			
			
			
			
			
            
            
                
           	
			
			
		 |  |  |  |  |  | 
 
	
		
	
		
|  |  |  |  | 
	| 
			
			 
			
				10-12-2005, 03:38 AM
				
			
			
			
		 |  
	| 
		
		
			
			| عضو |  | 
					تاريخ التسجيل: May 2005 
						مشاركة: 267
					 
                    
					
                    مستوى تقييم العضوية: 21      |  |  
	| 
				  
 هاك إحصائيات كل قسم  
افتح ملف/ forumdisplay.php 
ابحث عن/
 أستبدله/
 
	كود PHP: 
		
			
    'forumstatscache',
'mailqueue'
 
 ابحث عن/
 أستبدله/
 
	كود PHP: 
		
			
'FORUMDISPLAY',
'forumdisplay_quickstats',
 
 ابحث عن/
 
	كود PHP: 
		
			
while ($thread = $DB_site->fetch_array($threads)) 
 في أعلاه ضع هذا /
 
	كود PHP: 
		
			
////////////////////////////// BOOFO'S FORUM QUICK STATS CACHE HACK //////////////////////////////
$forumstatscache = unserialize($datastore['forumstatscache']);
 $forumstats = $forumstatscache[$forumid];
 
 $updatetime = $vboptions['forumcachetime'];
 $statsupdate = '';
 
 if ($forumstats['lastupdate'] == 0 OR ($forumstats['lastupdate'] + ($updatetime * 60)) < TIMENOW)
 {
 $numcount=$DB_site->query_first("
 SELECT COUNT(threadid) AS threads, SUM(replycount) AS replies, SUM(views) AS views
 FROM " . TABLE_PREFIX . "thread
 WHERE forumid=$forumid
 ");
 
 $forumid = intval($forumid);
 $threadavg = $DB_site->query_first("
 SELECT AVG(votetotal / votenum) AS avgrating
 FROM " . TABLE_PREFIX . "thread
 WHERE forumid=$forumid
 AND votenum <> 0
 ");
 
 $topthreads = $DB_site->query_first("
 SELECT COUNT(threadid) as threads, postusername, postuserid
 FROM " . TABLE_PREFIX . "thread
 WHERE forumid=$forumid
 GROUP BY postuserid
 ORDER BY threads DESC, dateline ASC
 LIMIT 1
 ");
 
 $topposter = $DB_site->query_first("
 SELECT user.userid, user.username, COUNT(post.postid) AS postcount
 FROM " . TABLE_PREFIX . "post
 LEFT JOIN " . TABLE_PREFIX . "thread ON (post.threadid = thread.threadid)
 LEFT JOIN " . TABLE_PREFIX . "user ON (post.userid = user.userid)
 WHERE thread.forumid=$forumid
 GROUP BY post.userid
 ORDER BY postcount DESC
 LIMIT 1
 ");
 
 $attachs=$DB_site->query_first("
 SELECT forum.title AS forum, COUNT(attachment.attachmentid) AS count, SUM(IF(thumbnail = '', 0, 1)) AS thumbs, SUM(IF(thumbnail = '', 1, 0)) AS files, SUM(attachment.filesize) AS bytes
 FROM " . TABLE_PREFIX . "attachment, " . TABLE_PREFIX . "post, " . TABLE_PREFIX . "thread, " . TABLE_PREFIX . "forum
 WHERE attachment.postid = post.postid
 AND post.threadid=thread.threadid
 AND forum.forumid=thread.forumid
 AND forum.forumid=$forumid
 GROUP BY thread.forumid
 ORDER BY count DESC
 ");
 
 $forumstats['numthreads'] = intval ($numcount[threads]);
 $forumstats['numreplies'] = intval ($numcount[replies]);
 $forumstats['numviews'] = intval ($numcount[views]);
 $forumstats['topthreadscount'] = intval ($topthreads[threads]);
 $forumstats['topthreadsid'] = intval ($topthreads[postuserid]);
 $forumstats['topthreadsun'] = ($topthreads[postusername]);
 $forumstats['topthreadspercent'] = round(100 * ($topthreads[threads] / $numcount[threads]), 2);
 $forumstats['toppostercount'] = intval ($topposter[postcount]);
 $forumstats['topposterid'] = intval ($topposter[userid]);
 $forumstats['topposterun'] = ($topposter[username]);
 $forumstats['topposterpercent'] = round(100 * ($topposter[postcount] / ($numcount[threads] + $numcount[replies])), 2);
 $forumstats['attachscount'] = intval ($attachs[count]);
 $forumstats['attachsbytes'] = intval ($attachs[bytes]);
 $forumstats['attachsthumbs'] = intval ($attachs[thumbs]);
 $forumstats['attachsfiles'] = intval ($attachs[files]);
 $forumstats['avgrating'] = intval (round($threadavg[avgrating]));
 $forumstats['lastupdate'] = intval (TIMENOW);
 
 $forumstatscache[$forumid] = $forumstats;
 
 $DB_site->query ("
 REPLACE INTO " . TABLE_PREFIX . "datastore
 (title, data)
 VALUES
 ('forumstatscache', '" . addslashes ( serialize ( $forumstatscache ) ) . "')
 ");
 }
 
 $forumstats['numthreads'] = vb_number_format($forumstats['numthreads']);
 $forumstats['numreplies'] = vb_number_format($forumstats['numreplies']);
 $forumstats['numviews'] = vb_number_format($forumstats['numviews']);
 $forumstats['topthreadscount'] = vb_number_format($forumstats['topthreadscount']);
 $forumstats['toppostercount'] = vb_number_format($forumstats['toppostercount']);
 $forumstats['attachscount'] = vb_number_format($forumstats['attachscount']);
 $forumstats['attachsbytes'] = vb_number_format($forumstats['attachsbytes'], 2, true);
 $forumstats['attachsthumbs'] = vb_number_format($forumstats['attachsthumbs']);
 $forumstats['attachsfiles'] = vb_number_format($forumstats['attachsfiles']);
 $forumstats['avgrating']  = vb_number_format($forumstats['avgrating']);
 if (($forumstats['topthreadspercent'] % 10) == 0)
 $forumstats['topthreadspercent'] = vb_number_format($forumstats['topthreadspercent']) . '%';
 else
 $forumstats['topthreadspercent'] = vb_number_format($forumstats['topthreadspercent'], 2) . '%';
 if (($forumstats['topposterpercent'] % 10) == 0)
 $forumstats['topposterpercent'] = vb_number_format($forumstats['topposterpercent']) . '%';
 else
 $forumstats['topposterpercent'] = vb_number_format($forumstats['topposterpercent'], 2) . '%';
 
 $getupdatetime = vbdate("$vboptions[timeformat] - F jS, Y", $forumstats['lastupdate']);
 $statsupdate = "<font color=green>Last updated at $getupdatetime</font>";
 
 $yourpost = $DB_site->query_first("
 SELECT forum.title, forum.forumid, COUNT( post.postid ) AS yourposts, SUM( IF(  thread.postuserid = $bbuserinfo[userid] AND post.dateline = thread.dateline , 1, 0 ) ) AS yourthreads
 FROM " . TABLE_PREFIX . "forum, " . TABLE_PREFIX . "thread, " . TABLE_PREFIX . "post
 WHERE forum.forumid = thread.forumid
 AND thread.threadid = post.threadid
 AND post.userid = $bbuserinfo[userid]
 AND forum.forumid = $forumid
 GROUP BY forum.forumid
 ORDER BY yourposts
 DESC LIMIT 1
 ");
 
 $yourposts = $yourpost['yourposts'];
 $yourthreads = $yourpost['yourthreads'];
 $yourreplies = $yourposts - $yourthreads;
 
 $yourposts = vb_number_format($yourposts);
 $yourthreads = vb_number_format($yourthreads);
 $yourreplies = vb_number_format($yourreplies);
 
 if ($yourposts =="1")
 {
 $yourposts = $yourposts . " post";
 }
 else
 {
 $yourposts = $yourposts . " posts";
 }
 if ($yourthreads =="1")
 {
 $yourthreads = $yourthreads . " thread";
 }
 else
 {
 $yourthreads = $yourthreads . " threads";
 }
 if ($yourreplies =="1")
 {
 $yourreplies = $yourreplies . " reply";
 }
 else
 {
 $yourreplies = $yourreplies . " replies";
 }
 
 if ($forumstats[attachsthumbs] =="1")
 {
 $forumstats[attachsthumbs] = "<strong>" . $forumstats[attachsthumbs] . "</strong> Image";
 }
 else
 {
 $forumstats[attachsthumbs] = "<strong>" . $forumstats[attachsthumbs] . "</strong> Images";
 }
 
 if ($forumstats[attachsfiles] =="1")
 {
 $forumstats[attachsfiles] = "<strong>" . $forumstats[attachsfiles] . "</strong> File";
 }
 else
 {
 $forumstats[attachsfiles] = "<strong>" . $forumstats[attachsfiles] . "</strong> Files";
 }
 
 eval('$forumdisplayquickstats = "' . fetch_template('forumdisplay_quickstats') . '";');
 ////////////////////////////// BOOFO'S FORUM QUICK STATS CACHE HACK //////////////////////////////
 
 ابحث عن/
 
	كود PHP: 
		
			
// ### BUILD FORUMS LIST ################################################# 
 في أعلاه ضع هذا /
 
	كود PHP: 
		
			
// Logician Last Post Minute Hack
if ($forumcache[$forumid]['lastpost'] AND $forumcache[$forumid]['lastpost']>0)
 {
 $lastpostdateline=(time()-$forumcache[$forumid]['lastpost'])/60;
 if ($lastpostdateline<1) {
 if (($lastpostdateline*60)<1) {$lastpostmin=" Now!";}
 elseif (($lastpostdateline*60)<2) {$lastpostmin=(int)($lastpostdateline*60)." second ago!";}
 else {$lastpostmin=(int)($lastpostdateline*60)." seconds ago!";}
 }
 elseif ($lastpostdateline<2) {$lastpostmin=(int)($lastpostdateline)." minute ago";}
 elseif ($lastpostdateline<60) {$lastpostmin=(int)($lastpostdateline)." minutes ago";}
 elseif ($lastpostdateline<(120)) {$lastpostmin=(int)($lastpostdateline/60)." hour ago";}
 elseif ($lastpostdateline<(60*24)) {$lastpostmin=(int)($lastpostdateline/60)." hours ago";}
 elseif ($lastpostdateline<(60*48)) {$lastpostmin=" Yesterday";}
 else  {$lastpostmin=((int)($lastpostdateline/(60*24)))." days ago";}
 $lastthreadid = $forumcache[$forumid]['lastthreadid'];
 $lastposter = $forumcache[$forumid]['lastposter'];
 }
 // Logician Last Post Minute Hack
 
 اضف تمبلت جديد باسم/ forumdisplay_quickstats
 
	كود PHP: 
		
			
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tbody>
 <tr>
 <td class="tfoot"><strong>
 <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumstats')"><img id="collapseimg_forumstats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumstats].gif" alt="" border="0" /></a>
 <span lang="ar-sa">إحصائية القسم</span> - <i>$foruminfo[title]</i></strong>
 </td>
 </tr>
 </tbody>
 <tbody id="collapseobj_forumstats" style="$vbcollapse[collapseobj_forumstats]">
 <tr>
 <td class="panelsurround" align="center">
 
 <table class="panel" cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
 <tr>
 <td align="$stylevar[left]">
 <fieldset class="fieldset" style="margin:0px">
 <legend><font color=green>$statsupdate</font></legend>
 <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
 <tr>
 <td colspan="2" nowrap="nowrap"><div class="smallfont">
 <span lang="ar-sa">عدد المواضيع</span>: <strong>$forumstats[numthreads]</strong></div></td>
 </tr>
 <tr>
 <td nowrap="nowrap"><span class="smallfont">
 <a href="$vboptions[bburl]/showthread.php?$session[sessionurl]goto=newpost&t=$lastthreadid">
 <span lang="ar-sa">آخر مشاركة</span></a>: <strong>$lastpostmin </strong></span></td>
 </tr>
 <tr>
 <td nowrap="nowrap"><span class="smallfont">
 <span lang="ar-sa">أعلى المواضيع</span>: <a href="member.php?$session[sessionurl]u=$forumstats[topthreadsid]" target="_blank">$forumstats[topthreadsun]</a> (<strong>$forumstats[topthreadscount]</strong>
 <span lang="ar-sa">المواضيع</span> = <strong>$forumstats[topthreadspercent]</strong>)</span></td>
 </tr>
 <if condition="$forumstats[attachscount] !='0'">
 <tr>
 <td nowrap="nowrap"><span class="smallfont">
 <span lang="ar-sa">عدد المرفقات</span>: <strong>$forumstats[attachscount]</strong> ($forumstats[attachsthumbs] - $forumstats[attachsfiles])</span></td>
 </tr>
 </if>
 <tr>
 <td nowrap="nowrap"><span class="smallfont">
 <span lang="ar-sa">معدل التصويت للموضوع</span>: <img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$forumstats[avgrating].gif" alt="some text"></span></td>
 </tr>
 </table>
 </fieldset>
 </td>
 <td align="$stylevar[left]">
 <fieldset class="fieldset" style="margin:0px">
 <legend>$statsupdate</legend>
 <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
 <tr>
 <td colspan="2" nowrap="nowrap"><span class="smallfont">
 <span lang="ar-sa">عدد الردود</span>: <strong>$forumstats[numreplies]</strong></span></td>
 </tr>
 <tr>
 <td nowrap="nowrap"><span class="smallfont">
 <span lang="ar-sa">آخر كاتب</span>: <a href="member.php?$session[sessionurl]find=lastposter&f=$forumid" target="_blank">$lastposter</a></span></td>
 </tr>
 <tr>
 <td nowrap="nowrap"><span class="smallfont">
 <span lang="ar-sa">أكثر عضو مشارك</span>: <a href="member.php?$session[sessionurl]u=$forumstats[topposterid]" target=_blank>$forumstats[topposterun]</a> (<strong>$forumstats[toppostercount]</strong>
 <span lang="ar-sa">الردود</span> = <strong>$forumstats[topposterpercent]</strong>)</span></td>
 </tr>
 <if condition="$forumstats[attachscount] !='0'">
 <tr>
 <td nowrap="nowrap"><span class="smallfont">
 <span lang="ar-sa">حجم المرفقات</span>: <strong>$forumstats[attachsbytes]</strong></span></td>
 </tr>
 </if>
 <tr>
 <td nowrap="nowrap"><span class="smallfont">
 <span lang="ar-sa">إجمالي المشاهدات</span>: <strong>$forumstats[numviews]</strong></span></td>
 </tr>
 </table>
 </fieldset>
 </td>
 </tr>
 </table>
 <tr>
 <if condition="$yourposts != 0">
 <td class="thead" align="center" nowrap="nowrap" colspan="2"><if condition="$forumstats[topposterun] == $bbuserinfo[username]"><strong>
 $bbuserinfo[username], <span lang="ar-sa"> في هذا القسم أنت</span>
 <span lang="ar-sa"><font color="#800000">أكثر مشاركة</font></span>
 <span lang="ar-sa">بعدد المشاركات</span> $yourposts</strong>. (<strong>$yourthreads
 <span lang="ar-sa">و</span> $yourreplies</strong>)<else /><strong>$bbuserinfo[username],
 <span lang="ar-sa">لقد قمت بكتابة</span> $yourposts <span lang="ar-sa">
 في هذا القسم</span></strong>. (<strong>$yourthreads <span lang="ar-sa">و</span> $yourreplies</strong>)</if></td>
 <else />
 <td class="thead" align="center" nowrap="nowrap" colspan="2"><strong>
 $bbuserinfo[username], <span lang="ar-sa">لم تشارك في هذا القسم حتى الآن</span></strong>.</td>
 </if>
 </tr>
 </tbody>
 </table>
 <br />
 
 افتح تمبلت/ForumDisplay 
ابحث عن/
 أضف فوقه /
 
	كود PHP: 
		
			
$forumdisplayquickstats 
 
 
 
 
 
			
			
			
			
			
			
			
			
            
            
                
           	
			
			
		 |  |  |  |  |  | 
 
	
		
	
		
|  |  |  |  | 
	| 
			
			 
			
				10-12-2005, 03:40 AM
				
			
			
			
		 |  
	| 
		
		
			
			| عضو |  | 
					تاريخ التسجيل: May 2005 
						مشاركة: 267
					 
                    
					
                    مستوى تقييم العضوية: 21      |  |  
	| 
				  
 هاك أفضل خمس أعضاء بالقسم 
افتح ملف/ forumdisplay.php 
ابحث عن /
 
	كود PHP: 
		
			
$lastread = $bbuserinfo['lastvisit'];
}
 
 بعده اضف/
 
	كود PHP: 
		
			
 $topposter='';
$top = $DB_site->query("
 SELECT count(post.postid) AS total_post,count(thread.threadid) AS total_thread, user.userid,user.username,user.joindate from " . TABLE_PREFIX . "user AS user
 LEFT JOIN " . TABLE_PREFIX . "post AS post ON(user.userid = post.userid)
 LEFT JOIN " . TABLE_PREFIX . "thread AS thread ON(post.threadid = thread.threadid) where
 thread.forumid='$forumid'
 group by user.userid order by total_post DESC LIMIT 5");
 $counteruser=0;
 while ($topp = $DB_site->fetch_array($top))
 {
 $counteruser++;
 $topp['joindate'] = vbdate($vboptions['dateformat'], $topp['joindate'], true);
 eval('$topposter .= "' . fetch_template('forumdisplay_topposter') . '";');
 }
 
 ابحث عن/
 
	كود PHP: 
		
			
'forumhome_lastpostby', 
 فوقه اضف /
 
	كود PHP: 
		
			
'forumdisplay_topposter', 
 افتح تمبلت/ forumdisplay 
ابحث عن /
 بعده اضف/
 
	كود PHP: 
		
			
<br />
<table border="0" cellspacing="$stylevar[cellspacing]" cellpadding="4" class="tborder" width="$stylevar[tablewidth]">
 <tr width="100%" class="alt1">
 <td class="thead" width="50%" align="$stylevar[left]">أفضل خمس أعضاء</td>
 <td class="thead" width="50%" align="$stylevar[left]">المشاركات</td>
 $topposter
 </table>
 <br />
 
 اضف تمبلت جديد / forumdisplay_topposter
 
	كود PHP: 
		
			
<tr>
<td class="alt1Active" align="$stylevar[left]" width="80%" id="u$topp[userid]"><span class="smallfont">$counteruser)
 <a href="member.php?$session[sessionurl]u=$topp[userid]">$topp[username]</a><br />تاريخ تسجيله : $topp[joindate]</span></td>
 <td class="alt1Active" width="20%"><span class="smallfont">$topp[total_post]   (<a href="search.php?do=finduser&u=$topp[userid]&f=$forumid">عرض هذه المشاركات</a>)</span></td>
 
 
 
 
 
 
			
			
			
			
			
			
			
			
            
            
                
           	
			
			
		 |  |  |  |  |  | 
 
	
		
	
		
|  |  |  |  | 
	| 
			
			 
			
				10-12-2005, 03:41 AM
				
			
			
			
		 |  
	| 
		
		
			
			| عضو |  | 
					تاريخ التسجيل: May 2005 
						مشاركة: 267
					 
                    
					
                    مستوى تقييم العضوية: 21      |  |  
	| 
 هاك التوقيع مطور مع إطار المرفقات واسم للعضو 
افتح تمبلت / postbit 
أبحث عن/
 
	كود PHP: 
		
			
                __________________<br />
$post[signature]
 
 أستبدله بهذا/
 
	كود PHP: 
		
			
<div>___________________________<br />
<fieldset><legend><span lang="ar-sa">توقيع </span>$post[username]<span lang="ar-sa">
 </span>:</legend><table><tr><td>
 $post[signature]
 </td></tr>
 </table></fieldset>
 
 
 
 
 
 
			
			
			
			
			
			
			
			
            
            
                
           	
			
			
		 |  |  |  |  |  | 
 
	
		
	
		
|  |  |  |  | 
	| 
			
			 
			
				10-12-2005, 03:42 AM
				
			
			
			
		 |  
	| 
		
		
			
			| عضو |  | 
					تاريخ التسجيل: May 2005 
						مشاركة: 267
					 
                    
					
                    مستوى تقييم العضوية: 21      |  |  
	| 
 لوضع اعلان في اعلي المنتدي متحرك  
قم بوضع الكود التالي في تمبلت HEADER
 
	كود PHP: 
		
			
<body> 
<table border="1" width="100%" bgcolor="#70C880">
 <tr>
 <td width="21%">
 <p align="center"><B><SPAN lang=ar-sa><FONT
 face="Simplified Arabic" color=#336900
 size="3"> شريط
 الإعلانات ||</FONT></SPAN></B></td>
 <td width="79%"><b><font color="#000000" size="4">
 <marquee direction="right" bgcolor="#ffffff">
 منتديات المحترفين العرب التطوريه
 ;</marquee>
 </font></b></td>
 </tr>
 </table>
 
 </body>
 
 
 
 
 
 
			
			
			
			
			
			
			
			
            
            
                
           	
			
			
		 |  |  |  |  |  | 
 
	
		
	
		
|  |  |  |  | 
	| 
			
			 
			
				10-12-2005, 03:44 AM
				
			
			
			
		 |  
	| 
		
		
			
			| عضو |  | 
					تاريخ التسجيل: May 2005 
						مشاركة: 267
					 
                    
					
                    مستوى تقييم العضوية: 21      |  |  
	| 
				  
 هاك كود الفراشات 
أفتح تمبلت /footer 
أبحث عن /
 
	كود PHP: 
		
			
<input type="hidden" name="do" value="dst" /> 
 اضف فوقه /
 
	كود PHP: 
		
			
<SCRIPT language=JavaScript>
<!-- bubbles Script by kurt.grigg@virgin.net
 
 Image0=new Image();
 Image0.src="images/bbbutter2101301.gif";
 Amount=6;
 
 Ypos=new Array();
 Xpos=new Array();
 Speed=new Array();
 rate=new Array();
 grow=new Array();
 Step=new Array();
 Cstep=new Array();
 nsSize=new Array();
 ns=(document.layers)?1:0;
 WinHeight=(document.layers)?window.innerHeight:window.document.body.clientHeight;
 WinWidth=(document.layers)?window.innerWidth:window.document.body.clientWidth;
 for (i=0; i < Amount; i++){
 Ypos[i] = Math.round(Math.random()*WinHeight);
 Xpos[i] = Math.round(Math.random()*WinWidth);
 Speed[i]= Math.random()*4+4;
 Cstep[i]=0;
 Step[i]=Math.random()*0.1+0.05;
 grow[i]=10;
 nsSize[i]=Math.random()*15+5;
 }
 if (ns){
 for (i = 0; i < Amount; i++){
 document.write("<LAYER NAME='sn"+i+"' LEFT=0 TOP=0><img src="+Image0.src+" name='N' width="+nsSize[i]+" height="+nsSize[i]+"></LAYER>");
 }
 }
 else{
 document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">');
 for (i = 0; i < Amount; i++){
 document.write('<img id="si" src="'+Image0.src+'" style="position:absolute;top:0px;left:0px;filter:alpha(opacity=60)">');
 }
 document.write('</div></div>');
 }
 function bubbles(){
 var WinHeight=(document.layers)?window.innerHeight:window.document.body.clientHeight;
 var WinWidth=(document.layers)?window.innerWidth:window.document.body.clientWidth;
 var hscrll=(document.layers)?window.pageYOffset:document.body.scrollTop;
 var wscrll=(document.layers)?window.pageXOffset:document.body.scrollLeft;
 for (i=0; i < Amount; i++){
 sy = Speed[i]*Math.sin(270*Math.PI/180);
 sx = Speed[i]*Math.cos(Cstep[i]);
 Ypos[i]+=sy;
 Xpos[i]+=sx;
 rate[i]=0.4;
 if (Ypos[i] < -50){
 Ypos[i]=WinHeight+50;
 Xpos[i]=Math.round(Math.random()*WinWidth);
 Speed[i]=Math.random()*4+6;
 
 grow[i]=2;
 nsSize[i]=Math.random()*15+5;
 }
 if (ns){
 document.layers['sn'+i].left=Xpos[i]+wscrll;
 document.layers['sn'+i].top=Ypos[i]+hscrll;
 }
 else{
 si[i].style.pixelLeft=Xpos[i]+wscrll;
 si[i].style.pixelTop=Ypos[i]+hscrll;
 si[i].style.width=grow[i];
 si[i].style.height=grow[i];
 }
 grow[i]+=rate[i];
 Cstep[i]+=Step[i];
 if (grow[i] > 24) grow[i]=25;
 }
 setTimeout('bubbles()',100);
 }
 bubbles();
 //-->
 </SCRIPT>
 
 
 
 
 
 
			
			
			
			
			
			
			
			
            
            
                
           	
			
			
		 |  |  |  |  |  | 
 
	
		
	
		
|  |  |  |  | 
	| 
			
			 
			
				10-12-2005, 03:45 AM
				
			
			
			
		 |  
	| 
		
		
			
			| عضو |  | 
					تاريخ التسجيل: May 2005 
						مشاركة: 267
					 
                    
					
                    مستوى تقييم العضوية: 21      |  |  
	| 
				  
 هاك : عدد مواضيع اليوم = ردود اليوم = زوار اليوم 
التعديل في ملف 
vb/index.php 
 
ابحث عن التالي
 
	كود: // get total members and newest member from template 
اعلى منه اضف الكود التالي
 
	كود PHP: 
		
			
// Edit By MGHOOL
$vbs_today = time()-(86400);
 $gettodaystats = $DB_site->query_first("SELECT count(postid) AS posts, COUNT(DISTINCT(threadid)) AS threads FROM post WHERE dateline>='$vbs_today'");
 $poststoday = number_format($gettodaystats['posts']);
 $threadstoday = number_format($gettodaystats['threads']);
 $getviewstoday = $DB_site->query_first("SELECT SUM(views) AS threadviews FROM thread WHERE dateline>='$vb_today'");
 $viewstoday = number_format($getviewstoday['threadviews']);
 
 التعديل التالي على تمبلت  
forumhome 
 
ابحث عن 
 وضع بعده بسطر هذا الكود
 
	كود PHP: 
		
			
<!-- Edit By MGHOOL -->
<br>
 <center>
 <table class="tborder" cellpadding="$stylevar[cellpadding]"
 cellspacing="$stylevar[cellspacing]" border="0" width="90%">
 <tr>
 <td class="alt1" align="center" valign="top">
 <FONT face="MS Sans Serif,verdana,arial,helvetica" size=1>
 ( عدد المواضيع هذا اليوم $threadstoday )
 .. ..
 ( عدد الردود هذا اليوم $poststoday )
 .. ..
 ( شاهد المواضيع $viewstoday )
 </FONT>
 </td>
 </tr>
 </table>
 </center>
 <br />
 <!-- Edit By MGHOOL -->
 
 
 
 
 
 
			
			
			
			
			
			
			
			
            
            
                
           	
			
			
		 |  |  |  |  |  | 
 
	
		
	
		
|  |  |  |  | 
	| 
			
			 
			
				10-12-2005, 03:48 AM
				
			
			
			
		 |  
	| 
		
		
			
			| عضو |  | 
					تاريخ التسجيل: May 2005 
						مشاركة: 267
					 
                    
					
                    مستوى تقييم العضوية: 21      |  |  
	| 
 اضافة بنر اعلاني لقسم معين 
 
 
 
 
 
			
			
			
			
			
			
			
			
            
            
                
           	
			
			
		 |  |  |  |  |  | 
 
	
		
	
		
|  |  |  |  | 
	| 
			
			 
			
				10-12-2005, 03:51 AM
				
			
			
			
		 |  
	| 
		
		
			
			| عضو |  | 
					تاريخ التسجيل: May 2005 
						مشاركة: 267
					 
                    
					
                    مستوى تقييم العضوية: 21      |  |  
	| 
 اذا تبي تنصص اسم المنتدى  
1 - لوحة التحكم 
 
2 - ضبط الستايلات 
 
3 - تفتح قالب forumhome_forumbit_level1_nopost تابع لقوالب الصفحة الرئيسية
 
4 - تبحث عن الكود هذا 
 5 - استبدلة بهذا 
 
	كود PHP: 
		
			
<center>$forum[title]</center> 
 6 - تحفظ القالب 
 
---------------------
 
اذا تبي تنصص اسم القسم 
 
1 - لوحة التحكم 
 
2 - ضبط الستايلات 
 
3 - تفتح قالب forumhome_forumbit_level2_post تابع لقوالب الصفحة الرئيسية
 
4 - تبحث عن الكود هذا 
 5 - استبدلة بهذا 
 
	كود PHP: 
		
			
<center>$forum[title]</center> 
 6 - تحفظ القالب 
 
وتحيه طيبه مني للجميع
 
 
 
 
 
			
			
			
			
			
			
			
			
            
            
                
           	
			
			
		 |  |  |  |  |  | 
 
	
		
	
		
|  |  |  |  | 
	| 
			
			 
			
				10-12-2005, 03:52 AM
				
			
			
			
		 |  
	| 
		
		
			
			| عضو |  | 
					تاريخ التسجيل: May 2005 
						مشاركة: 267
					 
                    
					
                    مستوى تقييم العضوية: 21      |  |  
	| 
 السلام عليكم ورحمة الله وبركاته  
اليوم يا إخوان نتعلم طريقة توسيط الموضوع تلقائي طريقه سهلة جدا ً ،،
 
الشرح :
 
ادخل لوحة تحم المنتدي ثم ضبط استايل ثم افتح تمبلت ( postbit ) وإبحث عن الكود التالي :
 
	كود: <p align="center"> $post[message] 
وبس ومبروك عليك
 
 
 
 
 
			
			
			
			
			
			
			
			
            
            
                
           	
			
			
		 |  |  |  |  |  | 
 
	
		
	
		
|  |  |  |  | 
	| 
			
			 
			
				10-12-2005, 03:54 AM
				
			
			
			
		 |  
	| 
		
		
			
			| عضو |  | 
					تاريخ التسجيل: May 2005 
						مشاركة: 267
					 
                    
					
                    مستوى تقييم العضوية: 21      |  |  
	| 
 السلام عليكم ورحمة الله و بركاتة 
 كثير من العملاء سألوني عن هذا الموضوع
 
 بطرح لكم الطرقة هنا لتعم الفائدة
 
 أذهب الي مجلدات موقعك
 
 و ادخل vb\includes
 
 و افتح ملف config.php
 
 و شوف رقم العضو الذي ترغب في تعينه ادمن معك
 
 و في هذا السطر $superadminstartor="1,the-other-admin"
 
 قم بتغيير the-other-admin الي رقم العضو
 
 مثال عندنا العضو رقم 14 نرغب في اعطائة خاصية الأدمن
 
 $superadminstartor="1,14"
 
 بيكون السطر بهذه الصيغة
 
 بعدين أبحث عن أسم العضو في لوحة التحكم الي في المنتدى
 
 بعدين راح تدخل على ملفه الشخصي فيه جدول على اليسار حولة لمجموعة الأدارة
 
 هذا و نسأل الله العفو و العافية و تقبلو خالص تحياتي
 
 
 
 
 
 
			
			
			
			
			
			
			
			
            
            
                
           	
			
			
		 |  |  |  |  |  | 
 
	
		
	| خيارات الموضوع |  
	|  |  
	| طريقة العرض |  
	
	| 
		
		 النمط التشعبي |  
	| |  |  |  |  | 
	|  قوانين المشاركة |  
	| 
		
		لا يمكنك  إضافة موضوع جديد لا يمكنك الرد على المواضيع لا يمكنك إضافة مرفقات لا يمكنك  تعديل  مشاركاتك 
 كود HTML مغلق |  |  |  |  |  | 
 |  |  |