vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   PM Preview 3.5 Edition (https://vborg.vbsupport.ru/showthread.php?t=94954)

BluPhoenix 08-23-2005 10:00 PM

PM Preview 3.5 Edition
 
This is a 3.5 Rewrite of my old hack, now using the plugin system (woo hoo!)

install the attached plugin and then make the following modification to the pm_messagelistbit template.

find:
Code:

        <td class="alt1Active" id="m$pm[pmid]" width="100%">
                <div>
                        <span style="float:$stylevar[right]" class="smallfont">$pm[senddate]</span>
                        <a href="private.php?$session[sessionurl]do=showpm&amp;pmid=$pm[pmid]"><if condition="$show['unread']"><strong>$pm[title]</strong><else />$pm[title]</if></a>
                </div>
                <div class="smallfont">
                        <span style="float:$stylevar[right]" class="time">$pm[sendtime]</span>
                        <if condition="$show['unread']"><strong>$userbit</strong><else />$userbit</if>
                </div>
       
        </td>

replace with:
Code:

        <td class="alt1Active" id="m$pm[pmid]" width="100%">
                <div>
                        <span style="float:$stylevar[right]" class="time" style="font-size:9px;">$pm[senddate] @ $pm[sendtime]</span>
                        <a href="private.php?$session[sessionurl]do=showpm&amp;pmid=$pm[pmid]"><if condition="$show['unread']"><strong>$pm[title]</strong><else />$pm[title]</if></a> (<if condition="$show['unread']"><strong>$userbit</strong><else />$userbit</if> )
                </div>
                <div class="smallfont">
                <i>$pm[pmpreview]</i>       
                </div>
       
        </td>

Extras

To change the length of the preview
Goto the Plugin Manager and in Hook Location : private_messagelist_messagebit find PM Preview v1 click "Edit" and towards the end of it find 300 and increase/reduce the value to lengthen/shorten the preview.

ALTERNATIVE VERSION: Thanks to Erwin for the suggestion
If you would rather have the preview show in a tooltip rather than show it below the PM title then change the required code in pm_messagelistbit to:

alternative code:
Code:

        <td class="alt1Active" id="m$pm[pmid]" width="100%" title="$pm[pmpreview]">
                <div>
                        <span style="float:$stylevar[right]" class="smallfont">$pm[senddate]</span>
                        <a href="private.php?$session[sessionurl]do=showpm&amp;pmid=$pm[pmid]"><if condition="$show['unread']"><strong>$pm[title]</strong><else />$pm[title]</if></a>
                </div>
                <div class="smallfont">
                        <span style="float:$stylevar[right]" class="time">$pm[sendtime]</span>
                        <if condition="$show['unread']"><strong>$userbit</strong><else />$userbit</if>
                </div>
       
        </td>

and that's all folks.. please remember to click the install and always tip your waitress.

Erwin 08-24-2005 12:03 PM

Cool idea. :)

You could even make it so that the message preview comes up as a tooltip within the template using title="". :)

johnbruce71 08-24-2005 12:28 PM

Quote:

Originally Posted by Erwin
Cool idea. :)

You could even make it so that the message preview comes up as a tooltip within the template using title="". :)

Great idea, Installed :)

Xplorer4x4 08-24-2005 02:01 PM

I made the edit and I uploaded the XML...not working for me. The PM inbox turn up the smae as it did. I have a mod to show newest unread PM on forum home instaled, so i tried to deactivate that plug in and that made no diiference.

Edit: It helps to install it on ALL templates now doesn;t it. Instaled and working fine!

uae 08-24-2005 02:51 PM

I like, installed with no problem :)

Erwin, cool tip.

FleaBag 08-24-2005 06:27 PM

Awesome! Had this installed on 3.0.8 about a week or so before I upgraded. Missed it haha! Thanks a lot. :)

dieselpowered 08-25-2005 12:39 AM

Is there a way to lengthen or shorten the review?? Hack looks great!!

Gizmo5h1t3 08-25-2005 06:25 AM

excellent work!!

looks real classy on the board!!

Biker_GA 08-25-2005 06:34 AM

Suggestion. Please include the template instructions in a file as well. This makes it easier to reload the plugin and make the edits in the event of a reload.

BluPhoenix 08-25-2005 11:21 AM

Quote:

Originally Posted by xtremeoff-road
Is there a way to lengthen or shorten the review?? Hack looks great!!

Goto the Plugin Manager and in Hook Location : private_messagelist_messagebit find PM Preview v1 click "Edit" and towards the end of it find 300 and increase/reduce the value to lengthen/shorten the preview.

(instructions updated)


All times are GMT. The time now is 03:09 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.01054 seconds
  • Memory Usage 1,743KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete