![]() |
| | #11 (permalink) |
| عضو ![]() تاريخ التسجيل: Dec 2005 المشاركات: 115 معدل تقييم المستوى: 0 ![]() | اخي عماد ماني قادر احمل المرفق و الرسالة الي تجيني هاذي هي : abu abdalah, لا تملك تصريح بدخول هذه الصفحة. قد يكون هذا أحد الأسباب التالية:
وتسلم ياغالي |
| | |
| | #12 (permalink) |
| عضو ![]() تاريخ التسجيل: Feb 2004 المشاركات: 34 معدل تقييم المستوى: 0 ![]() | مشكككككككووووووووووور يعطيك العافيه ولكن تاتي هذه الرساله thubiti23, لا تملك تصريح بدخول هذه الصفحة. قد يكون هذا أحد الأسباب التالية:
|
| | |
| | #13 (permalink) | ||
| عضو ![]() تاريخ التسجيل: Feb 2006 الدولة: مصر المشاركات: 340 معدل تقييم المستوى: 0 ![]() | اقتباس:
اقتباس:
بناء على طلبكم سوف يتم كتابة الشرح وملف البرودكت هنا حتى يسهل تحميلة اولا الشرح: كود: -------------------------------------------------------------------- Post Award Hack version 2.0 3.5.X تعريب ضيف المهاجر http://www.nabdh-alm3ani.net -------------------------------------------------------------------- طريقة التركيب سهلة وخفيفة 1) اولا -------------------------------------------------------------------- ارفع الصورة rosette.gif الى مجلد /images/misc/ -------------------------------------------------------------------- ثانيا 2) ارفع الملف xml. (product-post_award_2_3.5.x.xml) رابط الرفع المباشر http://www.yoursite.com/vb/admincp/plugin.php?do=productadd -------------------------------------------------------------------- 3) تعديل القوالب في قالب postbit: ابحث عن -------------------------------------------------------------------- <div class="normal" style="float:$stylevar[right]"> -------------------------------------------------------------------- اضف بعده التالي اذا كنت ترغب أن يمنح التميز فقط للإدارة ضع هذا -------------------------------------------------------------------- <if condition="THIS_SCRIPT == showthread"> <if condition="$bbuserinfo[usergroupid]=='6'"> <if condition="$post[award]=='0'"> <a href="showthread.php?$session[sessionurl]do=award&postid=$post[postid]">إمنح الموضوع وسام التميز</a> <else /> <a href="showthread.php?$session[sessionurl]do=award_remove&postid=$post[postid]">ألغي الوسام</a> </if> </if> </if> -------------------------------------------------------------------- أو هذا اذا كنت ترغبه للإدارة وكبار المراقبين ضع هذا -------------------------------------------------------------------- <if condition="THIS_SCRIPT == showthread"> <if condition="$bbuserinfo[usergroupid]=='6' OR $bbuserinfo[usergroupid]=='5'"> <if condition="$post[award]=='0'"> <a href="showthread.php?$session[sessionurl]do=award&postid=$post[postid]">إمنح الموضوع وسام التميز</a> <else /> <a href="showthread.php?$session[sessionurl]do=award_remove&postid=$post[postid]">ألغي الوسام</a> </if> </if> </if> -------------------------------------------------------------------- أو هذا اذا كنت ترغبه للإدارة وكبار المراقبين وبقية المشرفين ضع هذا -------------------------------------------------------------------- <if condition="THIS_SCRIPT == showthread"> <if condition="can_moderate()"> <if condition="$post[award]=='0'"> <a href="showthread.php?$session[sessionurl]do=award&postid=$post[postid]">إمنح الموضوع وسام التميز</a> <else /> <a href="showthread.php?$session[sessionurl]do=award_remove&postid=$post[postid]">ألغي الوسام</a> </if> </if> </if> -------------------------------------------------------------------- ابحث عن -------------------------------------------------------------------- <td width="100%"> </td> -------------------------------------------------------------------- استبدله بهذا: -------------------------------------------------------------------- <td width="100%" align="center"><if condition="$post[award]=='1'"> <img src="$stylevar[imgdir_misc]/rosette.gif" alt="موضوع متميز"> <else /> </if></td> -------------------------------------------------------------------- او ابحث عن هذا -------------------------------------------------------------------- <!-- message --> <div id="post_message_$post[postid]">$post[message]</div> <!-- / message --> -------------------------------------------------------------------- وأعلى منه ضع الكود -------------------------------------------------------------------- <!-- award hack --> <if condition="$post[award]=='1'"><div align="center"> <img src="$stylevar[imgdir_misc]/rosette.gif" alt="موضوع متميز" align="left"> </div></if> <!-- / award hack --> -------------------------------------------------------------------- احفظ القالب في قالب postbit_legacy: ابحث عن -------------------------------------------------------------------- <td class="thead" style="font-weight:normal" align="$stylevar[right]"> -------------------------------------------------------------------- بعده أضف هذا اذا كنت ترغب أن يمنح التميز فقط للإدارة ضع هذا -------------------------------------------------------------------- <if condition="THIS_SCRIPT == showthread"> <if condition="$bbuserinfo[usergroupid]=='6'"> <if condition="$post[award]=='0'"> <a href="showthread.php?$session[sessionurl]do=award&postid=$post[postid]">إمنح الموضوع وسام التميز</a> <else /> <a href="showthread.php?$session[sessionurl]do=award_remove&postid=$post[postid]">ألغي الوسام</a> </if> </if> </if> -------------------------------------------------------------------- أو هذا اذا كنت ترغبه للإدارة وكبار المراقبين ضع هذا -------------------------------------------------------------------- <if condition="THIS_SCRIPT == showthread"> <if condition="$bbuserinfo[usergroupid]=='6' OR $bbuserinfo[usergroupid]=='5'"> <if condition="$post[award]=='0'"> <a href="showthread.php?$session[sessionurl]do=award&postid=$post[postid]">إمنح الموضوع وسام التميز</a> <else /> <a href="showthread.php?$session[sessionurl]do=award_remove&postid=$post[postid]">ألغي الوسام</a> </if> </if> </if> -------------------------------------------------------------------- أو هذا اذا كنت ترغبه للإدارة وكبار المراقبين وبقية المشرفين ضع هذا -------------------------------------------------------------------- <if condition="THIS_SCRIPT == showthread"> <if condition="can_moderate()"> <if condition="$post[award]=='0'"> <a href="showthread.php?$session[sessionurl]do=award&postid=$post[postid]">إمنح الموضوع وسام التميز</a> <else /> <a href="showthread.php?$session[sessionurl]do=award_remove&postid=$post[postid]">ألغي الوسام</a> </if> </if> </if> -------------------------------------------------------------------- ابحث عن -------------------------------------------------------------------- <if condition="$show['reputation']"> -------------------------------------------------------------------- أعلى منه ضع -------------------------------------------------------------------- <if condition="$post[award]=='1'"><div align="center"> <img src="$stylevar[imgdir_misc]/rosette.gif" alt="موضوع متميز"> </div></if> -------------------------------------------------------------------- او ابحث عن هذا -------------------------------------------------------------------- <!-- message --> <div id="post_message_$post[postid]">$post[message]</div> <!-- / message --> -------------------------------------------------------------------- وأعلى منه ضع الكود -------------------------------------------------------------------- <!-- award hack --> <if condition="$post[award]=='1'"><div align="center"> <img src="$stylevar[imgdir_misc]/rosette.gif" alt="موضوع متميز" align="left"> </div></if> <!-- / award hack --> -------------------------------------------------------------------- احفظ القالب -------------------------------------------------------------------- في قالب navbar: ابحث عن -------------------------------------------------------------------- <td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td> -------------------------------------------------------------------- أسفل منه أضف -------------------------------------------------------------------- </tr> <tr> <td class="vbmenu_option"><a href="search.php?do=findallawards">ابحث عن جميع المواضيع المتميزة</a></td> -------------------------------------------------------------------- في قالب MEMBERINFO: ابحث عن -------------------------------------------------------------------- <if condition="$vboptions['profilelastpost']"> -------------------------------------------------------------------- أعلى منه أضف: -------------------------------------------------------------------- <tr> <td><a href="search.php?$session[sessionurl]do=findawards&u=$userinfo[userid]">ابحث عن المواضيع المتميزة لـ $userinfo[username]</a></td> </tr> -------------------------------------------------------------------- مبروك انتهى التركيب لانة ملف المنتج الذى يرفع من داخل المنتدى ويكن الملف بهذا الشكل xml.gif ويكون اسمة هكذا product-post_award_2_3.5.x.xml هذا محتوى الملف: كود: <?xml version="1.0" encoding="ISO-8859-1"?>
<product productid="post_award" title="Post Award Hack" description="Post Award Hack" version="2.0" active="1">
<codes>
<code version="2.0b2">
<installcode><![CDATA[$vbulletin->db->query_write("ALTER TABLE `". TABLE_PREFIX ."post` ADD `award` TINYINT( 1 ) UNSIGNED DEFAULT '0' NOT NULL");]]></installcode>
<uninstallcode><![CDATA[$vbulletin->db->query_write("ALTER TABLE `". TABLE_PREFIX ."post` DROP `award`");]]></uninstallcode>
</code>
</codes>
<templates>
</templates>
<plugins>
<plugin active="1">
<title>Post Award Hack</title>
<hookname>showthread_start</hookname>
<phpcode><![CDATA[if ($_REQUEST['do'] == 'award')
{
if (can_moderate($threadinfo['forumid']))
{
$vbulletin->db->query_write("
UPDATE `". TABLE_PREFIX ."post` SET `award` = '1' WHERE `postid` = '$postid' LIMIT 1
");
$vbulletin->url = "showthread.php?$session[sessionurl]p=$postid";
eval(print_standard_redirect('redirect_added_award'));
}
else
{
print_no_permission();
}
}
if ($_REQUEST['do'] == 'award_remove')
{
if (can_moderate($threadinfo['forumid']))
{
$vbulletin->db->query_write("
UPDATE `". TABLE_PREFIX ."post` SET `award` = '0' WHERE `postid` = '$postid' LIMIT 1
");
$vbulletin->url = "showthread.php?$session[sessionurl]p=$postid";
eval(print_standard_redirect('redirect_removed_award'));
}
else
{
print_no_permission();
}
}]]></phpcode>
</plugin>
<plugin active="1">
<title>Post Award Hack</title>
<hookname>search_start</hookname>
<phpcode><![CDATA[if ($_REQUEST['do'] == 'findawards')
{
$bbuserinfo = $vbulletin->userinfo;
$vboptions = $vbulletin->options;
$vbulletin->input->clean_array_gpc('r', array(
'userid' => TYPE_UINT,
));
// valid user id?
if (!$vbulletin->GPC['userid'])
{
eval(standard_error(fetch_error('invalidid', $vbphrase['user'], $vbulletin->options['contactuslink'])));
}
// get user info
if ($user = $db->query_first("SELECT userid, username, posts FROM " . TABLE_PREFIX . "user WHERE userid = " . $vbulletin->GPC['userid']))
{
$searchuser =& $user['username'];
}
// could not find specified user
else
{
eval(standard_error(fetch_error('invalidid', $vbphrase['user'], $vbulletin->options['contactuslink'])));
}
// #############################################################################
// build search hash
$query = '';
$searchuser = $user['username'];
$exactname = 1;
$starteronly = 0;
$forumchoice = $foruminfo['forumid'];
$childforums = 1;
$titleonly = 0;
$showposts = 1;
$searchdate = 0;
$beforeafter = 'after';
$replyless = 0;
$replylimit = 0;
$searchthreadid = 0;
($hook = vBulletinHook::fetch_hook('search_finduser_start')) ? eval($hook) : false;
$searchhash = md5(TIMENOW . "||" . $vbulletin->userinfo['userid'] . "||" . strtolower($searchuser) . "||$exactname||$starteronly||$forumchoice||$childforums||$titleonly||$showposts||$searchdate||$beforeafter||$replyless||$replylimit||$searchthreadid");
// check if search already done
//if ($search = $db->query_first("SELECT searchid FROM " . TABLE_PREFIX . "search AS search WHERE searchhash = '" . $db->escape_string($searchhash) . "'"))
//{
// $vbulletin->url = "search.php?" . $vbulletin->session->vars['sessionurl'] . "searchid=$search[searchid]";
// eval(print_standard_redirect('search'));
//}
// start search timer
$searchtime = microtime();
// #############################################################################
// check to see if we should be searching in a particular forum or forums
if ($forumids = fetch_search_forumids($forumchoice, $childforums))
{
$forumids = 'thread.forumid IN(' . implode(',', $forumids) . ')';
$showforums = true;
}
else
{
$forumids = '0';
foreach ($vbulletin->forumcache AS $forumid => $forum)
{
$fperms =& $vbulletin->userinfo['forumpermissions']["$forumid"];
if (($fperms & $vbulletin->bf_ugp_forumpermissions['canview']) AND ($fperms & $vbulletin->bf_ugp_forumpermissions['canviewothers']))
{
$forumids .= ",$forumid";
}
}
$forumids = "thread.forumid IN($forumids)";
$showforums = false;
}
// query post ids in dateline DESC order...
$orderedids = array();
$posts = $db->query_read("
SELECT postid
FROM " . TABLE_PREFIX . "post AS post " . iif($forumids, "
INNER JOIN " . TABLE_PREFIX . "thread AS thread ON(thread.threadid = post.threadid)
WHERE post.userid = $user[userid]
AND post.award != 0
AND $forumids") . "
ORDER BY post.dateline DESC
LIMIT " . ($vbulletin->options['maxresults'] * 2) . "
");
while ($post = $db->fetch_array($posts))
{
$orderedids[] = $post['postid'];
}
unset($post);
$db->free_result($posts);
// did we get some results?
if (empty($orderedids))
{
eval(standard_error(fetch_error('searchnoresults', $displayCommon), '', false));
}
// set display terms
$display = array(
'words' => array(),
'highlight' => array(),
'common' => array(),
'users' => array($user['userid'] => $user['username']),
'forums' => iif($showforums, $display['forums'], 0),
'options' => array(
'starteronly' => 0,
'childforums' => 1,
'action' => 'process'
)
);
// end search timer
$searchtime = fetch_microtime_difference($searchtime);
($hook = vBulletinHook::fetch_hook('search_finduser_complete')) ? eval($hook) : false;
/*insert query*/
$db->query_write("
REPLACE INTO " . TABLE_PREFIX . "search (userid, ipaddress, personal, searchuser, forumchoice, sortby, sortorder, searchtime, showposts, orderedids, dateline, displayterms, searchhash)
VALUES (" . $vbulletin->userinfo['userid'] . ", '" . $db->escape_string(IPADDRESS) . "', 1, '" . $db->escape_string($user['username']) . "', '" . $db->escape_string($forumchoice) . "', 'post.dateline', 'DESC', $searchtime, 1, '" . $db->escape_string(implode(',', $orderedids)) . "', " . TIMENOW . ", '" . $db->escape_string(serialize($display)) . "', '" . $db->escape_string($searchhash) . "')
");
$searchid = $db->insert_id();
$vbulletin->url = "search.php?" . $vbulletin->session->vars['sessionurl'] . "searchid=$searchid";
eval(print_standard_redirect('search'));
}
// #############################################################################
if ($_REQUEST['do'] == 'findallawards')
{
$bbuserinfo = $vbulletin->userinfo;
$vboptions = $vbulletin->options;
// #############################################################################
// build search hash
$query = '';
$searchuser = $user['username'];
$exactname = 1;
$starteronly = 0;
$forumchoice = $foruminfo['forumid'];
$childforums = 1;
$titleonly = 0;
$showposts = 1;
$searchdate = 0;
$beforeafter = 'after';
$replyless = 0;
$replylimit = 0;
$searchthreadid = 0;
($hook = vBulletinHook::fetch_hook('search_finduser_start')) ? eval($hook) : false;
$searchhash = md5(TIMENOW . "||" . $vbulletin->userinfo['userid'] . "||" . strtolower($searchuser) . "||$exactname||$starteronly||$forumchoice||$childforums||$titleonly||$showposts||$searchdate||$beforeafter||$replyless||$replylimit||$searchthreadid");
// check if search already done
//if ($search = $db->query_first("SELECT searchid FROM " . TABLE_PREFIX . "search AS search WHERE searchhash = '" . $db->escape_string($searchhash) . "'"))
//{
// $vbulletin->url = "search.php?" . $vbulletin->session->vars['sessionurl'] . "searchid=$search[searchid]";
// eval(print_standard_redirect('search'));
//}
// start search timer
$searchtime = microtime();
// #############################################################################
// check to see if we should be searching in a particular forum or forums
if ($forumids = fetch_search_forumids($forumchoice, $childforums))
{
$forumids = 'thread.forumid IN(' . implode(',', $forumids) . ')';
$showforums = true;
}
else
{
$forumids = '0';
foreach ($vbulletin->forumcache AS $forumid => $forum)
{
$fperms =& $vbulletin->userinfo['forumpermissions']["$forumid"];
if (($fperms & $vbulletin->bf_ugp_forumpermissions['canview']) AND ($fperms & $vbulletin->bf_ugp_forumpermissions['canviewothers']))
{
$forumids .= ",$forumid";
}
}
$forumids = "thread.forumid IN($forumids)";
$showforums = false;
}
// query post ids in dateline DESC order...
$orderedids = array();
$posts = $db->query_read("
SELECT postid
FROM " . TABLE_PREFIX . "post AS post " . iif($forumids, "
INNER JOIN " . TABLE_PREFIX . "thread AS thread ON(thread.threadid = post.threadid)
WHERE post.award != 0
AND $forumids") . "
ORDER BY post.dateline DESC
LIMIT " . ($vbulletin->options['maxresults'] * 2) . "
");
while ($post = $db->fetch_array($posts))
{
$orderedids[] = $post['postid'];
}
unset($post);
$db->free_result($posts);
// did we get some results?
if (empty($orderedids))
{
eval(standard_error(fetch_error('searchnoresults', $displayCommon), '', false));
}
// set display terms
$display = array(
'words' => array(),
'highlight' => array(),
'common' => array(),
'forums' => iif($showforums, $display['forums'], 0),
'options' => array(
'starteronly' => 0,
'childforums' => 1,
'action' => 'process'
)
);
// end search timer
$searchtime = fetch_microtime_difference($searchtime);
($hook = vBulletinHook::fetch_hook('search_finduser_complete')) ? eval($hook) : false;
/*insert query*/
$db->query_write("
REPLACE INTO " . TABLE_PREFIX . "search (userid, ipaddress, personal, searchuser, forumchoice, sortby, sortorder, searchtime, showposts, orderedids, dateline, displayterms, searchhash)
VALUES (" . $vbulletin->userinfo['userid'] . ", '" . $db->escape_string(IPADDRESS) . "', 1, '" . $db->escape_string($user['username']) . "', '" . $db->escape_string($forumchoice) . "', 'post.dateline', 'DESC', $searchtime, 1, '" . $db->escape_string(implode(',', $orderedids)) . "', " . TIMENOW . ", '" . $db->escape_string(serialize($display)) . "', '" . $db->escape_string($searchhash) . "')
");
$searchid = $db->insert_id();
$vbulletin->url = "search.php?" . $vbulletin->session->vars['sessionurl'] . "searchid=$searchid";
eval(print_standard_redirect('search'));
}]]></phpcode>
</plugin>
</plugins>
<phrases>
</phrases>
<options>
</options>
</product> rosette1.gif rosette.gif ___________________________ اما بخصوص المشكلة التى تواجهكم فى التحميل سوف تحل بامر اللة | ||
| | |
![]() |
| مواقع النشر |
| أدوات الموضوع | |
| خيارات عرض الموضوع | |
| |
المواضيع المتشابهه | ||||
| الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
| هاك إظهار جميع قراء الموضوع من الاعضاء في أعلى الموضوع | ziko | منتدى vbulletin 3.6.x | 3 | 25-11-2007 09:58 PM |
| حذف الايميل في الموضوع أو الرد | فهد | الشروحات والمشاكل والحلول والثغرات | 2 | 16-07-2006 02:42 PM |
| سكربت المتميز لإدارة إعلانات موقعك | ziko | منتدى تطوير المواقع | 2 | 30-04-2006 03:12 PM |
| تمبلت منع نسخ الموضوع | ziko | الشروحات والمشاكل والحلول والثغرات | 0 | 16-04-2005 08:44 AM |