News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

MessagePreviewOnMouseOver

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

Previous topic - Next topic

ディン1031

#220
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
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

bork

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?

unrelenting

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.

bork

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.

ディン1031

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
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

bork


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

unrelenting

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.

Sarge

For those who want to install this mod on SMF 1.1.5 and don't want to use the version emulation trick, follow this procedure:

1. Download the mod package from the Mod Site 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".

    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

Sarge

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.

    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

bork


jmil

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

searchgr

There is no option to uninstall the mod. Only to delete it. Is it normal?

searchgr

I have deleted the files but the mod hasn't been uninstalled. How can i uninstall it manually?

Kindred

(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
Сл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."

linette97

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, follow this procedure:

1. Download the mod package from the Mod Site 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!
Watch Documentaries Online!


Yesterday is history,
Tomorrow is a mystery,
Today is a gift,
That's why it's called the Present.

Dr. Jay Sin

#235
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!

hw610

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"
**Thanks for all the help but we have moved to vB.

Asshandler

Any word on whether or not this will work on 1.1.6?
The only thing necessary for the triumph of evil is for good men to do nothing.

MothMan

It works perfectly fine on 1.1.6 , just needed to add 1.1.6 support to package-info.xml

stingerman

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?

Advertisement: