سلام
مطمئنا این دو هکی که من می خوام قبلا توی انجمن قرار داده شدن اما از اونجایی که نمی دونستم اصلا باید دنبال چی بگردم همین جا در قالب تصویر عنوان کردم (شرمنده)
1. هک برای انتخاب محتویات کد ها و اچ تی ام ال ها:
برای اینکه اخرین ارسال های انجمن رو در سایت یا جای دیگر نشون بدین از این کد استفاده کنید
کد:<?php echo '<div id="MTForumBlock"> <table id="lastpost"> <tr class="MTForumfirst"> <td class="MTForumtitle">عنوان</td> <td class="MTForumanswer">پاسخ</td> <td class="MTForumview">بازديد</td> <td class="MTForumview">توسط</td> </tr>'; ## CUSTOMIZE SETTINGS FOR YOUR SITE ## $db_host = "localhost"; // Change this if your MySQL database host is different. $db_name = "dbname"; // Change this to the name of your database. $db_user = "dbuser"; // Change this to your database username. $db_pw = "dbpass"; // Change this to your database password. $forum_url = "http://vbiran.ir/"; // Change this to reflect to your forum's URL. $forum_id = ""; $limit = "15"; // Number of posts displayed. $txtlimit = "100"; // This is the character limit. ####################################### // Connecting to your database mysql_connect($db_host, $db_user, $db_pw) OR die ("Cannot connect to your database"); mysql_select_db($db_name) OR die("Cannot connect to your database"); if ($forum_id) { $forumid = "AND forumid=$forum_id"; } if ($limit) { $limited = "LIMIT $limit"; } $thread_sql = mysql_query("SELECT threadid,title,lastpost,lastposter,replycount,views FROM thread WHERE visible=1 AND open=1 $forumid ORDER BY lastpost DESC $limited"); while($thread_get=mysql_fetch_array($thread_sql)) { $replycount = $thread_get['replycount']; $views = $thread_get['views']; $lastpost = $thread_get['lastpost']; $poster = $thread_get['lastposter']; $tid = $thread_get['threadid']; $psql = mysql_query("SELECT postid FROM post WHERE threadid=$tid ORDER BY postid DESC"); $getp=mysql_fetch_array($psql); $pid = $getp['postid']; $title = $thread_get['title']; $title = substr($title,0,$txtlimit); echo " <tr> <td class=\"MTForumrowtitle\"> <a href=\"".$forum_url."showthread.php?t=$tid&p=$pid\" target=\"_blank\"> <img src=\"/FBarrow.gif\" border=\"0\"> $title</a></td> <td class=\"MTForumanswer\">$replycount</td> <td class=\"MTForumview\">$views</td> <td class=\"MTForumview\">$poster</td> </tr>"; } echo " </tr> </table> </div>"; ?>![]()
صلوات بر محمد و خواندان پاکش
____________________________
برای ته انجمن از این سایت استفاده کنید :
http://www.abzarak.com/?page_id=59
آدرس rss وی بی رو توش بزنید یک کد میده کد رو هرجا میخواید بذارید .
http://www.vbulletin.org/forum/showthread.php?t=172255
This is small hack used Script selectCode.
Install:
1. Open Temp: headinclude
Add below:
2. Open bbcode_code:کد:<script type="text/javascript"> function selectCode(a) { var e = a.parentNode.parentNode.getElementsByTagName('PRE')[0]; if (window.getSelection) { var s = window.getSelection(); if (s.setBaseAndExtent) { s.setBaseAndExtent(e, 0, e, e.innerText.length - 1); } else { var r = document.createRange(); r.selectNodeContents(e); s.removeAllRanges(); s.addRange(r); } } else if (document.getSelection) { var s = document.getSelection(); var r = document.createRange(); r.selectNodeContents(e); s.removeAllRanges(); s.addRange(r); } else if (document.selection) { var r = document.body.createTextRange(); r.moveToElementText(e); r.select(); } } </script>
find:
[CODE]$vbphraseAdd below:کد::
3. Open bbcode_html:کد:<a href="#" onclick="selectCode(this); return false;"><input type="button" value="Select All" /></a>
find:
Add below:کد:$vbphrase[html_code]:
4. Open bbcode_php:کد:<a href="#" onclick="selectCode(this); return false;"><input type="button" value="Select All" /></a>
find:
Add below:کد:$vbphrase[php_code]:
Next find:کد:<a href="#" onclick="selectCode(this); return false;"><input type="button" value="Select All" /></a>
Replace with:کد:$code
That´s all.کد:<pre>$code</pre>
VBIran.
سلام
ممنون
اما توی bbcode_code و bbcode_html و bbcode_php کد های مورد نظر رو پیدا نکردم
bbcode_code من:
bbcode_html من:کد:<div class="bbcode_container"> <div class="bbcode_description">{vb:rawphrase code}:</div> <pre class="bbcode_code"<vb:if condition="$vboptions['codemaxlines']">style="height:<vb:if condition="$blockheight<$vboptions['codemaxlines']">{vb:math {vb:raw blockheight}*{vb:stylevar mid_fontSize}+{vb:stylevar mid_fontSize}*2}<vb:else />{vb:math {vb:raw blockheight}*{vb:stylevar mid_fontSize}+{vb:stylevar mid_fontSize}}</vb:if>;"</vb:if>>{vb:raw code}</pre> </div>
و bbcode_php من:کد:<div class="bbcode_container"> <div class="bbcode_description">{vb:rawphrase html_code}:</div> <pre class="bbcode_code"<vb:if condition="$vboptions['codemaxlines']"> style="height:<vb:if condition="$blockheight<=$vboptions['codemaxlines']">{vb:math {vb:math {vb:raw blockheight}+2}}*{vb:stylevar mid_fontSize}}<vb:else />{vb:math {vb:math {vb:raw blockheight}+1}*{vb:stylevar mid_fontSize}}</vb:if>;"</vb:if>>{vb:raw code}</pre> </div>
شما خودتون نگاه کنید ..............کد:<div class="bbcode_container"> <div class="bbcode_description">{vb:rawphrase php_code}:</div> <div class="bbcode_code"<vb:if condition="$vboptions['codemaxlines']">style="height:<vb:if condition="$blockheight<$vboptions['codemaxlines']">{vb:math {vb:raw blockheight}*{vb:stylevar mid_fontSize}+{vb:stylevar mid_fontSize}*2}<vb:else />{vb:math {vb:raw blockheight}*{vb:stylevar mid_fontSize}+{vb:stylevar mid_fontSize}}</vb:if>;"</vb:if>><code>{vb:raw code}</code></div> </div>
نمونه bbcode_code وی بی ایران :
کد:<div class="bbcode_container"> <div class="bbcode_description">{vb:rawphrase code}: <a href="#" onclick="selectCode(this); return false;"><input type="button" value="انتخاب محتویات" /></a> </div> <pre class="bbcode_code"<vb:if condition="$vboptions['codemaxlines']">style="height:<vb:if condition="$blockheight<$vboptions['codemaxlines']">{vb:math {vb:raw blockheight}*{vb:stylevar mid_fontSize}+{vb:stylevar mid_fontSize}*2}<vb:else />{vb:math {vb:raw blockheight}*{vb:stylevar mid_fontSize}+{vb:stylevar mid_fontSize}}</vb:if>;"</vb:if>>{vb:raw code}</pre> </div>
در حال حاضر 1 کاربر در حال مشاهده این موضوع است. (0 کاربران و 1 مهمان ها)
علاقه مندی ها (Bookmarks)