vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Add a synopsis of each PM in the Message List Version 2.0 (https://vborg.vbsupport.ru/showthread.php?t=82236)

sv1cec 05-29-2005 10:00 PM

Add a synopsis of each PM in the Message List Version 2.0
 
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

FightRice.com 05-30-2005 06:46 AM

Thats pretty nifty, I'll install this first thing tomorrow

obsidian 05-30-2005 06:47 AM

Works great....I have the same issue sorting through pm's from time to time.

sv1cec 05-30-2005 07:07 AM

Thanks guys, glad if you like it. Nothing serious, just a small one to help your users and yourselves out.

Rgds

AN-net 05-30-2005 01:28 PM

a suggestion would be is to remove the bbcode then trim. use strip_bbcode().

sv1cec 05-30-2005 02:24 PM

Good idea, time for version 1.1.

One question, why should I trim?

COBRAws 05-30-2005 04:07 PM

thumbs up m8, and taking off BBCode is what I was gonna say :P

AN-net 05-30-2005 04:30 PM

Quote:

Originally Posted by sv1cec
Good idea, time for version 1.1.

One question, why should I trim?

i meant before u use substr() but before substr you should use trim and then put the ...

swarangal.com 05-30-2005 05:31 PM

i did wot ever mentioned in the text no luck nothing shows up in my pm same old style am i missin something here?

Lionel 05-30-2005 05:42 PM

Really nice, thanks. Since I had Traffix flag pm hack installed, all I had to do is to add <div class='smallfont'>
$synopsis
</div>
in the messagelistbit template under the title and userbit <td>. And I linked the more in php to pm


All times are GMT. The time now is 10:34 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.01138 seconds
  • Memory Usage 1,728KB
  • 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
  • (1)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