News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

MessagePreviewOnMouseOver

Started by snork13, February 03, 2006, 12:39:52 AM

Previous topic - Next topic

Marcus Forsberg

Could u help me install this on Kelo-lt?

Manuelbat

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.
hxxp:"http://simplytux.jbstylized.com" [nonactive]

Sarge

Manuelbat, does the mod functionality appear when using the default theme (SMF Default Theme - Core)?

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

Manuelbat

#203
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?
hxxp:"http://simplytux.jbstylized.com" [nonactive]

sorosh1

#204
can you make this one compatible with smf 1.1.5! Please! I really need this one!
Thanks!

chrisb

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 .

shanniberry

Yes, PLEASE make this compatible with 1.1.5!!!!  It's the most requested feature on my board!
SMF 1.1.5

fangweile

I used this mod in my dilber mc,  smf 1.1.5 and works great.

shanniberry

#208
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!
SMF 1.1.5

shanniberry

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!
SMF 1.1.5

fangweile

Make sure the you added and modified the required codes in your dilber mc files.

MessageIndex.template.php

shanniberry

I did...the code it said to replace didn't exist though and when I just added it I got errors.  *sigh*
SMF 1.1.5

Kindred

as with any theme other than the default....   you may have to tweak the code to fit into your own theme correctly.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

shanniberry

#213
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...
SMF 1.1.5

Kindred

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....
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

shanniberry

#215
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?!   >:(
SMF 1.1.5

fangweile

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!)





Sarge

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!

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

lightening

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 ;) )

shanniberry

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 [nofollow]

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.    OMG, do you know how much time I could have saved?    Anyhow, it worked!
SMF 1.1.5

Advertisement: