Warning: The author of this contribution does not provide support for it anymore.

Topic Text in Mouse Over

pm's - Topic Text in Mouse Over

pm's

by marian0810 » Sun Jan 23, 2011 1:21 pm

Is there a way to make this work in your pm inbox? That would be really useful to help me decide what to delete and what not without having to open every pm, because I have way too many.
You and me, time and space. You watch us run!
marian0810
Former Team Member
Posts: 3011
Joined: Mon May 21, 2007 9:17 pm
Location: The Netherlands
Name: Marian
Contact:

Re: pm's

by RMcGirr83 » Sun Jan 23, 2011 2:56 pm

You can try this

OPEN

includes/ucp/ucp_pm_viewfolder.php

FIND

Code: Select all

            // Send vars to template
            $template->assign_block_vars('messagerow', array(


BEFORE, ADD

Code: Select all

// BEGIN Topic Text Hover MOD
            $message_text_hover = '';
            if ($config['hover_active'] && !$user->data['user_text_hover'])
            {            
               if(!function_exists('bbcode_strip'))
               {
                  include($phpbb_root_path . 'includes/topic_text_hover.' . $phpEx);
               }
               $message_text_hover = censor_text(bbcode_strip($row['message_text']));
               if (utf8_strlen($message_text_hover) >= $config['hover_char_limit'])
               {
                  $message_text_hover = (utf8_strlen($message_text_hover) > $config['hover_char_limit'] + 3) ? utf8_substr($message_text_hover, 0, $config['hover_char_limit']) . '...' : $message_text_hover;
               }
            }
// END Topic Text Hover Mod


FIND

Code: Select all

               'SUBJECT'         => censor_text($row['message_subject']),


AFTER ADD

Code: Select all

               // BEGIN Topic Text Hover MOD
               'MESSAGE_TEXT'      => $message_text_hover,
               // END Topic Text Hover MOD


FIND

Code: Select all

   $sql = 'SELECT t.*, p.root_level, p.message_time, p.message_subject, p.icon_id, p.to_address, p.message_attachment, p.bcc_address, u.username, u.username_clean, u.user_colour, p.message_reported


REPLACE WITH

Code: Select all

   $sql = 'SELECT t.*, p.root_level, p.message_time, p.message_subject, p.message_text, p.icon_id, p.to_address, p.message_attachment, p.bcc_address, u.username, u.username_clean, u.user_colour, p.message_reported


OPEN

styles/prosilver/template/ucp_pm_viewfolder.html

FIND

Code: Select all

<a href="{messagerow.U_VIEW_PM}" class="topictitle">{messagerow.SUBJECT}</a>


REPLACE WITH

Code: Select all

<a href="{messagerow.U_VIEW_PM}" class="topictitle" <!-- IF messagerow.MESSAGE_TEXT -->title="{messagerow.MESSAGE_TEXT}"<!-- ENDIF -->>{messagerow.SUBJECT}</a>


for subsilver2

OPEN

styles/subsilver2/template/ucp_pm_viewfolder.html

FIND

Code: Select all

<a href="{messagerow.U_VIEW_PM}">{messagerow.SUBJECT}</a>


REPLACE WITH

Code: Select all

<a href="{messagerow.U_VIEW_PM}"  <!-- IF messagerow.MESSAGE_TEXT -->title="{messagerow.MESSAGE_TEXT}"<!-- ENDIF -->>{messagerow.SUBJECT}</a>


refresh the style in the ACP and see if that works for you.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21061
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: pm's

by marian0810 » Sun Jan 23, 2011 3:30 pm

Brilliant! Thank you so much, I'm very happy with this :D
You and me, time and space. You watch us run!
marian0810
Former Team Member
Posts: 3011
Joined: Mon May 21, 2007 9:17 pm
Location: The Netherlands
Name: Marian
Contact:

Re: pm's

by RMcGirr83 » Sun Jan 23, 2011 4:45 pm

:)

Image

It should also work on all the other PM boxes as well. ;)
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21061
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: pm's

by darkonia » Tue May 31, 2011 10:53 am

great addon, thx a lot!
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.
User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany
Contact: