سلام و خسته نباشید

من آموزش زیر رو میخواستم انجام بدم چند مرتبه تست کردم اما کلاً همه چی برام بهم ریخت , کدها رو معرفی میکنم تا دوستان اگر براشون امکان داره راهنمایی کنند (از استپ 5 به بعد مهم تر هست)



All credits goes to Forums kept as Postbit Legacy, but PMs displayed as original Postbit - vBulletin.org Forum

Jubei for question and Gray Matter for the idea of realisation on vb3

O well a little bit to me as well

Forgive my English, lets start.

The point is while I'm using postbit_legacy on the forum I wanted to use postbit in PMs. SImply more room, take into account the auto-quotation. And I didn't wanted to turn it off cos There Is No Answer with Quote any more. PMs on my board were turning into quoted hell hard to understand.

Enough of lyrics .

1.Backup your postbit_legacy.

2.Now copy everything from postbit into a text editor

3.If you want the avatars shown on the PMs' jump to step 5

4. Find in your postbit the one in text editor



کد:
<vb:if condition="$show['avatar']">                     <a class="postuseravatarlink" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">                         <vb:if condition="$post.avatarurl">                             <img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />                         <vb:else />                             <img src="{vb:stylevar imgdir_misc}/unknown.gif" />                         </vb:if>                     </a>


and get rid of it or comment it out

5. copy and paste this in the very beginning of postbit the one in text file


کد:
<vb:if condition = "THIS_SCRIPT == 'private'">



6. copy and paste this in the very end of it


کد:
<vb:else />




7. Now copy everything from text editor on the top of postbit_legacy template

8. scroll to the very end of postbit_legacy template, copy and paste this



کد:
</vb:if>


9.
Save the template. Enjoy