Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Add a synopsis of each PM in the Message List Version 2.0 Details »»
Add a synopsis of each PM in the Message List Version 2.0
Version: 2.0, by sv1cec sv1cec is offline
Developer Last Online: Mar 2022 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 05-29-2005 Last Update: 06-04-2005 Installs: 27
Template Edits
Code Changes  
No support by the author.

I got the idea for this hack, while trying to prune my Inbox from old (and useless) PMs. As it usually happens, I didn't remember from the title, what each PM was about, so I kept going back and forth between the Message List and the messages themselves.

I thought that if I could have a small part of the PM shown in the list, it would help my work enormously. So, I took some time to do it. I call that initial part of the PM which is shown in the Messages List, a "synopsis".

Easy hack, one or two file edits and anything from one template edit.

Please remember to click Install, if you like this.

Version 1.01 : Following another member's suggestion, I removed the possible bbcode from the synopsis of the messages, shown in the Message List.

Version 2.0 : In this version, I added the option of allowing the forum users to select if they want to see a synopsis of their PMs in the Messages List or not, and to define how long their synopsis should be. A new column is added in your user table for this functionality.

PLEASE NOTE: There are several alternative ways to show your synopsis, after mentionning two or three of them, I decided to remove them from the installation instructions and mention only the simpler one, which requires only one template modification, in the simplest form. This was done in order to avoid confusion between the users who decide to install this hack. The way the synopsis is presented is a template issue, so it should be easy to come up with any alternatives you want.

Rgds

Show Your Support

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

Comments
  #32  
Old 06-03-2005, 12:44 AM
mkdevo mkdevo is offline
 
Join Date: May 2004
Location: CT, USA
Posts: 269
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just installed. works great! thanks!

it looks like the text file cuts off at the end... is that right?

EDIT: also, wouldn't this be better suited in the PM Enhancement forum? i'd run across it the other day, and went back to look for it today and it took a while..
Reply With Quote
  #33  
Old 06-03-2005, 03:09 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the nice words.

No the file doesn't cut off at the end. I was in a hurry to upload it, since a member noticed that I hadn't included the memberinfo template modifications, so I just send it like that.

And yes, it might be better of in the PM enhancements, but since it started with a couple of lines code changes, I put it here. Maybe I should ask a moderator to move it.

Rgds
Reply With Quote
  #34  
Old 06-03-2005, 09:48 AM
Delphy Delphy is offline
 
Join Date: Dec 2004
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sv1cec,

Sorry about this... but it should be the "modifyoptions" template, not the memberinfo one

I use a slightly different synopsis view, see the attached image.

Thanks,
Delphy
Reply With Quote
  #35  
Old 06-03-2005, 11:34 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh God, you are right, what was I thinking???

Thanks for pointing it out.

Yes, there can be any kind of synopsis styles. The ones I 've mentioned are some that I use or are easy to customize (only one template edit).

Again, thanks for pointing out my error.

Rgds
Reply With Quote
  #36  
Old 06-05-2005, 06:18 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Folks,

you might want to edit your usercp.php file, as well, to properly show the synopsis there too. To do that, open you usercp.php file and find:

PHP Code:
    eval('$userbit = "' fetch_template('pm_messagelistbit_user') . '";'); 
Right above that, add:

PHP Code:
    if ($bbuserinfo['synopsis']>0)
    {
        
$synopsis_length $bbuserinfo['synopsis'];
        
$synopsis strip_bbcode(strip_quotes(trim($pm['message'])));
        if (
strlen($synopsis)>$synopsis_length)
        {
            
$synopsis=substr($synopsis0$synopsis_length);
            
$synopsis=$synopsis " ... (more)";
        }
    } 
YOu may have to slightly modify the USERCP profile, depending on the synopsis template you select to use. If you need help, please let me know.
Reply With Quote
  #37  
Old 06-07-2005, 09:09 AM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent! I love it, thanks a lot.
Reply With Quote
  #38  
Old 06-07-2005, 09:34 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, appreciated!
Reply With Quote
  #39  
Old 06-24-2005, 12:44 AM
RockForums RockForums is offline
 
Join Date: Jun 2005
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome hack, thanks!
Reply With Quote
  #40  
Old 06-25-2005, 03:58 AM
midnightz midnightz is offline
 
Join Date: Jan 2003
Location: Inside the Velvet Tunnel
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

I have run into a snafu with this hack, but its not the hack at all but the way vBulletin 3.x handles thier Private Messgaes by calling on the postbit.

This code help that issue by letting me have the postbit as the PM type and legacy as my postbit.

PHP Code:
<if condition="THIS_SCRIPT == 'private'">
<!-- private 
message layout goes here -->
<else />
<!--
normal postbit code goes here -->
</if> 
Only thing is now the PM don't have my very extreme postbit in the PM, but it also won't call on your hack that I desperately want to include for my members.

If I need to explain in more detail I can.

Thanks
Reply With Quote
  #41  
Old 06-25-2005, 05:06 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, please elaborate, because I cannot understand what your problem is.

Rgds
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 11:15 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.04295 seconds
  • Memory Usage 2,310KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete