News:

Wondering if this will always be free?  See why free is better.

Main Menu

MouseOver: topic preview!

Started by A.M.A, October 15, 2004, 02:33:24 PM

Previous topic - Next topic

nameless

Quote from: [Unknown] on May 09, 2005, 11:03:03 PM
Provide a link to the forum with it enabled, please.

-[Unknown]

it's on test server using loop back. Sorry no url. "Enabled?" Do you mean that I have to "enable" it in the "Admin" section?

Skate, Snow, and Surf - SF Boarders - Bringing San Francisco Bay Area boarders together.

A.M.A

No .. the code should be placed by modifying MessageIndex.template.php.

So when you hover your mouse around a topic it does not show a tool tip! What browser are you using and could you post the modification that you made.
Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

nameless

Quote from: A.M.A on May 10, 2005, 06:43:12 AM
No .. the code should be placed by modifying MessageIndex.template.php.

So when you hover your mouse around a topic it does not show a tool tip! What browser are you using and could you post the modification that you made.

Hmmm, it didn't work on my test server and I tried it on live and it works. Weird ::) I only have default and Themis theme and I modified the files in both themes. Must be the Windows test server. LOL.


Skate, Snow, and Surf - SF Boarders - Bringing San Francisco Bay Area boarders together.

spiros

#43
I checked out your site http://sixkillerbunnies.com/forum but I only saw the standard topic previes. Could you please give us a link and perhaps a few words on how you got it working?

Quote from: Louis (CSpotkill) on March 06, 2005, 02:01:23 AM
Oh bleh. Just insert a variation of the nicetitles javascript (or something similar) inside the head of your index.template.php file, so you can have a multi-line rich preview (including images) dynamically made from links with titles (or if you modify it right, from spans with titles, hehe.)

I already did something similar, a week ago. Perhaps I'll finish it up as a mod.

Metal_GunBlade

Quote from: A.M.A on October 15, 2004, 02:33:24 PM
In MessageIndex.template.php find:

', $topic['first_post']['link'];

Replace:

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

You must have 1.0 RC1 or higher to do this.

By: [Unknown]
Well, I'm using SMF 1.1 Beta 3 and this Mod worked perfectly...
Thanks...
Life is ours to be spent, not to be saved

bjp

I try to put this in recent template for 1.3 beta, but it's too difficult. In fact , this sould appear when mouse over new button

Here is the original code :
<a href="' . $scripturl . '?topic=' . $topic['id'] . '.from' . $topic['newtime'] . ';topicseen#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt[302] . '" border="0" /></a>

[Unknown]

Find:

<a href="' . $scripturl . '?topic=' . $topic['id'] . '.from' . $topic['newtime'] . ';topicseen#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt[302] . '" border="0" /></a>

Replace:

<a href="' . $scripturl . '?topic=' . $topic['id'] . '.from' . $topic['newtime'] . ';topicseen#new" title="', $topic['first_post']['preview'], '"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt[302] . '" border="0" /></a>

-[Unknown]

bjp

#47
Hi
There is no error but it's not working. I found (one time) the solution :

' . $topic['first_post']['link'] . ' <a href="' . $scripturl . '?topic=' . $topic['id'] . '.from' . $topic['newtime'] . ';topicseen#new" title="', $topic['first_post']['preview'], '"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif"  border="0" /></a> <span class="smalltext">' . $topic['pages'] . '

The only probleme is that it shows the firts message of the topic, not the last answer.

[Unknown]

Then use last_post instead of first_post.

-[Unknown]

Elmacik

Quote from: Metal_GunBlade on July 25, 2005, 07:41:54 AM
Quote from: A.M.A on October 15, 2004, 02:33:24 PM
In MessageIndex.template.php find:

', $topic['first_post']['link'];

Replace:

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

You must have 1.0 RC1 or higher to do this.

By: [Unknown]
Well, I'm using SMF 1.1 Beta 3 and this Mod worked perfectly...
Thanks...



how did you make it work, i couldnt find the code to be replaced in MessageIndex.template.php
anyone to tell how to make it work with 1.1 beta 3?
Home of Elmacik

DAB Empire

Works in the Message Index perfect.  Thanks.

I am unable to get Recent to work though.  How could this be accomplished with the Board Index as well?

zoidster

I am in 1.0.5, using Themis template, first replaced this code by hand in both the Themis MessageIndex.template and the default theme MessageIndex.template -- I only got the last part of the message in the mouseover.

Then I installed FasterParsecode 1.09 and then Preview Seperator 1.01 via the Package Manager. Nothing changed, I only get last part (last half?) of the message with mouseover. This all is consistant whether I'm using the Themis or the default template. Replied to ModMaker,  was redirected to this topic (again), and have read it 4 times now... am I missing something?
A little embarrassing for setting up a forum to have something half work.

Any advice anyone?
Any more java script links that might be better?

rosey

I'm trying to apply this in 1.0.5 to the 'classic' theme and I keep getting a parse error.  I am replacing

' . $topic['first_post']['link'] . '


with

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

Elmacik

Remove the last apostroph after </span>
Home of Elmacik

rosey


kezayah

Quote from: [Unknown] on October 18, 2004, 12:28:32 AM
It's not in RC1.  I never said this would work properly/well in RC1.

-[Unknown]

search in messageindex.template.php
<a href="', $topic['new_href'], '"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" border="0" /></a>';

echo '

add after
<span class="x-smalltext"><br />', $topic['first_post']['preview'], '</span><br />

Goudreault

is there something like this for 1.1 rc1 ?

Owdy

Yes, read first post in this topic.
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Goudreault

How do I adjust how much text is shown for the preview?

FBI

Work like a charm on RC2 with SAF template :)
But only at Internet Explorer & Mozilla, not Opera :(
Thanks

Advertisement: