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-30-2005 07:01 PM

Quote:

Originally Posted by swarangal.com
i did wot ever mentioned in the text no luck nothing shows up in my pm same old style am i missin something here?

It will not show anything different inside the PM, only on the messages list. When you view your inbox contents for example.

sv1cec 05-30-2005 07:24 PM

Quote:

Originally Posted by Lionel
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

Not a bad idea. I thus changed the installation instructions to provide the two different alternatives, one with the synopsis in a separate column, or in the same column as the message title and sender.

Version 1.02, I out-did myself, three versions in one day! LoL

Lionel 05-30-2005 07:37 PM

You don't really need to change the other templates. Date can be with same <td>.

sv1cec 05-30-2005 08:43 PM

I know, and maybe you are right, this might be the way to go, however, I do not like it when the data/time are in the same <td>, it's kind of messy. But I agree, the hack becomes much simpler, since those who install it, have to edit only one template.

I think I shall add another alternative. LoL, this is getting ridiculous!

I also added some code to allow your users to select if they want to have a synopsis or not, as well as to define the length of the synopsis. If someone is interested, I can provide the code for that, it entitles a couple of changes in profile.php and a change in the modifyoptions template. Maybe we should move to ... version 2.0!! LOL

Lionel 05-30-2005 09:17 PM

Oh yes, I'd like that option

Lionel 05-31-2005 01:00 AM

Can you make it strip the quotes?

sv1cec 05-31-2005 05:48 AM

OK, the instructions are now in the installation text file. If anyone wants to upgrade from 1.xx to 2.0 and can't figure out how to do it, let me know.

Rgds

Lionel 05-31-2005 05:56 AM

To remove the quoted message, I added:

Quote:

$synopsis = strip_quotes(trim($pm['message']));

Lionel 05-31-2005 06:00 AM

I'll tell you, this hack is pretty helpful. I get lots of PM daily and now I don't have to dig into each one of them to locate a single one. And it also makes easy to clean up the message boxes. We just have to wait until someone decides to "ajax" the delete :-)

sv1cec 05-31-2005 06:18 AM

Yeah, and you make me include new things every hour!

Strip quotes are now in the instructions. I also made a change in the way the instructions related to the profile.php file, so please check it out again.

I promise, no more changes, unless Lionel comes up with another good idea!

LoL


All times are GMT. The time now is 07:21 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.01083 seconds
  • Memory Usage 1,734KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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