Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
postbit in PM for fixed styles Details »»
postbit in PM for fixed styles
Version: 1.00, by zascok zascok is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Category: Private Messages Enhancements - Version: 4.2.0 Rating:
Released: 08-03-2012 Last Update: Never Installs: 8
Template Edits
Re-useable Code Translations  
No support by the author.

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

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

Screenshots

File Type: jpg xyFc1A198U.jpg (120.1 KB, 0 views)
File Type: jpg 13xXo3r4qd.jpg (161.2 KB, 0 views)
File Type: jpg b3YG8x5z3y.jpg (175.4 KB, 0 views)
File Type: jpg Untitled-4.jpg (106.4 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-17-2012, 01:37 PM
ChiNa ChiNa is offline
 
Join Date: Jul 2012
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is amazing,, Very effective mate, Keep up the good job,,
Reply With Quote
  #3  
Old 09-28-2012, 08:35 PM
Superorb Superorb is offline
 
Join Date: Feb 2012
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 10-23-2012, 10:17 AM
root2012 root2012 is offline
 
Join Date: Oct 2012
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

give it for 4.1.0
I like really nice otherwise
Reply With Quote
  #5  
Old 10-23-2012, 01:43 PM
Superorb Superorb is offline
 
Join Date: Feb 2012
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Superorb View Post
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?
Reply With Quote
  #6  
Old 11-01-2012, 07:17 PM
DannyV DannyV is offline
 
Join Date: Mar 2012
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Superorb View Post
Anyone?
Same here.
Removed some space from the if condition ans now everything works fine.

Code:
<vb:if condition="THIS_SCRIPT == 'private'">
Nice mod.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:36 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05265 seconds
  • Memory Usage 2,274KB
  • Queries Executed 20 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (8)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (4)postbit_attachment
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete