vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Private Messages Enhancements - PM Preview (https://vborg.vbsupport.ru/showthread.php?t=236528)

m03 02-20-2010 10:00 PM

PM Preview
 
1 Attachment(s)
Info:
Add a Preview to the PM Inbox making it easier to manage your Private Messages

This is a "backported" vb3 version of my new vb4 hack (https://vborg.vbsupport.ru/showthrea...27#post1988327)


Main Features:
- One step installation (no file uploads, no manual template modifications required)
- Option to enable/disable the Preview
- Preview Character Length can be altered by Admin.


Installation:
-Import XML file (as product): AdminCP > Plugin System > Manage Products > [Add/Import Product]


To set options:
Go to: AdminCP > vBulletin Options > PM Preview


Versions:
v0.1 - Feb 21, 2010 - First Version.

Daryn 02-22-2010 04:03 AM

Just a note, the select all checkbox doesn't seem to work.

Ramsesx 02-22-2010 08:37 AM

Quote:

Option to enable/disable the Preview
Is this a user option or only a global setting?

m03 02-22-2010 09:38 AM

Quote:

Originally Posted by Daryn (Post 1988561)
Just a note, the select all checkbox doesn't seem to work.

Will look info this now.

m03 02-22-2010 09:38 AM

Quote:

Originally Posted by Ramsesx (Post 1988646)
Is this a user option or only a global setting?

It's currently only an admin setting.. In the next version I'm looking into also making it a user option as well.

choccyclaire 02-22-2010 10:33 AM

Brilliant. Thank you.

m03 02-22-2010 05:13 PM

Quote:

Originally Posted by Daryn (Post 1988561)
Just a note, the select all checkbox doesn't seem to work.

I've tried to replicate this and haven't been able to, what other hacks do you have installed? (specifically those that do anything PM related)

grey_goose 02-22-2010 05:32 PM

Is there any difference between this and Princeton's mod ?

:confused:

Daryn 02-22-2010 05:46 PM

Quote:

Originally Posted by m03 (Post 1988916)
I've tried to replicate this and haven't been able to, what other hacks do you have installed? (specifically those that do anything PM related)

The only hacks that do anything related to PM are the "Quote Post to PM" mod and the "Pretty PM Notification". I don't know if that has anything to do with it.

m03 02-22-2010 06:31 PM

Quote:

Originally Posted by grey_goose (Post 1988930)
Is there any difference between this and Princeton's mod ?

:confused:

The Length of the preview on that one is set using the threadpreview length whereas mine has a independant setting so you could run this hack and have threadpreviews disabled if you want.. I'd say that is probably the biggest difference from just looking at the thread.

m03 02-22-2010 06:33 PM

Quote:

Originally Posted by Daryn (Post 1988941)
The only hacks that do anything related to PM are the "Quote Post to PM" mod and the "Pretty PM Notification". I don't know if that has anything to do with it.

Will get those installed and see if I can the problem.

Daryn 02-22-2010 09:50 PM

Quote:

Originally Posted by m03 (Post 1989015)
Will get those installed and see if I can the problem.

I disabled those two and still had the same problem. If you can't reproduce it I'll provide a list of all the hacks installed, one of them may be the culprit, but as of now I can't seem to get any of the messages to select if I check the "All" box. It's a minor thing, but kinda annoying. The old 3.6 mod for PM Preview did the same thing for me too.

m03 02-23-2010 12:08 AM

hmmm.. very odd, on my demo board the select all works on 1, 5, 20 messages.. haven't tested it with any more than that now.. It really shouldn't affect the select all as it doesn't interact with that, but I'll keep looking..

mgurain 02-23-2010 03:38 AM

Installed,
one thing, how can I change the color of the preview text to Gray ?
Thanks,,

ChopSuey 02-23-2010 12:33 PM

Quote:

Originally Posted by mgurain (Post 1989372)
Installed,
one thing, how can I change the color of the preview text to Gray ?
Thanks,,

Ehh, edit the templates perhaps.

m03 02-23-2010 01:29 PM

Quote:

Originally Posted by mgurain (Post 1989372)
Installed,
one thing, how can I change the color of the preview text to Gray ?
Thanks,,

In the pm_messagelistbit_preview template change:
Code:

<fieldset style="padding-left:10px;width:80%;border:0px;">$pm[pmpreview]</fieldset>
to:
Code:

<fieldset style="padding-left:10px;width:80%;border:0px;"><span style="color:silver;">$pm[pmpreview]</span></fieldset>
You can change the color in the style element to any name or hex color that takes your fancy.

SorentoUltimate 04-20-2010 09:01 AM

Hi,

thanks for the AddOn,

I start change some things to work with my styles and i found a small problem at the template

You open 2 <div> tags, but you close 3.

Look Here
(with Red Color the open and close div tags)

Code:

<tr>
    <td class="alt1" width="16"><img src="$stylevar[imgdir_statusicon]/pm_$pm[statusicon].gif" alt="" border="0" width="16" height="16" /></td>
    <if condition="$show['pmicons']"><td class="alt2" width="16"><if condition="$show['pmicon']"><img src="$pm[iconpath]" alt="$pm[icontitle]" border="0" width="16" height="16" /><else />&nbsp;</if></td></if>
    <td class="alt1Active" id="m$pm[pmid]" width="100%">
        <div>
            <div class="smallfont" style="float:$stylevar[right]"><if condition="$show['unread']"><strong>$pm[senddate] <span class="time">$pm[sendtime]</span></strong><else />$pm[senddate] <span class="time">$pm[sendtime]</span></if></div>
<if condition="$show['unread']"><strong>$userbit</strong><else />$userbit</if>: 
            <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>
        <fieldset style="padding-left:10px;width:80%;border:0px;">$pm[pmpreview]</fieldset>
      </div>
       
    </td>
    <if condition="$show['pmcheckbox']"><td class="alt2" align="center" style="padding:0px"><input type="checkbox" name="pm[$pmid]" value="$groupid" /></td></if>
</tr>


SorentoUltimate 04-20-2010 04:27 PM

Hi again,

i have another problem, much bigger now.....

you overwrite pm_messagelistbit with pm_messagelistbit_preview

That make a lot of problems if someone use also other AddOns on PM's who make changes to pm_messagelistbit.

you plan to change that or not?

also what about UserGroup Pemssions and User Options ?

Willy T 05-04-2010 03:47 PM

Quote:

Originally Posted by Daryn (Post 1988561)
Just a note, the select all checkbox doesn't seem to work.

Same problem. When I disable this hack the select all option works.

Sadie Frost 05-17-2010 09:53 PM

Probably (though untested) the same problem found in this hack: https://vborg.vbsupport.ru/showthread.php?t=178203 with the fix in post #45 https://vborg.vbsupport.ru/showpost....7&postcount=45

:)


All times are GMT. The time now is 04:00 PM.

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.01857 seconds
  • Memory Usage 1,766KB
  • 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
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (20)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