تراجع إلى الخلف   :: TRAIDNT FORUM :: > قسم تطوير المنتديات > ركن تطوير منتديات vb3.8.0 > أرشيف تطوير منتديات vb3.0.0

أرشيف تطوير منتديات vb3.0.0 :: يمنع منعاً باتا ً .. كتابة أي موضوع يهتم بمشاكل المنتديات (( يمنع وضع نسخ vBulletin ))

شرح طريقه تركيب > شريط اخر المواضيع لمنتدى - الشرح بصوره

السلام عليكم ورحمة الله وبركاته ... سوف نشرح لكم طريقه التركيب وسوف نقوم بشرحها لاستايل النسخه لمنتدى وكيفيت تركيبه !! اول شئ - تعديل القوالب

 
  #1  
قديمة 11 - 03 - 2006, 23:38 هايف السفراني غير متواجد حاليآ بالمنتدى
صورة 'هايف السفراني' الرمزية
:: عضو نشيط ::
بيانات موقعي
اسم الموقع: الجميع
اصدار المنتدى: صفحتي
 






هايف السفراني مميزهايف السفراني مميزهايف السفراني مميزهايف السفراني مميزهايف السفراني مميز

السلام عليكم ورحمة الله وبركاته ...

سوف نشرح لكم طريقه التركيب وسوف نقوم بشرحها لاستايل النسخه لمنتدى وكيفيت تركيبه !!

اول شئ - تعديل القوالب وهي هذى كتالي قالبين فقط

وعند ما تحب تحمي القالبين بحمايه لشريط مع الضغط لكلك اليمين على الشريط بهذا الشكل اخر شئ تضعها

تابع الصوره لتوضيح

كود الحمايه !! انسخه واضعه بالمكان المحدد له ويقبل القالبين ؟

رمز Code:
<meta http-equiv="Content-Language" content="en-us">
<body id="CBody"
onbeforeprint="onbeforeprint()" onafterprint="onafterprint()"
onselectstart="return false" oncontextmenu="return false;">
1 - last10
2 - last10config


الكود الخاص بمحتوي هذا last10 القالب هنا

رمز Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir=rtl>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<title>شريط العشر مواضيع</title>



<style>
<!--
A:link {text-decoration: none ; color : #000000}
A:visited {text-decoration: none ; color : #000000}
A:active {text-decoration: none ; color : #FF0000}
A:hover {text-decoration: underline ; color : #FF0000}
//-->
</style>


<script language='JavaScript'>
<!--

function stopError() {
return true;
}

window.onerror = stopError;

// -->
</script>


</head>
<body bgcolor="#ffffff" background="http://www.kuwaity90.com/vb9/back.jpg" text="#000000" id="all" rightmargin="0" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" link="#000020" vlink="#000020" alink="#000020">


<?
require("last10config.php");
require("includes/config.php");
echo "<FONT color=$tc ><marquee dir=\"rtl\" direction=\"right\" scrolldelay=\"200\">";
$db=mysql_connect($servername,$dbusername,$dbpassword) or die("Can't open connection to MySQL");
mysql_select_db($dbname) or die("Can't select database");
$hfs = $fs+2;
$fs .= "pt";
$hfs .= "pt";
// the base WHERE statement
$wheresql = "WHERE thread.lastposter=user.username AND thread.open!='10'";
// we can't have both the last 24 hours *and* the last 7 days, so error out if needed
if ($last24 == "1" && $last7 == "1") {
	print("Error: \$last24 and \$last7 are both set to 1. Please change one of them to 0.");
	exit;
}
// otherwise we're gonna find out which one it is
// last 24
if ($last24 == "1") {
	$time = time()-86400;
	$wheresql .= " AND thread.lastpost>'$time'";
}
// last 7
if ($last7 == "1") {
	$time = time()-604800;
	$wheresql .= " AND thread.lastpost>'$time'";
}
// are we trying to exclude *and* include forums? if so, error out
if ($excludeforums != "" && $includeforums != "") {
	print("Error: \$includeforums and \$excludeforums are both set with numbers. Please remove the numbers from <b>one</b> of these two to proceed.");
	exit;
}
// otherwise figure out which one we're using
// include forums
if ($includeforums == "" or $includeforums <= "0") {
	$quarter = "no";
} else {
	$incfid = explode(",",$includeforums); $i = 0; $a = count($incfid);
	if ($a > 1) {
		$wheresql .= " AND (thread.forumid='$incfid[0]'";
		++$i;
		while ($i < $a) {
			$wheresql .= " OR thread.forumid='$incfid[$i]'"; ++$i;
		}
		$wheresql .= ")";
	} else {
		$wheresql .= " AND thread.forumid='$incfid[$i]'";
	}
}
// or exclude forums
if ($excludeforums == "" or $excludeforums <= "0") {
	$quarter = "no";
} else {
	$excfid = explode(",",$excludeforums); $i = 0; $a = count($excfid);
	while ($i < $a) {
		$wheresql .= " AND thread.forumid!='$excfid[$i]'";	++$i;
	}
}

// ooh a query!
$query = "SELECT thread.lastpost,thread.title,thread.lastposter,thread.replycount,thread.views,user.userid,thread.threadid,thread.forumid$fsel,thread.iconid FROM thread,user$ftitle $wheresql ORDER BY thread.$ob $obdir LIMIT $maxthreads";
// let's get the info
$tr = mysql_query($query) or die("MySQL reported this error while trying to retreive the info: ".mysql_error());
$dtf = mysql_query("SELECT value FROM setting WHERE varname='dateformat' OR varname='timeformat' OR varname='timeoffset' ORDER BY varname");
$df = mysql_result($dtf,0,0);
$tf = mysql_result($dtf,1,0);
$tof = mysql_result($dtf,2,0);


// let's display the info
while ($threads = mysql_fetch_array($tr)) {

	echo " <FONT SIZE=\"2\" FACE=\"ms sans serif,arial,verdana,helvetica\"><a href=\"$url/showthread.php?=$session[sessionhash]&threadid=$threads[threadid]&goto=newpost\" title=\"$threads[title]\" target=_blank>$threads[title]  [ أخر تعليق : $threads[lastposter] ]  &nbsp &nbsp &nbsp</a>   &nbsp &nbsp</font>";
}
// close it all up
// bye!

?></marquee>
الكود الخاص بمحتوي هذا last10config القالب هنا
رمز Code:
<?



/////////////// CONFIG ///////////////
//
$path = "http://www.kuwaity90.com/vb9/includes"; // path to your config.php file (usually in the /admin directory) - NO TRAILING SLASH! Do not include "config.php"
$url = "http://www.kuwaity90.com/vb9"; // URL to your board - NO TRAILING SLASH!
$urlimg = "http://www.kuwaity90.com/vb9/images"; // URL to your board's images - NO TRAILING SLASH!
$maxthreads = "5"; // max threads to show. will show less if $last24 or $last7 limits it to less results than this number
$ob = "lastpost"; // set to one of the following: replycount , views , lastposter , title , lastpost (lastpost is most popular. it's the thread most recently replied to, then the second-to-last most recent, etc.)
$obdir = "desc"; // which direction to sort? "desc" goes from bottom to top (9 to 1, z to a, etc.). "asc" goes top to bottom (1 to 9, a to z, etc.). if you use lastpost for $ob, leave this set to desc or it will not work correctly!
$last24 = "0"; // 1 = last 24 hours; 0 = all (must set this to 0 if $last7 is set to 1)
$last7 = "0"; // 1 = last 7 days; 0 = all (must set this to 0 if $last24 is set to 1)
$bc1 = "#696969"; // first alt color
$bc2 = "#5c5c5c"; // second alt color
$hc = "#999999"; // head background color
$lc = "#EEEEEE"; // link color
$tc = "#FFFFFF"; // text color
$f = "Verdana"; // font face
$fs = "8"; // font size in points - 8 is normal, 6 is on the small side, 10 on the large side. play around with it. :)
$lastposter = "0"; // show last poster? 1 = yes; 0 = no
$views = "0"; // show view count? 1 = yes; 0 = no
$replies = "0"; // show reply count? 1 = yes; 0 = no
$lastpostdate = "1"; // show last post date and time? 1 = yes; 0 = no
$len = 25; // maximum number of characters of the title to show. e.g. if the title is 60 characters and this is set to 25, only the first 25 characters of the title will be shown (followed by ...)
$excludeforums = ""; // if you want to exclude a forum, put it's ID here. more than one, seperate them with commas, NO SPACES! e.g. 1,2,3,4
$includeforums = ""; // if you only want to include certain forums, put their ids here. separate more than one with commas, NO SPACES! e.g. 1,2,3,4
$showmessages = "0"; // show the text of the last post too? 1 = yes; 0 = no
$lplen = "300"; // character length of last post text (if $showmessages is set to 0 this won't do anything).
$tw = ""; // width of the table that shows the info, in either a percent ( e.g. 95% ) or in pixels ( e.g. 300 ). leave blank if you want the table to be sized naturally
$showdate = "0"; // show the date, as well as the time? if the posts that show up in the list are likely to all be from today (or you set $last24 to "1"), you can set this to 0. if the posts are spread over multiple days, you probably want this set to 1.
$cs = "0"; // this is the cellspacing. 1 makes a thin line around the cells. 0 makes no line.
$showicon = "1"; // shows the posts' icon next to the post
$showforumtitle = "0"; // shows the forum title (linked to that forum) next to the thread title
$nb = "0"; // do you want breaks in text to appear as such? this may cause problems if there are large breaks in the text
//
///////////// END CONFIG /////////////

?>


وبعد ادخال البيانات لمنتداك - احفط العمل
وارفعها من طريق الاف تي بي لمنتداك مباشره علىالمسار هذا
vb/ داخله
وبعدها تروح للوحه المنتدى الخاص بك واختيار
1 - الستايلات & القوالب
بعدها
2 - البحث في القوالب
واكتب هذى الكلمه Header
انظر لصوره لتوضيح



بعد البحث اتبع الصوره الثانيه لوضع المطلوب
هذا الكود تضعه في اخر شئ

رمز Code:
<center>
<iframe name="last10.php" align="center" marginWidth="3" marginHeight="3" src="last10.php" width="98%" scrolling="no" height="30" border="0" target="_top" style="border-style:solid; border-width:0px; " frameborder="0"></iframe>

ويكون الشريط بهذا الوصفه ؟ اخر تعليق بالعضور الفلاني
بهذا الشكل فقط

عند ما تحب تغيره ووضع مثل هذا وهذاك فقط في القالب هذا
1 - last10 انتبه هذا المطلوب لتعديل فقط
وهذا يكوووووون بتنزبله من الاف تي بي وبعد التعديل رفعه بمكانه !!؟
رمز Code:
echo " <FONT SIZE=\"2\" FACE=\"ms sans serif,arial,verdana,helvetica\"><a href=\"$url/showthread.php?=$session[sessionhash]&threadid=$threads[threadid]&goto=newpost\" title=\"$threads[title]\" target=_blank>$threads[title] [ أخر تعليق : $threads[lastposter] ] &nbsp &nbsp &nbsp</a> &nbsp &nbsp</font>";
تابع الصوره لتوضيح

مثال هذا وهذاك



[align=center]و هذا بعد وانسخ كوده

رمز Code:
echo " <FONT SIZE=\"1\" FACE=\"ms sans serif\"><a href=\"$url/showthread.php?threadid=$threads[threadid]&goto=newpost\" title=\"آخر مشارك : $threads[lastposter] - عدد الردود : $threads[replycount] - عدد القرّاء : $threads[views]\" target=_blank>[$threads[title]]</a>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</font>";
[/align]

وبالمرفق حفط العمل والقوالب المعدله والغير معدله


وبتوفيق للجميع
الملفات المرفقة
نوع الملف : zip القالبين الاصلين.zip (3.8 كيلوبايت, عدد مرات المشاهدة 53 مرة)
نوع الملف : zip القالبين تم حمايتها.zip (4.1 كيلوبايت, عدد مرات المشاهدة 62 مرة)
نوع الملف : zip حفظ العمل last10-last10config-=.zip (317.1 كيلوبايت, عدد مرات المشاهدة 125 مرة)
توقيع هايف السفراني
لا تعصب علينا بأي خطئ يواجهك ! من ملتقانا تحت التعديل
؛؛؛ المشاركـ بالعضويهـ عده اشخاصـ
صفحتي من ترانديت
  رقم المشاركة : [ 2 ]
قديمة 12 - 03 - 2006, 08:19 x_5 غير متواجد حاليآ بالمنتدى
x_5
:: TRAIDNT ::
:: رفيق الدرب ::
 
صورة 'x_5' الرمزية
 


x_5 مبدع بلا حدودx_5 مبدع بلا حدودx_5 مبدع بلا حدودx_5 مبدع بلا حدودx_5 مبدع بلا حدودx_5 مبدع بلا حدودx_5 مبدع بلا حدودx_5 مبدع بلا حدودx_5 مبدع بلا حدودx_5 مبدع بلا حدودx_5 مبدع بلا حدود
بيانات موقعي
اسم الموقع: vbulletin.ae
اصدار المنتدى: :: مجتمع ترايدنت ::
افتراضي
يعطيك العافية اخوي
x_5
توقيع x_5
‏​‏​كُنْ فيْ الْحياهْ كَعابر سبيلٍ وَاتْرُكْ وراءكَ كُل أثرِ جَميل
فَما نَحنُ فِيْ الدُنيا إِلَاضُيُوْف وَما عَلى الضيوْفِ إِلَاالرحيل
واحــد مـــ x_5ـــن النـاس ©
 
  رقم المشاركة : [ 3 ]
قديمة 12 - 03 - 2006, 12:12 مشتاقين غير متواجد حاليآ بالمنتدى
:: عضو نشيط ::
 
صورة 'مشتاقين' الرمزية
 


مشتاقين نشاط بلا حدودمشتاقين نشاط بلا حدودمشتاقين نشاط بلا حدودمشتاقين نشاط بلا حدودمشتاقين نشاط بلا حدودمشتاقين نشاط بلا حدودمشتاقين نشاط بلا حدودمشتاقين نشاط بلا حدودمشتاقين نشاط بلا حدود
أرسل رسالة بواسطة MSN إلى مشتاقين
بيانات موقعي
اسم الموقع: مشعل
اصدار المنتدى: منتج اخر
افتراضي
مشكور يا الغالي

شرح وافي الله يعطيك العافيه
مشتاقين
 
  رقم المشاركة : [ 4 ]
قديمة 12 - 03 - 2006, 12:24 serag777 غير متواجد حاليآ بالمنتدى
::عضو شرف ::
 
صورة 'serag777' الرمزية
 


serag777 مبدع بلا حدودserag777 مبدع بلا حدودserag777 مبدع بلا حدودserag777 مبدع بلا حدودserag777 مبدع بلا حدودserag777 مبدع بلا حدودserag777 مبدع بلا حدودserag777 مبدع بلا حدودserag777 مبدع بلا حدودserag777 مبدع بلا حدودserag777 مبدع بلا حدود
أرسل رسالة بواسطة MSN إلى serag777 أرسل رسالة بواسطة Yahoo إلى serag777
بيانات موقعي
اسم الموقع: المفكر العربى
اصدار المنتدى: 4.0.8
افتراضي
ما شاء الله ابدعت يا غالى لك تحياتى
serag777
توقيع serag777
 
  رقم المشاركة : [ 5 ]
قديمة 12 - 03 - 2006, 18:31 shorbagy غير متواجد حاليآ بالمنتدى
.:: عضو متألق ::.
 


shorbagy مبدع بلا حدودshorbagy مبدع بلا حدودshorbagy مبدع بلا حدودshorbagy مبدع بلا حدودshorbagy مبدع بلا حدودshorbagy مبدع بلا حدودshorbagy مبدع بلا حدودshorbagy مبدع بلا حدودshorbagy مبدع بلا حدودshorbagy مبدع بلا حدودshorbagy مبدع بلا حدود
بيانات موقعي
اصدار المنتدى: لا أملك منتدى
افتراضي
كل الشكر لك اخوي
shorbagy
توقيع shorbagy
يارب سترك ورضاك وعفوك عنا يارب
 
  رقم المشاركة : [ 6 ]
قديمة 12 - 03 - 2006, 20:44 هايف السفراني غير متواجد حاليآ بالمنتدى
:: عضو نشيط ::
 
صورة 'هايف السفراني' الرمزية
 


هايف السفراني مميزهايف السفراني مميزهايف السفراني مميزهايف السفراني مميزهايف السفراني مميز
بيانات موقعي
اسم الموقع: الجميع
اصدار المنتدى: صفحتي
افتراضي
مشكورين على التواصل ... وفي مداخلات لموضوع قريبا وضعها لاكمال الشرح لها
هايف السفراني
توقيع هايف السفراني
لا تعصب علينا بأي خطئ يواجهك ! من ملتقانا تحت التعديل
؛؛؛ المشاركـ بالعضويهـ عده اشخاصـ
صفحتي من ترانديت
 
  رقم المشاركة : [ 7 ]
قديمة 13 - 03 - 2006, 00:46 الكنترول متواجد حاليآ بالمنتدى
.:: عضو متألق ::.
 
صورة 'الكنترول' الرمزية
 


الكنترول مبدع بلا حدودالكنترول مبدع بلا حدودالكنترول مبدع بلا حدودالكنترول مبدع بلا حدودالكنترول مبدع بلا حدودالكنترول مبدع بلا حدودالكنترول مبدع بلا حدودالكنترول مبدع بلا حدودالكنترول مبدع بلا حدودالكنترول مبدع بلا حدودالكنترول مبدع بلا حدود
بيانات موقعي
اصدار المنتدى: :: مجتمع ترايدنت ::
افتراضي
لا هنت يا ابن الحلال

ماشاء الله تبارك الله والله مبدع

استمر الله يقويك
الكنترول
توقيع الكنترول
صلاح المصراتي لتصميم المواقع وبرمجتها :-
للإستشارات البرمجية والفنية والحماية إتصل بهاتفي الشخصي

من داخل ليبيا : 0928519021
من خارج ليبيا : 00218928519021


  • لـمراسلتي بريدياً فقط
  • واعذروني لا أستخدم الماسنجر للسوالف والكلام الزايد ...!


لاتسهر الليل إذ كنت تخاف الظلام ووحشته
 
 

العلامات المرجعية

أدوات الموضوع
طرق العرض

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

رمز [IMG] : متاحة
رمز HTML : معطّلة
المراجع : معطّلة
Refbacks are متاحة




الساعة معتمدة بتوقيت جرينتش +3 . الساعة الآن : 02:53.
المعهد غير مسؤول عن أي اتفاق تجاري أو تعاوني بين الأعضاء
فعلى كل شخص تحمل مسئولية نفسه إتجاه مايقوم به من بيع وشراء وإتفاق وأعطاء معلومات موقعه
التعليقات المنشورة لا تعبر عن رأي معهد ترايدنت ولا نتحمل أي مسؤولية قانونية حيال ذلك (ويتحمل كاتبها مسؤولية النشر)


Powered by vBulletin® Version 3.8.7
.Copyright ©2000 - 2012, Jelsoft Enterprises Ltd

SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.