MouseOver: topic preview!

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

Previous topic - Next topic

JayBachatero

The Recent.template.php should handle all of that :)
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

rosey

in my recent.template.php, the only line with [first_post][link] in it is this one:

' , $topic['is_sticky'] && !empty($settings['seperate_sticky_lock']) ? '<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['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" /></a> <span class="smalltext">', $topic['pages'], '


but if I use that line to put the preview stuff in, it messes up any sticky threads that show in the recent threads - it puts the preview line right there on top of the thread topic...  I really want to make this work with the 'view unread posts since last visit' feature...

TinaCat


Rosey, try this code.
I use this code in my forum.


<td class="windowbg' , $topic['is_sticky'] && !empty($settings['seperate_sticky_lock']) ? '3' : '' , '" width="48%" valign="middle" title="', $topic['first_post']['preview'], '">' , $topic['is_locked'] && !empty($settings['seperate_sticky_lock']) ? '
<img src="' . $settings['images_url'] . '/icons/quick_lock.gif" align="right" alt="" style="margin: 0;" />' : '' , $topic['is_sticky'] && !empty($settings['seperate_sticky_lock']) ? '
<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['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" /></a>
hxxp:www.justusers.net/forums/index.php [nonactive]

True Knight

I think my code has been modified by another Mod....how can I add the code I need? Here's my code.

', $topic['first_post']['link'], ' ', $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>


How do I edit this to use the mouseover feature...I tried the mod but it didn't fix it.

Thanks

TheGamer

I cannot get this to work in 1.1 RC2. Please help!

JayBachatero

There is a mod for this.  Do a search in the mod site.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

JustJen

HELP! I applied the mod as described on pg 1 and it works, but my table is now out of allignment.

Here's a visual.

snork13

Quote from: Ajen on August 25, 2006, 12:49:12 PM
HELP! I applied the mod as described on pg 1 and it works, but my table is now out of allignment.

Here's a visual.


I don't know how the colspan got messed up, but you could undo the changes made and try the mod link below via the package manager. It looks like your using a custom theme, so check the mod install on the default theme first, then you can make the same changes to your custom theme.

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


-Snork13
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

JustJen

Actually, it's the classic theme. I undid the changes and now have bigger text. Ugh.

snork13

Quote from: Ajen on August 25, 2006, 01:31:05 PM
Actually, it's the classic theme. I undid the changes and now have bigger text. Ugh.
if you no other modifications, then just upload the original file to your classic theme, and try it again...
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

realdeal

I can't get this to work!!! I am using 1.1 RC3.

JustJen

I can get it to work in any theme except the one I'm using-YaBB Classic. Why's that?  ???

snork13

Quote from: Ajen on September 08, 2006, 08:27:15 AM
I can get it to work in any theme except the one I'm using-YaBB Classic. Why's that?  ???

the mod only installs on the default smf theme, you will need to install on your custom theme manually. check out the modification xml.

-Snork13
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

snork13

Quote from: realdeal on September 07, 2006, 08:07:22 PM
I can't get this to work!!! I am using 1.1 RC3.

doesn't help me tech you at all. i suspect you have another mod installed or are not using the default theme.

-Snork13
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

JustJen

Quote from: snork13 on September 08, 2006, 05:49:57 PM
Quote from: Ajen on September 08, 2006, 08:27:15 AM
I can get it to work in any theme except the one I'm using-YaBB Classic. Why's that?  ???

the mod only installs on the default smf theme, you will need to install on your custom theme manually. check out the modification xml.

-Snork13
okay, but why would it then work on another downloaded theme?

danskmacabre

Quote from: Ajen on September 08, 2006, 10:00:49 PM
Quote from: snork13 on September 08, 2006, 05:49:57 PM
Quote from: Ajen on September 08, 2006, 08:27:15 AM
I can get it to work in any theme except the one I'm using-YaBB Classic. Why's that?  ???

the mod only installs on the default smf theme, you will need to install on your custom theme manually. check out the modification xml.

-Snork13
okay, but why would it then work on another downloaded theme?

One reason why it might work on another theme is if the other theme doesn't use a file that the mod is coded into (Meaning it might not have costom code using the files hte mod changes).
If t hat is the case, the other theme will go back to the default theme files and use them, which have the mod installed.

what you need to do is find out which files are modded (check out the mod file ) and insert the new code (or change your existing code, this can be sometimes tricky depending on how complex your theme is).


Website: cantref.org.uk chaos8.com | SmF version: 2 | Portal software: PortaMx 1.3 | Default theme: Coal Black

JustJen


t.osberger

Hello!

I was reading this thread, downloaded the mod and installed it.  It shows in the list that it is installed.  I'll just bet the reason that is not working is that I am using an alternate theme, as opposed to the default (actually using v1.1.1 - Ancient_and_Rusty).

So, to anyone who can assist, I would like to know how to make this work with the theme I currently using (or all themes - that would work too).  Such a nice feature I would hate to find that we can't use without using the default theme.

I look forward to any form of assistance.



waggles

Very nice. Works almost too well.

perro88

#99
I´m using smf 1.1.3 with tinyportal but this don´t work. on the admin section the option to show the max numbers of chars is showed but when i hover a topic nothing is showed.I tried in more than one smf 1.1.3 and didn´t worked in both. it install with any errors and I give it a look to the code changed and all seems in good place but nothing showed.
I tried on the theme I have that is a copy of the default and didn´t even have modified files by the mod and tried on the default and didn´t work either. Any idea about this? would be very apreciated

Advertisement: