vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Private Messages Enhancements - User PM Search (https://vborg.vbsupport.ru/showthread.php?t=149609)

TheMilkCarton 07-27-2007 09:53 PM

If you want your search results to utilize the Avatar in PM List & PM Preview hacks:

In the PM Search plugin,

FIND:
Code:

eval('$messagelistbits .= "' . fetch_template('pm_messagelistbit') . '";');
ADD ABOVE:
Code:

$sk_avurl = fetch_avatar_url($userid);
if($vbulletin->options['pm_preview'] AND $vbulletin->userinfo['pmpreview'])
{
    $prvmessage = htmlspecialchars_uni($pm['message']);
    if($vbulletin->options['pm_preview_strip_quotes'])
    {
        $prvmessage = strip_quotes($prvmessage);
    }
    $prvmessage = strip_bbcode($prvmessage);
   
    if(strlen($prvmessage) > $vbulletin->options['pm_preview'] AND $vbulletin->options['pm_preview'] != -1)
    {
        $prvmessage = fetch_trimmed_title($prvmessage, $vbulletin->options['pm_preview']);
    }
    $prvmessage = fetch_censored_text($prvmessage);

    eval('$pmpreview = "' . fetch_template('pm_preview') . '";');
}

In case you REALLY don't understand and need a screenshot.. :) Click --> Attachment 67593

Dannyloski 07-28-2007 03:11 AM

TheMilkCarton, would you be able to provide the Code to add if we wanted to make this Hack work with the GTPreview Messages Enhanced Listing Hack (link here) instead of the other one you posted?

TheMilkCarton 07-28-2007 12:57 PM

Quote:

Originally Posted by Dannyloski (Post 1303595)
TheMilkCarton, would you be able to provide the Code to add if we wanted to make this Hack work with the GTPreview Messages Enhanced Listing Hack (link here) instead of the other one you posted?

That mod is overly complicated. It basically forces you into keeping a "default-ish" pm_messagelistbit template just so that it can carry out the replace.

Why not instead use the PM Preview hack that lets you place the $pmpreview wherever you want in the pm_messagelistbit template? It also gives you separate ACP options instead of forcing you into using the same ACP setting for two different things.

You may want to ask Princeton how to integrate his PM Preview with this, sorry.

Dannyloski 07-28-2007 03:04 PM

^ Thanks ... I might uninstall the one I have now and change over to the one you listed as I really want to have this ability for the PM Search ...

Dannyloski 07-28-2007 03:42 PM

TheMilkCarton, I went ahead and Uninstalled the previous PM Preview Hack I had and installed the one you suggested. Then I followed the steps you listed in Post #71, but its not working for me. I see the PM Search Results as normal PMs and not with the PM Preview added ... Do I have to have the Avatar in PM List Hack installed? I dont want to add that Hack.

What I did was locate the below in PM Search Plugin:
Code:

eval('$messagelistbits .= "' . fetch_template('pm_messagelistbit') . '";');
And above I added:
Code:

eval('$pmpreview = "' . fetch_template('pm_preview') . '";');

TheMilkCarton 07-28-2007 03:51 PM

You still have to follow the template edits for the hacks. And if you want the avatar in the message list AND the search results you have to install that hack too.

Why don't you want to install the Avatar hack? It's a plugin that consists of ONE line and then adding the avatar code to the messagelistbit template.
Quote:

Originally Posted by TheMilkCarton (Post 1303441)
If you want your search results to utilize the Avatar in PM List & PM Preview hacks

And note I said to "utilize"... Meaning that my plugin edit requires you already have the hacks installed. :)

Dannyloski 07-28-2007 04:08 PM

I have the Hacks (User PM Search & PM Preview) installed, both of them and did all the Template Edits ...

I dont want to install the Avatar Hack, cause I just dont want it for my Forum ...

TheMilkCarton 07-28-2007 04:12 PM

Quote:

Originally Posted by Dannyloski (Post 1303962)
Do I have to have the Avatar in PM List Hack installed? I dont want to add that Hack.

Quote:

Originally Posted by Dannyloski (Post 1303988)
I dont want to install the Avatar Hack, cause I just dont want it for my Forum ...

Sorry, I thought you meant you wanted avatars for search results but not in the normal PM list.. and it confused me. I'm tired. :)

stwilson 07-28-2007 04:24 PM

Is it just me or is the Read Me on this MOD all jumbled up?

Dannyloski 07-28-2007 04:44 PM

TheMilkCarton, Oh I see why you got confused ... Its okay ...

Anyways, can you still help me to see why the Code is not working for me? I've done all the Template Edits per Hack and I added the code you said to add to the PM Search plugin, but the Search Results from the PM Search Hack still display like regular ones and not with the PM Preview option ...


All times are GMT. The time now is 02:59 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.01462 seconds
  • Memory Usage 1,746KB
  • 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
  • (4)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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