vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Private Messages Enhancements - postbit in PM for fixed styles (https://vborg.vbsupport.ru/showthread.php?t=286319)

zascok 08-03-2012 10:00 PM

postbit in PM for fixed styles
 
1 Attachment(s)
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

Code:

<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

Code:

<vb:if condition = "THIS_SCRIPT == 'private'">
6. copy and paste this in the very end of it
Code:

<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
Code:

</vb:if>
9.
Code:

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.

Code:

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

Quote:

Originally Posted by Superorb (Post 2369327)
I'm getting an invalid IF statement error when I go to save the file.

Code:

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

Quote:

Originally Posted by Superorb (Post 2375312)
Anyone?

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

Code:

<vb:if condition="THIS_SCRIPT == 'private'">
Nice mod.


All times are GMT. The time now is 07:03 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01912 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete