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)

mkdevo 06-03-2005 12:44 AM

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..

sv1cec 06-03-2005 03:09 AM

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

Delphy 06-03-2005 09:48 AM

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

sv1cec 06-03-2005 11:34 AM

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

sv1cec 06-05-2005 06:18 AM

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.

FleaBag 06-07-2005 09:09 AM

Excellent! I love it, thanks a lot. :)

sv1cec 06-07-2005 09:34 AM

Thanks, appreciated!

RockForums 06-24-2005 12:44 AM

Awesome hack, thanks! :)

midnightz 06-25-2005 03:58 AM

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

sv1cec 06-25-2005 05:06 AM

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

Rgds


All times are GMT. The time now is 03:33 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.01107 seconds
  • Memory Usage 1,740KB
  • 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_php_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