Advertisement:

Author Topic: MouseOver: topic preview!  (Read 191561 times)

Offline nameless

  • Jr. Member
  • **
  • Posts: 118
  • Gender: Male
    • Skate, Snow, and Surf - SF Boarders - Bringing San Francisco Bay Area boarders together
Re: MouseOver: topic preview!
« Reply #40 on: May 09, 2005, 11:50:50 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.

Offline A.M.A

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,133
  • Gender: Male
  • ..
Re: MouseOver: topic preview!
« Reply #41 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.
Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

Offline nameless

  • Jr. Member
  • **
  • Posts: 118
  • Gender: Male
    • Skate, Snow, and Surf - SF Boarders - Bringing San Francisco Bay Area boarders together
Re: MouseOver: topic preview!
« Reply #42 on: May 10, 2005, 01:44:22 PM »
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.

Offline spiros

  • Language Moderator
  • SMF Hero
  • *
  • Posts: 1,604
  • Gender: Male
  • A different point of view
    • spiros.doikas on Facebook
    • doikas on LinkedIn
    • @greektranslator on Twitter
    • Greek Translation
Re: MouseOver: topic preview!
« Reply #43 on: June 22, 2005, 09:14:26 AM »
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?

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.
« Last Edit: June 22, 2005, 09:17:09 AM by spiros »

Offline Metal_GunBlade

  • Jr. Member
  • **
  • Posts: 134
  • Gender: Male
  • Life is ours to be spent, not to be saved
Re: MouseOver: topic preview!
« Reply #44 on: July 25, 2005, 07:41:54 AM »
In MessageIndex.template.php find:

Code: [Select]
', $topic['first_post']['link'];
Replace:

Code: [Select]
<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

Offline bjp

  • Jr. Member
  • **
  • Posts: 163
Re: MouseOver: topic preview!
« Reply #45 on: August 20, 2005, 05:21:48 AM »
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>

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: MouseOver: topic preview!
« Reply #46 on: August 21, 2005, 06:27:06 AM »
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]

Offline bjp

  • Jr. Member
  • **
  • Posts: 163
Re: MouseOver: topic preview!
« Reply #47 on: August 22, 2005, 07:11:58 AM »
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.
« Last Edit: August 22, 2005, 07:24:17 AM by bjp »

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: MouseOver: topic preview!
« Reply #48 on: August 23, 2005, 02:06:03 AM »
Then use last_post instead of first_post.

-[Unknown]

Offline Elmacik

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,276
  • Gender: Male
  • = Human Draft =
    • IT Store
Re: MouseOver: topic preview!
« Reply #49 on: September 02, 2005, 11:09:21 AM »
In MessageIndex.template.php find:

Code: [Select]
', $topic['first_post']['link'];
Replace:

Code: [Select]
<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

Offline DAB Empire

  • Jr. Member
  • **
  • Posts: 240
  • Gender: Male
  • EliteRides.com
    • Night Clubs
Re: MouseOver: topic preview!
« Reply #50 on: September 16, 2005, 03:59:09 PM »
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?

Offline zoidster

  • Newbie
  • *
  • Posts: 2
Re: MouseOver: topic preview!
« Reply #51 on: September 18, 2005, 05:55:38 PM »
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?

Offline rosey

  • Jr. Member
  • **
  • Posts: 178
Re: MouseOver: topic preview!
« Reply #52 on: December 18, 2005, 03:05:18 PM »
I'm trying to apply this in 1.0.5 to the 'classic' theme and I keep getting a parse error.  I am replacing

Code: [Select]
' . $topic['first_post']['link'] . '

with

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

Offline Elmacik

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,276
  • Gender: Male
  • = Human Draft =
    • IT Store
Re: MouseOver: topic preview!
« Reply #53 on: December 18, 2005, 03:08:00 PM »
Remove the last apostroph after </span>
Home of Elmacik

Offline rosey

  • Jr. Member
  • **
  • Posts: 178
Re: MouseOver: topic preview!
« Reply #54 on: December 18, 2005, 03:41:13 PM »
thanks!

Offline kezayah

  • Jr. Member
  • **
  • Posts: 107
    • http://ze-forum.org
Re: MouseOver: topic preview!
« Reply #55 on: December 28, 2005, 09:01:57 AM »
It's not in RC1.  I never said this would work properly/well in RC1.

-[Unknown]

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

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

Offline Goudreault

  • Semi-Newbie
  • *
  • Posts: 53
Re: MouseOver: topic preview!
« Reply #56 on: December 30, 2005, 04:40:44 PM »
is there something like this for 1.1 rc1 ?

Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,590
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
Re: MouseOver: topic preview!
« Reply #57 on: December 30, 2005, 04:46:25 PM »
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

Offline Goudreault

  • Semi-Newbie
  • *
  • Posts: 53
Re: MouseOver: topic preview!
« Reply #58 on: January 06, 2006, 11:49:19 AM »
How do I adjust how much text is shown for the preview?

Offline FBI

  • Semi-Newbie
  • *
  • Posts: 98
  • Great Forum and Free! Its SMF!
Re: MouseOver: topic preview!
« Reply #59 on: January 07, 2006, 07:37:40 AM »
Work like a charm on RC2 with SAF template :)
But only at Internet Explorer & Mozilla, not Opera :(
Thanks