Log in

View Full Version : Private Messages Enhancements - postbit in PM for fixed styles


zascok
08-03-2012, 10:00 PM
All credits goes to https://vborg.vbsupport.ru/showthread.php?t=161859

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

O well a little bit to me as well :rolleyes:

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>
</vb:if>

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

suitable for any 4.x.x for the moment

ChiNa
08-17-2012, 01:37 PM
This is amazing,, Very effective mate, Keep up the good job,,

Superorb
09-28-2012, 08:35 PM
I'm getting an invalid IF statement error when I go to save the file.

The following error occurred when attempting to evaluate this template:
An empty or invalid 'if' condition was found.

root2012
10-23-2012, 10:17 AM
give it for 4.1.0
I like really nice otherwise

Superorb
10-23-2012, 01:43 PM
I'm getting an invalid IF statement error when I go to save the file.

The following error occurred when attempting to evaluate this template:
An empty or invalid 'if' condition was found.
Anyone?

DannyV
11-01-2012, 07:17 PM
Anyone?

Same here.
Removed some space from the if condition ans now everything works fine.

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

Nice mod.