Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: snork13 on February 03, 2006, 12:39:52 AM

Title: MessagePreviewOnMouseOver
Post by: snork13 on February 03, 2006, 12:39:52 AM
Link to Mod (http://mods.simplemachines.org/index.php?mod=263)

This modification adds the preview of the first post within a topic. The admin has the ability to choose the length of the preview within the Admin section under Posts & Topics. Please note the message preview length by default is set to 0, which renders no preview.



Package has been updated to version 1.8
Title: Re: MessagePreviewOnMouseOver
Post by: flapper on February 03, 2006, 10:22:52 AM
Will this work on the Show unread posts since last visit (action=unread) page as well.
Title: Re: MessagePreviewOnMouseOver
Post by: houston on February 03, 2006, 11:11:36 AM
Thanks Works great.
Title: Re: MessagePreviewOnMouseOver
Post by: dtm.exe on February 03, 2006, 11:25:28 AM
Great idea!  :)
Title: Re: MessagePreviewOnMouseOver
Post by: ArkServer on February 03, 2006, 12:12:11 PM
lovin it :)
Title: Re: MessagePreviewOnMouseOver
Post by: Gumbie on February 03, 2006, 06:58:23 PM
Cant get mine to work it comes up with a failure...

   Execute Modification     ./Themes/default/MessageIndex.template.php     Failure
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on February 03, 2006, 10:02:20 PM
Quote from: Gumbie on February 03, 2006, 06:58:23 PM
Cant get mine to work it comes up with a failure...

   Execute Modification     ./Themes/default/MessageIndex.template.php     Failure

could you post you MessageIndex.template file? you have any other mods installed?
Title: Re: MessagePreviewOnMouseOver
Post by: Gumbie on February 10, 2006, 06:00:58 PM
<?php
// Version: 1.0; MessageIndex

function template_main()
{
global $context$settings$options$scripturl$modSettings$txt;

echo '
<table width="100%" cellpadding="3" cellspacing="0">
<tr>
<td><a name="top"></a>'
theme_linktree(), '</td>';
if (!empty($settings['display_who_viewing']))
{
echo '
<td class="smalltext" align="right">'
;
if ($settings['display_who_viewing'] == 1)
echo count($context['view_members']), ' 'count($context['view_members']) == $txt['who_member'] : $txt[19];
else
echo empty($context['view_members_list']) ? '0 ' $txt[19] : implode(', '$context['view_members_list']) . (empty($context['view_num_hidden']) || $context['can_moderate_forum'] ? '' ' (+ ' $context['view_num_hidden'] . ' ' $txt['hidden'] . ')');
echo $txt['who_and'], $context['view_num_guests'], ' '$context['view_num_guests'] == $txt['guest'] : $txt['guests'], $txt['who_viewing_board'], '</td>';
}
echo '
</tr>
</table>'
;

if (isset($context['boards']) && (!empty($options['show_children']) || $context['start'] == 0))
{
echo '
<div class="tborder" style="padding: 1px; margin-bottom: 2ex;"><table border="0" width="100%" cellspacing="1" cellpadding="5">
<tr class="titlebg">
<td colspan="4">'
$txt['parent_boards'], '</td>
</tr>'
;
foreach ($context['boards'] as $board)
{
echo '
<tr class="windowbg2">
<td class="windowbg" width="6%" align="center" valign="top">'
;

// Is this board itself new?
if ($board['new'])
echo '<img src="'$settings['images_url'], '/on.gif" alt="'$txt[333], '" title="'$txt[333], '" border="0" />';
// Is one of this board's children new, then?
elseif ($board['children_new'])
echo '<img src="'$settings['images_url'], '/on2.gif" alt="'$txt[333], '" title="'$txt[333], '" border="0" />';
// I guess it's not new at all.
else
echo '<img src="'$settings['images_url'], '/off.gif" alt="'$txt[334], '" title="'$txt[334], '" border="0" />';

echo '</td>
<td align="left">
<b><a href="'
$board['href'], '" name="b'$board['id'], '">'$board['name'], '</a></b><br />
'
$board['description'];

if (!empty($board['moderators']))
echo '
<div style="padding-top: 1px;" class="smalltext"><i>'
count($board['moderators']) == $txt[298] : $txt[299], ': 'implode(', '$board['link_moderators']), '</i></div>';

if (!empty($board['children']))
{
$children = array();
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' $txt[330] . ': ' $child['topics'] . ', ' $txt[21] . ': ' $child['posts'] . ')">' $child['name'] . '</a>';
$children[] = $child['new'] ? '<b>' $child['link'] . '</b>' $child['link'];
}

echo '
<div style="padding-top: 1px;" class="smalltext"><i>'
$txt['parent_boards'], ': 'implode(', '$children), '</i></div>';
}

echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">
'
$board['posts'], ' '$txt[21], ' '$txt['smf88'], '<br />
'
$board['topics'],' '$txt[330], '
</span></td>
<td class="smalltext" valign="middle" width="22%">'
;

if (!empty($board['last_post']['id']))
echo '
'
$txt[22], ' '$txt[30], ' '$board['last_post']['time'], '<br />
'
$txt['smf88'], ' '$board['last_post']['link'], ' '$txt[525], ' '$board['last_post']['member']['link'];

echo '
</td>
</tr>'
;
}
echo '
</table></div>'
;
}

if (!empty($options['show_board_desc']) && $context['description'] != '')
{
echo '
<table width="100%" cellpadding="6" cellspacing="0" border="0" class="tborder" style="margin-bottom: 1ex;">
<tr>
<td align="left" class="catbg" width="100%" height="24">
<span class="smalltext">'
$context['description'], '</span>
</td>
</tr>
</table>'
;
}
echo '
<table width="100%" cellpadding="3" cellspacing="0" border="0" class="tborder" style="margin-bottom: 1ex;">
<tr>
<td align="left" class="catbg" height="30">
<table cellpadding="3" cellspacing="0" width="100%">
<tr>
<td><b>'
$txt[139], ':</b> '$context['page_index'], $modSettings['topbottomEnable'] ? $context['menu_separator'] . '<a href="#bot">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/go_down.gif" alt="' $txt['topbottom5'] . '" border="0" align="top" />' $txt['topbottom5']) . '</a>' '''</td>
<td align="right" nowrap="nowrap" style="font-size: smaller;">'
theme_show_buttons(), '</td>
</tr>
</table>
</td>
</tr>
</table>'
;

// If Quick Moderation is enabled (and set to checkboxes - 1) start the form.
if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == && !empty($context['topics']))
echo '
<form action="'
$scripturl'?action=quickmod;board='$context['current_board'], '.'$context['start'], '" method="post" name="topicForm" style="margin: 0;">';

echo '
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
<tr class="titlebg">'
;

// Are there actually any topics to show?
if (!empty($context['topics']))
{
echo '
<td width="9%" colspan="2"></td>
<td><a href="'
$scripturl'?board='$context['current_board'], '.'$context['start'], ';sort=subject'$context['sort_by'] == 'subject' && $context['sort_direction'] == 'up' ';desc' '''">'$txt[70], $context['sort_by'] == 'subject' ' <img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" border="0" />' '''</a></td>
<td width="14%"><a href="'
$scripturl'?board='$context['current_board'], '.'$context['start'], ';sort=starter'$context['sort_by'] == 'starter' && $context['sort_direction'] == 'up' ';desc' '''">'$txt[109], $context['sort_by'] == 'starter' ' <img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" border="0" />' '''</a></td>
<td width="4%" align="center"><a href="'
$scripturl'?board='$context['current_board'], '.'$context['start'], ';sort=replies'$context['sort_by'] == 'replies' && $context['sort_direction'] == 'up' ';desc' '''">'$txt[110], $context['sort_by'] == 'replies' ' <img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" border="0" />' '''</a></td>
<td width="4%" align="center"><a href="'
$scripturl'?board='$context['current_board'], '.'$context['start'], ';sort=views'$context['sort_by'] == 'views' && $context['sort_direction'] == 'up' ';desc' '''">'$txt[301], $context['sort_by'] == 'views' ' <img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" border="0" />' '''</a></td>
<td width="22%"><a href="'
$scripturl'?board='$context['current_board'], '.'$context['start'], ';sort=last_post'$context['sort_by'] == 'last_post' && $context['sort_direction'] == 'up' ';desc' '''">'$txt[111], $context['sort_by'] == 'last_post' ' <img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" border="0" />' '''</a></td>';

// Show a "select all" box for quick moderation?
if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1)
echo '
<td width="24" valign="middle" align="center">
<input type="checkbox" onclick="invertAll(this, this.form, \'topics[]\');" class="check" />
</td>'
;
// If it's on in "image" mode, don't show anything but the column.
elseif (!empty($options['display_quick_mod']))
echo '
<td width="4%" valign="middle" align="center"></td>'
;
}
// No topics.... just say, "sorry bub".
else
echo '
<td width="100%" colspan="7"><b>'
$txt[151], '</b></td>';

echo '
</tr>'
;

foreach ($context['topics'] as $topic)
{
echo '
<tr>
<td class="windowbg2" valign="middle" align="center" width="5%">
<img src="'
$settings['images_url'], '/topic/'$topic['class'], '.gif" alt="" />
</td>
<td class="windowbg2" valign="middle" align="center" width="4%">
<img src="'
$settings['images_url'], '/post/'$topic['first_post']['icon'], '.gif" alt="" />
</td>
<td class="windowbg" valign="middle">
'
$topic['first_post']['link'];

// Is this topic new? (assuming they are logged in!)
if ($topic['new'] && $context['user']['is_logged'])
echo '
<a href="'
$scripturl'?topic='$topic['id'], '.from'$topic['newtime'], '#new"><img src="'$settings['images_url'], '/'$context['user']['language'], '/new.gif" alt="'$txt[302], '" border="0" /></a>';

echo '
<span class="smalltext">'
$topic['pages'], '</span>
</td>
<td class="windowbg2" valign="middle" width="14%">
'
$topic['first_post']['member']['link'], '
</td>
<td class="windowbg" valign="middle" width="4%" align="center">
'
$topic['replies'], '
</td>
<td class="windowbg" valign="middle" width="4%" align="center">
'
$topic['views'], '
</td>
<td class="windowbg2" valign="middle" width="22%">'
;
if ($settings['images_url'] != $settings['theme_url'] . '/images' || file_exists($settings['theme_dir'] . '/images/icons/last_post.gif'))
echo '
<a href="'
$topic['last_post']['href'], '"><img src="'$settings['images_url'], '/icons/last_post.gif" alt="'$txt[111], '" title="'$txt[111], '" border="0" style="float: right;" /></a>';
echo '
<span class="smalltext">
'
$topic['last_post']['time'], '<br />
'
$txt[525], ' '$topic['last_post']['member']['link'], '
</span>
</td>'
;

// Show the quick moderation options?
if (!empty($options['display_quick_mod']))
{
echo '
<td class="windowbg" valign="middle" align="center" width="4%">'
;
if ($options['display_quick_mod'] == && ($topic['quick_mod']['remove'] || $topic['quick_mod']['lock'] || $topic['quick_mod']['sticky'] || $topic['quick_mod']['move']))
echo '
<input type="checkbox" name="topics[]" value="'
$topic['id'], '" class="check" />';
else
{
// Check permissions on each and show only the ones they are allowed to use.
if ($topic['quick_mod']['remove'])
echo '<a href="'$scripturl'?action=quickmod;board='$context['current_board'], '.'$context['start'], ';actions['$topic['id'], ']=remove;sesc='$context['session_id'], '" onclick="return confirm(\''$txt['quickmod_confirm'], '\');"><img src="'$settings['images_url'], '/icons/quick_remove.gif" width="16" alt="'$txt[63], '" title="'$txt[63], '" border="0" /></a>';
if ($topic['quick_mod']['lock'])
echo '<a href="'$scripturl'?action=quickmod;board='$context['current_board'], '.'$context['start'], ';actions['$topic['id'], ']=lock;sesc='$context['session_id'], '" onclick="return confirm(\''$txt['quickmod_confirm'], '\');"><img src="'$settings['images_url'], '/icons/quick_lock.gif" width="16" alt="'$txt['smf279'], '" title="'$txt['smf279'], '" border="0" /></a>';
if ($topic['quick_mod']['lock'] || $topic['quick_mod']['remove'])
echo '<br />';
if ($topic['quick_mod']['sticky'])
echo '<a href="'$scripturl'?action=quickmod;board='$context['current_board'], '.'$context['start'], ';actions['$topic['id'], ']=sticky;sesc='$context['session_id'], '" onclick="return confirm(\''$txt['quickmod_confirm'], '\');"><img src="'$settings['images_url'], '/icons/quick_sticky.gif" width="16" alt="'$txt['smf277'], '" title="'$txt['smf277'], '" border="0" /></a>';
if ($topic['quick_mod']['move'])
echo '<a href="'$scripturl'?action=movetopic;board='$context['current_board'], '.'$context['start'], ';topic='$topic['id'], '.0"><img src="'$settings['images_url'], '/icons/quick_move.gif" width="16" alt="'$txt[132], '" title="'$txt[132], '" border="0" /></a>';
}
echo '</td>';
}
echo '
</tr>'
;
}

if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == && !empty($context['topics']))
{
echo '
<tr class="titlebg">
<td colspan="8" align="right">
<select name="qaction"'
$context['can_move'] ? ' onchange="document.topicForm.moveItTo.disabled = (this.options[this.selectedIndex].value != \'move\');"' '''>
<option value="">--------</option>
'
$context['can_remove'] ? '<option value="remove">' $txt['quick_mod_remove'] . '</option>' '''
'
$context['can_lock'] ? '<option value="lock">' $txt['quick_mod_lock'] . '</option>' '''
'
$context['can_sticky'] ? '<option value="sticky">' $txt['quick_mod_sticky'] . '</option>' '''
'
$context['can_move'] ? '<option value="move">' $txt['quick_mod_move'] . ': </option>' '''
'
$context['can_merge'] ? '<option value="merge">' $txt['quick_mod_merge'] . '</option>' '''
</select>'
;
if ($context['can_move'])
{
echo '
<select id="moveItTo" name="move_to" disabled="disabled">'
;
foreach ($context['jump_to'] as $category)
foreach ($category['boards'] as $board)
{
if (!$board['is_current'])
echo '
<option value="'
$board['id'], '"', !empty($board['selected']) ? ' selected="selected"' '''>'str_repeat('-'$board['child_level'] + 1), ' '$board['name'], '</option>';
}
echo '
</select>'
;
}
echo '
<input type="submit" value="'
$txt['quick_mod_go'], '" onclick="return document.topicForm.qaction.value != \'\' &amp;&amp; confirm(\''$txt['quickmod_confirm'], '\');" />
</td>
</tr>'
;
}

echo '
</table>'
;

// Finish off the form - again, if Quick Moderation is being done with checkboxes. (1)
if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == && !empty($context['topics']))
echo '
<input type="hidden" name="sc" value="' 
$context['session_id'] . '" />
</form>'
;

echo '
<table width="100%" cellpadding="3" cellspacing="0" border="0" class="tborder" style="margin-top: 1ex;">
<tr>
<td align="left" class="catbg" width="100%" height="30">
<table cellpadding="3" cellspacing="0" width="100%">
<tr>
<td><a name="bot"></a><b>'
$txt[139], ':</b> '$context['page_index'], $modSettings['topbottomEnable'] ? $context['menu_separator'] . '<a href="#top">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/go_up.gif" alt="' $txt['topbottom4'] . '" border="0" align="top" />' $txt['topbottom4']) . '</a>' '''</td>
<td align="right" nowrap="nowrap" style="font-size: smaller;">'
theme_show_buttons(), '</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" width="100%">'
;

// Show breadcrumbs at the bottom too?
if ($settings['linktree_inline'])
echo '
<tr>
<td colspan="3" valign="bottom">'
theme_linktree(), '<br /><br /></td>
</tr>'
;

echo '
<tr>
<td class="smalltext" align="left" style="padding-top: 1ex;">'
, !empty($modSettings['enableParticipation']) ? '
<img src="' 
$settings['images_url'] . '/topic/my_normal_post.gif" alt="" align="middle" /> ' $txt['participation_caption'] . '<br />' '''
<img src="' 
$settings['images_url'] . '/topic/normal_post.gif" alt="" align="middle" /> ' $txt[457] . '<br />
<img src="' 
$settings['images_url'] . '/topic/hot_post.gif" alt="" align="middle" /> ' $txt[454] . '<br />
<img src="' 
$settings['images_url'] . '/topic/veryhot_post.gif" alt="" align="middle" /> ' $txt[455] . '
</td>
<td class="smalltext" align="left" valign="top" style="padding-top: 1ex;">
<img src="' 
$settings['images_url'] . '/topic/normal_post_locked.gif" alt="" align="middle" /> ' $txt[456] . '<br />' . ($modSettings['enableStickyTopics'] == '1' '
<img src="' 
$settings['images_url'] . '/topic/normal_post_sticky.gif" alt="" align="middle" /> ' $txt['smf96'] . '<br />' '') . ($modSettings['pollMode'] == '1' '
<img src="' 
$settings['images_url'] . '/topic/normal_poll.gif" alt="" align="middle" /> ' $txt['smf43'] : '') . '
</td>
<td class="smalltext" align="right" valign="middle">
<form action="'
$scripturl'" method="get" name="jumptoForm">
<label for="jumpto">' 
$txt[160] . '</label>:
<select name="jumpto" id="jumpto" onchange="if (this.options[this.selectedIndex].value) window.location.href=\''
$scripturl'\' + this.options[this.selectedIndex].value;">
<option value="">' 
$txt[251] . ':</option>';

// Show each category - they all have an id, name, and the boards in them.
foreach ($context['jump_to'] as $category)
{
// Show the category name with a link to the category. (index.php#id)
echo '
<option value="" disabled="disabled">-----------------------------</option>
<option value="#'
$category['id'], '">'$category['name'], '</option>
<option value="" disabled="disabled">-----------------------------</option>'
;

/* Now go through each board - they all have:
id, name, child_level (how many parents they have, basically...), and is_current. (is this the current board?) */
foreach ($category['boards'] as $board)
{
// Show some more =='s if this is a child, so as to make it look nice.
echo '
<option value="?board='
$board['id'], '.0"'$board['is_current'] ? ' selected="selected"' '''> 'str_repeat('=='$board['child_level']), '=> '$board['name'], '</option>';
}
}

echo '
</select>&nbsp;
<input type="button" value="'
$txt[161], '" onclick="if (document.jumptoForm.jumpto.options[document.jumptoForm.jumpto.selectedIndex].value) window.location.href = \''$scripturl'\' + document.jumptoForm.jumpto.options[document.jumptoForm.jumpto.selectedIndex].value;" />
</form>
</td>
</tr>
</table>'
;
}

function 
theme_show_buttons()
{
global $context$settings$options$txt$scripturl;

$buttonArray = array();

// If they are logged in, and the mark read buttons are enabled..
if ($context['user']['is_logged'] && $settings['show_mark_read'])
$buttonArray[] = '<a href="' $scripturl '?action=markasread;sa=board;board=' $context['current_board'] . '.0">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/markread.gif" alt="' $txt[300] . '" border="0" />' $txt[300]) . '</a>';

// If the user has permission to show the notification button... ask them if they're sure, though.
if ($context['can_mark_notify'])
$buttonArray[] = '<a href="' $scripturl '?action=notifyboard;sa=' . ($context['is_marked_notify'] ? 'off' 'on') . ';board=' $context['current_board'] . '.' $context['start'] . ';sesc=' $context['session_id'] . '" onclick="return confirm(\'' . ($context['is_marked_notify'] ? $txt['notification_disable_board'] : $txt['notification_enable_board']) . '\');">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/notify.gif" alt="' $txt[131] . '" border="0" />' $txt[131]) . '</a>';

// Are they allowed to post new topics?
if ($context['can_post_new'])
$buttonArray[] = '<a href="' $scripturl '?action=post;board=' $context['current_board'] . '.0">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/new_topic.gif" alt="' $txt[33] . '" border="0" />' $txt[33]) . '</a>';

// How about new polls, can the user post those?
if ($context['can_post_poll'])
$buttonArray[] = '<a href="' $scripturl '?action=post;board=' $context['current_board'] . '.0;poll">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/new_poll.gif" alt="' $txt['smf20'] . '" border="0" />' $txt['smf20']) . '</a>';

return implode($context['menu_separator'], $buttonArray);
}

?>



Currently no mods installed.
Title: Re: MessagePreviewOnMouseOver
Post by: pcigre on February 19, 2006, 04:41:20 AM
Maybe this should be a core part. Great mod.

Can you make it for next relise, that user can configure how much caracters will show in preview?

Thanks again.
Title: Re: MessagePreviewOnMouseOver
Post by: perplexed on April 23, 2006, 06:24:51 PM
how many characters do show in preview?  For me it looks like maybe the first line only?

Like the person above me says, it would be good to be able to increase this
Title: Re: MessagePreviewOnMouseOver
Post by: danskmacabre on July 12, 2006, 06:40:32 AM
Looks like it's the first 124 characters of a post.

I would like to increase this.

Any know how?
Title: Re: MessagePreviewOnMouseOver
Post by: unrelenting on August 02, 2006, 07:00:37 PM
What would be the code for showing the newest post when you hover over the NEW box to the right of the thread title.

Currently it is:

echo '
<a href="', $topic['new_href'], '" id="newicon' . $topic['first_post']['id'] . '"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" border="0" /></a>';



I figured I could just add to it like this but it didn't work. What do I need to replace ['first_post] with? I also tried removing the alt= in there.



<span title="', $topic['first_post']['preview'], '"><a href="', $topic['new_href'], '" id="newicon' . $topic['first_post']['id'] . '"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" border="0" /></a></span>';
Title: Re: MessagePreviewOnMouseOver
Post by: invisiblex on August 03, 2006, 03:38:02 AM
this works on default theme
how to make work in other theme? >:(
this smf sucks
Title: Re: MessagePreviewOnMouseOver
Post by: Vinspire on August 03, 2006, 04:06:35 AM
Quote from: snork13 on February 03, 2006, 12:39:52 AM
Link to Mod (http://mods.simplemachines.org/index.php?mod=263)

packaged up from the tips and tricks, this adds the preview of first message within topic


example:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg300.imageshack.us%2Fimg300%2F2365%2Fexample0wr.gif&hash=7db8330d200e964186dbb571f46f2d0c8bed137c)

snork, the example pic is not working :)
Title: Re: MessagePreviewOnMouseOver
Post by: Assistance on August 10, 2006, 11:22:54 AM
Quote from: flapper on February 03, 2006, 10:22:52 AM
Will this work on the Show unread posts since last visit (action=unread) page as well.
no

works perfectly in IE
but dodgy in FF

doesnt want to show linebreaks
Title: Re: MessagePreviewOnMouseOver
Post by: deadpoeticstar on August 14, 2006, 12:07:02 PM
where are we at on the update for RC3 for this mod?
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on August 14, 2006, 04:26:08 PM
Quote from: deadpoeticstar on August 14, 2006, 12:07:02 PM
where are we at on the update for RC3 for this mod?

I'll update later today, along with my other mods ;)
Title: Re: MessagePreviewOnMouseOver
Post by: deadpoeticstar on August 14, 2006, 04:32:26 PM
oh alrighty just wanting to make sure i didnt miss anything thats all thats why ive asked
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on August 14, 2006, 04:38:56 PM
Quote from: deadpoeticstar on August 14, 2006, 04:32:26 PM
oh alrighty just wanting to make sure i didnt miss anything thats all thats why ive asked

ok, updated :P had a few seconds at work ;D



-snork13
Title: Re: MessagePreviewOnMouseOver
Post by: mickyd2006 on August 23, 2006, 10:57:12 AM
Hmmm.. Doesn't appear to work with me.. Tried in both FF and IE... but got no joy.. I downloaded the latest package 0.2.5.  ???  I am running SMF 1.1 RC2..I even tried turning off the phishing filter in IE and the pop up blockers in Both FF and IE but that didnt help either :(

Do I need to configure it or something?
Title: Re: MessagePreviewOnMouseOver
Post by: choloman05 on September 20, 2006, 07:19:55 PM
 Any news on felixibility of character # to be shown?
Title: Re: MessagePreviewOnMouseOver
Post by: choloman05 on October 02, 2006, 07:15:19 PM
I have this installed on 1.1RC2, running Dilber MC theme. I have a few mods. Sometimes the message preview works, but most of the time it does not. Can anyone help? I'd like for this to work, it's a good mod. Thanks.
Title: Re: MessagePreviewOnMouseOver
Post by: Joshua Dickerson on October 02, 2006, 07:25:23 PM
Open up MessageIndex.php and search for
LEFT(mf.body, 384) AS firstBody

Change 384 to a number.

Then search for
if ($smfFunc['strlen']($row['firstBody']) > 128)
$row['firstBody'] = $smfFunc['substr']($row['firstBody'], 0, 128) . '...';
and change 128 to a number.

Warning: Increasing this number decreases performance for the query. I don't recommend you do so.
Title: Re: MessagePreviewOnMouseOver
Post by: choloman05 on October 03, 2006, 08:04:28 PM
What does these numbers represent? I'm asking so I can get an idea of what I should change them to. Thanks for your help too.
Title: Re: MessagePreviewOnMouseOver
Post by: Joshua Dickerson on October 04, 2006, 02:24:16 AM
384 is the amount of characters that is selected from the database. 128 is the amount of characters that are displayed. You can just increase the 128 and not touch the query which is probably what you should do. Increase it to 384. I think there might also be a browser limit on alt tags. Not sure.
Title: Re: MessagePreviewOnMouseOver
Post by: MysticTavern on October 04, 2006, 03:59:55 PM
I was wondering if someone would be so kind as to post the -exact- changes that are made to the code in the MessageIndex.php file, so I could apply the same changes to the same MessageIndex.php file for the theme babylon? I'm asking the same question with a few other mods that work only with the default theme.
Title: Re: MessagePreviewOnMouseOver
Post by: haktanir2 on October 05, 2006, 01:59:52 AM
Worked without any problems on 1.1 RC3, thanks.  :D
Title: Re: MessagePreviewOnMouseOver
Post by: Tanks on October 05, 2006, 04:05:03 AM
Can this be made to show pictures attached in that post ??
Title: Re: MessagePreviewOnMouseOver
Post by: NEMINI on October 05, 2006, 06:40:00 AM
Quote from: MysticTavern on October 04, 2006, 03:59:55 PM
I was wondering if someone would be so kind as to post the -exact- changes that are made to the code in the MessageIndex.php file, so I could apply the same changes to the same MessageIndex.php file for the theme babylon? I'm asking the same question with a few other mods that work only with the default theme.
Check out http://docs.simplemachines.org/index.php?topic=402
Title: Re: MessagePreviewOnMouseOver
Post by: haktanir2 on October 05, 2006, 11:10:26 AM
Quote from: MysticTavern on October 04, 2006, 03:59:55 PM
I was wondering if someone would be so kind as to post the -exact- changes that are made to the code in the MessageIndex.php file, so I could apply the same changes to the same MessageIndex.php file for the theme babylon? I'm asking the same question with a few other mods that work only with the default theme.
Just open the zip file, there should be a main file showing all the changes, search there for MessageIndex.php and it will show you the changes made.
Title: Re: MessagePreviewOnMouseOver
Post by: MysticTavern on October 05, 2006, 08:09:10 PM
Thank you both so much. That worked. I've just now run into the problem that the code the mod changes in the default theme isn't present in the babylon theme. So now I'm not sure what I have to add, or replace. Which I'm sure is the main problem most people have when trying to apply mods to any other theme except default.
Title: Re: MessagePreviewOnMouseOver
Post by: choloman05 on October 13, 2006, 01:11:44 PM
Quote from: groundup on October 02, 2006, 07:25:23 PM
Open up MessageIndex.php and search for
LEFT(mf.body, 384) AS firstBody

Change 384 to a number.

Then search for
if ($smfFunc['strlen']($row['firstBody']) > 128)
$row['firstBody'] = $smfFunc['substr']($row['firstBody'], 0, 128) . '...';
and change 128 to a number.

Warning: Increasing this number decreases performance for the query. I don't recommend you do so.

thanks, but I couldn't find any of that code.  ???
Title: Re: MessagePreviewOnMouseOver
Post by: colleenbbr on October 19, 2006, 12:08:43 PM
Are the changes you posted for RC2 or RC3?

I am looking for template changes for Dilber MC on RC3..any ideas?

Thanks,
Lisa
Title: Re: MessagePreviewOnMouseOver
Post by: unrelenting on October 31, 2006, 10:12:25 PM
Does anyone know what to change in the Classic Theme, any version. I'm using 1.1 RC3.
Title: Re: MessagePreviewOnMouseOver
Post by: unrelenting on November 07, 2006, 09:53:22 PM
Quote from: unrelenting on October 31, 2006, 10:12:25 PM
Does anyone know what to change in the Classic Theme, any version. I'm using 1.1 RC3.

Surely someone has found a way to add this to the Classic Theme.  ???
Title: Re: MessagePreviewOnMouseOver
Post by: choloman05 on November 10, 2006, 05:54:22 PM
I think instructions for applying any mod to a custom theme will work, won't they?
  http://docs.simplemachines.org/index.php?topic=402 (http://docs.simplemachines.org/index.php?topic=402)
Title: Re: MessagePreviewOnMouseOver
Post by: unrelenting on November 10, 2006, 07:21:27 PM
Quote from: choloman05 on November 10, 2006, 05:54:22 PM
I think instructions for applying any mod to a custom theme will work, won't they?
  http://docs.simplemachines.org/index.php?topic=402 (http://docs.simplemachines.org/index.php?topic=402)

I know how to add it manually, I just don't know where to add the code in the classic theme. The way it is laid out is completely different than the default. It's not even close to the same or I could do it myself.
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on November 11, 2006, 11:36:22 AM
Quote from: unrelenting on November 10, 2006, 07:21:27 PM
Quote from: choloman05 on November 10, 2006, 05:54:22 PM
I think instructions for applying any mod to a custom theme will work, won't they?
  http://docs.simplemachines.org/index.php?topic=402 (http://docs.simplemachines.org/index.php?topic=402)

I know how to add it manually, I just don't know where to add the code in the classic theme. The way it is laid out is completely different than the default. It's not even close to the same or I could do it myself.

I take a look at the classic theme.

-Snork13
Title: Re: MessagePreviewOnMouseOver
Post by: unrelenting on November 11, 2006, 04:28:49 PM
Quote from: snork13 on November 11, 2006, 11:36:22 AM
Quote from: unrelenting on November 10, 2006, 07:21:27 PM
Quote from: choloman05 on November 10, 2006, 05:54:22 PM
I think instructions for applying any mod to a custom theme will work, won't they?
  http://docs.simplemachines.org/index.php?topic=402 (http://docs.simplemachines.org/index.php?topic=402)

I know how to add it manually, I just don't know where to add the code in the classic theme. The way it is laid out is completely different than the default. It's not even close to the same or I could do it myself.

I take a look at the classic theme.

-Snork13

Thanks, Snork.
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on November 11, 2006, 06:44:20 PM
@unrelenting

give this one a try...

-Snork13
Title: Re: MessagePreviewOnMouseOver
Post by: unrelenting on November 12, 2006, 10:36:59 AM
Quote from: snork13 on November 11, 2006, 06:44:20 PM
@unrelenting

give this one a try...

-Snork13

Thanks, Snork!! It works just as it should with no errors but I did get a couple of errors to show up in the error log while installing. It's something with the filename or path, I guess.

512: parseModification(): The filename 'Themes/classic/MessageIndex.template.php' is not a full path!
File: /hermes/web09/b2721/username/htdocs/myboard/Sources/Subs-Package.php
Line: 1330
Title: Re: MessagePreviewOnMouseOver
Post by: Sonic_Reducer on November 15, 2006, 04:56:06 PM
I have this installed on 1.1 RC3 and it's only working when I show unread posts, nowhere else.  I'm using the Alien Nation Theme.  Any ideas where to look to fix it?
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on November 15, 2006, 06:20:30 PM
Quote from: Sonic_Reducer on November 15, 2006, 04:56:06 PM
I have this installed on 1.1 RC3 and it's only working when I show unread posts, nowhere else.  I'm using the Alien Nation Theme.  Any ideas where to look to fix it?

It only installs for the default and now classic themes. I don't know that theme, but if a file isn't include in a custom theme then smf uses to the default theme file.

http://docs.simplemachines.org/index.php?topic=402 (http://docs.simplemachines.org/index.php?topic=402)
Title: Re: MessagePreviewOnMouseOver
Post by: choloman05 on November 15, 2006, 06:43:33 PM
Quote from: choloman05 on October 13, 2006, 01:11:44 PM
Quote from: groundup on October 02, 2006, 07:25:23 PM
Open up MessageIndex.php and search for
LEFT(mf.body, 384) AS firstBody

Change 384 to a number.

Then search for
if ($smfFunc['strlen']($row['firstBody']) > 128)
$row['firstBody'] = $smfFunc['substr']($row['firstBody'], 0, 128) . '...';
and change 128 to a number.

Warning: Increasing this number decreases performance for the query. I don't recommend you do so.

thanks, but I couldn't find any of that code.  ???

Anyone else not find this? Or am I retarded?
Title: Re: MessagePreviewOnMouseOver
Post by: Sonic_Reducer on November 15, 2006, 07:11:37 PM
Quote from: snork13 on November 15, 2006, 06:20:30 PM
Quote from: Sonic_Reducer on November 15, 2006, 04:56:06 PM
I have this installed on 1.1 RC3 and it's only working when I show unread posts, nowhere else.  I'm using the Alien Nation Theme.  Any ideas where to look to fix it?

It only installs for the default and now classic themes. I don't know that theme, but if a file isn't include in a custom theme then smf uses to the default theme file.

http://docs.simplemachines.org/index.php?topic=402 (http://docs.simplemachines.org/index.php?topic=402)

So whic files could be missing?
Title: Re: MessagePreviewOnMouseOver
Post by: junglecat on November 23, 2006, 10:23:07 PM
Quote from: MysticTavern on October 04, 2006, 03:59:55 PMI was wondering if someone would be so kind as to post the -exact- changes that are made to the code in the MessageIndex.php file, so I could apply the same changes to the same MessageIndex.php file for the theme babylon? I'm asking the same question with a few other mods that work only with the default theme.

Same here. I'm not using the default theme, and I'm getting a bit confused.

Here is my MessageIndex.template.php if anyone can help?


<?php
// Version: 1.1 RC3; MessageIndex

function template_main()
{
global $context$settings$options$scripturl$modSettings$txt;

echo '
<table width="100%" cellpadding="3" cellspacing="0">
<tr>
<td><a name="top"></a>'
theme_linktree(), '</td>';
if (!empty($settings['display_who_viewing']))
{
echo '
<td class="smalltext" align="right">'
;
if ($settings['display_who_viewing'] == 1)
echo count($context['view_members']), ' 'count($context['view_members']) == $txt['who_member'] : $txt[19];
else
echo empty($context['view_members_list']) ? '0 ' $txt[19] : implode(', '$context['view_members_list']) . ((empty($context['view_num_hidden']) or $context['can_moderate_forum']) ? '' ' (+ ' $context['view_num_hidden'] . ' ' $txt['hidden'] . ')');
echo $txt['who_and'], $context['view_num_guests'], ' '$context['view_num_guests'] == $txt['guest'] : $txt['guests'], $txt['who_viewing_board'], '</td>';
}
echo '
</tr>
</table>'
;

if (isset($context['boards']) && (!empty($options['show_children']) || $context['start'] == 0))
{
echo '
<div class="tborder" style="padding: 1px; margin-bottom: 2ex;"><table border="0" width="100%" cellspacing="1" cellpadding="5">
<tr class="titlebg">
<td colspan="4">'
$txt['parent_boards'], '</td>
</tr>'
;
foreach ($context['boards'] as $board)
{
echo '
<tr class="windowbg2">
<td class="windowbg" width="6%" align="center" valign="top"><a href="'
$scripturl'?action=unread;board='$board['id'], '.0">';

// Is this board itself new?
if ($board['new'])
echo '<img src="'$settings['images_url'], '/on.gif" alt="'$txt[333], '" title="'$txt[333], '" border="0" />';
// Is one of this board's children new, then?
elseif ($board['children_new'])
echo '<img src="'$settings['images_url'], '/on2.gif" alt="'$txt[333], '" title="'$txt[333], '" border="0" />';
// I guess it's not new at all.
else
echo '<img src="'$settings['images_url'], '/off.gif" alt="'$txt[334], '" title="'$txt[334], '" border="0" />';

echo '</a></td>
<td align="left">
<b><a href="'
$board['href'], '" name="b'$board['id'], '">'$board['name'], '</a></b><br />
'
$board['description'];

if (!empty($board['moderators']))
echo '
<div style="padding-top: 1px;" class="smalltext"><i>'
count($board['moderators']) == $txt[298] : $txt[299], ': 'implode(', '$board['link_moderators']), '</i></div>';

if (!empty($board['children']))
{
$children = array();
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' $txt[330] . ': ' $child['topics'] . ', ' $txt[21] . ': ' $child['posts'] . ')">' $child['name'] . '</a>';
$children[] = $child['new'] ? '<b>' $child['link'] . '</b>' $child['link'];
}

echo '
<div style="padding-top: 1px;" class="smalltext"><i>'
$txt['parent_boards'], ': 'implode(', '$children), '</i></div>';
}

echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">
'
$board['posts'], ' '$txt[21], ' '$txt['smf88'], '<br />
'
$board['topics'], ' '$txt[330], '
</span></td>
<td class="smalltext" valign="middle" width="22%">'
;

if (!empty($board['last_post']['id']))
echo '
'
$txt[22], ' '$txt[30], ' '$board['last_post']['time'], '<br />
'
$txt['smf88'], ' '$board['last_post']['link'], ' '$txt[525], ' '$board['last_post']['member']['link'];

echo '
</td>
</tr>'
;
}
echo '
</table></div>'
;
}

if (!empty($options['show_board_desc']) && $context['description'] != '')
{
echo '
<table width="100%" cellpadding="6" cellspacing="0" border="0" class="tborder" style="margin-bottom: 1ex;">
<tr>
<td class="catbg" width="100%" height="24">
<span class="smalltext">'
$context['description'], '</span>
</td>
</tr>
</table>'
;
}

if (!$context['no_topic_listing'])
{
echo '
<table width="100%" cellpadding="3" cellspacing="0" border="0" class="tborder" style="margin-bottom: 1ex;">
<tr>
<td class="catbg" height="30">
<table cellpadding="3" cellspacing="0" width="100%">
<tr>
<td><b>'
$txt[139], ':</b> '$context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . '<a href="#bot">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/go_down.gif" alt="' $txt['topbottom5'] . '" border="0" align="top" />' $txt['topbottom5']) . '</a>' '''</td>
<td align="'
, !$context['right_to_left'] ? 'right' 'left''" nowrap="nowrap" style="font-size: smaller;">'theme_show_buttons(), '</td>
</tr>
</table>
</td>
</tr>
</table>'
;

// If Quick Moderation is enabled start the form.
if (!empty($options['display_quick_mod']) && !empty($context['topics']))
echo '
<form action="'
$scripturl'?action=quickmod;board='$context['current_board'], '.'$context['start'], '" method="post" accept-charset="'$context['character_set'], '" name="quickModForm" id="quickModForm" style="margin: 0;">';

echo '
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
<tr class="titlebg">'
;

// Are there actually any topics to show?
if (!empty($context['topics']))
{
echo '
<td width="9%" colspan="2"></td>
<td><a href="'
$scripturl'?board='$context['current_board'], '.'$context['start'], ';sort=subject'$context['sort_by'] == 'subject' && $context['sort_direction'] == 'up' ';desc' '''">'$txt[70], $context['sort_by'] == 'subject' ' <img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" border="0" />' '''</a></td>
<td width="14%"><a href="'
$scripturl'?board='$context['current_board'], '.'$context['start'], ';sort=starter'$context['sort_by'] == 'starter' && $context['sort_direction'] == 'up' ';desc' '''">'$txt[109], $context['sort_by'] == 'starter' ' <img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" border="0" />' '''</a></td>
<td width="4%" align="center"><a href="'
$scripturl'?board='$context['current_board'], '.'$context['start'], ';sort=replies'$context['sort_by'] == 'replies' && $context['sort_direction'] == 'up' ';desc' '''">'$txt[110], $context['sort_by'] == 'replies' ' <img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" border="0" />' '''</a></td>
<td width="4%" align="center"><a href="'
$scripturl'?board='$context['current_board'], '.'$context['start'], ';sort=views'$context['sort_by'] == 'views' && $context['sort_direction'] == 'up' ';desc' '''">'$txt[301], $context['sort_by'] == 'views' ' <img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" border="0" />' '''</a></td>
<td width="24%"><a href="'
$scripturl'?board='$context['current_board'], '.'$context['start'], ';sort=last_post'$context['sort_by'] == 'last_post' && $context['sort_direction'] == 'up' ';desc' '''">'$txt[111], $context['sort_by'] == 'last_post' ' <img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" border="0" />' '''</a></td>';

// Show a "select all" box for quick moderation?
if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1)
echo '
<td width="24" valign="middle" align="center">
<input type="checkbox" onclick="invertAll(this, this.form, \'topics[]\');" class="check" />
</td>'
;
// If it's on in "image" mode, don't show anything but the column.
elseif (!empty($options['display_quick_mod']))
echo '
<td width="4%" valign="middle" align="center"></td>'
;
}
// No topics.... just say, "sorry bub".
else
echo '
<td width="100%" colspan="7"><b>'
$txt[151], '</b></td>';

echo '
</tr>'
;

foreach ($context['topics'] as $topic)
{
echo '
                                <tr>
                                        <td class="windowbg2" valign="middle" align="center" width="5%">
                                                <img src="'
$settings['images_url'], '/topic/'$topic['class'], '.gif" alt="" />
                                        </td>
                                        <td class="windowbg2" valign="middle" align="center" width="4%">
<img src="'
$topic['first_post']['icon_url'], '" alt="" />
                                        </td>
                                        <td class="windowbg" valign="middle">
                                                '
$topic['first_post']['link'];

                
// Is this topic new? (assuming they are logged in!)
                
if ($topic['new'] && $context['user']['is_logged'])
                        echo 
'
<a href="'
$topic['new_href'], '"><img src="'$settings['images_url'], '/'$context['user']['language'], '/new.gif" alt="'$txt[302], '" border="0" /></a>';

                echo 
'
                                                <span class="smalltext">'
$topic['pages'], '</span>
                                        </td>
                                        <td class="windowbg2" valign="middle" width="14%">
                                                '
$topic['first_post']['member']['link'], '
                                        </td>
                                        <td class="windowbg" valign="middle" width="4%" align="center">
                                                '
$topic['replies'], '
                                        </td>
                                        <td class="windowbg" valign="middle" width="4%" align="center">
                                                '
$topic['views'], '
                                        </td>
<td class="windowbg2" valign="middle" width="22%">
<a href="'
$topic['last_post']['href'], '"><img src="'$settings['images_url'], '/icons/last_post.gif" alt="'$txt[111], '" title="'$txt[111], '" border="0" style="float: right;" /></a>
<span class="smalltext">
'
$topic['last_post']['time'], '<br />
'
$txt[525], ' '$topic['last_post']['member']['link'], '
</span>
</td>'
;

// Show the quick moderation options?
if (!empty($options['display_quick_mod']))
{
echo '
<td class="windowbg" valign="middle" align="center" width="4%">'
;
if ($options['display_quick_mod'] == 1)
echo '
<input type="checkbox" name="topics[]" value="'
$topic['id'], '" class="check" />';
else
{
// Check permissions on each and show only the ones they are allowed to use.
if ($topic['quick_mod']['remove'])
echo '<a href="'$scripturl'?action=quickmod;board='$context['current_board'], '.'$context['start'], ';actions['$topic['id'], ']=remove;sesc='$context['session_id'], '" onclick="return confirm(\''$txt['quickmod_confirm'], '\');"><img src="'$settings['images_url'], '/icons/quick_remove.gif" width="16" alt="'$txt[63], '" title="'$txt[63], '" border="0" /></a>';
if ($topic['quick_mod']['lock'])
echo '<a href="'$scripturl'?action=quickmod;board='$context['current_board'], '.'$context['start'], ';actions['$topic['id'], ']=lock;sesc='$context['session_id'], '" onclick="return confirm(\''$txt['quickmod_confirm'], '\');"><img src="'$settings['images_url'], '/icons/quick_lock.gif" width="16" alt="'$txt['smf279'], '" title="'$txt['smf279'], '" border="0" /></a>';
if ($topic['quick_mod']['lock'] || $topic['quick_mod']['remove'])
echo '<br />';
if ($topic['quick_mod']['sticky'])
echo '<a href="'$scripturl'?action=quickmod;board='$context['current_board'], '.'$context['start'], ';actions['$topic['id'], ']=sticky;sesc='$context['session_id'], '" onclick="return confirm(\''$txt['quickmod_confirm'], '\');"><img src="'$settings['images_url'], '/icons/quick_sticky.gif" width="16" alt="'$txt['smf277'], '" title="'$txt['smf277'], '" border="0" /></a>';
if ($topic['quick_mod']['move'])
echo '<a href="'$scripturl'?action=movetopic;board='$context['current_board'], '.'$context['start'], ';topic='$topic['id'], '.0"><img src="'$settings['images_url'], '/icons/quick_move.gif" width="16" alt="'$txt[132], '" title="'$txt[132], '" border="0" /></a>';
}
echo '</td>';
}
echo '
</tr>'
;
}

if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == && !empty($context['topics']))
{
echo '
<tr class="titlebg">
<td colspan="8" align="right">
<select name="qaction"'
$context['can_move'] ? ' onchange="this.form.moveItTo.disabled = (this.options[this.selectedIndex].value != \'move\');"' '''>
<option value="">--------</option>
'
$context['can_remove'] ? '<option value="remove">' $txt['quick_mod_remove'] . '</option>' '''
'
$context['can_lock'] ? '<option value="lock">' $txt['quick_mod_lock'] . '</option>' '''
'
$context['can_sticky'] ? '<option value="sticky">' $txt['quick_mod_sticky'] . '</option>' '''
'
$context['can_move'] ? '<option value="move">' $txt['quick_mod_move'] . ': </option>' '''
'
$context['can_merge'] ? '<option value="merge">' $txt['quick_mod_merge'] . '</option>' '''
<option value="markread">'
$txt['quick_mod_markread'], '</option>
</select>'
;

if ($context['can_move'])
{
echo '
<select id="moveItTo" name="move_to" disabled="disabled">'
;
foreach ($context['jump_to'] as $category)
foreach ($category['boards'] as $board)
{
if (!$board['is_current'])
echo '
<option value="'
$board['id'], '"', !empty($board['selected']) ? ' selected="selected"' '''>'str_repeat('-'$board['child_level'] + 1), ' '$board['name'], '</option>';
}
echo '
</select>'
;
}

echo '
<input type="submit" value="'
$txt['quick_mod_go'], '" onclick="return this.form.qaction.value != \'\' &amp;&amp; confirm(\''$txt['quickmod_confirm'], '\');" />
</td>
</tr>'
;
}

echo '
</table>'
;

// Finish off the form - again, if Quick Moderation is being done with checkboxes. (1)
if (!empty($options['display_quick_mod']) && !empty($context['topics']))
echo '
<input type="hidden" name="sc" value="' 
$context['session_id'] . '" />
</form>'
;

echo '
<table width="100%" cellpadding="3" cellspacing="0" border="0" class="tborder" style="margin-top: 1ex;">
<tr>
<td class="catbg" width="100%" height="30">
<table cellpadding="3" cellspacing="0" width="100%">
<tr>
<td><a name="bot"></a><b>'
$txt[139], ':</b> '$context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . '<a href="#top">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/go_up.gif" alt="' $txt['topbottom4'] . '" border="0" align="top" />' $txt['topbottom4']) . '</a>' '''</td>
<td align="'
, !$context['right_to_left'] ? 'right' 'left''" nowrap="nowrap" style="font-size: smaller;">'theme_show_buttons(), '</td>
</tr>
</table>
</td>
</tr>
</table>'
;
}

echo '
<table cellpadding="0" cellspacing="0" width="100%">'
;

// Show breadcrumbs at the bottom too?
if ($settings['linktree_inline'])
echo '
<tr>
<td colspan="3" valign="bottom">'
theme_linktree(), '<br /><br /></td>
</tr>'
;

echo '
<tr>'
;

if (!$context['no_topic_listing'])
echo '
<td class="smalltext" style="padding-top: 1ex;">'
, !empty($modSettings['enableParticipation']) ? '
<img src="' 
$settings['images_url'] . '/topic/my_normal_post.gif" alt="" align="middle" /> ' $txt['participation_caption'] . '<br />' '''
<img src="' 
$settings['images_url'] . '/topic/normal_post.gif" alt="" align="middle" /> ' $txt[457] . '<br />
<img src="' 
$settings['images_url'] . '/topic/hot_post.gif" alt="" align="middle" /> ' $txt[454] . '<br />
<img src="' 
$settings['images_url'] . '/topic/veryhot_post.gif" alt="" align="middle" /> ' $txt[455] . '
</td>
<td class="smalltext" valign="top" style="padding-top: 1ex;">
<img src="' 
$settings['images_url'] . '/topic/normal_post_locked.gif" alt="" align="middle" /> ' $txt[456] . '<br />' . ($modSettings['enableStickyTopics'] == '1' '
<img src="' 
$settings['images_url'] . '/topic/normal_post_sticky.gif" alt="" align="middle" /> ' $txt['smf96'] . '<br />' '') . ($modSettings['pollMode'] == '1' '
<img src="' 
$settings['images_url'] . '/topic/normal_poll.gif" alt="" align="middle" /> ' $txt['smf43'] : '') . '
</td>'
;

echo '
<td class="smalltext" align="'
, !$context['right_to_left'] ? 'right' 'left''" valign="middle">
<form action="'
$scripturl'" method="get" accept-charset="'$context['character_set'], '">
<label for="jumpto">' 
$txt[160] . '</label>:
<select name="jumpto" id="jumpto" onchange="if (this.selectedIndex > 0 &amp;&amp; this.options[this.selectedIndex].value) window.location.href = smf_scripturl + this.options[this.selectedIndex].value.substr(smf_scripturl.indexOf(\'?\') == -1 || this.options[this.selectedIndex].value.substr(0, 1) != \'?\' ? 0 : 1);">
<option value="">' 
$txt[251] . ':</option>';

// Show each category - they all have an id, name, and the boards in them.
foreach ($context['jump_to'] as $category)
{
// Show the category name with a link to the category. (index.php#id)
echo '
<option value="" disabled="disabled">-----------------------------</option>
<option value="#'
$category['id'], '">'$category['name'], '</option>
<option value="" disabled="disabled">-----------------------------</option>'
;

/* Now go through each board - they all have:
id, name, child_level (how many parents they have, basically...), and is_current. (is this the current board?) */
foreach ($category['boards'] as $board)
{
// Show some more =='s if this is a child, so as to make it look nice.
echo '
<option value="?board='
$board['id'], '.0"'$board['is_current'] ? ' selected="selected"' '''> 'str_repeat('=='$board['child_level']), '=> '$board['name'], '</option>';
}
}

echo '
</select>&nbsp;
<input type="button" value="'
$txt[161], '" onclick="if (this.form.jumpto.options[this.form.jumpto.selectedIndex].value) window.location.href = \''$scripturl'\' + this.form.jumpto.options[this.form.jumpto.selectedIndex].value;" />
</form>
</td>
</tr>
</table>'
;

// Javascript for inline editing.
echo '
<script language="JavaScript" type="text/javascript" src="' 
$settings['default_theme_url'] . '/xml_board.js"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[

// Hide certain bits during topic edit.
hide_prefixes.push("pages", "newicon");

// Use it to detect when we\'ve stopped editing.
document.onmousedown = mouse_down;

var mouse_on_div;
function mouse_down(e)
{
if (in_edit_mode == 1 && mouse_on_div == 0)
modify_topic_save("'
$context['session_id'], '");
}

// For templating, shown when an inline edit is made.
function modify_topic_show_edit(subject)
{
// Just template the subject.
setInnerHTML(cur_subject_div, \'<input type="text" name="subject" value="\' + subject + \'" size="60" style="width: 99%;"  maxlength="80" /><input type="hidden" name="topic" value="\' + cur_topic_id + \'" /><input type="hidden" name="msg" value="\' + cur_msg_id.substr(4) + \'" />\');
}

// And the reverse for hiding it.
function modify_topic_hide_edit(subject)
{
// Re-template the subject!
setInnerHTML(cur_subject_div, \'<a href="'
$scripturl'?topic=\' + cur_topic_id + \'.0">\' + subject + \'</a>\');
}
// ]]></script>'
;

}

function 
theme_show_buttons()
{
        global 
$context$settings$options$txt$scripturl;

        
$buttonArray = array();

        
// If they are logged in, and the mark read buttons are enabled..
        
if ($context['user']['is_logged'] && $settings['show_mark_read']){
                echo 
'<table cellpadding="0" cellspacing="0" border="0"><tr><td width="99%"> </td><td nowrap="nowrap" style="border-left: solid 1px #000000; border-right: solid 1px #000000;">';
                echo 
'<a href="' $scripturl '?action=markasread;sa=board;board=' $context['current_board'] . '.0;sesc=' $context['session_id'] . '">' . ($settings['use_image_buttons'] ? '<img style="margin: 0px;" src="' $settings['images_url'] . '/' $context['user']['language'] . '/markread.gif" alt="' $txt[300] . '" border="0" />' $txt[300]) . '</a>';

         }
        
// If the user has permission to show the notification button... ask them if they're sure, though.
        
if ($context['can_mark_notify'])
                echo 
'<a href="' $scripturl '?action=notifyboard;sa=' . ($context['is_marked_notify'] ? 'off' 'on') . ';board=' $context['current_board'] . '.' $context['start'] . ';sesc=' $context['session_id'] . '" onclick="return confirm(\'' . ($context['is_marked_notify'] ? $txt['notification_disable_board'] : $txt['notification_enable_board']) . '\');">' . ($settings['use_image_buttons'] ? '<img  style="margin: 0px;" src="' $settings['images_url'] . '/' $context['user']['language'] . '/notify.gif" alt="' $txt[131] . '" border="0" />' $txt[131]) . '</a>';

        
// Are they allowed to post new topics?
        
if ($context['can_post_new'])
                echo 
'<a href="' $scripturl '?action=post;board=' $context['current_board'] . '.0">' . ($settings['use_image_buttons'] ? '<img style="margin: 0px;" src="' $settings['images_url'] . '/' $context['user']['language'] . '/new_topic.gif" alt="' $txt[33] . '" border="0" />' $txt[33]) . '</a>';

        
// How about new polls, can the user post those?
        
if ($context['can_post_poll'])
                echo 
'<a href="' $scripturl '?action=post;board=' $context['current_board'] . '.0;poll">' . ($settings['use_image_buttons'] ? '<img style="margin: 0px;" src="' $settings['images_url'] . '/' $context['user']['language'] . '/new_poll.gif" alt="' $txt['smf20'] . '" border="0" />' $txt['smf20']) . '</a>';
        echo 
'</td></tr></table>';

        return;
}

?>

Title: Re: MessagePreviewOnMouseOver
Post by: Greek on November 30, 2006, 10:16:04 AM
What about for Babylon theme?
Does anybody knows what have i do to make it work?
Thanks
Title: Re: MessagePreviewOnMouseOver
Post by: Fatherguido on November 30, 2006, 10:47:32 AM
Quote from: choloman05 on November 15, 2006, 06:43:33 PM
Quote from: choloman05 on October 13, 2006, 01:11:44 PM
Quote from: groundup on October 02, 2006, 07:25:23 PM
Open up MessageIndex.php and search for
LEFT(mf.body, 384) AS firstBody

Change 384 to a number.

Then search for
if ($smfFunc['strlen']($row['firstBody']) > 128)
$row['firstBody'] = $smfFunc['substr']($row['firstBody'], 0, 128) . '...';
and change 128 to a number.

Warning: Increasing this number decreases performance for the query. I don't recommend you do so.

thanks, but I couldn't find any of that code.  ???

Anyone else not find this? Or am I retarded?
Are you looking in Messageindex.php (located in your sources folder) or are you looking in the template file? -- you should be in the sources folder
Title: Re: MessagePreviewOnMouseOver
Post by: choloman05 on November 30, 2006, 05:51:33 PM
I think I was in the template file. I'll check the sources folder when I get back home. Thanks alot. (ps.-nice sigs. Do you make these?)
Title: Re: MessagePreviewOnMouseOver
Post by: Fatherguido on November 30, 2006, 05:57:31 PM
Quote from: choloman05 on November 30, 2006, 05:51:33 PM
I think I was in the template file. I'll check the sources folder when I get back home. Thanks alot. (ps.-nice sigs. Do you make these?)
your welcome - thanks and yes, I did make those
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on November 30, 2006, 09:35:27 PM
Quote from: Fatherguido on November 30, 2006, 05:57:31 PM
Quote from: choloman05 on November 30, 2006, 05:51:33 PM
I think I was in the template file. I'll check the sources folder when I get back home. Thanks alot. (ps.-nice sigs. Do you make these?)
your welcome - thanks and yes, I did make those

those are some nice sigs, personally I'm a Bears Fan :D

-Snork13
Title: Re: MessagePreviewOnMouseOver
Post by: choloman05 on January 06, 2007, 03:27:24 PM
looking forward to 1.1.1 !
Title: Re: MessagePreviewOnMouseOver
Post by: lordevil on January 10, 2007, 10:39:36 PM
I am using default theme. I want to use the preview text thing you built. When I unzipped it I got two files Modification and package info. It looks as if Modification has all the code in it so I guess this is the one we suppose to use. Which template do I open up and where exactly does it go? Much appreciated
Title: Re: MessagePreviewOnMouseOver
Post by: AlbertA on January 10, 2007, 11:06:41 PM
Just use the package manager in SMF.
Title: Re: MessagePreviewOnMouseOver
Post by: lordevil on January 10, 2007, 11:28:16 PM
Did that but I got a lot of red failures :(
Title: Re: MessagePreviewOnMouseOver
Post by: lordevil on January 10, 2007, 11:32:42 PM
Quote from: Fatherguido on November 30, 2006, 10:47:32 AM
Quote from: choloman05 on November 15, 2006, 06:43:33 PM
Quote from: choloman05 on October 13, 2006, 01:11:44 PM
Quote from: groundup on October 02, 2006, 07:25:23 PM
Open up MessageIndex.php and search for
LEFT(mf.body, 384) AS firstBody

Change 384 to a number.

Then search for
if ($smfFunc['strlen']($row['firstBody']) > 128)
$row['firstBody'] = $smfFunc['substr']($row['firstBody'], 0, 128) . '...';
and change 128 to a number.

Warning: Increasing this number decreases performance for the query. I don't recommend you do so.

thanks, but I couldn't find any of that code.  ???

Anyone else not find this? Or am I retarded?
Are you looking in Messageindex.php (located in your sources folder) or are you looking in the template file? -- you should be in the sources folder
I found this what number should I change this too or does it really matter?
Title: Re: MessagePreviewOnMouseOver
Post by: unrelenting on January 11, 2007, 08:56:53 PM
That's just for changing the number of characters in the preview. No need to mess with that.

Be sure to make a backup of that file before you start editing just in case you need to go back to it.

Open your messageindex.template.php in the default folder.

Basically, you find this:


echo '
', $topic['is_sticky'] ? '<b>' : '' , '<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], '</span>', $topic['is_sticky'] ? '</b>' : '';]]>


and replace that with this:


echo '
', $topic['is_sticky'] ? '<b>' : '' , '<span title="', $topic['first_post']['preview'], '"><span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], '</span></span>', $topic['is_sticky'] ? '</b>' : '';


The other edits are for classic theme and for creating the hover over your recent posts page.
Title: Re: MessagePreviewOnMouseOver
Post by: geezmo on January 17, 2007, 04:03:14 AM
I'm using this for 1.1.1 but there are some errors. Sometimes the message preview appears inline, that is, the text preview is actually written beside the topic of the thread, it's not shown anymore when the mouse hovers over the title.

Anyone experiencing the same? How to solve this?
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on January 17, 2007, 11:27:27 AM
Quote from: geezmo on January 17, 2007, 04:03:14 AM
I'm using this for 1.1.1 but there are some errors. Sometimes the message preview appears inline, that is, the text preview is actually written beside the topic of the thread, it's not shown anymore when the mouse hovers over the title.

Anyone experiencing the same? How to solve this?
i do have an inline version, please check the mod. I would uninstall and try again with a freshly downloaded version.
Title: Re: MessagePreviewOnMouseOver
Post by: geezmo on January 18, 2007, 02:09:30 AM
Thanks snork. But I think having the preview inline clutters my board because of too many text that's why I prefer the preview on mouse over.

I hope someone can address my previous prob regarding some preview appearing as an inline text and not when the mouse hovers.
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on January 18, 2007, 06:14:57 PM
Quote from: geezmo on January 18, 2007, 02:09:30 AM
Thanks snork. But I think having the preview inline clutters my board because of too many text that's why I prefer the preview on mouse over.

I hope someone can address my previous prob regarding some preview appearing as an inline text and not when the mouse hovers.

pm sent
Title: Re: MessagePreviewOnMouseOver
Post by: Sapphire_H on February 04, 2007, 06:43:30 PM
I'm having a problem which one of the SMF Support Specialists thinks might be tied to this mod.
http://www.simplemachines.org/community/index.php?topic=147910.msg942417#msg942417

I'm running a newly upgraded 1.1.1 forum.  When members use the "Show Unread Posts Since Last Visit" link, the results for topics that are Sticky display very strangely.

I have the following mods currently installed:
    Mod Name        Version     

1.    SMF 1.0.7 / 1.1 RC2 Update    1.0
2.    MessagePreviewOnHover    1.4
3.    SMF Staff Page       1.5.1
4.    Enchanced post template    1.0.2
5.    SMF Links       1.6.3
6.    VisualWarning       1.31
7.    Search Topic       1.01
8.    Custom Profile Field Mod    3.16
9.    View Only Boards       1.0
10.    Ignore Boards       2.0.1

This is happening in both Firefox and IE.  I am attaching a screen shot from each below.

This one has me baffled - I've tried searching here, but none of the results appear to apply to this particular issue.

Thanks for any guidance you can offer!
Title: Re: MessagePreviewOnMouseOver
Post by: geezmo on February 06, 2007, 08:18:47 AM
Exactly the same prob I had. I sent the files to snork13 so he could check but never heard from him after that.  
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on February 06, 2007, 08:51:53 AM
Quote from: geezmo on February 06, 2007, 08:18:47 AM
Exactly the same prob I had. I sent the files to snork13 so he could check but never heard from him after that.  
@geezmo

can you send me he file again. I did't get it the first time, or it got flagged as spam.

-Snork13
Title: Re: MessagePreviewOnMouseOver
Post by: RoarinRow on February 06, 2007, 02:25:19 PM
Quote from: Sapphire_H on February 04, 2007, 06:43:30 PM
I'm having a problem which one of the SMF Support Specialists thinks might be tied to this mod.
http://www.simplemachines.org/community/index.php?topic=147910.msg942417#msg942417

I'm running a newly upgraded 1.1.1 forum.  When members use the "Show Unread Posts Since Last Visit" link, the results for topics that are Sticky display very strangely.

I have the following mods currently installed:
    Mod Name        Version     

1.    SMF 1.0.7 / 1.1 RC2 Update    1.0
2.    MessagePreviewOnHover    1.4
3.    SMF Staff Page       1.5.1
4.    Enchanced post template    1.0.2
5.    SMF Links       1.6.3
6.    VisualWarning       1.31
7.    Search Topic       1.01
8.    Custom Profile Field Mod    3.16
9.    View Only Boards       1.0
10.    Ignore Boards       2.0.1

This is happening in both Firefox and IE.  I am attaching a screen shot from each below.

This one has me baffled - I've tried searching here, but none of the results appear to apply to this particular issue.

Thanks for any guidance you can offer!

I've got the same thing.  I didn't know what mod was doing this.   :o
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on February 06, 2007, 03:45:49 PM
Ok,


hello all :P delete the old messagepreview mod and download the new one. I changed it a bit looks like it's working now. Sorry about the error.
Title: Re: MessagePreviewOnMouseOver
Post by: RoarinRow on February 06, 2007, 03:58:14 PM
Quote from: snork13 on February 06, 2007, 03:45:49 PM
Ok,


hello all :P delete the old messagepreview mod and download the new one. I changed it a bit looks like it's working now. Sorry about the error.

Looks like it worked!   8)   Thank you!
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on February 06, 2007, 04:43:32 PM
Quote from: RoarinRow on February 06, 2007, 03:58:14 PM
Quote from: snork13 on February 06, 2007, 03:45:49 PM
Ok,


hello all :P delete the old messagepreview mod and download the new one. I changed it a bit looks like it's working now. Sorry about the error.

Looks like it worked!   8)   Thank you!

No problem :D
Title: Re: MessagePreviewOnMouseOver
Post by: verbalkint on February 13, 2007, 11:53:08 AM
hey snork,
there s a problem like that  i couldn t find this and other codes in dilbermc theme . are they different to change ? it s ok for default theme but i wanna set it on dilbermc ...

', $topic['is_sticky'] ? '<b>' : '' , '<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], '</span>', $topic['is_sticky'] ? '</b>' : '';

i m trying to do it manuel but how can i replace them , if they are not there ...
thanks
Title: Re: MessagePreviewOnMouseOver
Post by: quake101 on February 20, 2007, 03:42:49 PM
I'm running SMF 1.1.2 and I'm getting the following error:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on February 21, 2007, 08:54:10 AM
Quote from: quake101 on February 20, 2007, 03:42:49 PM
I'm running SMF 1.1.2 and I'm getting the following error:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

is this after using ftp to upload it, or are you getting it from the package manager download.
Title: Re: MessagePreviewOnMouseOver
Post by: quake101 on February 21, 2007, 07:08:18 PM
Quote from: snork13 on February 21, 2007, 08:54:10 AM
Quote from: quake101 on February 20, 2007, 03:42:49 PM
I'm running SMF 1.1.2 and I'm getting the following error:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

is this after using ftp to upload it, or are you getting it from the package manager download.

Package Manager.
Title: Re: MessagePreviewOnMouseOver
Post by: mattness on February 22, 2007, 01:38:17 AM
Hi, folks!

We're using SMF 1.1 RC2, not default theme and polish language pack.
I've changed files by hand, but is not working.

Plese guys, tell me, why this mod doesn't working on myforum?
(check the attachements - I hope I mistyped something in one of this files)

TIA
Title: Re: MessagePreviewOnMouseOver
Post by: hygron on March 05, 2007, 12:15:31 PM
Awesome.  Installed in 2 seconds.  works exactly as I had hoped.  posted a link at  tiny portal.  later.
Title: Re: MessagePreviewOnMouseOver
Post by: Matthew Schenker on March 05, 2007, 01:22:38 PM
I'm running this modification and I like it!  Great idea!

Like some others, I'd just want a safe way to increase the number of characters that come up.  I'd like it to be maybe 350 or so.

Thanks!
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on March 07, 2007, 02:12:00 PM
Quote from: MatthewSchenker on March 05, 2007, 01:22:38 PM
I'm running this modification and I like it!  Great idea!

Like some others, I'd just want a safe way to increase the number of characters that come up.  I'd like it to be maybe 350 or so.

Thanks!

try version 1.5, un-install the old version first!

PS. Also, the higher the preview characters, the slower your forum. Default is 128, but the query used 384 :P

-Snork13
Title: Re: MessagePreviewOnMouseOver
Post by: Matthew Schenker on March 09, 2007, 12:17:22 PM
Snork,
Thanks!  I just uninstalled and reinstalled the modification, then upped the characters to 200.
Terrific work.
Title: Re: MessagePreviewOnMouseOver
Post by: mama on March 10, 2007, 06:14:43 AM
thx Snork13, great job for the good mod.. :D

Is it possible, or easy, to make this "hover effect" to follow the mouse movement (if you are over the link)? It´s not important but a cool feature. I think some javascript code that could make this possible.
Title: Re: MessagePreviewOnMouseOver
Post by: Matthew Schenker on March 10, 2007, 09:14:08 AM
My forum members love this modification!

Isn't it interesting, how sometimes a "simple" thing is what people love!

Makes me wonder, what other "simple" modifications are possible that could make a big difference?

Thanks again Snork.
Title: Re: MessagePreviewOnMouseOver
Post by: hygron on March 12, 2007, 02:10:39 PM
The reason admin and members like this Mod...it allows you to pick and choose meaningful topics to open & saves so much time when you are browsing.  As a Member Mod and Admin I love this feature.  
Title: Re: MessagePreviewOnMouseOver
Post by: astounding on March 22, 2007, 02:43:58 PM
Useless. Only works on default theme.
Title: Re: MessagePreviewOnMouseOver
Post by: unrelenting on March 22, 2007, 10:44:10 PM
Quote from: astounding on March 22, 2007, 02:43:58 PM
Useless. Only works on default theme.

Wrong.
Title: Re: MessagePreviewOnMouseOver
Post by: dDOTr2 on March 27, 2007, 02:07:38 AM
excellent mod. thanks for coding this.
Title: Re: MessagePreviewOnMouseOver
Post by: edwardsiow on March 27, 2007, 03:31:33 PM
great mod and i install easily in custom theme....

by the way, the preview message doesn't look good in firefox browser...anybody know the trick to solve it?

thanks a lot..
Title: Re: MessagePreviewOnMouseOver
Post by: danskmacabre on March 28, 2007, 02:19:41 AM
I had this working with RC3 and the helios theme, but the new helios theme to tie in with my upgraded 1.1.2 smf is quite different.
so if anyone has done this for the helios theme, I'd be grateful if they post it here.

Iff not, I can work it out myself at some stage and will post the change here when it works.
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on March 28, 2007, 11:52:45 AM
Quote from: danskmacabre on March 28, 2007, 02:19:41 AM
I had this working with RC3 and the helios theme, but the new helios theme to tie in with my upgraded 1.1.2 smf is quite different.
so if anyone has done this for the helios theme, I'd be grateful if they post it here.

Iff not, I can work it out myself at some stage and will post the change here when it works.


Just unzipped the modification file and check the xml modification for the changes. You are using a custom theme which may not have the exact code. It should be close to the same though :)
Title: Re: MessagePreviewOnMouseOver
Post by: dadann on April 01, 2007, 05:53:53 PM
Quote from: edwardsiow on March 27, 2007, 03:31:33 PM
by the way, the preview message doesn't look good in firefox browser...anybody know the trick to solve it?
Same question, please...
Title: Re: MessagePreviewOnMouseOver
Post by: unrelenting on April 01, 2007, 07:50:18 PM
Quote from: dadann on April 01, 2007, 05:53:53 PM
Quote from: edwardsiow on March 27, 2007, 03:31:33 PM
by the way, the preview message doesn't look good in firefox browser...anybody know the trick to solve it?
Same question, please...

Post a screenshot. Mine has always worked just fine in Firefox.
Title: Re: MessagePreviewOnMouseOver
Post by: dadann on April 02, 2007, 04:18:41 AM
OK.
On firefox :
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg404.imageshack.us%2Fimg404%2F871%2Fonfirefoxzk2.jpg&hash=13dd9893989218781ab711179e77f6fce83c2ef9)

On Internet Explorer :
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg83.imageshack.us%2Fimg83%2F4557%2Foniemt3.jpg&hash=50b8ed0d0014e967ffdcb7f1367cde0dd0ae35bd)
Title: Re: MessagePreviewOnMouseOver
Post by: Sarge on April 02, 2007, 04:28:56 AM
Quote from: dadann on April 02, 2007, 04:18:41 AM
OK.
On firefox :

Test it with this: View menu --> Character encoding --> Auto-Detect --> Universal.

Part of the problem looks like a UTF-8 issue to me.
Title: Re: MessagePreviewOnMouseOver
Post by: dadann on April 02, 2007, 04:48:47 AM
Thank you Sarge, but it's the same thing with
"View menu --> Character encoding --> Auto-Detect --> Universal."

Problem is the same in my place (firefox 2) and at work (firefox 1.5).
Title: Re: MessagePreviewOnMouseOver
Post by: unrelenting on April 02, 2007, 08:44:46 PM
Try View-Character Encoding- then try several of those 6 in that list at the bottom. Mine is on UTF-8. You'll have to refresh the page after you change it.
Title: Re: MessagePreviewOnMouseOver
Post by: Sarge on April 03, 2007, 01:59:10 AM
Yes, set Auto-Detect --> Universal and then try some actual encodings. I'd start with Western (ISO-8859-1) and Unicode (UTF-8). Maybe your template specifies a different character set, for example ISO-8859-15.

May we see the URL for your forum?
Title: Re: MessagePreviewOnMouseOver
Post by: dadann on April 03, 2007, 04:44:52 AM
Quote from: unrelenting on April 02, 2007, 08:44:46 PM
Try View-Character Encoding- then try several of those 6 in that list at the bottom. Mine is on UTF-8. You'll have to refresh the page after you change it.
Thank you so much for helping me,
but when I refresh it returns on the original encoding (occidental ISO).
But I tried all the encodings.
Anyway, I really don't think this is a character encoding problem.
You say that because of the tiny black characters representing the "enter" key,
which look like the tiny black diamond with questionmark when it's character encoding related.
I'm surprised nobody else has the same problem.
Maybe it comes from the french version of Firefox,
since my forum members have it too.
I will try with another version.

Sarge, I send you my forum address by PM since it's my old forum's next upgrade (30 000 members) and I don't wanna give the link in public before it's finished.

Thank you all.
Title: Re: MessagePreviewOnMouseOver
Post by: Sarge on April 03, 2007, 05:44:56 AM
OK, I got the link via PM. Here's how "Welcome to SMF!" in your forum looks in my Firefox 2.0.0.3 (no black squares!):

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg360.imageshack.us%2Fimg360%2F3110%2Fff2zp3.png&hash=d5d05309d96ee5953bf9597d6c6d836f46064110)

and in Internet Explorer 7.0:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg137.imageshack.us%2Fimg137%2F8418%2Fie7hc9.png&hash=e7ae21c9df274fad930d370d51e436a9b0d0842e)




Also, here's how another topic preview looks like in FF2 and IE7:

FF2:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg479.imageshack.us%2Fimg479%2F107%2Fmodff2ht2.png&hash=c34618ef3ae1608b30d2f7ec0952333308fe4306)

IE7:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg295.imageshack.us%2Fimg295%2F707%2Fmodie7xm5.png&hash=5f2f59fd3b69072af467e84303ad7e11f3dc652f)

Notice how FF2 displays only a small part of the message, whereas IE7 displays all of it; also, line breaks don't display in FF2, but they show up fine in IE7.
Title: Re: MessagePreviewOnMouseOver
Post by: dadann on April 03, 2007, 05:52:22 AM
As I told you in PM, the black squares are not my biggest problem,
even if it's connectable to the big problem :
Firefox doesn't display 384 characters as I asked in the admin panel !!!

Thanks for your interest.
Title: Re: MessagePreviewOnMouseOver
Post by: S!LiC0N on April 23, 2007, 06:50:06 AM
Really nice mod - but cant install it... :(

I am running SMF 1.1.2 with this mods:
Quote
Admin Modification Menu Section
SMF Shoutbox
SMF Staff Page
Member Color Link
Membergroup Color Legend
Stars to Profile
Custom Profile Field Mod
Users Online Today Mod
Increase/Decrease Postbox Size
FontandSizeDropdown1.1
MessagePreviewOnHover

When i try to install i get this error:

3. Execute Modification ./Themes/default/Admin.template.php Test failed

All other test are successful... anyone knows how to fix it?#

Thx.
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on April 23, 2007, 09:45:39 AM
Quote from: S!LiC0N on April 23, 2007, 06:50:06 AM
Really nice mod - but cant install it... :(

I am running SMF 1.1.2 with this mods:
Quote
Admin Modification Menu Section
SMF Shoutbox
SMF Staff Page
Member Color Link
Membergroup Color Legend
Stars to Profile
Custom Profile Field Mod
Users Online Today Mod
Increase/Decrease Postbox Size
FontandSizeDropdown1.1
MessagePreviewOnHover

When i try to install i get this error:

3. Execute Modification ./Themes/default/Admin.template.php Test failed

All other test are successful... anyone knows how to fix it?#

Thx.


you may need to install manually, it would seem another mod is conflicting with the code changes.
Title: Re: MessagePreviewOnMouseOver
Post by: thecatlady on April 25, 2007, 08:46:14 PM
Love the mod, and so do the members.  I have about 20 members using Babylon though, and they don't have the feature.  Maybe I've missed it in a previous post, but how do I get this feature to work in Babylon?

TIA!
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on April 25, 2007, 09:16:30 PM
Mods, in general, only install themselves on the default theme.

On any other theme, you will have to manually apply the mod code.

In this case, the doce would need to be updated in the babylon theme's messageindex.template.php.
Title: Re: MessagePreviewOnMouseOver
Post by: thecatlady on April 25, 2007, 09:20:02 PM
Quote from: Kindred on April 25, 2007, 09:16:30 PM
Mods, in general, only install themselves on the default theme.

On any other theme, you will have to manually apply the mod code.

In this case, the doce would need to be updated in the babylon theme's messageindex.template.php.

I knew I would have to do something manually... I installed flashchat, and had to make it work in Babylon.  I am a novice, and after about 2 hours...I actually got it to work (complete with a button and all).

I guess I missed what, I needed to do in order to get the Mouseover to work in Babylon.  I have been searching for the code to put in, and I am either blind, stupid or both!
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on April 25, 2007, 09:22:56 PM
nah, not either... just a newbie. :) (which is curable)

look at the mod files for this mod and look in the install.XML file (or something similarly named... but not the packageinfo.xml)
Title: Re: MessagePreviewOnMouseOver
Post by: thecatlady on April 25, 2007, 09:29:29 PM
Quote from: Kindred on April 25, 2007, 09:22:56 PM
nah, not either... just a newbie. :) (which is curable)

look at the mod files for this mod and look in the install.XML file (or something similarly named... but not the packageinfo.xml)

See... I found ALL of that, and now I just need to know what to do with it!!!  I swear you guys are wizards and breeze through this with ease, but I have NO clue, and I am trying to do this on my own so that I learn what I am doing.  Getting pointed down the right path is always my first step, once I am where I need to be, I can do the modifications.  It took awhile with flashchat, but I was able to do it without having to post any requests for help.  This is not as easy believe it or not, because it isn't really spelled out as clearly.
Title: Re: MessagePreviewOnMouseOver
Post by: Sarge on April 25, 2007, 09:31:31 PM
Use SMF Package Parser to see what changes are done by the mod:
http://sleepycode.com/index.php?action=modparser

Select "Install" and "Only Theme edits" to show changes to themes. You need to apply those changes to Babylon theme.

Keep in mind that find and replace changes might need to be adapted a bit in order to work for Babylon.
Title: Re: MessagePreviewOnMouseOver
Post by: thecatlady on April 25, 2007, 09:44:29 PM
Quote from: Sarge on April 25, 2007, 09:31:31 PM
Use SMF Package Parser to see what changes are done by the mod:
http://sleepycode.com/index.php?action=modparser

Select "Install" and "Only Theme edits" to show changes to themes. You need to apply those changes to Babylon theme.

Keep in mind that find and replace changes might need to be adapted a bit in order to work for Babylon.

Thanks Sarge.  I guess knowing how to adapt would be helpful.  I think that I will keep browsing, and maybe I can find what I need to do, or else the Babylon users will just have to do without lest I screw the pooch on my forum.

Thanks again for your input Kindred and Sarge
Title: Re: MessagePreviewOnMouseOver
Post by: Sarge on April 25, 2007, 09:58:42 PM
Try the following -- beware that I haven't tested this, so backup these files first!

In Themes/babylon/MessageIndex.template.php

Find:

<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], '</span>';


Replace with:

<span title="', $topic['first_post']['preview'], '"><span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], '</span></span>';





In Themes/babylon/Recent.template.php

Find:

' . $topic['first_post']['link'] . ' <a href="' . $topic['new_href'] . '"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt[302] . '" border="0" /></a> <span class="smalltext">' . $topic['pages'] . '</span>



Replace with:

' . '<span title="' . $topic['first_post']['preview'] . '">' . $topic['first_post']['link'] . '</span> <a href="' . $topic['new_href'] . '"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt[302] . '" border="0" /></a> <span class="smalltext">' . $topic['pages'] . '</span>





Since Babylon doesn't have an Admin.template.php and the corresponding languages/Admin.english.php, it will use the ones from the default theme, which are already modified. ;)
Title: Re: MessagePreviewOnMouseOver
Post by: thecatlady on April 25, 2007, 10:07:57 PM
Here goes nothing...

I'll let you know what happens
Title: Re: MessagePreviewOnMouseOver
Post by: Sarge on April 25, 2007, 10:12:06 PM
I'm creating an installable mod package to add Babylon changes for the original mod (which of course should be installed first), so that you won't have to modify SMF code directly.

I'll post it in a few minutes.
Title: Re: MessagePreviewOnMouseOver
Post by: thecatlady on April 25, 2007, 10:16:27 PM
LOL! It shows the whole post on the front page of the board! Back to the drawing board.
Title: Re: MessagePreviewOnMouseOver
Post by: Sarge on April 25, 2007, 10:25:10 PM
OK, I created the additional mod with the changes listed above. I attached it here for you to modify as necessary. You can install it through Package Manager.

I will fix it later, though... unless someone beats me to it. :P
Title: Re: MessagePreviewOnMouseOver
Post by: thecatlady on April 25, 2007, 10:28:19 PM
Sarge!!!

I could just kiss you right now for saving me hours of frustration!!!  Thank you, thank you, thank you!!!

Renee
Title: Re: MessagePreviewOnMouseOver
Post by: Sarge on April 26, 2007, 12:38:10 AM
Quote from: thecatlady on April 25, 2007, 10:28:19 PM
Sarge!!!

I could just kiss you right now for saving me hours of frustration!!!  Thank you, thank you, thank you!!!

Renee

What, is my fix/mod for Babylon working? Or did you modify it a bit to make it work?
Title: Re: MessagePreviewOnMouseOver
Post by: thecatlady on April 26, 2007, 12:33:07 PM
Quote from: Sarge on April 26, 2007, 12:38:10 AM
Quote from: thecatlady on April 25, 2007, 10:28:19 PM
Sarge!!!

I could just kiss you right now for saving me hours of frustration!!!&nbsp; Thank you, thank you, thank you!!!

Renee

What, is my fix/mod for Babylon working? Or did you modify it a bit to make it work?

Like a charm!  It uploaded, and installed in a few seconds, and it works great in Babylon!  You've made 20 women VERY happy today!!!  Now what other guy on this forum can say that!  ;D

Thanks again, I truly appreciate it.

Renee
Title: Re: MessagePreviewOnMouseOver
Post by: locomotion182 on May 26, 2007, 10:01:19 PM
hi!
sorry to bug, but im having issues with this mod. Its and all becaus eit show son the SMF default template.

I have 2 custom templates, I managed to apply it on one, but with this other one Im having no luck

anyone willing to help me = /, I can upload the files you need
I would appreciate it alot

thanks.


Edit: Im sure its just the MessageIndex.template.php because on the custom templete i managed to do myself that was the only thing i modified and worked ok.
I just cant modify it in this other them.
Title: Re: MessagePreviewOnMouseOver
Post by: toonytoony2004 on June 09, 2007, 10:58:57 AM
Help me please..

Toon... Thailand

I can't install mod..  when i try to install  it will show this message

"Some of the files this package needs to modify are not writable. This needs to be changed by logging into FTP and chmoding the files. "

and in small box below show " 550 /usr/bbloomforum: No such file or directory "

i don't know why..

Please tell me the way to solve this plobrem

Thank you very much

Toon, Bangkok Thailand
Title: Re: MessagePreviewOnMouseOver
Post by: locomotion182 on June 09, 2007, 11:22:33 AM
u need to log to with your FTP
go to the fodler where u uploaded the mod, right click on the folder, select properties
and change the chmod to 777
its an option that u have
Title: Re: MessagePreviewOnMouseOver
Post by: toonytoony2004 on June 09, 2007, 12:52:45 PM
Oh Thank you very much

and i will try again
Title: Re: MessagePreviewOnMouseOver
Post by: kill3r on July 02, 2007, 11:34:02 PM
great mod. plz update or still can i use this on 1.1.3???
Title: Re: MessagePreviewOnMouseOver
Post by: Sarge on July 03, 2007, 04:53:01 AM
Quote from: kill3r on July 02, 2007, 11:34:02 PM
great mod. plz update or still can i use this on 1.1.3???

Most SMF 1.1.2 mods should work on 1.1.3 without any modification.

If Package Manager refuses to install the mod because it is made for an older version, try adding ;version_emulate=1.1.2 to the Package Manager URL. The link should be something like:
http://www.yourforum.com/index.php?action=packages;version_emulate=1.1.2
Title: Re: MessagePreviewOnMouseOver
Post by: kill3r on July 03, 2007, 01:29:48 PM
@Sarge

okey thanks for replying.
Title: Re: MessagePreviewOnMouseOver
Post by: dxyy on August 16, 2007, 09:13:14 AM
Thanks for the killer mod, I think this will be a hit with my members! :)
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on August 16, 2007, 03:55:13 PM
Quote from: hugodiaz on August 16, 2007, 09:13:14 AM
Thanks for the killer mod, I think this will be a hit with my members! :)

No problem :)
Title: Re: MessagePreviewOnMouseOver
Post by: joe123 on September 07, 2007, 05:27:22 PM
Does it work with Dilber MC Theme?    I am running SMF 1.1.3 and I don't see anything when I move the move my mouse across.
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on September 07, 2007, 05:36:29 PM
Quote from: joe123 on September 07, 2007, 05:27:22 PM
Does it work with Dilber MC Theme?    I am running SMF 1.1.3 and I don't see anything when I move the move my mouse across.

No, you'll need to install manually.

http://docs.simplemachines.org/index.php?topic=402
Title: Re: MessagePreviewOnMouseOver
Post by: joe123 on September 07, 2007, 06:08:33 PM
Quote from: snork13 on September 07, 2007, 05:36:29 PM
Quote from: joe123 on September 07, 2007, 05:27:22 PM
Does it work with Dilber MC Theme?    I am running SMF 1.1.3 and I don't see anything when I move the move my mouse across.

No, you'll need to install manually.

http://docs.simplemachines.org/index.php?topic=402

Ok thanks.    I read it, but I am somewhat of a newbie.      How many lines and or files am I looking at having to edit to enable the chat program with this Theme?   

I am trying to get an idea if this is easy/medium/hard to do.

Juan more question please.   I added the chat mod and I also cannot see it under the Dilber MC theme.    Is it the same procedure?
Title: Re: MessagePreviewOnMouseOver
Post by: Sarge on September 07, 2007, 08:20:51 PM
Quote from: joe123 on September 07, 2007, 06:08:33 PM
Ok thanks.    I read it, but I am somewhat of a newbie.      How many lines and or files am I looking at having to edit to enable the chat program with this Theme?   

This is the discussion topic for the MessagePreviewOnMouseHover mod, not for a chat mod.

I have added the mod to Dilber MC and I have coded the changes into a mod package; if snork13 allows me, I can post the mod package, which adds MessagePreviewOnMouseHover functionality to the Dilber MC theme -- only Dilber MC theme changes are installed, nothing else.
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on September 07, 2007, 10:52:42 PM
Quote from: Sarge on September 07, 2007, 08:20:51 PM
Quote from: joe123 on September 07, 2007, 06:08:33 PM
Ok thanks.    I read it, but I am somewhat of a newbie.      How many lines and or files am I looking at having to edit to enable the chat program with this Theme?   

This is the discussion topic for the MessagePreviewOnMouseHover mod, not for a chat mod.

I have added the mod to Dilber MC and I have coded the changes into a mod package; if snork13 allows me, I can post the mod package, which adds MessagePreviewOnMouseHover functionality to the Dilber MC theme -- only Dilber MC theme changes are installed, nothing else.

Sure thing Sarge, thanks ;)
Title: Re: MessagePreviewOnMouseOver
Post by: Paddy on September 09, 2007, 09:06:14 AM
I'm using the default theme and version 1.1.3 of the SMF forum, but I get an error when I attempt to install this mod.  The error is as follows:

3.  Execute Modification  ./Themes/default/Admin.template.php  Test failed

I'm thinking maybe some other mod I've installed is causing a conflict, so here's my current list of installed mods:

1. Increase/Decrease Postbox Size   1.0
2. British English Spelling Of Centre & Colour BBCode 1.0
3. SMF 1.0.11 / 1.1.3 Update 1.1
4. YouTube BBC Tag (XHTML Compliant) 1.2
5. Spoiler Tag 0.3.2
6. Wrap Text Around Image 1.0
7. All Topics Unsubscriber 1.1
8. GoogleVideo BBCode by Yakuza 0.1
9. Enhanced Calendar 1.1
10. Spam Me Not Mod 1.02
11. Mod List Color Alternate 1.0
12. Profile Comments 1.2.1

Any ideas?

Cheers!
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on September 09, 2007, 11:37:48 AM
Quote from: Paddy on September 09, 2007, 09:06:14 AM
I'm using the default theme and version 1.1.3 of the SMF forum, but I get an error when I attempt to install this mod.  The error is as follows:

3.  Execute Modification  ./Themes/default/Admin.template.php  Test failed

I'm thinking maybe some other mod I've installed is causing a conflict, so here's my current list of installed mods:

1. Increase/Decrease Postbox Size   1.0
2. British English Spelling Of Centre & Colour BBCode 1.0
3. SMF 1.0.11 / 1.1.3 Update 1.1
4. YouTube BBC Tag (XHTML Compliant) 1.2
5. Spoiler Tag 0.3.2
6. Wrap Text Around Image 1.0
7. All Topics Unsubscriber 1.1
8. GoogleVideo BBCode by Yakuza 0.1
9. Enhanced Calendar 1.1
10. Spam Me Not Mod 1.02
11. Mod List Color Alternate 1.0
12. Profile Comments 1.2.1

Any ideas?

Cheers!

You will need to make the changes to that file manually.

http://docs.simplemachines.org/index.php?topic=402
Title: Re: MessagePreviewOnMouseOver
Post by: Paddy on September 09, 2007, 04:12:00 PM
Will do, cheers :)
Title: Re: MessagePreviewOnMouseOver
Post by: Paddy on September 09, 2007, 04:28:18 PM
I can't follow the instructions in the link you gave me.  I can't find the <operation> tags in the XML file, and after that I just get lost.  I installed the mod regardless of the error and it appears to be working.  I guess it will do! hehe

Cheers.
Title: Re: MessagePreviewOnMouseOver
Post by: KurtS on September 10, 2007, 11:07:29 AM
Snork,
Thanks for writing the mod.

Sarge,
Thank you very much for the Babylon supplement fix!!   I'm not sure I could have got it working without it!!!
Title: Re: MessagePreviewOnMouseOver
Post by: Sarge on September 21, 2007, 02:41:51 AM
Quote from: KurtS on September 10, 2007, 11:07:29 AM
Sarge,
Thank you very much for the Babylon supplement fix!!   I'm not sure I could have got it working without it!!!

Glad I could help. :)

Quote from: snork13 on September 07, 2007, 10:52:42 PM
Quote from: Sarge on September 07, 2007, 08:20:51 PM
Quote from: joe123 on September 07, 2007, 06:08:33 PM
Ok thanks.    I read it, but I am somewhat of a newbie.      How many lines and or files am I looking at having to edit to enable the chat program with this Theme?   

This is the discussion topic for the MessagePreviewOnMouseHover mod, not for a chat mod.

I have added the mod to Dilber MC and I have coded the changes into a mod package; if snork13 allows me, I can post the mod package, which adds MessagePreviewOnMouseHover functionality to the Dilber MC theme -- only Dilber MC theme changes are installed, nothing else.

Sure thing Sarge, thanks ;)

Thanks, snork13 :) joe123, download the supplemental mod package attached to this post and upload it to Package Manager.

Just like the supplement for Babylon, this is a supplemental mod that adds MessagePreviewOnHover to the Dilber MC theme. Of course, both MessagePreviewOn Hover and Dilber MC must be installed for this mod to work.

This mod assumes that Dilber MC is installed in Themes/dilbermc/ -- if the theme is installed elsewhere, open messagepreview_dilbermc.xml (part of this mod package) and change dilbermc in "$boarddir/Themes/dilbermc/MessageIndex.template.php" to the correct directory name.

Let me know if it works for you.


Update: The attached package now works on SMF 1.1.4 and 1.1.5.
Title: Re: MessagePreviewOnMouseOver
Post by: tinatoth on October 07, 2007, 03:28:12 PM
Any chance to update this to work on 1.1.4? It seems to work on a forum that was upgraded from 1.1.3 to 1.1.4, but it doesn't want to install on a fresh 1.1.4 forum.
Title: Re: MessagePreviewOnMouseOver
Post by: keptang on October 16, 2007, 07:21:43 AM
Quote from: Tanks on October 05, 2006, 04:05:03 AM
Can this be made to show pictures attached in that post ??

Anyone know how to modify it so it also shows images?
Title: Re: MessagePreviewOnMouseOver
Post by: locomotion182 on October 20, 2007, 09:14:50 PM
hi!
first of all thanks for the mod

but i kinda have a small issue with it. It installs just fine in my default theme but i use custom ones, YEs i know you will say that i need to install it manually, believe me i know ive installed manually before, i actually was able to install it manually in one of my custom themes.

but theres this one(and it sucks because its my forum default) that i cant seem to edit ptoperly, i cant really find the stuff i need to change in messageindex.template.php, could anyone please help me out = /
i would really aprpeciate it.

I attached my messageindex template in this post

thanks.
Title: Re: MessagePreviewOnMouseOver
Post by: falguni1 on October 24, 2007, 04:37:57 AM
Quote from: keptang on October 16, 2007, 07:21:43 AM
Quote from: Tanks on October 05, 2006, 04:05:03 AM
Can this be made to show pictures attached in that post ??

Anyone know how to modify it so it also shows images?

I also want this feature to see the attachments in preview

I like this message preview mod
Title: Re: MessagePreviewOnMouseOver
Post by: falguni1 on October 24, 2007, 12:47:30 PM
It says
I am using SMF1.1.3

Install Actions
Installations actions for "MessagePreviewOnHover":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

where can I download the latest version the mod site has no new version
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on October 24, 2007, 07:22:17 PM
Quote from: falguni1 on October 24, 2007, 12:47:30 PM
It says
I am using SMF1.1.3

Install Actions
Installations actions for "MessagePreviewOnHover":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

where can I download the latest version the mod site has no new version


the mods has been update for 1.1.4. you will need to upgrade your forum for a # of reasons.
Title: Re: MessagePreviewOnMouseOver
Post by: locomotion182 on October 24, 2007, 08:22:19 PM
Quote from: locomotion182 on October 20, 2007, 09:14:50 PM
hi!
first of all thanks for the mod

but i kinda have a small issue with it. It installs just fine in my default theme but i use custom ones, YEs i know you will say that i need to install it manually, believe me i know ive installed manually before, i actually was able to install it manually in one of my custom themes.

but theres this one(and it sucks because its my forum default) that i cant seem to edit ptoperly, i cant really find the stuff i need to change in messageindex.template.php, could anyone please help me out = /
i would really aprpeciate it.

I attached my messageindex template in this post

thanks.


anybody = / ?
Title: Re: MessagePreviewOnMouseOver
Post by: unrelenting on October 25, 2007, 11:10:47 PM
Quote from: locomotion182 on October 24, 2007, 08:22:19 PM
Quote from: locomotion182 on October 20, 2007, 09:14:50 PM
hi!
first of all thanks for the mod

but i kinda have a small issue with it. It installs just fine in my default theme but i use custom ones, YEs i know you will say that i need to install it manually, believe me i know ive installed manually before, i actually was able to install it manually in one of my custom themes.

but theres this one(and it sucks because its my forum default) that i cant seem to edit ptoperly, i cant really find the stuff i need to change in messageindex.template.php, could anyone please help me out = /
i would really aprpeciate it.

I attached my messageindex template in this post

thanks.


anybody = / ?

Try this...
Title: Re: MessagePreviewOnMouseOver
Post by: locomotion182 on October 25, 2007, 11:16:01 PM
youre amazing!
thanks =)
Title: Re: MessagePreviewOnMouseOver
Post by: Sakae on October 28, 2007, 08:21:36 AM
Hi, would be possible to make changes to work with Tinyportal v0.9.8?

I mean, with recent posts block in Tinyportal (see my forum: tigrelog.net)
Title: Re: MessagePreviewOnMouseOver
Post by: iyeru42 on November 16, 2007, 12:25:04 AM
Quote from: snork13 on September 07, 2007, 05:36:29 PM
Quote from: joe123 on September 07, 2007, 05:27:22 PM
Does it work with Dilber MC Theme?    I am running SMF 1.1.3 and I don't see anything when I move the move my mouse across.

No, you'll need to install manually.

http://docs.simplemachines.org/index.php?topic=402

I can't read XML, so I can't use that documentation.
Title: Re: MessagePreviewOnMouseOver
Post by: Sarge on November 16, 2007, 12:48:22 AM
Quote from: iyeru42 on November 16, 2007, 12:25:04 AM
Quote from: snork13 on September 07, 2007, 05:36:29 PM
Quote from: joe123 on September 07, 2007, 05:27:22 PM
Does it work with Dilber MC Theme?    I am running SMF 1.1.3 and I don't see anything when I move the move my mouse across.

No, you'll need to install manually.

http://docs.simplemachines.org/index.php?topic=402

I can't read XML, so I can't use that documentation.

Use this:
http://www.simplemachines.org/community/index.php?topic=69184.msg1247777#msg1247777
Title: Re: MessagePreviewOnMouseOver
Post by: iyeru42 on November 16, 2007, 06:21:04 AM
Quote from: Sarge on November 16, 2007, 12:48:22 AMUse this:
http://www.simplemachines.org/community/index.php?topic=69184.msg1247777#msg1247777

How can I adapt that to install to the Babylon, Christmas Season 1.1, YaBB Classic and the Scribbles themes all at once? Or do I have to execute it for each one? If so, how do I do that? (If I do it for each one, SMF will just overwrite the package. with the new dilbermc skin.)
Title: Re: MessagePreviewOnMouseOver
Post by: Sarge on November 16, 2007, 06:53:21 AM
Quote from: iyeru42 on November 16, 2007, 06:21:04 AM
How can I adapt that to install to the Babylon, Christmas Season 1.1, YaBB Classic and the Scribbles themes all at once? Or do I have to execute it for each one? If so, how do I do that? (If I do it for each one, SMF will just overwrite the package. with the new dilbermc skin.)

For Babylon, use the supplemental mod attached here:
http://www.simplemachines.org/community/index.php?topic=69184.msg1069268#msg1069268

As you can see, you need a supplemental mod for every theme you want. If you're unable to create mod packages, you could try asking someone to do that for you, or you can modify the themes manually.
Title: Re: MessagePreviewOnMouseOver
Post by: iyeru42 on November 16, 2007, 07:52:10 AM
Quote from: Sarge on November 16, 2007, 06:53:21 AM
Quote from: iyeru42 on November 16, 2007, 06:21:04 AM
How can I adapt that to install to the Babylon, Christmas Season 1.1, YaBB Classic and the Scribbles themes all at once? Or do I have to execute it for each one? If so, how do I do that? (If I do it for each one, SMF will just overwrite the package. with the new dilbermc skin.)

For Babylon, use the supplemental mod attached here:
http://www.simplemachines.org/community/index.php?topic=69184.msg1069268#msg1069268

As you can see, you need a supplemental mod for every theme you want. If you're unable to create mod packages, you could try asking someone to do that for you, or you can modify the themes manually.

Can you tell me how to do it manually so I don't have to look through the XML?
Title: Re: MessagePreviewOnMouseOver
Post by: Sarge on November 16, 2007, 07:57:15 AM
Have you tried SMF Mod Parser (http://sleepycode.com/PackageParser/index.php)? Upload the mod there, choose your SMF version, select "Only Theme edits" and click the Send File button. The instructions are extracted from the XML but are presented in plain English.
Title: Re: MessagePreviewOnMouseOver
Post by: dmz_pt on November 20, 2007, 01:51:37 PM
Excellent and very easy to install and manage.
Title: Re: MessagePreviewOnMouseOver
Post by: Aileen on November 28, 2007, 05:09:25 AM
This is a great mod. I just have a question though. with regard to SEO. will this mod be NOT against google webmaster guidelines


thanks


Just afraid being banned on google SERP
Title: Re: MessagePreviewOnMouseOver
Post by: pwangie on November 29, 2007, 01:16:47 PM
Ok I changed themes to Dilber MC and tried to install the mod that Sarge had updated to work with it.  I get an error message
"The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

I am running 1.1.4 
Will someone Please help me.
Sarge?
Snork?
Please???
Title: Re: MessagePreviewOnMouseOver
Post by: mightygiants on December 07, 2007, 04:17:59 PM
Sarge,

Any chance you could do that mod thing for the Classic theme?  It would be awesome if you could.

Rich
Title: Re: MessagePreviewOnMouseOver
Post by: Sarge on December 09, 2007, 06:05:49 AM
Quote from: pwangie on November 29, 2007, 01:16:47 PM
"The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

Can you install any other mods?
Title: Re: MessagePreviewOnMouseOver
Post by: wyrdgirl on January 16, 2008, 10:48:19 AM
Quote from: Sarge on December 09, 2007, 06:05:49 AM
Quote from: pwangie on November 29, 2007, 01:16:47 PM
"The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

Can you install any other mods?
I get that error as well and I'm able to install other mods
Title: Re: MessagePreviewOnMouseOver
Post by: Whiney on January 19, 2008, 03:06:39 PM
Download link is dead, just goes to a blank page...no 404 or anything.
Title: Re: MessagePreviewOnMouseOver
Post by: dxyy on January 19, 2008, 08:52:10 PM
Quote from: Whiney on January 19, 2008, 03:06:39 PM<br />Download link is dead, just goes to a blank page...no 404 or anything.<br />
There was a hardware failure or something earlier so some files were lost I guess.

Anyway, I'll attach my copy of the mod for you as I think it was the most recent version. :)
Title: Re: MessagePreviewOnMouseOver
Post by: Whiney on January 20, 2008, 01:17:22 AM
Much appreciated, thank you!
Title: Re: MessagePreviewOnMouseOver
Post by: dxyy on January 20, 2008, 01:51:09 AM
You're welcome. :)
Title: Re: MessagePreviewOnMouseOver
Post by: Chan Kong-sang on February 14, 2008, 05:41:10 PM
Quote from: pwangie on November 29, 2007, 01:16:47 PM
"The package you are trying to download or install is either corrupt or not compatible with this version of SMF."
I got it too until i took the version from hugodiaz. Thanks man.

Is it possible to add images to the preview?
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on February 14, 2008, 09:29:20 PM
I just downloaded it fine. I can say that hugodiaz version is not code-complaint, for a few reasons. Please use at your own risk. I will not support it.

-snork13
Title: Re: MessagePreviewOnMouseOver
Post by: Sarge on February 15, 2008, 05:05:54 AM
Quote from: dadann on April 02, 2007, 04:18:41 AM
OK.
On firefox :
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg404.imageshack.us%2Fimg404%2F871%2Fonfirefoxzk2.jpg&hash=13dd9893989218781ab711179e77f6fce83c2ef9)

On Internet Explorer :
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg83.imageshack.us%2Fimg83%2F4557%2Foniemt3.jpg&hash=50b8ed0d0014e967ffdcb7f1367cde0dd0ae35bd)

If anyone is having too short message previews (tooltips) in Firefox and Mozilla but normal length in Internet Explorer, you need to be aware that this is a Firefox/Mozilla bug, not a mod issue. What happens is that the text in the title attribute (used by the mod to display message previews) gets truncated. This is a known bug and is fixed in Firefox 3.0 alpha4, I believe.

A workaround in Firefox 2 is to install an add-on to fix the issue. Long Title (https://addons.mozilla.org/en-US/firefox/addon/1715) is such an add-on.
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on February 15, 2008, 10:18:03 AM
Quote from: Sarge on February 15, 2008, 05:05:54 AM
Quote from: dadann on April 02, 2007, 04:18:41 AM
OK.
On firefox :
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg404.imageshack.us%2Fimg404%2F871%2Fonfirefoxzk2.jpg&hash=13dd9893989218781ab711179e77f6fce83c2ef9)

On Internet Explorer :
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg83.imageshack.us%2Fimg83%2F4557%2Foniemt3.jpg&hash=50b8ed0d0014e967ffdcb7f1367cde0dd0ae35bd)

If anyone is having too short message previews (tooltips) in Firefox and Mozilla but normal length in Internet Explorer, you need to be aware that this is a Firefox/Mozilla bug, not a mod issue. What happens is that the text in the title attribute (used by the mod to display message previews) gets truncated. This is a known bug and is fixed in Firefox 3.0 alpha4, I believe.

A workaround in Firefox 2 is to install an add-on to fix the issue. Long Title (https://addons.mozilla.org/en-US/firefox/addon/1715) is such an add-on.

thanks Sarge for the info :)
Title: Re: MessagePreviewOnMouseOver
Post by: lureah21 on February 16, 2008, 10:29:50 AM
Quote from: snork13 on February 14, 2008, 09:29:20 PM
I just downloaded it fine. I can say that hugodiaz version is not code-complaint, for a few reasons. Please use at your own risk. I will not support it.

-snork13

I downloaded it, but it appears corrupt....can't open with file roller:

"error [/home/user/Desktop/MessagePreviewOnHover.zip]:  missing 2 bytes in zipfile"

Perhaps it needs to be uploaded again because of the recent server hardware problems?
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on February 16, 2008, 12:29:50 PM
Quote from: lureah21 on February 16, 2008, 10:29:50 AM
Quote from: snork13 on February 14, 2008, 09:29:20 PM
I just downloaded it fine. I can say that hugodiaz version is not code-complaint, for a few reasons. Please use at your own risk. I will not support it.

-snork13

I downloaded it, but it appears corrupt....can't open with file roller:

"error [/home/user/Desktop/MessagePreviewOnHover.zip]:  missing 2 bytes in zipfile"

Perhaps it needs to be uploaded again because of the recent server hardware problems?

try it now, should be ok
Title: Re: MessagePreviewOnMouseOver
Post by: lureah21 on February 16, 2008, 01:42:07 PM
Yep, that works much better. Thanks.
Title: Re: MessagePreviewOnMouseOver
Post by: twomiracles on February 26, 2008, 02:31:30 PM
I installed it, but I am not seeing anything when hovering over a message title.  I don't see a read_me file so I don't know if I have missed something or what I'm doing wrong.
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on February 26, 2008, 02:44:51 PM
Quote from: twomiracles on February 26, 2008, 02:31:30 PM<br />I installed it, but I am not seeing anything when hovering over a message title.  I don't see a read_me file so I don't know if I have missed something or what I'm doing wrong.<br />

and are you running the default theme?
Title: Re: MessagePreviewOnMouseOver
Post by: twomiracles on February 26, 2008, 02:49:34 PM
No, a modified YaBB one.  Are there instructions somewhere for that?  I didn't see them in the mod post or here in the comments and there's no readme file.
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on February 26, 2008, 03:01:12 PM
I can see if I can tell you what to change what version are you running
Title: Re: MessagePreviewOnMouseOver
Post by: lureah21 on February 27, 2008, 03:11:14 PM
How difficult would it be to modify this package to work with tinyportal's recent posts block?
Title: Re: MessagePreviewOnMouseOver
Post by: dannbass on March 08, 2008, 04:24:34 PM
I have a problem... and I didn't realize it before because I always look at my board logged in... well,  I'm using this mod Hidden for guest (http://custom.simplemachines.org/mods/index.php?mod=756) and when I use it on the first post it throws all the layout of the MessageIndex.template.php, first I thought it was a template problem but then I switched to the default and the problem persisted... is there a way to parse the [logged]...[/logged] from that first post?

Thanks!
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on March 08, 2008, 11:49:48 PM
Quote from: dannbass on March 08, 2008, 04:24:34 PM
I have a problem... and I didn't realize it before because I always look at my board logged in... well,  I'm using this mod Hidden for guest (http://custom.simplemachines.org/mods/index.php?mod=756) and when I use it on the first post it throws all the layout of the MessageIndex.template.php, first I thought it was a template problem but then I switched to the default and the problem persisted... is there a way to parse the [logged]...[/logged] from that first post?

Thanks!

I don't know what that mod does, but I think the problem is caused by that mod. My mod doesn't change the layout, just gives a preview.

-snork13
Title: Re: MessagePreviewOnMouseOver
Post by: dannbass on March 09, 2008, 04:10:32 PM
Thanks Snork13, I think I have a "fix" for now... thanks to your mod we can decide how many letters to display in the preview... I had 500 well, I changed it to 100 and I tried to move the hidden text to later on in the post, and the problem was gone.  Anyway, I'll contact the writer of the Hidden for Guest and suggest him the issue.

Thanks a lot!
Title: Re: MessagePreviewOnMouseOver
Post by: madman71 on March 14, 2008, 11:04:21 PM
Snork,

First of all, thanks for developing this mod. I want to  know if the follow is possible:



What im looking for is best described in the picture below.  This mod would mostly be used for forums that display galleries from the free photo hosting site, www.imagevenue.com.

How it works is that you place your cursor on the link and it gives you a few thumbnail popups of what the gallery looks like.

I've spoken to the Admin. of the site (pictured below) and asked him for some info about this mod of his.  It sounds like he just paid for someone to do it for him.  He didnt know much about the script.  This is one nice mod and im looking for someone that can  write a script for this.  Im pretty certain that this script is tailored to only show www.imagevenue.com images, and that's what i would like. 

This is what it looks like

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg177.imagevenue.com%2Floc491%2Fth_06318_untitled_122_491lo.JPG&hash=36a4726a6f5263d6951cb365b74b70055eae092e) (http://img177.imagevenue.com/img.php?image=06318_untitled_122_491lo.JPG)


BTW, i have posted this over in the MOD REQUEST and then i found you.
check out the thread for clarification. 
http://www.simplemachines.org/community/index.php?topic=227723.0
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on March 28, 2008, 12:22:23 PM
Update:

I have updated this mod for SMF 2.0 Beta 3 Public. Please report any bugs to this thread. New version is 1.7

http://custom.simplemachines.org/mods/index.php?mod=263

-snork13
Title: Re: MessagePreviewOnMouseOver
Post by: Smoky "Rider" Blue on March 28, 2008, 05:44:51 PM
I just installed this mod, terriffic!! thanks..

but i have a question: on ie (with the mod set at 500) i get a bunch of words in the pop up, but on ff i only get maybe a good sentence.. is this how it is supposed to work??  8)

if you need the domain addy, i would rather pm it at this time as it isnt set up for visitors yet.. thanks!!
Title: Re: MessagePreviewOnMouseOver
Post by: eizellspende on April 05, 2008, 08:32:37 PM
I tried to install the mod on Mercury-Theme, but without any result.
The changes would be made in the default theme, but in my Mercury-Theme I don´t have all the files, there are only the following files:
BoardIndex.template
Display.template
index
index.template
theme_info
Themes.template
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on April 06, 2008, 08:26:28 AM
make the changes in the files your theme DOES have.
Title: Re: MessagePreviewOnMouseOver
Post by: Matthew Schenker on May 07, 2008, 12:03:26 PM
Hello,
I really like this modification, but when I try to install it in 2.0 beta 3.1, I get this message:
"The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

Matthew
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on May 07, 2008, 12:40:42 PM
It's not updated for 2.0
Title: Re: MessagePreviewOnMouseOver
Post by: Matthew Schenker on May 07, 2008, 02:28:00 PM
Quote from: Kindred on May 07, 2008, 12:40:42 PM
It's not updated for 2.0

I'm very confused...
You wrote, "It's not updated for 2.0."
In reply #175, snork13 wrote, "I have updated this mod for SMF 2.0. "
Matthew
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on May 07, 2008, 02:36:25 PM
ok...   it's not updated for smf 2.0 beta 3.1
Title: Re: MessagePreviewOnMouseOver
Post by: sevenworth on May 08, 2008, 09:42:33 AM
When do you anticipate being able to include compatibility with 1.1.5?
Title: Re: MessagePreviewOnMouseOver
Post by: Sarge on May 08, 2008, 10:08:04 AM
Quote from: SmokyBlue on March 28, 2008, 05:44:51 PM
but i have a question: on ie (with the mod set at 500) i get a bunch of words in the pop up, but on ff i only get maybe a good sentence.. is this how it is supposed to work??  8)

It's a Firefox bug. Read reply #161 in this topic for an explanation and a possible solution.

Quote from: sevenworth on May 08, 2008, 09:42:33 AM
When do you anticipate being able to include compatibility with 1.1.5?

snork13 will probably update the mod, but meanwhile you can try adding ;version_emulate=1.1.4 to the Package Manager URL. The link should be something like:
http://www.yourforum.com/index.php?action=packages;version_emulate=1.1.4
Then try to install the mod.
Title: Re: MessagePreviewOnMouseOver
Post by: sevenworth on May 08, 2008, 10:28:56 AM
Tried it, and it installs successfully, however, mod does not work. also, in the admin, i get this:
Title: Re: MessagePreviewOnMouseOver
Post by: Sarge on May 08, 2008, 10:39:59 AM
Are you using English-utf8 or another language? If so, add these:

$txt['hoverLength_desc'] = 'Length of the message preview on hover';
$txt['hoverCharacters'] = 'characters';

at the bottom of Themes/default/languages/Modifications.english.php or Themes/default/languages/Admin.<your_language>.php, but before the ?> tag.
Title: Re: MessagePreviewOnMouseOver
Post by: sevenworth on May 08, 2008, 01:12:04 PM
Quote from: Sarge on May 08, 2008, 10:39:59 AM
Are you using English-utf8 or another language? If so, add these:

$txt['hoverLength_desc'] = 'Length of the message preview on hover';
$txt['hoverCharacters'] = 'characters';

at the bottom of Themes/default/languages/Modifications.english.php or Themes/default/languages/Admin.<your_language>.php, but before the ?> tag.

Excellent, thanks... That solved the problem in admin (Have plenty of this kind of problem with other mods.. drives me insane).

Unfortunately, I still have no preview on mouse over...

any ideas? what other info do you need from me?
Title: Re: MessagePreviewOnMouseOver
Post by: sevenworth on May 08, 2008, 01:20:03 PM
btw, you asked if i was using english-utf8 or another language... I'm using english-utf8. do i have any alternatives? particularly ones that would aviod this exact issue with other mods...?
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on May 08, 2008, 02:55:19 PM
use english
(no utf-8)
Title: Re: MessagePreviewOnMouseOver
Post by: sevenworth on May 08, 2008, 02:59:47 PM
Quote from: Kindred on May 08, 2008, 02:55:19 PM
use english
(no utf-8)

will that help in preventing mods from installing incorrectly (on the admin section)? I want to try and avoid having blank options all over the show...

I have set the forum to english. actually have no idea why is was on utf8 to begin with. what is the difference? what is utf8?
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on May 08, 2008, 03:32:01 PM
http://en.wikipedia.org/wiki/UTF-8
Title: Re: MessagePreviewOnMouseOver
Post by: Sarge on May 08, 2008, 08:44:20 PM
Quote from: Kindred on May 08, 2008, 03:32:01 PM
http://en.wikipedia.org/wiki/UTF-8

Also read the UTF-8 Readme (http://docs.simplemachines.org/index.php?topic=865).

1) Did you install SMF via Fantastico or some other third-party software? Nothing wrong with it (Fantastico has permission to do that), but there could be some differences in the way SMF is set up, including UTF-8 support.

2) In SMF Admin > Forum Maintenance, do you see "Convert the database and data to UTF-8" or do you see "Convert HTML entities to UTF-8 characters"?
Title: Re: MessagePreviewOnMouseOver
Post by: sevenworth on May 09, 2008, 02:03:14 AM
1. Installed by Fantastico, yes.

2. I see:

QuoteConvert HTML-entities to UTF-8 characters

but I have never used it because i was unsure what it does.
Title: Re: MessagePreviewOnMouseOver
Post by: sevenworth on May 09, 2008, 02:09:14 AM
Quote from: Kindred on May 08, 2008, 03:32:01 PM
http://en.wikipedia.org/wiki/UTF-8

Thanks.

I don't know why (very seldom) i decide to ask someone a question when its far easier and quicker to google or wiki it.
Title: Re: MessagePreviewOnMouseOver
Post by: kermitthefrog on May 09, 2008, 03:15:27 PM
With version 1.1.5:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Title: Re: MessagePreviewOnMouseOver
Post by: sevenworth on May 12, 2008, 04:50:13 AM
Quote from: kermitthefrog on May 09, 2008, 03:15:27 PM
With version 1.1.5:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

This worked for me:

Quotesnork13 will probably update the mod, but meanwhile you can try adding ;version_emulate=1.1.4 to the Package Manager URL. The link should be something like:
http://www.yourforum.com/index.php?action=packages;version_emulate=1.1.4
Then try to install the mod.
Title: Re: MessagePreviewOnMouseOver
Post by: sevenworth on May 16, 2008, 03:19:03 AM
I am trying to install this mod manually on the Aero79 theme (smf 1.1.5). The XML file is telling me to make changes in Recent.template.php which doesnt exist on this particular theme.

What now?
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on May 16, 2008, 08:00:58 AM
did you run the automatic install?

Normally, for mods: run the auto-install (this will install it into the sources and default theme., then do manual installation on any file which failed the auto-install test or any files in alternate themes.
If a template files does not exist in a theme, then the system uses the default theme version of that file.
Title: Re: MessagePreviewOnMouseOver
Post by: sevenworth on May 16, 2008, 08:04:08 AM
Interesting. Thank you.
Title: Re: MessagePreviewOnMouseOver
Post by: Marcus Forsberg on May 17, 2008, 02:49:52 AM
Could u help me install this on Kelo-lt?
Title: Re: MessagePreviewOnMouseOver
Post by: Manuelbat on May 19, 2008, 10:20:44 PM
I can get the mod installed through the methods in this topic on an SMF 1.1.5 forum, however I still cannot get the mod to work. Are there any suggestions? I've checked through the various files needed to be changed, and they appear to be in place, however there is no functionality.

Thank-you in advance.
Title: Re: MessagePreviewOnMouseOver
Post by: Sarge on May 20, 2008, 03:18:18 AM
Manuelbat, does the mod functionality appear when using the default theme (SMF Default Theme - Core)?
Title: Re: MessagePreviewOnMouseOver
Post by: Manuelbat on May 20, 2008, 12:46:40 PM
It doesn't appear to. In a moment, I'll try disabling the other hover mods I have to see if they're interfering with it. Addendum: Disabled BoardHoverMod, the preview still didn't work. Might there have been something I overlooked?
Title: Re: MessagePreviewOnMouseOver
Post by: sorosh1 on June 03, 2008, 10:44:56 AM
can you make this one compatible with smf 1.1.5! Please! I really need this one!
Thanks!
Title: Re: MessagePreviewOnMouseOver
Post by: chrisb on June 07, 2008, 07:30:03 AM
We would like to seen a update on this mod for 1.1.5 , As when you upgrade to the new mod , now puts this mod incompatiable to use .
Title: Re: MessagePreviewOnMouseOver
Post by: shanniberry on June 20, 2008, 12:37:21 AM
Yes, PLEASE make this compatible with 1.1.5!!!!  It's the most requested feature on my board!
Title: Re: MessagePreviewOnMouseOver
Post by: fangweile on June 20, 2008, 01:04:44 AM
I used this mod in my dilber mc,  smf 1.1.5 and works great.
Title: Re: MessagePreviewOnMouseOver
Post by: shanniberry on June 20, 2008, 01:35:04 AM
Quote from: fangweile on June 20, 2008, 01:04:44 AM
I used this mod in my dilber mc,  smf 1.1.5 and works great.

HOW did you get it to work???  It works fine in the default theme but I use dilber mc as well and I've just spent the last hour doing everything suggested here and going over and over the code I can't get it to work!  HELP!
Title: Re: MessagePreviewOnMouseOver
Post by: shanniberry on June 20, 2008, 02:08:24 AM
Ok it works on Show unread posts since last visit and Show new replies to your posts but not if you just go into the forum and hover over a topic.  Very strange and very frustrating!
Title: Re: MessagePreviewOnMouseOver
Post by: fangweile on June 20, 2008, 07:24:51 AM
Make sure the you added and modified the required codes in your dilber mc files.

MessageIndex.template.php
Title: Re: MessagePreviewOnMouseOver
Post by: shanniberry on June 20, 2008, 12:23:00 PM
I did...the code it said to replace didn't exist though and when I just added it I got errors.  *sigh*
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on June 20, 2008, 12:59:37 PM
as with any theme other than the default....   you may have to tweak the code to fit into your own theme correctly.
Title: Re: MessagePreviewOnMouseOver
Post by: shanniberry on June 20, 2008, 02:20:09 PM
I've had my message board a week, I'm not exactly a genius at code (although I'm not totally inept either).  How do I know WHICH code to tweak...and tweak it HOW?  Like I said...it's working on the Show unread posts since last visit and Show new replies to your posts just not if you go into the topic on the board. 

And do I use the code for 1.1.4?

The error I got said something about a string...
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on June 20, 2008, 09:01:42 PM
you can't just randomly paste code in and expect it to work.

The Show unread posts since last visit and Show new replies to your posts works because those files are using the default theme versions....  your messageindex.template.php has been altered (and hence redefined) in your theme... so the default installation doesn't work.

When you paste code, you have to make sure that the code closes strings, conditionals, etc correctly....
Title: Re: MessagePreviewOnMouseOver
Post by: shanniberry on June 21, 2008, 12:43:38 AM
Well I excpect the instructions and suggested code to work.  I've successfully installed 15+ other mods while altering code for the theme I'm using so it's not like I'm totally clueless.

So the instructions for MessageIndex.template.php say to find this code:
echo ' ', $topic['is_sticky'] ? '<b>' : '' , '<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], (!$context['can_approve_posts'] && !$topic['approved'] ? '&nbsp;<em>(' . $txt['awaiting_approval'] . ')</em>' : ''), '</span>', $topic['is_sticky'] ? '</b>' : '';

Which doesn't exist in my file - and to replace it with this code:

echo ' ', $topic['is_sticky'] ? '<b>' : '' , '<span title="', $topic['first_post']['preview'], '"><span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], (!$context['can_approve_posts'] && !$topic['approved'] ? '&nbsp;<em>(' . $txt['awaiting_approval'] . ')</em>' : ''), '</span></span>', $topic['is_sticky'] ? '</b>' : '';

Well where the heck do I put this code???  I've tried placing it in several different places only to get errors like this one...

Template Parse Error!
There was a problem loading the /Themes/dilbermc/MessageIndex.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';'


So is the code wrong or am I putting it in the wrong place or both or what?!   >:(
Title: Re: MessagePreviewOnMouseOver
Post by: fangweile on June 21, 2008, 07:52:37 AM
You will simply insert this code:


Find:
'<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], '</span>'


Replace with:

'<span title="', $topic['first_post']['preview'], '"><span id="msg_' . $topic['first_post']['id'] . '">'


Hope it works


Here is my dilbermc messageindex.template.php modified files looks like:

if (!empty($settings['seperate_sticky_lock']))
echo '
' , $topic['is_locked'] ? '<img src="' . $settings['images_url'] . '/icons/quick_lock.gif" align="right" alt="" id="lockicon' . $topic['first_post']['id'] . '" style="margin: 0;" />' : '' , '
' , $topic['is_sticky'] ? '<img src="' . $settings['images_url'] . '/icons/show_sticky.gif" align="right" alt="" id="stickyicon' . $topic['first_post']['id'] . '" style="margin: 0;" />' : '';

echo '
', $topic['is_sticky'] ? '<b>' : '' , '<span title="', $topic['first_post']['preview'], '"><span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], '</span></span>', $topic['is_sticky'] ? '</b>' : '';



// Is this topic new? (assuming they are logged in!)




Title: Re: MessagePreviewOnMouseOver
Post by: Sarge on June 22, 2008, 02:26:55 AM
To those that are looking to install this mod into the Dilber MC theme: Please use the SEARCH button.

I created a supplemental mod package for this some time ago. I just updated it for SMF 1.1.5:
http://www.simplemachines.org/community/index.php?topic=69184.msg1247777#msg1247777

It's up to snork13 (the author of the MessagePreviewOnMouseOver mod) to update his mod for the latest SMF versions, but it works on SMF 1.1.5 without modification. Before installing this mod, open Package Manager with ;version_emulate=1.1.4 at the end of the URL:
http://www.yoursite.com/forum/index.php?action=packages;version_emulate=1.1.4

This will fool Package Manager into "thinking" that the SMF version is 1.1.4 (the latest supported by the mod) and it will accept the mod package. (Ignore the SMF update notification.) After the mod is installed, add ;version_emulate=1.1.5 (or whatever your SMF version is) to the Package Manager URL.

Please search this topic and the forum before asking questions!
Title: Re: MessagePreviewOnMouseOver
Post by: lightening on June 22, 2008, 05:13:31 AM
i have smf1.1.5 and tp 1.0.5 beta, I have uploaded this mod and it was successful but for the life of me I cant find it to make it work

any suggestions please? (default theme as I am a little silly to start using on other theme, I may end up breaking my forum again ;) )
Title: Re: MessagePreviewOnMouseOver
Post by: shanniberry on June 23, 2008, 01:40:20 AM
Quote from: Sarge on June 22, 2008, 02:26:55 AM
To those that are looking to install this mod into the Dilber MC theme: Please use the SEARCH button.

I created a supplemental mod package for this some time ago. I just updated it for SMF 1.1.5:
http://www.simplemachines.org/community/index.php?topic=69184.msg1247777#msg1247777

It's up to snork13 (the author of the MessagePreviewOnMouseOver mod) to update his mod for the latest SMF versions, but it works on SMF 1.1.5 without modification. Before installing this mod, open Package Manager with ;version_emulate=1.1.4 at the end of the URL:
http://www.yoursite.com/forum/index.php?action=packages;version_emulate=1.1.4

This will fool Package Manager into "thinking" that the SMF version is 1.1.4 (the latest supported by the mod) and it will accept the mod package. (Ignore the SMF update notification.) After the mod is installed, add ;version_emulate=1.1.5 (or whatever your SMF version is) to the Package Manager URL.

Please search this topic and the forum before asking questions!

I DID search and search...that particular page/post didn't come up and I didn't read ALL 11 pages of this thread.  (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.shanni.org%2Fsmilies%2Ficon_baggirl.gif&hash=9f6df5cd701afbe2cfedc292eab77684fc2ae045)  OMG, do you know how much time I could have saved? (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.shanni.org%2Fsmilies%2Ficon_banghead.gif&hash=ceaffbc0f4f26c4c49d48d194dc644d81cc8fa10)   Anyhow, it worked! (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.shanni.org%2Fsmilies%2Fsign_ThankYou.gif&hash=4d05f781972c91dcd674c7586bf3740711e0f923)
Title: Re: MessagePreviewOnMouseOver
Post by: ディン1031 on June 27, 2008, 12:51:35 AM
Hi

For what are the images good, and why need i to install this oO. (It's unlogical to me, because they are not used by the mod).



So here is a german Translation for this small and nice mod ;).


        <file name="$themedir/languages/Admin.german.php" error="skip">
<operation>
<search position="end"><![CDATA[?>]]></search>
<add><![CDATA[
$txt['hoverLength_desc'] = 'L&auml;nge der Postsreview beim dar&uuml;berfahren mit der Maus';
$txt['hoverCharacters'] = 'Zeichen';
]]></add>
</operation>
        </file>


Bye
DIN1031
Title: Re: MessagePreviewOnMouseOver
Post by: bork on June 28, 2008, 01:20:34 PM
Has anybody altered this mod to show the text of the last post in a topic, rather than the text of the first post?

I suspect this might be more useful in some circumstances?
Title: Re: MessagePreviewOnMouseOver
Post by: unrelenting on June 28, 2008, 01:25:11 PM
Quote from: bork on June 28, 2008, 01:20:34 PM
Has anybody altered this mod to show the text of the last post in a topic, rather than the text of the first post?

I suspect this might be more useful in some circumstances?

This doesn't have anything to do with which post is shown. This mod is to show the contents of a message when you hover over its link in the message index.
Title: Re: MessagePreviewOnMouseOver
Post by: bork on June 28, 2008, 01:38:18 PM
Hmmm - not sure i've explained it very well then - I know what it does,  i have it installed and it's a great mod :)

But what i mean is: when you hover over the topic title you get the first x characters of the topic, i.e. the first text of the first post.
On some occasions it would be more useful to show the first text of the last post, not the first post.

There used to be a mod for phpBB which gave you the option of choosing first/last which is why I ask how hard it would be to do.
Title: Re: MessagePreviewOnMouseOver
Post by: ディン1031 on June 28, 2008, 05:32:06 PM
Quote from: bork on June 28, 2008, 01:38:18 PM
Hmmm - not sure i've explained it very well then - I know what it does,  i have it installed and it's a great mod :)

But what i mean is: when you hover over the topic title you get the first x characters of the topic, i.e. the first text of the first post.
On some occasions it would be more useful to show the first text of the last post, not the first post.

There used to be a mod for phpBB which gave you the option of choosing first/last which is why I ask how hard it would be to do.
If i look through the code it should be possible because smf store also the last post in the array, but it will not work everywhere where the mod insert this ;). It depend on the time of the author to insert this into the mod *g*.

Bye
DIN1031
Title: Re: MessagePreviewOnMouseOver
Post by: bork on June 28, 2008, 05:45:56 PM

Ah thanks - if SMF stores the last post it should be possible without too much modification. It'd be good to have this as an option from the admin panel - I need to return to programming and have a go :)
Title: Re: MessagePreviewOnMouseOver
Post by: unrelenting on June 28, 2008, 07:01:22 PM
Quote from: bork on June 28, 2008, 01:38:18 PM
Hmmm - not sure i've explained it very well then - I know what it does,  i have it installed and it's a great mod :)

But what i mean is: when you hover over the topic title you get the first x characters of the topic, i.e. the first text of the first post.
On some occasions it would be more useful to show the first text of the last post, not the first post.

There used to be a mod for phpBB which gave you the option of choosing first/last which is why I ask how hard it would be to do.
Did you try changing where it says first_post to last_post? I haven't tested it but it'd be worth a try.
Title: Re: MessagePreviewOnMouseOver
Post by: Sarge on June 29, 2008, 03:19:37 AM
For those who want to install this mod on SMF 1.1.5 and don't want to use the version emulation trick (http://www.simplemachines.org/community/index.php?topic=69184.msg1587425#msg1587425), follow this procedure:

1. Download the mod package from the Mod Site (http://custom.simplemachines.org/mods/index.php?mod=263) onto your computer.
2. Extract the contents of the .zip package onto a new (empty) directory.
3. Open package-info.xml in a text editor.
4. Replace this:

<install for="1.1.4">

with this:

<install for="1.1.4, 1.1.5">


Also replace this:

<uninstall for="1.1.4">

with:

<uninstall for="1.1.4, 1.1.5">


This enables the mod to get installed on either SMF 1.1.4 or 1.1.5.

5. Save your modified package-info.xml with the same name.

6. Either:
Be sure to use the "Normal" compression method (if your compression program has such an option) when updating or creating the package!

7. Upload this new package to Package Manager from SMF Admin > Packages > Download Packages tab > "Package to upload".
Title: Re: MessagePreviewOnMouseOver
Post by: Sarge on June 29, 2008, 04:48:04 AM
Quote from: unrelenting on June 28, 2008, 07:01:22 PM
Did you try changing where it says first_post to last_post? I haven't tested it but it'd be worth a try.

More exactly, first_post needs to be replaced with last_post only in $topic['first_post']['preview'].

In other words, replace:

$topic['first_post']['preview']

with:

$topic['last_post']['preview']


You have to do this in MessageIndex.template.php and Recent.template.php, of course after the mod is installed.

For SMF 1.1.5, you can also do these changes in the mod package itself; follow the instructions in my previous post, but modify modification_1.xml, not package-info.xml.
Title: Re: MessagePreviewOnMouseOver
Post by: bork on June 29, 2008, 02:02:32 PM

Thanks for that explanation :)
Title: Re: MessagePreviewOnMouseOver
Post by: jmil on August 08, 2008, 10:33:11 AM
I Installed on 1.1.5, Black45 theme - Not a single problem, after modifying the package-info.xml as posted above.

Great Mod!!

The Chief
Title: Re: MessagePreviewOnMouseOver
Post by: searchgr on August 09, 2008, 07:40:18 AM
There is no option to uninstall the mod. Only to delete it. Is it normal?
Title: Re: MessagePreviewOnMouseOver
Post by: searchgr on August 09, 2008, 11:49:36 PM
I have deleted the files but the mod hasn't been uninstalled. How can i uninstall it manually?
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on August 13, 2008, 08:00:56 AM
(deleting the files has nothing at all to do with the installation of the mod, as you discovered... the mod makes changes in the forum files....)

You will have to go into the code and manually undo the changes made by the mod...

Go to the mod download page and view the manual install instructions and then reverse them
Title: Re: MessagePreviewOnMouseOver
Post by: linette97 on August 26, 2008, 02:53:43 AM
Quote from: Sarge on June 29, 2008, 03:19:37 AM
For those who want to install this mod on SMF 1.1.5 and don't want to use the version emulation trick (http://www.simplemachines.org/community/index.php?topic=69184.msg1587425#msg1587425), follow this procedure:

1. Download the mod package from the Mod Site (http://custom.simplemachines.org/mods/index.php?mod=263) onto your computer.
2. Extract the contents of the .zip package onto a new (empty) directory.
3. Open package-info.xml in a text editor.
4. Replace this:

<install for="1.1.4">

with this:

<install for="1.1.4, 1.1.5">


Also replace this:

<uninstall for="1.1.4">

with:

<uninstall for="1.1.4, 1.1.5">


This enables the mod to get installed on either SMF 1.1.4 or 1.1.5.

5. Save your modified package-info.xml with the same name.

6. Either:
  • update the .zip package you download with your modified copy of package-info.xml, or
  • create a new .zip package (archive) that contains all the original files and directories, but with your modified copy of package-info.xml instead of the original.
Be sure to use the "Normal" compression method (if your compression program has such an option) when updating or creating the package!

7. Upload this new package to Package Manager from SMF Admin > Packages > Download Packages tab > "Package to upload".

Great! Nice Mod! I to installed on 1.15 and everything is in tip top shape! Thanks!
Title: Re: MessagePreviewOnMouseOver
Post by: Dr. Jay Sin on August 31, 2008, 02:17:23 AM
Absolutely SPLENDID mod, and worked PERFECTLY THE FIRST TIME with Sarge's advice on editing the XML file, since I'm running 1.1.5.  Checked it in default SMF Theme, and it's great.  No ticks, no hiccups, NOTHING!   :)

Any suggestions on what files to alter to get it to work with my theme...Aa New Damage?

I'm gonna scour this thread again and see if I can't find something.  I'm new to modding the code or doing anything other than slapping on a new theme now and then.

GREAT mod!
Title: Re: MessagePreviewOnMouseOver
Post by: hw610 on September 02, 2008, 12:10:09 AM
Tried to install on 2.0...

"The package you are trying to download or install is either corrupt or not compatible with this version of SMF"
Title: Re: MessagePreviewOnMouseOver
Post by: Asshandler on October 08, 2008, 06:21:46 PM
Any word on whether or not this will work on 1.1.6?
Title: Re: MessagePreviewOnMouseOver
Post by: MothMan on October 09, 2008, 06:31:51 PM
It works perfectly fine on 1.1.6 , just needed to add 1.1.6 support to package-info.xml
Title: Re: MessagePreviewOnMouseOver
Post by: stingerman on October 10, 2008, 03:15:20 AM
Quote from: MothMan on October 09, 2008, 06:31:51 PM
It works perfectly fine on 1.1.6 , just needed to add 1.1.6 support to package-info.xml

How do you do that?
Title: Re: MessagePreviewOnMouseOver
Post by: MothMan on October 10, 2008, 05:54:57 PM
I downloaded the package, opened up the archive file with Winzip, WinRAR, etc, opened the package-info.xml file.

Find:

<install for="1.1.4">

Replace with:

<install for="1.1.4, 1.1.6">


Find:

<uninstall for="1.1.4">

Replace with:

<uninstall for="1.1.4, 1.1.6">

Save the package-info-xml file and make sure the archive is updated with this new copy.

Then upload and install that package as you normally would.

*note:  I have nothing to do with this mod, and only know a wee bit about this stuff... so if something about this mod actually breaks 1.1.6, it's not my fault.  lol  I did install it on our 1.1.6 forum and so far it's working great.
Title: Re: MessagePreviewOnMouseOver
Post by: stingerman on October 10, 2008, 06:32:47 PM
Ok, great.  Thanks. 
Title: Re: MessagePreviewOnMouseOver
Post by: Cheewy on November 02, 2008, 04:14:49 PM
would you please update this for version 1.1.6 ?
Title: Re: MessagePreviewOnMouseOver
Post by: Ron Jeremy on November 02, 2008, 05:43:19 PM
First,sorry for my bad english. Snork13 can you reform this mod and integrate this css http://www.dynamicdrive.com/dynamicindex4/imagetooltip.htm# in mod. I need something like this: when i cross over the topic i would like to show me a thumbnail of the first picture in that topic.
Title: Re: MessagePreviewOnMouseOver
Post by: choloman05 on November 07, 2008, 11:55:18 PM
Bump for updating for 1.1.7.   I really like this mod.  Simple, but very useful.
Title: Re: MessagePreviewOnMouseOver
Post by: kyle007 on November 20, 2008, 04:42:05 PM
Thx ! Works like a charm on 1.1.7  8)
Title: Re: MessagePreviewOnMouseOver
Post by: Adish - (F.L.A.M.E.R) on December 06, 2008, 10:46:00 AM
i cannot find this code in the "Classic" Theme.

echo '
', $topic['is_sticky'] ? '<b>' : '' , '<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], '</span>', $topic['is_sticky'] ? '</b>' : '';


It should be in the messageindex.template.php.... can you help please..
Title: Re: MessagePreviewOnMouseOver
Post by: rarach on December 08, 2008, 02:56:20 PM
I apologize if this has been discussed prior to my posting, but I thought maybe this could be a different situation.

I just installed this mod onto my forum, and it worked the first few times I hovered over topics, but then it stopped working. It no longer will show the text when hovering.

Any ideas regarding what could be happening here?

[edit]

Alright, so I have been noticing that the mod is working on occasion. Sometimes it will show the hover text, but more so it doesn't. I'm not sure what the problem is.. since it does work on occasion. It seems to be that the only time that the hover text appears is in the all unread topics page, but not in the regular sections of the forum.

Also, I'm using 1.1.7
Title: Re: MessagePreviewOnMouseOver
Post by: PalmBeachPreps on December 10, 2008, 12:55:14 AM
Great mod!
Title: Re: MessagePreviewOnMouseOver
Post by: Adish - (F.L.A.M.E.R) on December 10, 2008, 08:47:50 AM
Hellooow... anyone gonna help please..? Echoo!
Title: Re: MessagePreviewOnMouseOver
Post by: unrelenting on December 14, 2008, 11:19:41 PM
Quote from: F.L.A.M.E.R on December 06, 2008, 10:46:00 AM
i cannot find this code in the "Classic" Theme.

echo '
', $topic['is_sticky'] ? '<b>' : '' , '<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], '</span>', $topic['is_sticky'] ? '</b>' : '';


It should be in the messageindex.template.php.... can you help please..

If this is the 1.x version then this might help. I have an old classic theme that I don't use anymore that I believe I added this mod to. This is the section that would have been altered. Compare it to yours and see if it helps.


foreach ($context['topics'] as $topic)
{
echo '
<tr>
<td class="windowbg2" valign="middle" align="center" width="5%">
<img src="', $settings['images_url'], '/topic/', $topic['class'], '.gif" alt="" /></td>
<td class="windowbg2" valign="middle" align="center" width="4%">
<img src="', $settings[$context['icon_sources'][$topic['first_post']['icon']]], '/post/', $topic['first_post']['icon'], '.gif" alt="" border="0" align="middle" /></td>
<td class="windowbg" valign="middle" width="42%">
<span title="', $topic['first_post']['preview'], '">', $topic['first_post']['link'], '</span> ', $topic['new'] && $context['user']['is_logged'] ? '<a href="' . $scripturl . '?topic=' . $topic['id'] . '.msg' . $topic['new_from'] . '#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt[302] . '" border="0" /></a>' : '', ' <span class="smalltext">', $topic['pages'], '</span></td>
<td class="windowbg2" valign="middle" width="14%">
', $topic['first_post']['member']['link'], '</td>
<td class="windowbg" valign="middle" width="4%" align="center">
', $topic['replies'], '</td>
<td class="windowbg" valign="middle" width="4%" align="center">
', $topic['views'], '</td>
<td class="windowbg2" valign="middle" width="22%">
<span class="smalltext">', $topic['last_post']['time'], '<br />', $txt[525], ' ', $topic['last_post']['member']['link'], '</span></td>';

// Show the quick moderation options?
if (!empty($options['display_quick_mod']))
Title: Re: MessagePreviewOnMouseOver
Post by: selorian on December 20, 2008, 01:29:42 PM
I have the Look But No Read mod installed with a selection of boards guests are able to see topics but not able to read them.  With this mod installed, they are still able to hover over the title and see the preview members see.  Is there any easy way to make it where only members are able to see the preview?  I've tried a few different things but so far I've had no luck.
Title: Re: MessagePreviewOnMouseOver
Post by: Adish - (F.L.A.M.E.R) on December 20, 2008, 01:45:52 PM
<td class="windowbg" valign="middle" width="42%">
<span title="', $topic['first_post']['preview'], '">', $topic['first_post']['link'], '</span> ', $topic['new'] && $context['user']['is_logged'] ? '<a href="' . $scripturl . '?topic=' . $topic['id'] . '.msg' . $topic['new_from'] . '#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt[302] . '" border="0" /></a>' : '', ' <span class="smalltext">', $topic['pages'], '</span></td>


@unrelenting

Great thanks to you, thats the code which was to be added in the place where you have shown. I just did it and it works perfectly. Thank you again.
Title: Re: MessagePreviewOnMouseOver
Post by: qubbah on December 24, 2008, 01:20:25 PM
how can we put the horizontal line between the topic and msg? also in different background for each other?

Anybody can make msg preview on mouse over like PHPFusion one.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi477.photobucket.com%2Falbums%2Frr138%2Fsratuspratus%2F1.jpg%3Ft%3D1230145170&hash=89159104a1d048dcfcea4faefebf849ccab336ac)

There is a topic section at the top and the bottom there is a preview content.
Title: Re: MessagePreviewOnMouseOver
Post by: jazelle_rae on December 24, 2008, 03:05:54 PM
how do i install these on other themes? thanks
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on December 26, 2008, 09:25:24 AM
qubbah,

you would have to experiment with the CSS

Jazelle,

You will have to manually edit the other themes' messageindex.template.php
Title: Re: MessagePreviewOnMouseOver
Post by: AlaStar on December 29, 2008, 12:25:12 PM
Nice Mod! Thanks snork13 ;)

Quote from: Sarge on February 15, 2008, 05:05:54 AM
Quote from: dadann on April 02, 2007, 04:18:41 AM
OK.
On firefox :
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg404.imageshack.us%2Fimg404%2F871%2Fonfirefoxzk2.jpg&hash=13dd9893989218781ab711179e77f6fce83c2ef9)

On Internet Explorer :
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg83.imageshack.us%2Fimg83%2F4557%2Foniemt3.jpg&hash=50b8ed0d0014e967ffdcb7f1367cde0dd0ae35bd)

If anyone is having too short message previews (tooltips) in Firefox and Mozilla but normal length in Internet Explorer, you need to be aware that this is a Firefox/Mozilla bug, not a mod issue. What happens is that the text in the title attribute (used by the mod to display message previews) gets truncated. This is a known bug and is fixed in Firefox 3.0 alpha4, I believe.

A workaround in Firefox 2 is to install an add-on to fix the issue. Long Title (https://addons.mozilla.org/en-US/firefox/addon/1715) is such an add-on.

I have firefox 3.0.5 and it's works the same way firefox 2.0.0.16, how can I solved this ?

I have a sugestion for a next version that this works also on table of recent posts  :P
Title: Re: MessagePreviewOnMouseOver
Post by: 1000bech on January 22, 2009, 08:05:11 PM
I have a little problem, the preview shows the BBC tags and i'm using the registered links mod, so guests can see links in the preview what is not a good thing...

Anyone with a solution?
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on January 22, 2009, 10:06:55 PM
not really...   it's a case of conflicting mods...

I suppose you could check permissions before displaying the mouseover preview.
Title: Re: MessagePreviewOnMouseOver
Post by: Dark Knight RC on February 20, 2009, 12:26:49 PM
Don't appear the "..." here, somebody can help me?
Title: Re: MessagePreviewOnMouseOver
Post by: searchgr on February 20, 2009, 04:58:30 PM
A mistake in the past and the mod is not appearing in the packages of the admin section, but it works! Do you think that i will have a problem if i upgrade my forum to smf 2.0 RC1?
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on February 20, 2009, 05:16:07 PM
in an major upgrade, ALL mods must be re-applied because all forum files are replaced.
Title: Re: MessagePreviewOnMouseOver
Post by: searchgr on February 20, 2009, 05:17:28 PM
So it is not necessary to uninstall them first, right?
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on February 20, 2009, 05:24:37 PM
nope
Title: Re: MessagePreviewOnMouseOver
Post by: searchgr on February 20, 2009, 05:28:09 PM
hmmm so i will have a problem if i don't unintall it. Any ideas how can i solve it?
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on February 20, 2009, 06:01:13 PM
nope, in this case was agreeing with you...    it is NOT necesarry to uninstall mods during a major upgrade.
Title: Re: MessagePreviewOnMouseOver
Post by: searchgr on February 21, 2009, 11:51:43 AM
thank you very much
Title: Re: MessagePreviewOnMouseOver
Post by: PalmBeachPreps on March 10, 2009, 03:13:05 PM
Works like a charm.  Thanks!
Title: Re: MessagePreviewOnMouseOver
Post by: bburg5 on March 22, 2009, 11:23:16 PM
I installed with package manager and no errors. I change to default and things work great, but when I use my theme DB_Theme, I get nothing. this is the code line I have been trying edit, but to no avail. Please let me know what I am doing wrong...
<td class="windowbg' , !empty($settings['seperate_sticky_lock']) && $topic['is_sticky'] ? '3' : '' , '" valign="middle" ', (!empty($topic['quick_mod']['remove']) ? 'id="topic_' . $topic['first_post']['id'] . '" onmouseout="mouse_on_div = 0;" onmouseover="mouse_on_div = 1;" ondblclick="modify_topic(\'' . $topic['id'] . '\', \'' . $topic['first_post']['id'] . '\', \'' . $context['session_id'] . '\');"' : ''), '>';

I am using 1.1.8

Thanks
Title: Re: MessagePreviewOnMouseOver
Post by: bburg5 on March 28, 2009, 12:36:34 AM
Still no luck....
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on March 28, 2009, 09:48:59 PM
can you attach the file please, so i can take a look
Title: Re: MessagePreviewOnMouseOver
Post by: bburg5 on March 29, 2009, 11:20:45 PM
Here is my message file, let me know if you need my board file for my theme....

Thanks
Title: Re: MessagePreviewOnMouseOver
Post by: problemwt2.0 on March 30, 2009, 10:29:03 AM
thanx bro snork13 :D working perfect :D
Title: Re: MessagePreviewOnMouseOver
Post by: qubbah on March 30, 2009, 04:27:54 PM
Quote from: Kindred on December 26, 2008, 09:25:24 AM
qubbah,

you would have to experiment with the CSS

Jazelle,

You will have to manually edit the other themes' messageindex.template.php

i cant find where code i must edit in css..
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on March 30, 2009, 08:09:03 PM
try this one, backup you current file first ;) and let me know
Title: Re: MessagePreviewOnMouseOver
Post by: purper on March 31, 2009, 07:02:49 AM
Hello all!?

I liked this one so much, I was installing it after moving my forum.
Unfortunately it returns an error on installing:

Duplicate entry 'hover_length' for key 'PRIMARY'
Bestand: ...r\forum\Packages\temp\addMessagePreview_settings.php
Regel: 31


I made a fresh install of smf2.0rc1, imported the database and installed the following packages before this one:
1.    Aeva ~ Auto-Embed Video & Audio    
2.    Attachments In Message          
3.    Enhanced PM Warning Message

Please advice me on what to do?

Regards,

Richard
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on March 31, 2009, 07:26:08 AM
Quote from: purper on March 31, 2009, 07:02:49 AM
Hello all!?

I liked this one so much, I was installing it after moving my forum.
Unfortunately it returns an error on installing:

Duplicate entry 'hover_length' for key 'PRIMARY'
Bestand: ...r\forum\Packages\temp\addMessagePreview_settings.php
Regel: 31


I made a fresh install of smf2.0rc1, imported the database and installed the following packages before this one:
1.    Aeva ~ Auto-Embed Video & Audio    
2.    Attachments In Message          
3.    Enhanced PM Warning Message

Please advice me on what to do?

Regards,

Richard


you need to remove the entry from the database, you didn't uninstall the mod correctly. 
Title: Re: MessagePreviewOnMouseOver
Post by: purper on March 31, 2009, 12:33:08 PM
Thank you for that rapid response! I installed a fresh SMF, and then imported the database.. I indeed forgot to uninstall the mods!

Quotethe entry from the database

can you be more specific? I guess I need to do something in php? That's not my 'piece of cake' if you know what I mean?

Tnx once more!

Richard
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on March 31, 2009, 02:24:45 PM
Quote from: purper on March 31, 2009, 12:33:08 PM
Thank you for that rapid response! I installed a fresh SMF, and then imported the database.. I indeed forgot to uninstall the mods!

Quotethe entry from the database

can you be more specific? I guess I need to do something in php? That's not my 'piece of cake' if you know what I mean?

Tnx once more!

Richard

do you have access to phpmyadmin ?
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on March 31, 2009, 02:33:50 PM
If your running 2.0, put this file in yur forum root and run from browser
Title: Re: MessagePreviewOnMouseOver
Post by: purper on April 01, 2009, 04:37:57 PM
Thanks again Snork! I do have phpmyadmin, but the php file was better for my n00b knowledge ;)
Installed without any problems!! Tnx again!! :D
Title: Re: MessagePreviewOnMouseOver
Post by: bburg5 on April 03, 2009, 08:19:21 AM
Quote from: snork13 on March 30, 2009, 08:09:03 PM
try this one, backup you current file first ;) and let me know

Soory it took so long, but it all works great. I really appreciate the help. Do you know if the same modifications will work for the BURN theme?

Thanks again
Title: Re: MessagePreviewOnMouseOver
Post by: bburg5 on April 03, 2009, 08:42:37 AM
Quote from: bburg5 on April 03, 2009, 08:19:21 AM
Quote from: snork13 on March 30, 2009, 08:09:03 PM
try this one, backup you current file first ;) and let me know

Soory it took so long, but it all works great. I really appreciate the help. Do you know if the same modifications will work for the BURN theme?

Thanks again

I did some playing around and it works great on both themes....
Title: Re: MessagePreviewOnMouseOver
Post by: johnofchar on April 07, 2009, 12:38:32 PM
Hi snork13 & thanks for this mod. Just what some of my members have been asking for. Did the full package install, but had to do a manual for the recent.template.php because I had previously modified that line of code to move the new.gif to the front of the line. Works great in both of my themes.

However just one little problem. The variable size text window works just fine in the main topic display (I have it set to 256), but is stuck on 128 for the recent displays. Is this standard op or did I miss something when I edited the recent template?
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on April 07, 2009, 01:56:45 PM
Quote from: johnofchar on April 07, 2009, 12:38:32 PM
Hi snork13 & thanks for this mod. Just what some of my members have been asking for. Did the full package install, but had to do a manual for the recent.template.php because I had previously modified that line of code to move the new.gif to the front of the line. Works great in both of my themes.

However just one little problem. The variable size text window works just fine in the main topic display (I have it set to 256), but is stuck on 128 for the recent displays. Is this standard op or did I miss something when I edited the recent template?


you are correct, maybe in the next release i can add that feature.

-snork13
Title: Re: MessagePreviewOnMouseOver
Post by: johnofchar on April 08, 2009, 02:11:53 PM
Quote from: snork13 on April 07, 2009, 01:56:45 PM

you are correct, maybe in the next release i can add that feature.

-snork13
OK cool, thought I'd missed something. Good mod  & thanks for doing it.
Title: Re: MessagePreviewOnMouseOver
Post by: Abzstrak on April 11, 2009, 02:06:18 PM
I'm not sure how to troubleshoot this.... I am running 2.0 RC1, this mod installs without an error, but doesn't work.  firebug shows no errors, I'm not really sure what to look for.

I do have a number of modifications installed on the forums though.  What should I look for to see if this is trying to work or what?

I have the forums wrapped up in Joomla, I've tried them unwrapped, same thing... nothing.  I have set the preview length to 128, 256 and now it's at 384, but still nothing.  In the console for firebug I don't even see an event of any kind being triggered on mouseover, should I?
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on April 11, 2009, 09:38:14 PM
Quote from: Abzstrak on April 11, 2009, 02:06:18 PM
I'm not sure how to troubleshoot this.... I am running 2.0 RC1, this mod installs without an error, but doesn't work.  firebug shows no errors, I'm not really sure what to look for.

I do have a number of modifications installed on the forums though.  What should I look for to see if this is trying to work or what?

I have the forums wrapped up in Joomla, I've tried them unwrapped, same thing... nothing.  I have set the preview length to 128, 256 and now it's at 384, but still nothing.  In the console for firebug I don't even see an event of any kind being triggered on mouseover, should I?

are you using the default theme?
Title: Re: MessagePreviewOnMouseOver
Post by: Abzstrak on April 11, 2009, 10:42:19 PM
yea.... that was it, sry for the noobish question.  I changed :
        $settings['message_index_preview'] = true;
in my modified index.template.php and it's fine now.  I have only a few files, 99% of them are pulling from default, I forgot about that one :)

Thanks
Title: Re: MessagePreviewOnMouseOver
Post by: TheListener on April 13, 2009, 04:49:39 AM
Fantastic addition to the forum.
Title: Re: MessagePreviewOnMouseOver - WORKS IN IE, BUT NOT FF?
Post by: shelzmike on April 14, 2009, 11:30:39 PM
Hello -

Cool mod - works exactly as I want it to, with only one problem - it does not work in Firefox, which most of the users on my site use. Okay, scratch that, as I was just checking all the rest of the browsers (Opera, Safari, Chrome) none of them work. So I went back to IE, and now it is not working anymore either, but I have made no changes. That is weird though, because I KNOW what it was working in IE only. Anybody have any ideas as to why? And yes, I have the character count set to like 384 or something like that.

Mike

EDIT: Wait a moment...is this theme specific? I am using a different theme than default. I didn't even think of that (duh!) I will look to see what I can find.
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on April 14, 2009, 11:43:44 PM
this would have to be applied separately to any theme with its own copy of messageIndex.template.php
Title: Re: MessagePreviewOnMouseOver
Post by: shelzmike on April 14, 2009, 11:49:02 PM
Yeah, I am checking out the xml files for manual mod now, unless there is an easier way.

Mike
Title: Re: MessagePreviewOnMouseOver
Post by: shelzmike on April 15, 2009, 12:05:30 AM
Okay, not sure what I am missing here, or it it will even work with my theme. I am currently using DilberMC for my forums theme - in the xml file of the mod it asks me to replace some code in the $themedir/Recent.template.php. My theme does not have this file. Does this mean that that theme defaults to another Recent.template.php file somewhere else? Or will it not work in this theme?

I also do not have a couple of the others as well in my theme folder. I also do not have the line $settings['message_index_preview'] = false;

IN my index.template.php either (which is listed in the modification_2.xml of the mod. <<--EDIT I must be more tired than I thought. I just looked at the package info and realize this is for the beta version (2.0) of SMF.

But still the first part of my message is true!


EDIT:  :D I SWEAR I am not drunk (or crazy) even though I have been having a conversation with myself here - adding that one line in the MessageIndex.template.php solved the problem for the DilberMX theme.

Mike
Title: Re: MessagePreviewOnMouseOver
Post by: ponopoly on May 07, 2009, 07:09:56 PM
would it be possible to add support to show pictures and execute BBCode when a topic is hovered?

This didnt do what I thought it would, but i know you can get it to work
thanks.
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on May 08, 2009, 10:36:06 AM
Quote from: ponopoly on May 07, 2009, 07:09:56 PM
would it be possible to add support to show pictures and execute BBCode when a topic is hovered?

This didnt do what I thought it would, but i know you can get it to work
thanks.

I have no plans for this feature. You are welcome to give it a whirl though.

-snork13
Title: Re: MessagePreviewOnMouseOver
Post by: Astra_200 on May 09, 2009, 05:30:13 PM
Very nice mod thanks.  ;D

Works fine for me 2.0 RC1 with custom theme.

Downloaded package installed no errors then changed in my custom theme Index.template.php

$settings['message_index_preview'] = false;
to
$settings['message_index_preview'] = true;

Title: Re: MessagePreviewOnMouseOver
Post by: Chit-Chat ChatterBox Boss on May 15, 2009, 11:39:18 PM
How do I make it so anywhere in the topic title box I put the cursor it makes it show up?
Right now you have to directly put it on the topic title. Kinda going for the idea like boardhover mod does to make it able so you can click anywhere in the box to enter the topic.

Maybe also another tip is that it does this also when you put the cursor on the last post as well not just the subject like it is setup to do.
Title: Re: MessagePreviewOnMouseOver
Post by: PHPLearner on May 25, 2009, 05:02:15 PM
Is There Anyway I Can Integrate this so when search results come Up I can preview them also? Thanks A Bunch
Title: Re: MessagePreviewOnMouseOver
Post by: noelchiew on May 26, 2009, 02:33:37 AM
I'm running SMF 1.1.9 and I wanted to update from the older version 1.0.5 to 1.0.7. I manually uninstalled the older version and when I tried to apply the mod I get this error:

"The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

What should I do?
Title: Re: MessagePreviewOnMouseOver
Post by: Chit-Chat ChatterBox Boss on May 26, 2009, 02:41:53 AM
open the package-info.xml (extract the zip file to see this file) open it with notepad or a like program. Where it says "Install for =" and "Unistall for =" change to "1.1.9" (from w/e the current number is there probably 1.1.8 )
Title: Re: MessagePreviewOnMouseOver
Post by: noelchiew on May 26, 2009, 02:51:37 AM
Yay! It works now thanks!!!

Learnt something new. :)
Title: Re: MessagePreviewOnMouseOver
Post by: noelchiew on May 26, 2009, 05:05:12 AM
Just wondering does this mod allows preview on the recent posts in the forum's Info Center? I noticed it works for me only in the topics listing.
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on May 26, 2009, 05:55:02 AM
either use the emulate 1.1.8 command or add 1.1.9 into the install.xml file inside the mod package
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on May 26, 2009, 09:01:59 AM
Quote from: noelchiew on May 26, 2009, 05:05:12 AM
Just wondering does this mod allows preview on the recent posts in the forum's Info Center? I noticed it works for me only in the topics listing.

not at this time, something to look into. it currently  preview recent topic page and message index.

-snork13
Title: Re: MessagePreviewOnMouseOver
Post by: noelchiew on May 26, 2009, 09:23:50 AM
Ok got it... looking forward in the future :)
Title: Re: MessagePreviewOnMouseOver
Post by: romper on May 26, 2009, 01:55:34 PM
I changed xml to 1.1.9 and it installed it without errors but I don't see anything. I see the line on posts options, and it is set to 128 but nothing shows on any theme? ???
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on May 26, 2009, 02:22:51 PM
Quote from: romper on May 26, 2009, 01:55:34 PM
I changed xml to 1.1.9 and it installed it without errors but I don't see anything. I see the line on posts options, and it is set to 128 but nothing shows on any theme? ???

it will only work with the default theme

-snork13
Title: Re: MessagePreviewOnMouseOver
Post by: romper on May 26, 2009, 02:32:44 PM
Quote from: snork13 on May 26, 2009, 02:22:51 PM
Quote from: romper on May 26, 2009, 01:55:34 PM
I changed xml to 1.1.9 and it installed it without errors but I don't see anything. I see the line on posts options, and it is set to 128 but nothing shows on any theme? ???

it will only work with the default theme

-snork13

It didn't even with default, but I'll cheked out some more.
Title: Re: MessagePreviewOnMouseOver
Post by: Chit-Chat ChatterBox Boss on May 26, 2009, 03:13:10 PM
Snork,

    How can I get it to work like the 'board hover" mod works? Like if I place my mouse anywhere in the area (the square) of the title, not just directly on the name? Prac the same exact ways the board hover mod works just it shows the preview message.
Title: Re: MessagePreviewOnMouseOver
Post by: Chit-Chat ChatterBox Boss on May 28, 2009, 01:30:30 AM
Quote from: Chit-Chat ChatterBox Boss on May 26, 2009, 03:13:10 PM
Snork,

    How can I get it to work like the 'board hover" mod works? Like if I place my mouse anywhere in the area (the square) of the title, not just directly on the name? Prac the same exact ways the board hover mod works just it shows the preview message.

?? Any ideas?
Title: Re: MessagePreviewOnMouseOver
Post by: villasg on May 31, 2009, 05:07:48 PM
Ok thanks
work good in my 1.1.9
Title: Re: MessagePreviewOnMouseOver
Post by: neteater on June 08, 2009, 10:54:59 AM
i change 1.1.8 to 1.1.9 in install.xml but no wgetting this messageAn Error Has Occurred!
The package you tried to upload either is not a valid package or has become corrupted.
can someone help me
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on June 08, 2009, 06:13:51 PM
looks like your archive program is using an improper format. What are you using to re-zip the xml file into the archive?
Title: Re: MessagePreviewOnMouseOver
Post by: neteater on June 09, 2009, 11:06:33 AM
i am using winzip11 to unzip the file
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on June 09, 2009, 05:35:51 PM
yup... that would be the problem...    for some reason, the smf unzip parser does not like winzip files.
Title: Re: MessagePreviewOnMouseOver
Post by: Chit-Chat ChatterBox Boss on June 09, 2009, 10:20:35 PM
ALZip is good ... try that
Title: Re: MessagePreviewOnMouseOver
Post by: TheListener on June 19, 2009, 09:14:26 PM
Just tried to install this on my test forum on 2.0 RC1-1 and was given a not compatible  message
Title: Re: MessagePreviewOnMouseOver
Post by: Chit-Chat ChatterBox Boss on June 20, 2009, 03:05:35 PM
Quote from: TheListener on June 19, 2009, 09:14:26 PM
Just tried to install this on my test forum on 2.0 RC1-1 and was given a not compatible  message

Extract the zip file open the package-info in a notepad ++ or similar. Then change the install for and uninstall for to 2.0 RC1-1. Save Rezip with the same zip file name upload and enjoy.
Title: Re: MessagePreviewOnMouseOver
Post by: TheListener on June 25, 2009, 07:13:04 PM
Not got the hang of notepad++ yet.

Title: Re: MessagePreviewOnMouseOver
Post by: DeepBlueGXP on July 07, 2009, 03:27:15 PM
The mouseover function only works when you are hovering on a post within a sub forum but doesn't work on yourwebforum/index.php?action=unread;all;start=0

Is there a fix for this?

I'm using SMF 1.1.9
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on July 07, 2009, 09:03:43 PM
you would have to edit recent.template.php the same way that messageindex.template.php was edited...   the mod only targets the messages in the boards, not in the recent posts.
Title: Re: MessagePreviewOnMouseOver
Post by: DeepBlueGXP on July 08, 2009, 10:52:01 AM
Thanks, I'll give it a shot.
Title: Re: MessagePreviewOnMouseOver
Post by: npereira on July 09, 2009, 01:06:21 PM
I upgraded to 2.0RC1-1 and installed this mod, yet i dont see the setting in the Post and Topcs section in the admin...
This mod says it's compatible with 2.0....!?!
Title: Re: MessagePreviewOnMouseOver
Post by: npereira on July 09, 2009, 03:15:42 PM
Hello? Is there not anyone using this on 2.0?
Title: Re: MessagePreviewOnMouseOver
Post by: cavalcanti on July 18, 2009, 02:44:51 PM
thanks by this mod but this is posible whit mouse over? what is the necesary code?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg177.imagevenue.com%2Floc491%2Fth_06318_untitled_122_491lo.JPG&hash=36a4726a6f5263d6951cb365b74b70055eae092e) (http://img177.imagevenue.com/img.php?loc=loc491&image=06318_untitled_122_491lo.JPG)
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on July 18, 2009, 06:35:27 PM
it might be possible, but it would require a significant amount of coding different from this mod.  This mod just pulls up the first bit of message content, nothing with images
Title: Re: MessagePreviewOnMouseOver
Post by: cavalcanti on July 18, 2009, 07:50:18 PM
thanks for your reply Kindred, perhaps it would be good if someone made a mod that would allow that option, because like me, many of us would be helpful. :)

Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on July 18, 2009, 07:53:17 PM
personally, I don't see the use for it. :P

However, I suggest you make a post over in the mods wanted board. :)
Title: Re: MessagePreviewOnMouseOver
Post by: erhangazi84 on July 19, 2009, 09:01:13 PM
everything seems okay including my own admin language file

"Length of the message preview on hover:" is also set to 228 :) but it is not still working? do i need any action such as enabling it?
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on July 20, 2009, 08:18:06 AM
if you are running a theme other than the default, you will have to manually apply the changes to that theme
Title: Re: MessagePreviewOnMouseOver
Post by: erhangazi84 on July 20, 2009, 06:42:51 PM
Quote from: Kindred on July 20, 2009, 08:18:06 AM
if you are running a theme other than the default, you will have to manually apply the changes to that theme

thank you my friend, now it is working
Title: Re: MessagePreviewOnMouseOver
Post by: The -L- on July 27, 2009, 07:10:49 PM
Could this work on SMF 2.0 RC 1-1???
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on July 27, 2009, 09:12:04 PM
works for me on smf 2.0RC1.2
(and you should upgrade soon)
Title: Re: MessagePreviewOnMouseOver
Post by: TheListener on July 27, 2009, 09:14:11 PM
Kindred.

I have got this mod installed yet despite checking all the files manual edits ( it installed with no errors) I am unable to use this on the forum.

Is there something missing?
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on July 27, 2009, 09:16:06 PM
are you using a custom theme with it's own copy of boardindex.template.php?
Title: Re: MessagePreviewOnMouseOver
Post by: TheListener on July 27, 2009, 09:18:22 PM
Knew I would forget something

2.0 rc1-1

on Blackrain v2 theme.
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on July 27, 2009, 10:47:01 PM
Quote from: TheListener on July 27, 2009, 09:18:22 PM
Knew I would forget something

2.0 rc1-1

on Blackrain v2 theme.


you will need to edit index.template.php and possibly messageindex.template.php if your custom theme uses those files.

-snork13
Title: Re: MessagePreviewOnMouseOver
Post by: PalmBeachPreps on July 28, 2009, 01:25:50 AM
Having the same prob as The Listener.  There's nowhere in my admin to adjust the settings although I've edited index.template.php already. 
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on July 28, 2009, 08:50:25 AM
I would double check each file that was edited against the modification xml.

-snork13
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on July 28, 2009, 09:07:36 AM
wait...    there is no admin interface for this...   is there?
Title: Re: MessagePreviewOnMouseOver
Post by: TheListener on July 28, 2009, 09:43:39 AM
No admin interface.

:-[

Sorry Kindred I was having a blonde moment last night.

I shoulda said what I did in a different mods topic entirely.
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on July 28, 2009, 12:23:14 PM
yes, there is under post settings

Length of the message preview on hover
0 to disable
Title: Re: MessagePreviewOnMouseOver
Post by: TheListener on July 28, 2009, 12:31:35 PM
OOPs

Are you saying I had another blonde moment or is it my old age catching up again?
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on July 28, 2009, 01:40:42 PM
ah...   you are right, under post settings, there IS a field....   I never even bothered to configure that. lol
Title: Re: MessagePreviewOnMouseOver
Post by: Hoodie on August 10, 2009, 06:23:52 PM
Quote from: Chit-Chat ChatterBox Boss on May 15, 2009, 11:39:18 PM
How do I make it so anywhere in the topic title box I put the cursor it makes it show up?
Right now you have to directly put it on the topic title. Kinda going for the idea like boardhover mod does to make it able so you can click anywhere in the box to enter the topic.

Maybe also another tip is that it does this also when you put the cursor on the last post as well not just the subject like it is setup to do.

Was just reading through this thread as I did exactly this..  Was gonna post it for anyone to know but realized that someone requested so I'm glad to help..  Here's how..

On MessageIndex.template.php:

Find:<td class="', $colour_class, '" valign="middle" ', (!empty($topic['quick_mod']['modify']) ? 'id="topic_' . $topic['first_post']['id'] . '" onmouseout="mouse_on_div = 0;" onmouseover="mouse_on_div = 1;" ondblclick="modify_topic(\'' . $topic['id'] . '\', \'' . $topic['first_post']['id'] . '\', \'' . $context['session_id'] . '\');"' : ''), '>

Replace:<td title="', $topic['first_post']['preview'], '" class="', $colour_class, '" valign="middle" ', (!empty($topic['quick_mod']['modify']) ? 'id="topic_' . $topic['first_post']['id'] . '" onmouseout="mouse_on_div = 0;" onmouseover="mouse_on_div = 1;" ondblclick="modify_topic(\'' . $topic['id'] . '\', \'' . $topic['first_post']['id'] . '\', \'' . $context['session_id'] . '\');"' : ''), '>

On Recent.template.php:

Find:<td class="windowbg' , $topic['is_sticky'] && !empty($settings['separate_sticky_lock']) ? '3' : '' , '" width="48%" valign="middle">

Replace:<td title="', $topic['first_post']['preview'], '" class="windowbg' , $topic['is_sticky'] && !empty($settings['separate_sticky_lock']) ? '3' : '' , '" width="48%" valign="middle">

**The other edits to each file still need to be made..  You can change this in the Modifications.xml and then upload it so you don't have to delete the code initially provided..**
Title: Re: MessagePreviewOnMouseOver
Post by: Chit-Chat ChatterBox Boss on August 10, 2009, 06:35:37 PM
Quote from: CustomChargersCarClub on August 10, 2009, 06:23:52 PM
Quote from: Chit-Chat ChatterBox Boss on May 15, 2009, 11:39:18 PM
How do I make it so anywhere in the topic title box I put the cursor it makes it show up?
Right now you have to directly put it on the topic title. Kinda going for the idea like boardhover mod does to make it able so you can click anywhere in the box to enter the topic.

Maybe also another tip is that it does this also when you put the cursor on the last post as well not just the subject like it is setup to do.

Was just reading through this thread as I did exactly this..  Was gonna post it for anyone to know but realized that someone requested so I'm glad to help..  Here's how..

On MessageIndex.template.php:

Find:<td class="', $colour_class, '" valign="middle" ', (!empty($topic['quick_mod']['modify']) ? 'id="topic_' . $topic['first_post']['id'] . '" onmouseout="mouse_on_div = 0;" onmouseover="mouse_on_div = 1;" ondblclick="modify_topic(\'' . $topic['id'] . '\', \'' . $topic['first_post']['id'] . '\', \'' . $context['session_id'] . '\');"' : ''), '>

Replace:<td title="', $topic['first_post']['preview'], '" class="', $colour_class, '" valign="middle" ', (!empty($topic['quick_mod']['modify']) ? 'id="topic_' . $topic['first_post']['id'] . '" onmouseout="mouse_on_div = 0;" onmouseover="mouse_on_div = 1;" ondblclick="modify_topic(\'' . $topic['id'] . '\', \'' . $topic['first_post']['id'] . '\', \'' . $context['session_id'] . '\');"' : ''), '>

On Recent.template.php:

Find:<td class="windowbg' , $topic['is_sticky'] && !empty($settings['separate_sticky_lock']) ? '3' : '' , '" width="48%" valign="middle">

Replace:<td title="', $topic['first_post']['preview'], '" class="windowbg' , $topic['is_sticky'] && !empty($settings['separate_sticky_lock']) ? '3' : '' , '" width="48%" valign="middle">

**The other edits to each file still need to be made..  You can change this in the Modifications.xml and then upload it so you don't have to delete the code initially provided..**

Thanks for the update I will add this soon and reply back on how it works  ;)
Title: Re: MessagePreviewOnMouseOver
Post by: shakaran on August 25, 2009, 10:59:39 PM
Hi, I made the translations for spanish, spanish_utf8, spanish_es and spanish_es-utf8. I attached the file.

modification_2.xml

<?xml version="1.0"?>

<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">

<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

This is an example modification file for SMF packages.



ATTENTION: If you are trying to install this manually, you should try

the package manager.  If it will not work for you, please take a look

at the following for information on this format:

http://mods.simplemachines.org/docs/manual-install.php



================================================================================



Modification files can be used to modify files so that they do what

your package needs them to do to work properly.



- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->



<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">

<!-- This information needs to be the same as that in the package-info.xml. -->

<id>snork13:MessagePreviewOnHover</id>

<version>1.7</version>



   

    <file name="$themedir/index.template.php">

<!-- A seach operation, with search rules and code to modify the file with. -->

<operation>

<!-- Search for this text before the code we add.  You can also search for after, and the end of the file. -->

<search position="replace"><![CDATA[$settings['message_index_preview'] = false;]]></search>

<!-- Add this text when we find it.  Note that it's on it's own line on purpose, and the CDATA keeps things clean. -->

<add><![CDATA[$settings['message_index_preview'] = true;]]></add>

</operation>



</file>

   

<!-- Edit a specific file.. -->

<file name="$themedir/MessageIndex.template.php">

<!-- A seach operation, with search rules and code to modify the file with. -->

<operation>

<!-- Search for this text before the code we add.  You can also search for after, and the end of the file. -->

<search position="replace"><![CDATA[echo '

', $topic['is_sticky'] ? '<b>' : '' , '<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], (!$context['can_approve_posts'] && !$topic['approved'] ? '&nbsp;<em>(' . $txt['awaiting_approval'] . ')</em>' : ''), '</span>', $topic['is_sticky'] ? '</b>' : '';]]></search>

<!-- Add this text when we find it.  Note that it's on it's own line on purpose, and the CDATA keeps things clean. -->

<add><![CDATA[ echo '

', $topic['is_sticky'] ? '<b>' : '' , '<span title="', $topic['first_post']['preview'], '"><span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], (!$context['can_approve_posts'] && !$topic['approved'] ? '&nbsp;<em>(' . $txt['awaiting_approval'] . ')</em>' : ''), '</span></span>', $topic['is_sticky'] ? '</b>' : '';



]]></add>

</operation>



</file>



<file name="$themedir/Recent.template.php">

<!-- A seach operation, with search rules and code to modify the file with. -->

<operation>

<!-- Search for this text before the code we add.  You can also search for after, and the end of the file. -->

<search position="replace"><![CDATA[<img src="' . $settings['images_url'] . '/icons/show_sticky.gif" align="right" alt="" style="margin: 0;" />' : '', $topic['first_post']['link'], ' <a href="', $topic['new_href'], '"><img src="', $settings['lang_images_url'], '/new.gif" alt="', $txt['new'], '" /></a> <span class="smalltext">', $topic['pages'], ' ', $txt['in'], ' ', $topic['board']['link'], '</span></td>]]></search>

<!-- Add this text when we find it.  Note that it's on it's own line on purpose, and the CDATA keeps things clean. -->

<add><![CDATA[ <img src="' . $settings['images_url'] . '/icons/show_sticky.gif" align="right" alt="" style="margin: 0;" />' : '', '<span title="', $topic['first_post']['preview'], '">' ,$topic['first_post']['link'], '</span> <a href="', $topic['new_href'], '"><img src="', $settings['lang_images_url'], '/new.gif" alt="', $txt['new'], '" /></a> <span class="smalltext">', $topic['pages'], ' ', $txt['in'], ' ', $topic['board']['link'], '</span></td>]]></add>

</operation>



</file>

       

        <file name="$sourcedir/MessageIndex.php">

<!-- A seach operation, with search rules and code to modify the file with. -->

        <operation>

<!-- Search for this text before the code we add.  You can also search for after, and the end of the file. -->

<search position="replace"><![CDATA[SUBSTRING(ml.body, 1, 385) AS last_body,

SUBSTRING(mf.body, 1, 385) AS first_body, ml.smileys_enabled AS last_smileys,]]></search>

<!-- Add this text when we find it.  Note that it's on it's own line on purpose, and the CDATA keeps things clean. -->

<add><![CDATA[SUBSTRING(ml.body, 1, 385) AS last_body,

SUBSTRING(mf.body, 1, "'. $modSettings['hover_length'] .'") AS first_body, ml.smileys_enabled AS last_smileys,]]></add>

</operation>

       

<operation>

<!-- Search for this text before the code we add.  You can also search for after, and the end of the file. -->

<search position="replace"><![CDATA[if ($smcFunc['strlen']($row['first_body']) > 128)]]></search>

<!-- Add this text when we find it.  Note that it's on it's own line on purpose, and the CDATA keeps things clean. -->

<add><![CDATA[if ($smcFunc['strlen']($row['first_body']) > $modSettings['hover_length'])]]></add>

</operation>



       

       

       



</file>

       

        <file name="$sourcedir/ManagePosts.php">



<operation>

<!-- Search for this text before the code we add.  You can also search for after, and the end of the file. -->

<search position="before"><![CDATA[array('int', 'edit_disable_time', 'subtext' => $txt['edit_disable_time_zero'], 'postinput' => $txt['manageposts_minutes']),]]></search>

<!-- Add this text when we find it.  Note that it's on it's own line on purpose, and the CDATA keeps things clean. -->

<add><![CDATA[array('int', 'hover_length', 'subtext' => $txt['edit_disable_time_zero'], 'postinput' => $txt['hover_characters']),]]></add>

</operation>



</file>

       



        <file name="$themedir/languages/Admin.english.php">

<operation>

<search position="end"><![CDATA[?>]]></search>

<add><![CDATA[

$txt['hover_length'] = 'Length of the message preview on hover';

$txt['hover_characters'] = 'characters';

]]></add>

</operation>

        </file>

       

        <file name="$themedir/languages/Admin.spanish.php" error="skip">

<operation>

<search position="end"><![CDATA[?>]]></search>

<add><![CDATA[

$txt['hover_length'] = 'Longitud del mensaje en la vista previa';

$txt['hover_characters'] = 'caracteres';

]]></add>

</operation>

        </file>

       

        <file name="$themedir/languages/Admin.spanish-utf8.php" error="skip">

<operation>

<search position="end"><![CDATA[?>]]></search>

<add><![CDATA[

$txt['hover_length'] = 'Longitud del mensaje en la vista previa';

$txt['hover_characters'] = 'caracteres';

]]></add>

</operation>

        </file>

       

        <file name="$themedir/languages/Admin.spanish_es.php" error="skip">

<operation>

<search position="end"><![CDATA[?>]]></search>

<add><![CDATA[

$txt['hover_length'] = 'Longitud del mensaje en la vista previa';

$txt['hover_characters'] = 'caracteres';

]]></add>

</operation>

        </file>

       

        <file name="$themedir/languages/Admin.spanish_es-utf8.php" error="skip">

<operation>

<search position="end"><![CDATA[?>]]></search>

<add><![CDATA[

$txt['hover_length'] = 'Longitud del mensaje en la vista previa';

$txt['hover_characters'] = 'caracteres';

]]></add>

</operation>

        </file>

</modification>
Title: Re: MessagePreviewOnMouseOver
Post by: imrich on November 09, 2009, 03:51:08 PM
Any news on when this may be updated to support SMF 2 RC2? Thanks! :)
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on November 10, 2009, 11:49:28 AM
Quote from: imrich on November 09, 2009, 03:51:08 PM
Any news on when this may be updated to support SMF 2 RC2? Thanks! :)

when time permits, i have it package, just need to test
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on November 20, 2009, 12:30:41 PM
Quote from: Slobodan Radosavljevic on November 20, 2009, 12:02:12 PM
How to change code or whatever to get instant preview? To not wait 5 seconds.. when i go over some thread to Instantly preview text.. ??

show instantly for me on your site
Title: Re: MessagePreviewOnMouseOver
Post by: Reekie_Red on November 24, 2009, 04:13:52 AM
Is it just me, or does the MessagePreviewOnMouseOver not work with 2.0. I've updated to the latest version of this mod, and have set my characters-to-preview to 25 characters. But nothing shows up
Title: Re: MessagePreviewOnMouseOver
Post by: bdewong on November 30, 2009, 05:07:46 PM
This works on 2.0 for me but with RC2 it can be kind of confusing. Some themes use Core as the base and some use Curve as the base so this update mod needs to be run on those themes as well as the current one you are using.

Can i make a suggestion to the mod creator?

Changing the lines in addMessagePreview_settings.php from
// adds the column to themessage table
    $smcFunc['db_query']('', "INSERT INTO {$db_prefix}settings
                (`variable`, `value`) VALUES ('hover_length','0')");

to
// adds the column to themessage table
    $smcFunc['db_query']('', "INSERT IGNORE INTO {$db_prefix}settings
                (`variable`, `value`) VALUES ('hover_length','0')");


The first line fails if "hover_length" already exists in the database.
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on November 30, 2009, 10:40:15 PM
Quote from: bdewong on November 30, 2009, 05:07:46 PM
This works on 2.0 for me but with RC2 it can be kind of confusing. Some themes use Core as the base and some use Curve as the base so this update mod needs to be run on those themes as well as the current one you are using.

Can i make a suggestion to the mod creator?

Changing the lines in addMessagePreview_settings.php from
// adds the column to themessage table
    $smcFunc['db_query']('', "INSERT INTO {$db_prefix}settings
                (`variable`, `value`) VALUES ('hover_length','0')");

to
// adds the column to themessage table
    $smcFunc['db_query']('', "INSERT IGNORE INTO {$db_prefix}settings
                (`variable`, `value`) VALUES ('hover_length','0')");


The first line fails if "hover_length" already exists in the database.

If you remove the mod correctly via the package manager, it will remove the row from the table. You can also run it from your browser to remove the table. ignoring something that should be removed make a messy database. which is why i don't use the ignore. if i change the variable name(which I have done in passed versions) you would never get the old variable removed

-snork13
Title: Re: MessagePreviewOnMouseOver
Post by: dkharp on December 07, 2009, 03:38:56 AM
hello,

this is a really great mod! grats!!  I was wondering can you change the background color and or make it curve? Also if there is a pic in the topic how can you get it  to show the pic too.


Thank you very much!
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on December 07, 2009, 08:50:15 AM
Quote from: dkharp on December 07, 2009, 03:38:56 AM
hello,

this is a really great mod! grats!!  I was wondering can you change the background color and or make it curve? Also if there is a pic in the topic how can you get it  to show the pic too.


Thank you very much!

the mod does not allow either. i have no plans in the future to add this.
Title: Re: MessagePreviewOnMouseOver
Post by: dkharp on December 07, 2009, 11:12:00 PM
That's unfortunate.  :( Great mod but does not go well with the new curve them in it's current state. 
Title: Re: MessagePreviewOnMouseOver
Post by: Slobodan Radosavljevic on December 15, 2009, 02:54:19 PM
can someone can help me?
Title: Re: MessagePreviewOnMouseOver
Post by: dkharp on December 15, 2009, 03:08:31 PM
I just looked at your forum. Your about hacking sites and stuff.  Nice community. Sry I just had to say it.
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on December 15, 2009, 03:26:08 PM
Quote from: Slobodan Radosavljevic on December 15, 2009, 02:54:19 PM
can someone can help me?

there is nothing to help, it just  takes a second.
Title: Re: MessagePreviewOnMouseOver
Post by: RoadRanger on December 26, 2009, 09:40:33 PM
1.1.11 support?
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on December 26, 2009, 10:16:47 PM
it should work just fine on 1.1.11
Title: Re: MessagePreviewOnMouseOver
Post by: muddywatergrant on January 05, 2010, 02:55:59 PM
Got this error

Duplicate entry 'hover_length' for key 1
File: /home/content/40/5135040/html/forum/Packages/temp/addMessagePreview_settings.php
Line: 31

running 2.0 rc2
Title: Re: MessagePreviewOnMouseOver
Post by: Reekie_Red on January 05, 2010, 09:43:06 PM
I simply cannot get this mod to work. I'm running a test site on www.donstalk.net/messageboard

The site I'm running is using SMF 2.0RC2, using the Core Theme (with changes to the CSS to suit my site). I haven't installed any mods, so this was the very first additional mod that I tried. I get no errors when installing the mod. But there is no new options within the "Posts and Topics" section of my admin, and moving my mouse over any posts produces no preview.

Any ideas?
Title: Re: MessagePreviewOnMouseOver
Post by: Reekie_Red on January 05, 2010, 09:57:49 PM
Okay, managed to get it installed by CHMODing my Sources folder to 777 then reinstalling the mod.

Now I can't get anything to display. I've altered the preview characters to 20 characters, but nothing appears. Any help?
Title: Re: MessagePreviewOnMouseOver
Post by: ~DS~ on January 06, 2010, 12:03:58 AM
Is this similar to NiceTooltips mod?
Title: Re: MessagePreviewOnMouseOver
Post by: muddywatergrant on January 06, 2010, 02:08:02 PM
Quote from: Dismal Shadow on January 06, 2010, 12:03:58 AM
Is this similar to NiceTooltips mod?

Thanks a ton.  This one works.   Tired of hearing people complain about this after the update.

Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on January 06, 2010, 03:59:17 PM
Quote from: muddywatergrant on January 05, 2010, 02:55:59 PM
Got this error

Duplicate entry 'hover_length' for key 1
File: /home/content/40/5135040/html/forum/Packages/temp/addMessagePreview_settings.php
Line: 31

running 2.0 rc2

the error is caused because you didn't remove the old mod correctly before installing. you can run dropsettings from the modification folder once unzipped.
Title: Re: MessagePreviewOnMouseOver
Post by: catfished on January 07, 2010, 12:27:56 PM
I just installed it on a SMF 2.0 RC2 forum. It said mod installed successfully and there were no errors in the error log but it doesn't work. I tried it in Firefox and IE 7 but no dice. ??? ???
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on January 07, 2010, 12:59:49 PM
Quote from: catfished on January 07, 2010, 12:27:56 PM
I just installed it on a SMF 2.0 RC2 forum. It said mod installed successfully and there were no errors in the error log but it doesn't work. I tried it in Firefox and IE 7 but no dice. ??? ???

i just visited your site and it's working for me.
Title: Re: MessagePreviewOnMouseOver
Post by: Reekie_Red on January 07, 2010, 05:19:32 PM
Quote from: Reekie_Red on January 05, 2010, 09:57:49 PM
Okay, managed to get it installed by CHMODing my Sources folder to 777 then reinstalling the mod.

Now I can't get anything to display. I've altered the preview characters to 20 characters, but nothing appears. Any help?

Any ideas? Site is www.donstalk.net/messageboard
Title: Re: MessagePreviewOnMouseOver
Post by: catfished on January 07, 2010, 06:05:22 PM
Quote from: snork13 on January 07, 2010, 12:59:49 PM
i just visited your site and it's working for me.

Well that's really wierd! I even tried Chrome but still no dice. Just so everyone knows, I do understand what it's supposed to do, in fact I have had older versions installed in some of my forums and they worked fine. When I hover over a topic on this one, nothing happens.

Maybe a couple more people could try it and see if it's working for them?
http://carpinusa.com/forum/

Below is a screenshot attachment of one of my SMF 1.1.11 forums where an earlier version is working for me
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on January 07, 2010, 08:32:15 PM
Quote from: catfished on January 07, 2010, 06:05:22 PM
Quote from: snork13 on January 07, 2010, 12:59:49 PM
i just visited your site and it's working for me.

Well that's really wierd! I even tried Chrome but still no dice. Just so everyone knows, I do understand what it's supposed to do, in fact I have had older versions installed in some of my forums and they worked fine. When I hover over a topic on this one, nothing happens.

Maybe a couple more people could try it and see if it's working for them?
http://carpinusa.com/forum/

Below is a screenshot attachment of one of my SMF 1.1.11 forums where an earlier version is working for me


ok, i didn't try that one. try clearing your file cache in smf. if that dones't work un zip the mod and look at the modification file to see if all the changes were made.
Title: Re: MessagePreviewOnMouseOver
Post by: catfished on January 07, 2010, 08:53:32 PM
Quote from: snork13 on January 07, 2010, 08:32:15 PM

OK, i didn't try that one. try clearing your file cache in smf. if that doesn't work un zip the mod and look at the modification file to see if all the changes were made.

OK I assume you were looking at my http://catfished.com/forum which is still version 1.1.11 and I installed the mod a long time ago so it's probably a very old version.

I cleared the file cache in SMF but it had no effect. I installed your mod in two more test forums (SMF 2.0 RC2) and although it installed successfully in both of them, it doesn't work with any of them.

I'm not knowledgeable about figuring out what file changes should have been made so I'm not going there.

I don't want to offend you but I think you need to check your latest version of this mod for an error. It shouldn't not work in three different forums consecutively. I'll just uninstall and delete all three instances of the mod on the appropriate forums and wait until you get it resolved.
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on January 08, 2010, 10:49:11 AM
Just tested it out again and work on the first try on a new install. check the setting in he admin-> posts and topics-> ...

if it set to zero then it's disabled.

Length of the message preview on hover
0 to disable
Title: Re: MessagePreviewOnMouseOver
Post by: catfished on January 08, 2010, 11:43:12 AM
Quote from: snork13 on January 08, 2010, 10:49:11 AM
Just tested it out again and work on the first try on a new install. check the setting in he admin-> posts and topics-> ...

if it set to zero then it's disabled.

Length of the message preview on hover
0 to disable

OK snork13, that was it, now it works fine, thank you very much.

On the older version for 1.11 there is no "Length of the message preview on hover" option in posts & topics so I guess it defaults to around 150 characters and works fine right out of the box.

Also, evidently on new installs in 2.0 RC2, it defaults to 0 so it doesn't work right out of the box. At least that's what it did for me on three fresh installs in 2.0 RC2.

Anyway, thanks again for straightening it out. You certainly do go the extra mile to support your mods.(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcatfished.com%2Frock.gif&hash=9aad35be045d617d191e288f9a542d1060843e47)
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on January 08, 2010, 02:06:46 PM
Quote from: catfished on January 08, 2010, 11:43:12 AM
Quote from: snork13 on January 08, 2010, 10:49:11 AM
Just tested it out again and work on the first try on a new install. check the setting in he admin-> posts and topics-> ...

if it set to zero then it's disabled.

Length of the message preview on hover
0 to disable

OK snork13, that was it, now it works fine, thank you very much.

On the older version for 1.11 there is no "Length of the message preview on hover" option in posts & topics so I guess it defaults to around 150 characters and works fine right out of the box.

Also, evidently on new installs in 2.0 RC2, it defaults to 0 so it doesn't work right out of the box. At least that's what it did for me on three fresh installs in 2.0 RC2.

Anyway, thanks again for straightening it out. You certainly do go the extra mile to support your mods.(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcatfished.com%2Frock.gif&hash=9aad35be045d617d191e288f9a542d1060843e47)

no worries, i set it to zero as default. so it's off until the admin turns on.
Title: Re: MessagePreviewOnMouseOver
Post by: hurricanenick on January 26, 2010, 02:48:39 PM
how can I get this to work on my Extreme15 theme. It works fine in my default theme but not on the Extreme 15.

Thanks.
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on January 26, 2010, 03:03:54 PM
you would have to manually apply the mod changes to your custom theme's template files.
Title: Re: MessagePreviewOnMouseOver
Post by: eng_HK on February 06, 2010, 02:43:32 AM
I tried install it on .11 but give me an error telling me that is not supported on my version...

Any idea?
Title: Re: MessagePreviewOnMouseOver
Post by: peps1 on March 08, 2010, 11:37:11 AM

Manual Install Instructions for SMF for 1.11 = Sorry, but this modification does not appear to be compatible with the selected version.

anyone got it working on 1.11?
Title: Re: MessagePreviewOnMouseOver
Post by: imrich on March 09, 2010, 01:06:12 PM
Any updated need for RC3 or just emulate?
Title: Re: MessagePreviewOnMouseOver
Post by: TomW on March 09, 2010, 08:48:49 PM
Quote from: peps1 on March 08, 2010, 11:37:11 AM

Manual Install Instructions for SMF for 1.11 = Sorry, but this modification does not appear to be compatible with the selected version.

anyone got it working on 1.11?

It works on 1.1.11 - use the most recent version for 1.1.x
Title: Re: MessagePreviewOnMouseOver
Post by: peps1 on March 09, 2010, 09:06:31 PM
Quote from: TomW on March 09, 2010, 08:48:49 PM
It works on 1.1.11 - use the most recent version for 1.1.x
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi624.photobucket.com%2Falbums%2Ftt322%2Fpipechat%2FPicture1-3.png&hash=48de9ac85f287cfa39c9d9242693a5039672eb2d)

Not for me?
Title: Re: MessagePreviewOnMouseOver
Post by: More-to-life on March 10, 2010, 01:54:59 PM
Can't get it to work on RC3 not even emulate :-[
I get this error

Database Error Duplicate entry 'hover_length' for key 1
File: /var/www/html/forum/Packages/temp/addMessagePreview_settings.php
Line: 31

I even went in & deleted the files & tried again but no joy

Any ideas?
Title: Re: MessagePreviewOnMouseOver
Post by: TurtleKicker on March 18, 2010, 10:32:44 AM
People looking for RC3 support might be interested in this other mod:
http://custom.simplemachines.org/mods/index.php?mod=2115
Title: Re: MessagePreviewOnMouseOver
Post by: GohighVoltage on March 20, 2010, 09:59:56 AM
Any update to RC3?
Title: Re: MessagePreviewOnMouseOver
Post by: Hoodie on March 22, 2010, 04:08:02 AM
Quote from: sremick on March 18, 2010, 10:32:44 AM
People looking for RC3 support might be interested in this other mod:
http://custom.simplemachines.org/mods/index.php?mod=2115


That's what I use and think it's the way to go..
Title: Re: MessagePreviewOnMouseOver
Post by: GohighVoltage on March 22, 2010, 09:13:06 AM
Does the nicetools mod work only on the first post?
Title: Re: MessagePreviewOnMouseOver
Post by: minilexus on April 14, 2010, 09:54:08 AM
I want the preview below topic title.

Can anyone advise the code to add below the topic title?
Title: Re: MessagePreviewOnMouseOver
Post by: minilexus on April 14, 2010, 07:56:01 PM
I want the preview below topic title.

Can anyone advise the code to add below the topic title?
Title: Re: MessagePreviewOnMouseOver
Post by: clevelife on April 14, 2010, 10:00:54 PM
I don't see the configuration settings under Posts and Settings.

Found it, and for anyone else looking  in 2RC3 it is Admin/Modification Settings/Misc.
Title: Re: MessagePreviewOnMouseOver
Post by: shakaran on April 16, 2010, 10:04:21 AM
I get this error on install:

Duplicate entry 'hover_length' for key 1
File: /home/user/public_html/foro/Packages/temp/addMessagePreview_settings.php
Line: 31
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on April 16, 2010, 10:51:21 AM
looks like you installed twice.
Title: Re: MessagePreviewOnMouseOver
Post by: shakaran on April 16, 2010, 11:13:13 AM
I have install the old version. I remove the file package on ftp. Then I cannot uninstall. I upload the new package and now I only can Install or List files or Remove the package.

The package should check if exist the key and update the table and don't insert again the same key on the table.
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on April 16, 2010, 06:12:56 PM
most mods assume that the admin will not install twice and hence do not check...   actually, I can think of onel 4mods that do it.
Title: Re: MessagePreviewOnMouseOver
Post by: pointalk on April 17, 2010, 05:18:09 AM
smf1.1.11 MessageIndex.template.php

Quoteecho '                     ', $topic['is_sticky'] ? '<b>' : '' , '<span title="', $topic['first_post']['preview'], '"><span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], '</span></span>', $topic['is_sticky'] ? '</b>' : '';

Quote<SCRIPT   LANGUAGE="JavaScript">   
  <!--   
  function   over(obj){   
  obj.className=(obj.className   ==   "over"   ?   "out"   :   "over")   
  }   
  //-->   
  </SCRIPT>';   

there are not compatible, how to fix it?
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on April 17, 2010, 08:56:29 AM
Quote from: shakaran on April 16, 2010, 11:13:13 AM
I have install the old version. I remove the file package on ftp. Then I cannot uninstall. I upload the new package and now I only can Install or List files or Remove the package.

The package should check if exist the key and update the table and don't insert again the same key on the table.

if uninstalled correctly via the package manager it will delete the key, you can do it manually if you unzip the package and place the remove file in your forum root and then call if from  a browser. it will delete the key
Title: Re: MessagePreviewOnMouseOver
Post by: shakaran on April 17, 2010, 10:22:14 AM
so, check if the key exist is so difficult or only a lazy work?

The justification "because other plugins dont check" it is offensive for me.
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on April 17, 2010, 01:36:39 PM
the justification is : Mod authors assume that and admin knows how to admin his own system and knows that 99% of the time, you must uninstall a mod before installing the update (it's mentioned several thousand times)

if an admin chooses to violate standard procedure, I fail to see how the mod authors can be called lazy or held accountable?

Title: Re: MessagePreviewOnMouseOver
Post by: shakaran on April 17, 2010, 01:48:52 PM
Come on, on Wordpress or other system, when you try to install the same plugin it show a conflict o try to fix the conflict.

Before I have the version 1.6, the filename on my server was MessagePreviewOnHover.zip

Then I download the file for version 1.7, with same name MessagePreviewOnHover.zip

CONFLICT!

Do you want a plugin system user-friendly? Then make some small changes for easy use and common problems.

When I upgrade RC 2 to RC 3, all the plugins obsolete because it dont have the string version new on the plugin package. Same with other versions of SMF.

That problem is common. I upgrade, then I cant uninstall the plugin (because it lost the "uninstall option"), then, I upload the new file, and I cannot install the plugin yet.

user-friendly?
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on April 17, 2010, 02:43:56 PM
I am not saying that we could not improve the system...   I am merely saying that the system, which has been in place like this since smf 1.0, is what it is at the moment... and is not likely to change until SMF 2.1 or 3.0
Title: Re: MessagePreviewOnMouseOver
Post by: shakaran on April 17, 2010, 03:40:09 PM
Quote from: Kindred on April 17, 2010, 02:43:56 PM
I am not saying that we could not improve the system...   I am merely saying that the system, which has been in place like this since smf 1.0, is what it is at the moment... and is not likely to change until SMF 2.1 or 3.0

That would be a NICE feature.  If you improve the plugin system for SMF 2.1 you get many users of easy way. I cannot wait for see it ;)
Title: Re: MessagePreviewOnMouseOver
Post by: Arantor on April 17, 2010, 05:17:37 PM
The system as it stands cannot actually deal with this, in fact it is required not to deal with it properly given how it handles mod authors who add upgrade instructions in the package itself.
Title: Re: MessagePreviewOnMouseOver
Post by: pointalk on April 17, 2010, 07:07:39 PM
Hi, snork13
Can you help me to solve this problem?

Quote from: pointalk on April 17, 2010, 05:18:09 AM
smf1.1.11 MessageIndex.template.php

Quoteecho '                     ', $topic['is_sticky'] ? '<b>' : '' , '<span title="', $topic['first_post']['preview'], '"><span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], '</span></span>', $topic['is_sticky'] ? '</b>' : '';

Quote<SCRIPT   LANGUAGE="JavaScript">   
  <!--   
  function   over(obj){   
  obj.className=(obj.className   ==   "over"   ?   "out"   :   "over")   
  }   
  //-->   
  </SCRIPT>';   

there are not compatible, how to fix it?
Title: Re: MessagePreviewOnMouseOver
Post by: GothicJB on April 20, 2010, 05:41:46 PM
I have maybe a silly question, ...

I am using SMF 1.1.11 (patched from 1.1.8 up) and have installed the MessagePreviewOnHover.zip (1.1.7) and I cannot seem to find the settings for the mod in "Posts and Topics" ... or anywhere else for that matter. 

Also, all my files in the languages dir are utf8 so Admin.english.php is actually Admin.english-utf8.php so the install gives error that there is no Admin.english.php file so i copied the utf8 version applied the mod and copied back? 

Any suggestions on what I may be doing wrong would be greatly appreciated. 
Thanks,
Jason
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on April 21, 2010, 08:22:52 AM
Quote from: GothicJB on April 20, 2010, 05:41:46 PM
I have maybe a silly question, ...

I am using SMF 1.1.11 (patched from 1.1.8 up) and have installed the MessagePreviewOnHover.zip (1.1.7) and I cannot seem to find the settings for the mod in "Posts and Topics" ... or anywhere else for that matter. 

Also, all my files in the languages dir are utf8 so Admin.english.php is actually Admin.english-utf8.php so the install gives error that there is no Admin.english.php file so i copied the utf8 version applied the mod and copied back? 

Any suggestions on what I may be doing wrong would be greatly appreciated. 
Thanks,
Jason

make the changes to the utf lang file. i will add uf8 support on the next release.
Title: Re: MessagePreviewOnMouseOver
Post by: MATTEK on April 21, 2010, 12:34:35 PM
This mod sudden;y stopped working over night. I've reinstalled a few times with no success. Any ideas?
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on April 21, 2010, 01:35:34 PM
Quote from: MATTEK on April 21, 2010, 12:34:35 PM
This mod sudden;y stopped working over night. I've reinstalled a few times with no success. Any ideas?

did you install other mods? or themes, or changes to the default theme?
Title: Re: MessagePreviewOnMouseOver
Post by: MATTEK on April 21, 2010, 02:34:57 PM
I uploaded a fresh "theme" folder from the Large upgrade package because I made a mistake while editing the index.css stylesheet.

These mods were installed around the time it stopped working: TeamPage, Menu order, Ultimate profile and post ratings.

When I try to uninstall the MessagePreview mod I get two failed tests:

Quote1.     Execute Modification     .Themes/default/index.template.php     Test failed
      1.    Replace    .Themes/default/index.template.php    Test failed
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on April 21, 2010, 02:59:54 PM
right... so if you uploaded a fresh copy of the theme files, then you removed all of the mods which depended on those files.
Title: Re: MessagePreviewOnMouseOver
Post by: MATTEK on April 21, 2010, 03:02:28 PM
Quote from: Kindred on April 21, 2010, 02:59:54 PM
right... so if you uploaded a fresh copy of the theme files, then you removed all of the mods which depended on those files.

I've reinstalled fresh copies of all mods afterward, including the message preview one.
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on April 21, 2010, 07:53:37 PM
how did you re-install?   
Title: Re: MessagePreviewOnMouseOver
Post by: MATTEK on April 21, 2010, 08:03:01 PM
Quote from: Kindred on April 21, 2010, 07:53:37 PM
how did you re-install?

With the package manager in the SMF Admin CP. I had it working....I've even uninstall all mods and installed only this one and it still doesn't want to work. 

Is it best to install mods via FTP?
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on April 21, 2010, 10:30:58 PM
yes, because of how you did it, you will probably have to manually reinstall most, if not all, mods
Title: Re: MessagePreviewOnMouseOver
Post by: MATTEK on April 22, 2010, 04:01:33 AM
Didn't work. Should I do them all like that or was it just the one mod that I needed to do because the rest work fine.
Title: Re: MessagePreviewOnMouseOver
Post by: MATTEK on April 27, 2010, 02:29:32 PM
Still having issues with this. I'm getting errors when I try to uninstall now.
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on April 27, 2010, 02:40:21 PM
my suggestion is to reload fresh files for ALL of the forum files. each of the themes and the Sources directories.

that will give you a clean slate and you can restart with the mods.
Title: Re: MessagePreviewOnMouseOver
Post by: MATTEK on April 27, 2010, 02:49:39 PM
Quote from: Kindred on April 27, 2010, 02:40:21 PM
my suggestion is to reload fresh files for ALL of the forum files. each of the themes and the Sources directories.

that will give you a clean slate and you can restart with the mods.

So reload the entire large upgrade package?
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on April 27, 2010, 03:22:17 PM
yes
Title: Re: MessagePreviewOnMouseOver
Post by: MATTEK on April 27, 2010, 03:24:07 PM
Quote from: Kindred on April 27, 2010, 03:22:17 PM
yes
Crap.  >:( O well. LMAO I'll get to it this week sometime. Thanks man.
Title: Re: MessagePreviewOnMouseOver
Post by: firechild on May 05, 2010, 07:55:36 AM
Okay, it doesn't work for me for threads with New Posts in a non default theme. It works fine on Threads I've read, and it works fine in the Default theme. I've manually added the changes for MessageIndex.Template and Recent.template files, but there is no Admin.english file in the theme I use. Could that be part of my problem?

I'm a little confused because it works on some of the threads. We use an animated Gif for our "New Post" indicator ... could that have anything to do with it? Doesn't seem likely.

Cheers
Fletch
Title: Re: MessagePreviewOnMouseOver
Post by: Kurakama on May 31, 2010, 04:38:02 PM
thanks for this great mod!

perfectly working on RC3!
Title: Re: MessagePreviewOnMouseOver
Post by: Masterd on June 20, 2010, 06:21:06 AM
I can't get this mod working on SMF 2.0 RC3.
Title: Re: MessagePreviewOnMouseOver
Post by: distante on June 21, 2010, 02:54:16 AM
Hello!

This version work in RC2 ?
Title: Re: MessagePreviewOnMouseOver
Post by: Masterd on June 22, 2010, 05:58:00 AM
It should work.
Title: Re: MessagePreviewOnMouseOver
Post by: distante on June 22, 2010, 10:48:56 AM
The modifications made by addMessagePreview_settings.php use the same structure in RC2 and RC3 ?

Thanks :)
Title: Re: MessagePreviewOnMouseOver
Post by: DirtRider on August 23, 2010, 07:59:34 AM
When I try and install this on RC3 I get this


Duplicate entry 'hover_length' for key 'PRIMARY'
File: /home/tt/public_html/Packages/temp/addMessagePreview_settings.php
Line: 31

Title: Re: MessagePreviewOnMouseOver
Post by: DirtRider on August 24, 2010, 08:47:25 AM
Quote from: DirtRider on August 23, 2010, 07:59:34 AM
When I try and install this on RC3 I get this


Duplicate entry 'hover_length' for key 'PRIMARY'
File: /home/tt/public_html/Packages/temp/addMessagePreview_settings.php
Line: 31



Anyone ?
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on August 24, 2010, 09:31:58 AM
you get that on the installation or after the installation?
Title: Re: MessagePreviewOnMouseOver
Post by: DirtRider on August 24, 2010, 10:07:23 AM
It runs through the installation without finding any error and once it ends I get that and when I look nothing has been installed
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on August 24, 2010, 10:12:27 AM
looks like the installation is actually failing on the db edits.  Check your DB for the field hover_length...   

if it's alreayd there, you can edit the installation db file to remove the db edits
Title: Re: MessagePreviewOnMouseOver
Post by: DirtRider on August 24, 2010, 10:15:58 AM
When you say check the DB do you actually meant in MySQL Database . I did have the mod installed before I upgraded from RC2 to RC3 if this helps
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on August 24, 2010, 10:36:24 AM
yup... I believe that you probably already have the db edits done, so the db edits in the mod are failing (before any code changes are done).  Remove the instructions in the mod for the db edit file and it should work
Title: Re: MessagePreviewOnMouseOver
Post by: DirtRider on August 24, 2010, 11:53:53 AM
Ok thanks
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on August 25, 2010, 09:09:13 PM
unzip the package and  upload  dropmessagepreview to the root of your forum, run it from browser. delete file and it will remove the entry, or you can delete it through phpmyadmin. it happen when the mods not un-installed correctly, normally through upgrades.
Title: Re: MessagePreviewOnMouseOver
Post by: THE BRA1N on September 04, 2010, 06:35:39 AM
Quote from: Kindred on August 24, 2010, 10:36:24 AM
yup... I believe that you probably already have the db edits done, so the db edits in the mod are failing (before any code changes are done).  Remove the instructions in the mod for the db edit file and it should work

How exactly would I go about doing that? I have the same exact error and problem.
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on September 04, 2010, 10:14:07 AM
remove the db edit php file from the xml file
Title: Re: MessagePreviewOnMouseOver
Post by: coolfx350 on October 28, 2010, 01:13:35 PM
is this mod good for SEO?
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on October 28, 2010, 01:33:28 PM
does not matter for seo.
Title: Re: MessagePreviewOnMouseOver
Post by: Arkadaş on November 04, 2010, 11:41:06 AM
We look forward to compliance with RC 4
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on November 05, 2010, 08:54:22 PM
updated to rc4. tested. if you didn't uninstall correctly you will need to remove the value from the database using the file attached to this post. place it in the root of your forum folder and run from a browser :)

so...  http://www.yourdomain.com/dropMessagePreview_settings.php

-snork13
Title: Re: MessagePreviewOnMouseOver
Post by: Malaky on November 14, 2010, 02:41:55 AM
Hello
my forum is set up such that guests can see threads' topics, but not read the topics themselves. I'm interested by this mod but I was wondering if anyone knows if it means guests could read the thread preview or not. I would guess yes?
Title: Re: MessagePreviewOnMouseOver
Post by: indytycoon on January 20, 2011, 06:11:45 PM
I can not get this working.  User is getting this error in IE:  Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; chromeframe; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Tablet PC 2.0; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C)
Timestamp: Thu, 20 Jan 2011 23:04:19 UTC


Message: Object expected
Line: 26
Char: 1
Code: 0
URI: http://holidayuniversity.com/forums/index.php?action=unread


I have verified all file edits were correct and the db edit has also occured.
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on January 21, 2011, 09:44:50 AM
Quote from: Malaky on November 14, 2010, 02:41:55 AM
Hello
my forum is set up such that guests can see threads' topics, but not read the topics themselves. I'm interested by this mod but I was wondering if anyone knows if it means guests could read the thread preview or not. I would guess yes?

it's easy to add a check for guest or not. feel free to look into it.
Title: Re: MessagePreviewOnMouseOver
Post by: Eyesman on January 24, 2011, 07:16:02 AM
Hello again,

I have installed this mod yesterday and it worked great.

Today I noticed that it doesn't work and I check and found that in the Admin -> Posts & Topics the "Length of the Message Preview on Hover" it's gone. It's not there.

I have uninstalled the mod and installed it again but the "Length of the Message Preview on Hover" it's not showing under Posts & Topics.
I'm using the smf v.1.1.12 with the default theme.

Any idea?

Thank you?
Title: Re: MessagePreviewOnMouseOver
Post by: Eyesman on January 24, 2011, 07:25:52 AM
now it's back again! arghh!! darn!  ???

Sorry guys!
Title: Re: MessagePreviewOnMouseOver
Post by: hercululu on February 18, 2011, 06:15:41 PM
desperately want this mod, any way to make it work with 1.1.13?
Title: Re: MessagePreviewOnMouseOver
Post by: spiros on February 18, 2011, 06:20:14 PM
Is it compatible with RC5?
Title: Re: MessagePreviewOnMouseOver
Post by: TheListener on February 18, 2011, 06:24:43 PM
Quote from: spiros on February 18, 2011, 06:20:14 PM
Is it compatible with RC5?

Have you tried to find out?
Title: Re: MessagePreviewOnMouseOver
Post by: spiros on February 18, 2011, 06:25:53 PM
The parser says it is not.
Title: Re: MessagePreviewOnMouseOver
Post by: TheListener on February 18, 2011, 06:31:33 PM
Quote from: spiros on February 18, 2011, 06:25:53 PM
The parser says it is not.

*Emulate version?*
Title: Re: MessagePreviewOnMouseOver
Post by: TomW on February 18, 2011, 09:26:46 PM
It works in RC5.
Title: Re: MessagePreviewOnMouseOver
Post by: Inti31 on March 15, 2011, 03:10:15 PM
it works... :)  - 

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fpicture-reflex.de%2F%3Fimg%3D01300216388.jpg&hash=0c02cf342bfbcd02aed463bb4ef7e78d9612c78a)
cheers Inti31

My Testboard: aida32-inventory.netboom.de/testsmf/

my real board: epica-forum.de

Title: Re: MessagePreviewOnMouseOver
Post by: MATTEK on March 15, 2011, 04:16:50 PM
Quote from: snork13 on November 05, 2010, 08:54:22 PM
updated to rc4. tested. if you didn't uninstall correctly you will need to remove the value from the database using the file attached to this post. place it in the root of your forum folder and run from a browser :)

so...  http://www.yourdomain.com/dropMessagePreview_settings.php

-snork13

Is this why I'm getting the duplicate error on install?
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on March 16, 2011, 10:31:28 PM
Quote from: MATTEK on March 15, 2011, 04:16:50 PM
Quote from: snork13 on November 05, 2010, 08:54:22 PM
updated to rc4. tested. if you didn't uninstall correctly you will need to remove the value from the database using the file attached to this post. place it in the root of your forum folder and run from a browser :)

so...  http://www.yourdomain.com/dropMessagePreview_settings.php

-snork13

Is this why I'm getting the duplicate error on install?

yes, u r correct. u can use phpmyadmin to delete the value from your database or run the script.

-snork13
Title: Re: MessagePreviewOnMouseOver
Post by: Clickout on March 16, 2011, 11:07:53 PM
Quote from: coolfx350 on October 28, 2010, 01:13:35 PM
is this mod good for SEO?

The mod is not good for seo, even though we can control the character count there is little chance for keyword inclusion in the link titles.

Also long title attributes are not recommended for a better seo.

i tried the mod with a character count 35, but The link title attributes i got were not complete & it contained very little number of keywords.

The mod is very good if it can be enabled only for members when logged in.
Title: Re: MessagePreviewOnMouseOver
Post by: MRM4 on March 24, 2011, 01:49:47 PM
Quote from: hercululu on February 18, 2011, 06:15:41 PM
desperately want this mod, any way to make it work with 1.1.13?
Any updates to make it work with 1.1.13? Worked fine with 1.1.12, but does not work and will not apply to 1.1.13. Thanks.
Title: Re: MessagePreviewOnMouseOver
Post by: jaisi on March 25, 2011, 02:10:50 PM
compatible with RC5??? please tell me 
Title: Re: MessagePreviewOnMouseOver
Post by: MRM4 on April 15, 2011, 03:21:06 PM
Any update coming any time soon or can someone tell me how to update it to make it work with 1.1.13?
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on June 15, 2011, 01:26:26 PM
updated for 2.0 :)
Title: Re: MessagePreviewOnMouseOver
Post by: TurtleKicker on June 15, 2011, 02:42:44 PM
Quote from: snork13 on June 15, 2011, 01:26:26 PM
updated for 2.0 :)

Thanks! Bug, though: the preview text should filter out BBcode. :)
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on June 15, 2011, 03:20:34 PM
Quote from: sremick on June 15, 2011, 02:42:44 PM
Quote from: snork13 on June 15, 2011, 01:26:26 PM
updated for 2.0 :)

Thanks! Bug, though: the preview text should filter out BBcode. :)

not sure i follow u. if you use the [b]bold [/b] it filters out the bbc and just preview a bold
Title: Re: MessagePreviewOnMouseOver
Post by: TurtleKicker on June 15, 2011, 03:31:55 PM
Hmm once I increased the preview length to 256 it seems to be fine. But as I was experimenting with much smaller lengths I was seeing BB code in the preview.

So maybe only a bug for very short preview lengths, but probably lengths too short for anyone to practically use so maybe not a serious bug. :)
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on June 15, 2011, 04:16:23 PM
it is going to be a "bug" in any case for which the BBC is cut off mid-tag...
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on June 15, 2011, 05:40:36 PM
Quote from: Kindred on June 15, 2011, 04:16:23 PM
it is going to be a "bug" in any case for which the BBC is cut off mid-tag...


interesting. i assume the bug is in the actually preview function and once address the mod should work as expected.

-snork
Title: Re: MessagePreviewOnMouseOver
Post by: TurtleKicker on June 16, 2011, 09:38:31 AM
Quote from: Kindred on June 15, 2011, 04:16:23 PM
it is going to be a "bug" in any case for which the BBC is cut off mid-tag...

So you're saying if the preview length ends mid-tag, that's what triggers it? Seems a bug that's easily fixed by simply stripping our BBC prior to trimming it down, versus after.
Title: Re: MessagePreviewOnMouseOver
Post by: 3fifty on June 29, 2011, 01:31:43 PM
SMF V2.0

Can anyone help me with getting this to work on Back N Black theme?  I need help with one file.
I cant get the code correct in one file.  "./Themes/BacknBlack/Recent.template.php"

It is attached if anyone can point me in the right direction.

Thanks! 

Edits needed below.


Find: [Select]

'<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], '</span>'

Replace With: [Select]

'<span title="', $topic['first_post']['preview'], '"><span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], '</span></span>'


Find: [Select]

'<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], '</span>'

Replace With: [Select]

'<span title="', $topic['first_post']['preview'], '"><span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], '</span></span>'

Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on June 29, 2011, 02:16:36 PM
Quote from: 3fifty on June 29, 2011, 01:31:43 PM
SMF V2.0

Can anyone help me with getting this to work on Back N Black theme?  I need help with one file.
I cant get the code correct in one file.  "./Themes/BacknBlack/Recent.template.php"

It is attached if anyone can point me in the right direction.

Thanks! 

Edits needed below.


Find: [Select]

'<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], '</span>'

Replace With: [Select]

'<span title="', $topic['first_post']['preview'], '"><span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], '</span></span>'


Find: [Select]

'<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], '</span>'

Replace With: [Select]

'<span title="', $topic['first_post']['preview'], '"><span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], '</span></span>'



does that theme even have a recent template. i thought it fell back on the default file? which the package manager will change.

-snork13
Title: Re: MessagePreviewOnMouseOver
Post by: 3fifty on June 29, 2011, 02:28:09 PM
When I tried to install it It gave me an error for the two code placements in "./Themes/BacknBlack/Recent.template.php".  Which led me to the manual install.  I just cant get it right.
The file I attached is from the "./Themes/BacknBlack/" directory.
I checked the theme contents and it includes a Recent.template.php.
Thanks for the help!
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on June 29, 2011, 04:08:26 PM
that template is missing the the first post id, not sure why. i don't know theme. Can u link me to the theme?
Title: Re: MessagePreviewOnMouseOver
Post by: 3fifty on June 29, 2011, 04:10:10 PM
Back-N-Black (http://custom.simplemachines.org/themes/index.php?lemma=126) on SMF Themes.
Title: Re: MessagePreviewOnMouseOver
Post by: danskmacabre on July 20, 2011, 06:12:50 PM
Getting a strange error:
Duplicate entry 'hover_length' for key 1
File: /home/xxxxx/xxxx/xxxx/forum/Packages/temp/addMessagePreview_settings.php
Line: 31


I have replaced some of the directory structure with XXXx

SMF Version 2, using the Coal Black theme.

Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on July 21, 2011, 09:05:57 AM
Quote from: danskmacabre on July 20, 2011, 06:12:50 PM
Getting a strange error:
Duplicate entry 'hover_length' for key 1
File: /home/xxxxx/xxxx/xxxx/forum/Packages/temp/addMessagePreview_settings.php
Line: 31


I have replaced some of the directory structure with XXXx

SMF Version 2, using the Coal Black theme.



i'm guessing you upgraded without uninstalling the mod....


so unzip the package and put the drop_settings files @ the root of your forum and then run it from a browser.


or use phpmyadmin to drop the setting from your database


-snork
Title: Re: MessagePreviewOnMouseOver
Post by: danskmacabre on July 21, 2011, 09:15:44 AM
Yes that worked (running the drop settings file), thanks  :)
Like you said I must have forgot to uninstall this mod before a forum upgrade at some time.
Title: Re: MessagePreviewOnMouseOver
Post by: smurff289 on July 25, 2011, 11:05:58 AM
I installed the package and it works fine in the SMF Core Theme. However I use a different default theme and I cant get it to work. I Cant find the lines that I need to edit in the
- MessageIndex.template.php
- Recent.template.php
- Admin.template.php (there is none in current template)

I have attached the current themes files. Any help please!?

Template is [Classic YaBB SE Theme]
Title: Re: MessagePreviewOnMouseOver
Post by: EricPost on August 27, 2011, 04:33:34 AM
Does this not work in Chrome. I tested it in IE9 and Firefox and other Mozilla browsers it works fine. But nothing shows in Chrome?
Title: Re: MessagePreviewOnMouseOver
Post by: Motorhead on August 29, 2011, 12:57:36 PM
Mine fails to install because of the same errors with the recent.template. Thats in the Core theme

I manually searched the file couldn't find the lines that needed changing

Title: Re: MessagePreviewOnMouseOver
Post by: T3CHN0 on September 14, 2011, 10:43:14 PM
Hello

I just upgraded to 2.0 and have to re-install my mods
when installing this mod I get

Duplicate entry 'hover_length' for key 'PRIMARY'
File: /home1/public_html/mysite/smf/Packages/temp/addMessagePreview_settings.php
Line: 31


Can you explain what I have to do please

Cheers
Title: Re: MessagePreviewOnMouseOver
Post by: MotRude on September 15, 2011, 01:11:47 PM
Works Great,Nice Mod!
Title: Re: MessagePreviewOnMouseOver
Post by: cotty on September 27, 2011, 09:52:10 AM
Quote from: Motorhead on August 29, 2011, 12:57:36 PM
Mine fails to install because of the same errors with the recent.template. Thats in the Core theme

I manually searched the file couldn't find the lines that needed changing

+1

Everything else pass the test, though I get 2 fails with Recent.template.php on core and blackrain theme.

This is on smf 2.0.1 btw
Title: Re: MessagePreviewOnMouseOver
Post by: NadiE on September 28, 2011, 09:57:57 AM
I installed the package and it dont works fine in the SMF 2.0.1

Any idea?
Title: Re: MessagePreviewOnMouseOver
Post by: 3fifty on October 25, 2011, 06:37:49 PM
Any updates for 2.0.1 coming down the line?
Title: Re: MessagePreviewOnMouseOver
Post by: Doburpally on October 27, 2011, 01:02:19 PM
Quote from: T3CHN0 on September 14, 2011, 10:43:14 PM
Hello

I just upgraded to 2.0 and have to re-install my mods
when installing this mod I get

Duplicate entry 'hover_length' for key 'PRIMARY'
File: /home1/public_html/mysite/smf/Packages/temp/addMessagePreview_settings.php
Line: 31


Can you explain what I have to do please

Cheers


The reason why you're getting that error is because you already have 'hover_length' table in your database.

To fix this you will need phpmyadmin access.
Click on SQL tab

Type the following in

DELETE FROM {$db_prefix}settings
WHERE variable = 'hover_length'


The {$db_prefix} needs to be changed according to your Admin > Configuration > Server Settings > Database and Paths locate Database Tables Prefix
By default it's SMF_

So in my case i will need to run the sql:

DELETE FROM SMF_settings
WHERE variable = 'hover_length'


Normally if the mod was to be uninstalled it will run the above via a dropMessagePreview_settings.php file ;) but I understand that you have upgraded.

I hope this works for you. ;)

Or you can extract your mod to a folder anywhere normally I use the desktop

Use FTP and upload dropMessagePreview_settings.php to your forum root folder, where Attachments, Packages, Source, Themes folders are ;)

Now point your browser to http://your_domain.com/dropMessagePreview_settings.php
That should work, if you don't have phpmyadmin access or don't want to do it manually :)
Don't forget to delete the dropMessagePreview_settings.php file after running it ;)

Quote from: 3fifty on October 25, 2011, 06:37:49 PM
Any updates for 2.0.1 coming down the line?


I have installed this mod on all my 2.0.1 forums just like above and never had any problems ;)
Title: Re: MessagePreviewOnMouseOver
Post by: 3fifty on October 28, 2011, 11:14:43 AM
Quote from: Reaper.CSF. on October 27, 2011, 01:02:19 PM


I have installed this mod on all my 2.0.1 forums just like above and never had any problems ;)

Thanks.
Tried that and get an error.  Strange since I did a fresh install with 2.0.1

Error on install
QuoteDuplicate entry 'hover_length' for key 1
File: /home/vsftpd/stagger4x4/public_html/forum/Packages/temp/addMessagePreview_settings.php
Line: 31

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.1, while your database is at version 2.0. The above error might possibly go away if you execute the latest version of upgrade.php.

Errors in error log after trying to install
Quote
http://stagger4x4.com/forum/index.php?action=admin;area=packages;sa=install2;package=MessagePreviewOnHover.zip;pid=0
Apply Filter: Only show the errors with the same message
Database Error: Duplicate entry 'hover_length' for key 1
Apply Filter: Only show the errors from this file
File: /stagger4x4/public_html/forum/Packages/temp/addMessagePreview_settings.php
Line: 31

Quote
2: opendir(/stagger4x4/public_html/forum/Packages/temp/images) [<a href='function.opendir'>function.opendir</a>]: failed to open dir: No such file or directory
Apply Filter: Only show the errors from this file
File: /stagger4x4/public_html/forum/Sources/Subs-Package.php
Line: 1697
Title: Re: MessagePreviewOnMouseOver
Post by: snork13 on November 10, 2011, 08:25:58 AM
@ 3fifty

Quote from: Reaper.CSF. on October 27, 2011, 01:02:19 PM
Quote from: T3CHN0 on September 14, 2011, 10:43:14 PM
Hello

I just upgraded to 2.0 and have to re-install my mods
when installing this mod I get

Duplicate entry 'hover_length' for key 'PRIMARY'
File: /home1/public_html/mysite/smf/Packages/temp/addMessagePreview_settings.php
Line: 31


Can you explain what I have to do please

Cheers


The reason why you're getting that error is because you already have 'hover_length' table in your database.

To fix this you will need phpmyadmin access.
Click on SQL tab

Type the following in

DELETE FROM {$db_prefix}settings
WHERE variable = 'hover_length'


The {$db_prefix} needs to be changed according to your Admin > Configuration > Server Settings > Database and Paths locate Database Tables Prefix
By default it's SMF_

So in my case i will need to run the sql:

DELETE FROM SMF_settings
WHERE variable = 'hover_length'


Normally if the mod was to be uninstalled it will run the above via a dropMessagePreview_settings.php file ;) but I understand that you have upgraded.

I hope this works for you. ;)

Or you can extract your mod to a folder anywhere normally I use the desktop

Use FTP and upload dropMessagePreview_settings.php to your forum root folder, where Attachments, Packages, Source, Themes folders are ;)

Now point your browser to http://your_domain.com/dropMessagePreview_settings.php
That should work, if you don't have phpmyadmin access or don't want to do it manually :)
Don't forget to delete the dropMessagePreview_settings.php file after running it ;)

Quote from: 3fifty on October 25, 2011, 06:37:49 PM
Any updates for 2.0.1 coming down the line?

  • Go to Browse Packages.
  • Scroll down the page, click on Advanced.
  • Change Version from SMF 2.0.1 to SMF 2.0
  • Click on Apply button.
  • Install MessagePreviewOnMouseOver mod via Download Packages.
  • Once finished, go back to Browse Packages.
  • Scroll down the page, click on Advanced.
  • Click on Revert button.
  • Click on Apply button.
  • Fin.

I have installed this mod on all my 2.0.1 forums just like above and never had any problems ;)
Title: Re: MessagePreviewOnMouseOver
Post by: 3fifty on November 10, 2011, 06:08:22 PM
Quote from: snork13 on November 10, 2011, 08:25:58 AM
@ 3fifty

Worked.  Thank you!  Much appreciated.
Title: Re: MessagePreviewOnMouseOver
Post by: lmllewellyn on November 16, 2011, 01:05:37 AM
I changed my theme and now the mod doesn't work.  Do I need to manually apply the changes to my theme files?
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on November 16, 2011, 09:42:47 AM
yes
Title: Re: MessagePreviewOnMouseOver
Post by: BaghdadGhost on December 05, 2011, 07:46:31 AM
this is a great mod. thanks


one little thing, how to change the look of the preview box? I tried to see in parse there is not operation to add anything to index.css


also I noticed that the installation suppose to perform the following

QuoteMove the included directory "images" to "./Themes/default".
yet the installation package does not have the image folder, which gives an error at time of installation. other than that everything is great.


thanks
Title: Re: MessagePreviewOnMouseOver
Post by: mutluokul on December 13, 2011, 05:29:18 AM
Mod için çok teşekkür ederim.

Recalibrated to SMF 2.0.1. Turkish settings are added.

Modu smf 2.0.1 için uyumlu hale getirdim ve Türkçe  için ayarlarını düzenleyerek  ekledim. Kendi siteme yükledim sorun olmadan çalıştı ayarları İLETİLER VE KONULAR başlığı altından yapabilirsiniz. Yardımcı olabildiysem ne mutlu bana.

Not:Eğer yaptığım kurallara aykırı ise özür dilerim ve mesajım silinebilir.

Title: Re: MessagePreviewOnMouseOver
Post by: Coyote Keith on February 02, 2012, 03:25:34 PM
Is this mod not compatible with 2.0.2?
I'm getting that message when I try to install it.

Thanks
Title: Re: MessagePreviewOnMouseOver
Post by: BaghdadGhost on February 02, 2012, 03:38:24 PM
Quote from: Coyote Keith on February 02, 2012, 03:25:34 PM
Is this mod not compatible with 2.0.2?
I'm getting that message when I try to install it.

Thanks

I am using it on 2.0.2

what message you are getting ?
Title: Re: MessagePreviewOnMouseOver
Post by: Coyote Keith on February 02, 2012, 04:08:03 PM
A compatibility message

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Title: Re: MessagePreviewOnMouseOver
Post by: BaghdadGhost on February 02, 2012, 04:50:48 PM
just emulate to 2.0 and install
Title: Re: MessagePreviewOnMouseOver
Post by: Coyote Keith on February 02, 2012, 04:59:51 PM
How do I emulate a different version?

Title: Re: MessagePreviewOnMouseOver
Post by: BaghdadGhost on February 02, 2012, 05:02:48 PM
see attachment  :)
Title: Re: MessagePreviewOnMouseOver
Post by: Coyote Keith on February 02, 2012, 05:08:03 PM
Very nice, thank you
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on February 02, 2012, 07:08:39 PM
hmmmmm.....  the mod installed without error.

However, no previews are showing...
I expect there is an admin checkbox to turn the feature on?  but I can't seem to find it. Anyone?
Title: Re: MessagePreviewOnMouseOver
Post by: BaghdadGhost on February 02, 2012, 07:13:50 PM
admin - posts and topics - Post Settings

Length of the message preview on hover
Title: Re: MessagePreviewOnMouseOver
Post by: amiralib on February 05, 2012, 12:55:49 PM
why not for 2.02 ?
Title: Re: MessagePreviewOnMouseOver
Post by: Shambles on February 05, 2012, 02:02:53 PM
Quote from: amiralib on February 05, 2012, 12:55:49 PM
why not for 2.02 ?

Works perfectly for me in 2.0.2  8)
Title: Re: MessagePreviewOnMouseOver
Post by: amiralib on February 05, 2012, 02:13:21 PM
it says no installation file !
Title: Re: MessagePreviewOnMouseOver
Post by: Mike72 on March 25, 2012, 12:29:02 PM
I installed this mod but get the following error.


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FJy6Uy.jpg&hash=5fa80bae70c0532339ce5e62b944e56beaba9275)

SMF 2.0.2
Mods installed

1. Adk Portal

2. Simple Audio Video Embedder

3. KeyCAPTCHA for SMF

4. Separate the sticky topics

5. YouTube BBCode

6. Slashout Banned Members
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on March 25, 2012, 01:18:34 PM
well, it would seem that you already had this mod installed at some point... and the db entry is already present. So, you'll have to remove that from the install code - or manually install the mod
Title: Re: MessagePreviewOnMouseOver
Post by: jmil on April 02, 2012, 12:18:16 PM
I had a previous version installed and after upgrading to 1.1.16 it is no longer working - I uninstalled and tried to install the new version but it indicates:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Can I manually install this in a SMF 1.1.16 ? Thanks in advance!
Title: Re: MessagePreviewOnMouseOver
Post by: TheListener on April 02, 2012, 12:22:06 PM
Quote from: jmil on April 02, 2012, 12:18:16 PM
I had a previous version installed and after upgrading to 1.1.16 it is no longer working - I uninstalled and tried to install the new version but it indicates:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Can I manually install this in a SMF 1.1.16 ? Thanks in advance!

Use the mod emulate in my signature.
Title: Re: MessagePreviewOnMouseOver
Post by: jmil on April 02, 2012, 12:41:05 PM
Added the Emulator to My SMF  That mod did not show - Doing a Manual Parse for it and will report back soon!
Title: Re: MessagePreviewOnMouseOver
Post by: TheListener on April 02, 2012, 12:42:22 PM
Quote from: jmil on April 02, 2012, 12:41:05 PM
Added the Emulator to My SMF  That mod did not show - Doing a Manual Parse for it and will report back soon!

The emulator is not a mod.
Title: Re: MessagePreviewOnMouseOver
Post by: jmil on April 02, 2012, 12:51:20 PM
http://custom.simplemachines.org/mods/index.php?mod=2113

I installed this?
Title: Re: MessagePreviewOnMouseOver
Post by: TheListener on April 02, 2012, 12:53:33 PM
Ah I didn't know about that mod as I use 2.0.2

Sorry for the confusion.
Title: Re: MessagePreviewOnMouseOver
Post by: jmil on April 02, 2012, 12:55:02 PM
 ;D  No Problem - Either way it did NOT properly Install- Never saw that mod before! The Admin Pages did not show and I did a Manual Parse and it was all correct? I checked Default Theme to - No Luck


If I can get this working - then I should be able to get the Preview working - In Theory!
Title: Re: MessagePreviewOnMouseOver
Post by: TheListener on April 02, 2012, 12:56:19 PM
Sorry I don't use the mod so no idea.
Title: Re: MessagePreviewOnMouseOver
Post by: shazoo! on April 05, 2012, 09:29:40 AM
Great Mod!

Got it to work on a fresh 2.0.2 install with 3 themes.

THANK YOU!!!
Title: Re: MessagePreviewOnMouseOver
Post by: archiebald on July 19, 2012, 04:06:20 AM
Worked in 2.0 but in 2.0.2 I get

"The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

Repeated numerous times, same result.

Then I noticed when I try to read the manual instructions for 2.0.2 I get this;

"Sorry, but this modification does not appear to be compatible with the selected version."
Title: Re: MessagePreviewOnMouseOver
Post by: Adrek on July 19, 2012, 07:02:06 AM
Emulate SMF 2.0 - How can I install a mod that doesn't work in my SMF version? (http://wiki.simplemachines.org/smf/How_can_install_a_mod_that_doesn%27t_work_in_my_SMF_version)
Title: Re: MessagePreviewOnMouseOver
Post by: archiebald on July 19, 2012, 10:19:34 PM
Tried that, installation failed with

Duplicate entry 'hover_length' for key 1
File: C:\my folder\Packages\temp\addMessagePreview_settings.php
Line: 31


Besides, I would rather that the mod is updated.  2.0.2 has been out a while and sevaral other people are having issues.
Title: Re: MessagePreviewOnMouseOver
Post by: estes on November 03, 2013, 02:36:41 PM
does this mod still work?  i installed as 2.0 but updated my forum to the latest SMF 1.1.19 / 2.0.6 Update.

the mod installed successfully but no hover over works.

any feedback?
Title: Re: MessagePreviewOnMouseOver
Post by: Chalky on November 03, 2013, 03:16:13 PM
Could it be that you didn't read the very first post in this topic?   ;)

QuoteThe admin has the ability to choose the length of the preview within the Admin section under Posts & Topics. Please note the message preview length by default is set to 0, which renders no preview.
Title: Re: MessagePreviewOnMouseOver
Post by: estes on November 03, 2013, 06:02:05 PM
Quote from: ChalkCat on November 03, 2013, 03:16:13 PM
Could it be that you didn't read the very first post in this topic?   ;)

QuoteThe admin has the ability to choose the length of the preview within the Admin section under Posts & Topics. Please note the message preview length by default is set to 0, which renders no preview.

sorry i left that part out...i set it to 350 :)
Title: Re: MessagePreviewOnMouseOver
Post by: estes on November 05, 2013, 10:08:54 AM
since there are no errors but the mod doesnt seem to work...is there any alternative option (perhaps another mod i can try)?
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on November 05, 2013, 10:19:51 AM
are you using the default theme?   If not, did you install the code changes into your custom theme?
Title: Re: MessagePreviewOnMouseOver
Post by: estes on November 05, 2013, 10:24:27 AM
Quote from: Kindred on November 05, 2013, 10:19:51 AM
are you using the default theme?   If not, did you install the code changes into your custom theme?

im using a custom theme.  when you say code changes to custom theme....are you referring to the errors that you might receive during an install?  i didnt receive any errors so installed as regular (ie/ no changing the code)
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on November 05, 2013, 10:35:17 AM
but did you actually INSTALL the code changes into your custom theme?
Title: Re: MessagePreviewOnMouseOver
Post by: estes on November 05, 2013, 10:39:43 AM
Quote from: Kindred on November 05, 2013, 10:35:17 AM
but did you actually INSTALL the code changes into your custom theme?

i believe i did but let me double check by doing a reinstall
Title: Re: MessagePreviewOnMouseOver
Post by: estes on November 05, 2013, 10:42:04 AM
Quote from: estes on November 05, 2013, 10:39:43 AM
Quote from: Kindred on November 05, 2013, 10:35:17 AM
but did you actually INSTALL the code changes into your custom theme?

i believe i did but let me double check by doing a reinstall

good catch.  i see it installed in the default theme only  :o    that's what i get for working too many hours.

i'm using the ClearSky theme.  should i just copy over the MessageIndex.php file?
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on November 05, 2013, 10:49:47 AM
no, probably not.

The reason there is  a separate file with that name in your custom theme is because that is a file designed specifically for the custom theme...

So, you should do a manual parse of the mod (link on the mod download page) and manually make the changes to your custom theme file(s)
Title: Re: MessagePreviewOnMouseOver
Post by: Shambles on November 05, 2013, 12:50:08 PM
.. or just uninstall then reinstall the mod, remembering to tick the box(es) for your custom theme during (re)installation.
Title: Re: MessagePreviewOnMouseOver
Post by: estes on November 05, 2013, 01:30:34 PM
Quote from: Shambles on November 05, 2013, 12:50:08 PM
.. or just uninstall then reinstall the mod, remembering to tick the box(es) for your custom theme during (re)installation.

worked perfectly...thanks for the help i really appreciate it.
Title: Re: MessagePreviewOnMouseOver
Post by: MRM4 on November 19, 2013, 05:03:48 PM
I love this mod on my 1.1.x board. But I upgraded with a fresh install to a 2.0.6 board. I finally got the mod to install, but there is no preview of the posts. I did change the setting for the number of characters to display, so that isn't the issue. Any ideas?
Title: Re: MessagePreviewOnMouseOver
Post by: Gwenwyfar on October 18, 2014, 02:39:44 PM
Still works great on 2.0.8 with a manual install, thanks for the mod! :)

Also, if anyone was wondering the same, you add the addMessagePreview_settings.php file to your theme folder. (The parser doesn't say where to put it).

Any simple way to add "..." to the ending of the message when it is cut off?
Title: Re: MessagePreviewOnMouseOver
Post by: Kerrith on June 13, 2015, 06:21:03 AM
Can this be made to work with SMF 2.0.10? I tried installing it using Package Manager and got: "The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

Thanks,

Kerry
Title: Re: MessagePreviewOnMouseOver
Post by: Shambles on June 13, 2015, 06:40:37 AM
Your query was answered earlier...

http://www.simplemachines.org/community/index.php?topic=537309.msg3818337#msg3818337
Title: Re: MessagePreviewOnMouseOver
Post by: lazo50 on October 06, 2015, 08:49:47 AM
The mod works fine, but how can I be able to view the images?
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on October 06, 2015, 09:44:08 AM
I do not believe that images are loaded into the preview
Title: Re: MessagePreviewOnMouseOver
Post by: Obsydian on January 13, 2018, 12:22:51 PM
I emulated 2.0 to install this on 2.0.14.   However, I cannot get it to work, even after changing character count.

All it did to my forum is increase the font size on my admin pages (ouch, my eyes) and I'm left with this snippet at the top of the page: "$txt['hover_length'] = 'Length of the message preview on hover'; $txt['hover_characters'] = 'characters';"

If anybody can figure out how to fix this, it'll be forever appreciated.  Everyone wants this feature on my forum!
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on January 13, 2018, 02:24:10 PM
The mod failed to install correctly.
Edit modifications.english.php and move the ?> to the end of the file
Title: Re: MessagePreviewOnMouseOver
Post by: Obsydian on January 13, 2018, 02:50:22 PM
Quote from: Kindred on January 13, 2018, 02:24:10 PM
The mod failed to install correctly.
Edit modifications.english.php and move the ?> to the end of the file

Thank you for your help.

The theme I am currently using as a default doesn't have that file.  Is this something I can/should add?
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on January 13, 2018, 03:03:18 PM
All language files are in the default tgeme
Title: Re: MessagePreviewOnMouseOver
Post by: Obsydian on January 13, 2018, 03:24:19 PM
Looking at the file, it appears that the ?> is already at the end.  Is there something else I need to be checking, or something I'm missing?

Quote$txt['footerads_text'] = '(paste Adsense code)';
$txt['toppostads_enable'] = 'Enable AdSense at the top of a thread';
$txt['toppostads_text'] = '(paste Adsense code)';
$txt['ad_text'] = 'Advertisement</br>';


?>
Title: Re: MessagePreviewOnMouseOver
Post by: Arantor on January 13, 2018, 03:24:45 PM
Is there another one further up?
Title: Re: MessagePreviewOnMouseOver
Post by: Obsydian on January 13, 2018, 03:29:33 PM
Searched the file and I only see the ?> at the bottom.

Edit: Aha.  I fixed it in the Admin.english.php.  It was not at the end.  Thank you both for your help!
Title: Re: MessagePreviewOnMouseOver
Post by: Kindred on January 13, 2018, 03:47:09 PM
I bet it's in 2 places then
Title: Re: MessagePreviewOnMouseOver
Post by: goldenstudios on September 17, 2020, 08:40:54 AM
preview for img? in post?
Title: Re: MessagePreviewOnMouseOver
Post by: digger on September 17, 2020, 08:46:27 AM
Quote from: goldenstudios on September 17, 2020, 08:40:54 AM
preview for img? in post?
https://custom.simplemachines.org/mods/index.php?mod=2115
Title: Re: MessagePreviewOnMouseOver
Post by: goldenstudios on September 17, 2020, 08:50:50 AM
Quote from: goldenstudios on September 17, 2020, 08:40:54 AM
preview for img? in post?
work for 2.0.17?
Title: Re: MessagePreviewOnMouseOver
Post by: Dzonny on September 17, 2020, 09:53:21 AM
Yes, though it's showing a preview of first message in message index, not really sure if that's what you're looking for.
Title: Re: MessagePreviewOnMouseOver
Post by: goldenstudios on September 17, 2020, 09:56:11 AM
Quote from: Dzonny on September 17, 2020, 09:53:21 AM
Yes, though it's showing a preview of first message in message index, not really sure if that's what you're looking for.
if this is the case I will show you only the poster photo (image inserted in the first line of the test)
Title: Re: MessagePreviewOnMouseOver
Post by: 1.1Nerd on April 18, 2022, 10:46:16 AM
How can the font sioze of the preview get changed?