المشاركات 589 |
+التقييم 76 |
تاريخ التسجيل Mar 2019 |
الاقامة ام الدنيا مصر |
نظام التشغيل Other |
رقم العضوية 1982 |
case 'openclosethread':
case 'best':
if ($_POST['do'] == 'openclosethread')
if ($_POST['do'] == 'best')
{
if (($threadinfo['isdeleted'] AND !can_moderate($threadinfo['forumid'], 'candeleteposts')) OR (!$threadinfo['visible'] AND !can_moderate($threadinfo['forumid'], 'canmoderateposts')))
{
if (can_moderate($threadinfo['forumid']))
{
print_no_permission();
}
else
{
eval(standard_error(fetch_error('invalidid', $idname, $vbulletin->options['contactuslink'])));
}
}
// permission check
if (!can_moderate($threadinfo['forumid']))
{
if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canopenclose']))
{
print_no_permission();
}
else
{
if (!is_first_poster($threadid))
{
print_no_permission();
}
}
}
// check if there is a forum password and if so, ensure the user has it set
verify_forum_password($foruminfo['forumid'], $foruminfo['password']);
$Update_best = $db->query_read_slave(" SELECT * FROM " . TABLE_PREFIX . "thread WHERE threadid = ".$threadid."");
$fetc_select = $Update_best->fetch_assoc();
if($fetc_select['best'] == 0){
$select_best = 1;
}else{
$select_best = 0;
}
$db->query_write("
UPDATE " . TABLE_PREFIX . "thread SET
best = ".$select_best." WHERE threadid = ".$threadid."
");
//$update = mysql_query("UPDATE thread SET best = 1");
$vbulletin->url = 'showthread.php?' . $vbulletin->session->vars['sessionurl'] . "t=$threadid";
eval(print_standard_redirect('select_topic', true, true));
}
$show['closethread'] = iif($threadinfo['open'], true, false);
$show['closebest'] = iif($threadinfo['best'], true, false);
$show['openclose'] = (can_moderate($threadinfo['forumid'], 'canopenclose') OR ($forumperms & $vbulletin->bf_ugp_forumpermissions['canopenclose'] AND $threadinfo['postuserid'] == $vbulletin->userinfo['userid'])) ? true : false;
$show['selectbest'] = (can_moderate($threadinfo['forumid'], 'canopenclose') OR ($forumperms & $vbulletin->bf_ugp_forumpermissions['canopenclose'] AND $threadinfo['postuserid'] == $vbulletin->userinfo['userid'])) ? true : false;
$show['adminoptions']
OR $show['selectbest']
<if condition="$show['selectbest']"><div><label for="ao_oct"><input type="radio" name="do" id="ao_oct" value="best" /><if condition="$show['closebest']"> ازاله من المسابقه <else /> اضافه لمسابقه </if></label></div></if>
<if condition="$show['openclose']">
$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$foruminfo[title_clean]<if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase[page_x]</phrase></if> - $vboptions[bbtitle]</title>
<if condition="$show['inlinemod']"><script type="text/javascript" src="clientscript/vbulletin_inlinemod.js?v=$vboptions[simpleversion]"></script></if>
</head>
<body>
$header
<style>
.toppross{
width:100%;
display: inline-block;
margin: auto;
text-align: center;
margin-top: 30px;
margin-bottom: 50px;
}
.toppross .icon i{
font-size: 60px;
color:#84c349;
}
.toppross .icon{
text-align: left;
}
.toppross .icon img{
width:50px;
height:50px;
border-radius: 50%;
border:3px solid #99b77c;
margin-bottom: 20px;
}
.toppross .pross{
width:100%;
border: 1px solid #a6d17d;
height:30px;
border-radius: 5px;
padding:0;
margin: 0;
overflow: hidden;
}
.toppross .pross .widthpross{
height:30px;
border-radius: 5px;
background-color: #699d39;
line-height: 30px;
color:#fff;
text-align: center;
}
.number{
font-family: "Droid Arabic Kufi","Open Sans",sans-serif;
}
</style>
<div class="toppross">
<if condition="$Progress == 1">
<div class="icon" style="width:$total%;">
<!-----<i class="fa fa-trophy"></i>-->
<img src="image.php?u=$mostone[postuserid]">
</div>
<div class="pross">
<div class="widthpross" style="width:$total%;"> <span class="number">$total_post موضوع</span></div>
</div>
</if>
</div>
<table class="Tborderforum" cellpadding="6" cellspacing="1" border="0" width="100%" align="center" style="border-bottom-width:0px">
<tr>
<td class="tcat" width="100%" style="text-align:center;">مسابقه <span class="normal"> : افضل مواضيع المسابقه</span></td>
</tr>
</table>
<table class="Tborderforum" cellpadding="6" cellspacing="1" border="0" width="100%" align="center" id="threadslist">
<tbody>
<tr>
<td class="toolbar icon" colspan="2"> </td>
<td class="toolbar thread" width="100%">
<a href="forumdisplay.php?f=29&daysprune=-1&order=asc&sort=title" rel="nofollow">الموضوع</a> /
<a href="forumdisplay.php?f=29&daysprune=-1&order=asc&sort=postusername" rel="nofollow">كاتب الموضوع</a>
</td>
</tr>
</tbody>
<!-- show threads -->
<tbody id="threadbits_forum_29">
<if condition="$dontfoundbest != 1">
<tr>
<td class="icontopic alt1" style="text-align:center" colspan="3">لا يوجد مواضيع ضمن المسابقه حتي الان </td>
</tr>
<else />
$threadbest
</if>
</tbody>
<!-- end show threads -->
</table>
$footer
<tr>
<td class="icontopic alt1" id="td_threadstatusicon_6924">
<a rel="vB::AJAX"></a>
<img src="$stylevar[imgdir_statusicon]/thread$hazem[statusicon].gif" id="thread_statusicon_$hazem[realthreadid]" alt="<if condition="$show['threadcount']"><phrase 1="$hazem[dot_count]" 2="$hazem[dot_lastpost]">$vbphrase[have_x_posts_in_thread_last_y]</phrase></if>" border="" />
</td>
<td class="icontopic2 alt2">
<img src="images/icons/icon1.gif" alt="" border="0" />
</td>
<td class="alt1 thread" id="td_threadtitle_$hazem[realthreadid]" title="$hazem[preview]">
<div class="ReplyUserImg">
<img style="margin-top:0px;" border="0" height="40" width="40" src="image.php?u=$hazem[postuserid]"/></div>
<div class="Triangle"></div>
<a rel="vB::AJAX"></a>
<div class="ThreadTitle">
<div class="ToolsThread">
</div>
<h1>
<a href="showthread.php?$session[sessionurl]t=$hazem[threadid]$hazem[highlight]" id="thread_title_$hazem[realthreadid]"<if condition="$show['gotonewpost']"> style="font-weight:bold"</if>>$postinfo[title]</a>
</div>
<div class="PostUserName">
<span style="cursor:pointer" onclick="window.open('member.php?u=$user[userid]', '_self')">$user[username]</span>
</div>
</td>
</tr>
https://yourdoman.com/Competition.php
اضافة رد
|
انشاء صفحه مسابقات في منتدي vb
أدوات الموضوع | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
[ نقاش ] : بفكر اعمل منتدي شبه منتدي فتكات | zscofficial | الركن العام للمواضيع العامة | 11 | 02-17-2021 07:11 AM |
مشكله في صفحه التسجيل | ابو يوسف | ركن مشاكل وطلبات المنتديات | 5 | 12-17-2020 07:00 AM |
انشاء منتدي عربي وانجلزي وتركيب لوحت تحكم عربي متوافق مع جميع الشاشات | addM3rfa | ركن التجارة الالكترونية | 5 | 07-09-2020 09:41 PM |
[ معروض للبيع ]: للبيع صفحه بأسم ( Sport ) موثقه بالعلامه السوداء | الماجيك مسعد | ركن التجارة الالكترونية | 2 | 11-23-2015 11:18 PM |
حل مشكله ظهور صفحه بيضاء داخل المواضيع في هاك vbseo لبعض المواقع | هيلبرنت | ركن تقنيات محركات البحث سيو SEO | 0 | 10-12-2015 12:41 AM |