[Request] Mouseover Tooltip for pictures in forumdisplay_thread
Jumper Offline
Member
***
Posts: 75
Joined: Aug 2010
Post: #15
RE: [Request] Mouseover Tooltip for pictures in forumdisplay_thread
@ZiNgA BuRgA
yes i know. thx Smile

So, at first a big thank you to RateU Yes

only with you i found the correct way to solve my problem.
i use now a javascript version and here now what to do, if another user will build in a mouseover.

Info: you need the direct-links (hotlinks) to the picture!
(i use Picture-Hosts in my forum like imageshack etc.)
all funktions like inline-titel-moderation in forum-threadview etc. are
working fine after modification! and don´t forget to save original templates
before you change something.

1. Download the wz_tooltip.zip:
http://www.walterzorn.de/en/tooltip/tool...http://www.walterzorn.de/en/tooltip/tooltip_e.ht

2. Create a folder in your forum-root named "tooltip"
3. Upload the zip-content (3 .js-files)  into the new folder.
4. Create a Custom Thread Fields with this settings:

Title: Picture as Mouseover
Key: pref_pic2
Description: Give a short description about the file.
Applicable Forums: 'select the forums you want'
Input Field Type: Textbox
Display Format:

HTML Code
<img src=\'{VALUE}\' width=\'300\' height=\'100%\'>

(modify the width and height as you need)

5. find this code in your templates forumdisplay_thread & search_results_threads_thread

HTML Code
<span>{$prefix} {$gotounread}<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a>{$thread['multipage']}</span>


replace it with:

HTML Code
<span>{$prefix} {$gotounread}<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}" onmouseover="Tip('{$GLOBALS['threadfields']['pref_pic2']}')" onmouseout="UnTip()">{$thread['subject']}</a>{$thread['multipage']}</span>


6. add the following code in your header template:

HTML Code
<script type="text/javascript" src="tooltip/wz_tooltip.js"></script>



that´s all Wink

thank you again RateU and sry, that i make so much work for you and now take another solution,
but this way looks better. really nice mouseover now Wink

(This post was last modified: 09-19-2011 09:19 PM by Jumper.)
09-19-2011 11:26 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: [Request] Mouseover Tooltip for pictures in forumdisplay_thread - Jumper - 09-19-2011 11:26 AM

 Standard Tools
Forum Jump: