| الرئيسية | الشروط والقوانين | سياسة الخصوصية | اتصل بنا | الأرشيف | RSS |
|
![]() |
|
|
|
|||||||
| تطويــــر المنتديــ VB3 ـات هاكات :: تمبلتات :: اكواد |
|
|
أدوات الموضوع |
|
|
رقم المشاركة : 21 | |
|
|
هاك التاريخ الهجري
هاك التاريخ الهجري |
|
|
|
رقم المشاركة : 22 | |
|
|
هاك منع تحميل المرفقات الا بعد الرد على الموضوع vb3
هاك منع تحميل المرفقات الا بعد الرد على الموضوع |
|
|
|
رقم المشاركة : 23 | |
|
|
هاك اضافة حالة الطقس والحرارة |
|
|
|
رقم المشاركة : 24 | |
|
|
هاك التسجيل السريع الى المنتدى .
هاك التسجيل السريع الى المنتدى . |
|
|
|
رقم المشاركة : 25 | |
|
|
هاك القرأن الكريم |
|
|
|
رقم المشاركة : 26 | |
|
|
هاك الاعضاء الذين تواجدوا اليوم في المنتدى
هاك الاعضاء الذين تواجدوا اليوم في المنتدى كود:
// ### ALL DONE! SPIT OUT THE HTML AND LET'S GET OUTA HERE... ### كود:
// ### 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);
كود:
<a href="member.php?$session[sessionurl]u=$todayloggedin[userid]">$todayloggedin[musername]</a>$todayloggedin[invisiblemark]$todayloggedin[buddymark] أبحث عن/ كود:
<!-- end logged-in users --> </if> كود:
<!-- 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-->
أنتهى مبرووك آخر تعديل VIP يوم 01-02-2005 في 10:47 AM.
|
|
|
|
رقم المشاركة : 27 | |
|
|
هاك تصغير الصور تلقائياً
هاك تصغير الصور تلقائياً كود:
// ********************* 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
كود:
// أضيف بواسطـة الصم ، لاستبدال الصور الكبيرة
// قم بضبط 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));
}
//
كود:
return '<img src="' . $link . '" border="0" alt="" />'; كود:
// 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>';
}
//
أنتهى اتمنى لكم التوفيق |
|
|
|
رقم المشاركة : 28 | |
|
|
هاك تصغير الصور المرفقه في الموضوع (vb3)
هاك تصغير الصور المرفقه في الموضوع كود:
<p><normalfont>$post[username] أرفقَ هذه الصورة:<br> <a target="_blank" href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&stc=1"> <img border="0" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&stc=1" width="480" height="294" alt="إضغط على الصوره المرفقه لمشاهدتها بالحجم الطبيعي"></a> </normalfont></p> |
|
|
|
رقم المشاركة : 29 | |
|
|
هاك يخبر العضو عن موضوع جديد تفضلو
هاك يخبر العضو عن موضوع جديد تفضلو |
|
|
|
رقم المشاركة : 30 | |
|
|
هاك التعديل السريع لبيانات العضو
هاك التعديل السريع لبيانات العضو |
|
|
|
| الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
| أدوات الموضوع | |
|
|
المواضيع المتشابهه
|
||||
| الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
| أكبر مكتبة افلام عربية خاااص لمنتديات الشبكة الكويتية | مجرمة قديمة | منتدى الافلام والمسلسلات والمسرحيات | 6 | 22-11-2006 11:55 PM |
| تم الانتهاء من راديوووو الشبكة الكويتيه | زمن قاسي | المنـتدى العـام | 4 | 01-06-2006 01:24 PM |
| :: حصرياً على الشبكة الكويتيه :: | VIP | منـتدى الألـعاب والألغاز | 13 | 23-07-2005 07:39 AM |
| صحافي في الشبكة الكويتيه | صحـ((خطير))ـافي | منتدى الترحيب بالأعضاء | 10 | 12-06-2005 09:13 AM |
| برنامج jap (( حصري على الشبكة الكويتيه )) | VIP | منـتدى البـرامـج والشروحات | 6 | 11-05-2005 03:32 AM |
|
الساعة الآن 10:33 AM
|