Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Özgür on January 15, 2009, 01:42:10 PM

Title: Word Description BBC
Post by: Özgür on January 15, 2009, 01:42:10 PM
Word Description BBC
Created by Özgür | ЯocKayseri (http://www.simplemachines.org/community/index.php?action=profile;u=124605)
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1593) | Demo (http://demo.mnyk.net/index.php?topic=16.0)

Compatibility For SMF 2.0 and 1.1.7
You can add description for words.. Like alt=""
Usage : [desc=Description is here...]word[/desc]

Demo : http://demo.mnyk.net/index.php?topic=16.0

Please after install mods clear your browser cache.

Version 1.0
+ Initial Release
Version 1.1
+ No need edit your theme files now.
Version 1.2
! Fixed security bug.
if you're not using default theme, open worddescriptionBBC.zip and copy desc.gif to yourtheme/images/bbc


Türkçe
2.0 ve 1.1.x Uyumludur
Kelimelere Açıklama Ekleyebilirsiniz. Linklerin üzerine gelince çıkan yazılar gibi.
[desc=Açıklama Burada]kelime[/desc]
Olarak kullanabilirsiniz.
Title: Re: Word Description BBC
Post by: jonnyblue on January 15, 2009, 04:37:52 PM
Is there anything else that I have to install to make it work?
Title: Re: Word Description BBC
Post by: Özgür on January 15, 2009, 04:54:53 PM
Quote from: jonnyblue on January 15, 2009, 04:37:52 PM
Is there anything else that I have to install to make it work?

if you're using default theme , unneeded anything. But if you're using other theme ;


find the line index.template.php

echo $context['html_headers'], '

add after

<script type="text/javascript" language="javascript" src="', $settings['default_theme_url'], '/tooltip.js">
Title: Re: Word Description BBC
Post by: jonnyblue on January 15, 2009, 05:01:58 PM
Thanks, but still not working. I didn't have tooltip.js in the default location so I copied it from your demo site. But the tooltip still isn't showing. I wonder what's wrong.
Title: Re: Word Description BBC
Post by: Özgür on January 15, 2009, 05:13:30 PM
Quote from: jonnyblue on January 15, 2009, 05:01:58 PM
Thanks, but still not working. I didn't have tooltip.js in the default location so I copied it from your demo site. But the tooltip still isn't showing. I wonder what's wrong.

can you send me your site url (in pm) or any demo topic?
Title: Re: Word Description BBC
Post by: TW1ST3D on January 15, 2009, 10:18:04 PM
Cool mod.............in theory at least....................too bad it doesn't work.

Maybe if you post explicit instructions on how to use the tags and the list function.............
Title: Re: Word Description BBC
Post by: Özgür on January 15, 2009, 11:02:26 PM
Quote from: TW1ST3D on January 15, 2009, 10:18:04 PM
Cool mod.............in theory at least....................too bad it doesn't work.

"in theory at least". What?  Are you kidding?

Can you browser cache clean and refresh page?  Any your topic url ?

Im install fresh smf 1.1.x and install mod. no error no fault. This is work fine me.

I updated first post. Please look and try again.
Title: Re: Word Description BBC
Post by: LinK187 on January 15, 2009, 11:26:26 PM
It works fine in ff3, except on my theme nothing shows up, just the word. I made the modification to my index.template.php as you said. Also verified all files were in the proper location.

In ie7 in it produces the error in the attached screenshot and then when you press ok it loads the "this page can't be displayed" error.
Title: Re: Word Description BBC
Post by: martrek on January 16, 2009, 03:12:39 AM
Default works fine, but in my theme i can't do it works... :(
Title: Re: Word Description BBC
Post by: Özgür on January 16, 2009, 10:02:56 AM
@martrek
Can you upload your style.css and index.template.php? url.. any url..
@LinK187
Please send any url to demo topic. I can't help you this way.
Im try the my site  : http://www.rockayseri.net/rk/turk-rock-and-metal/ozturk/ this is work fine me. I can't understand you. the error not showing me, im try ff, opera, chrome, ie6,  ie7.if you want screen shot, i can send you.
Title: Re: Word Description BBC
Post by: LinK187 on January 16, 2009, 10:11:46 AM
Quote from: Özgür | ЯocKayseri on January 16, 2009, 10:02:56 AM
@martrek
Can you upload your style.css and index.template.php? url.. any url..
@LinK187
Please send any url to demo topic. I can't help you this way.
Im try the my site  : http://www.rockayseri.net/rk/turk-rock-and-metal/ozturk/ this is work fine me. I can't understand you. the error not showing me, im try ff, opera, chrome, ie6,  ie7.if you want screen shot, i can send you.

I'll pm you a link.
Title: Re: Word Description BBC
Post by: LinK187 on January 16, 2009, 10:32:47 AM
Also it post 3 messages for some reason instead of one post, when i delete one, they all go.

I think i will just remove this mod.
Title: Re: Word Description BBC
Post by: martrek on January 16, 2009, 10:35:13 AM
I've sent my files by pm.

My url: http://www.forosdelmisterio.es

Thanks.
Title: Re: Word Description BBC
Post by: Yağız... on January 16, 2009, 10:55:46 AM
Quote from: LinK187 on January 16, 2009, 10:32:47 AM
Also it post 3 messages for some reason instead of one post, when i delete one, they all go.

I think i will just remove this mod.
This mod adds just a BBcode. It doesn't touch something from db nor from other files.

Quote from: martrek on January 16, 2009, 10:35:13 AM
I've sent my files by pm.

My url: http://www.forosdelmisterio.es

Thanks.
Give a post link that uses this mod.
Title: Re: Word Description BBC
Post by: martrek on January 16, 2009, 11:01:05 AM
Quote from: Yağız on January 16, 2009, 10:55:46 AM
Give a post link that uses this mod.

For example, this: click here (http://www.forosdelmisterio.es/foro/index.php?topic=672.msg20077#msg20077)

My message is all with this tag "Bienvenido rcabrera69, un placer que hayas decidido compartir con nosotros ese primer comentario en los foros. Es un mundo en el que recomiendo a todo el mundo participe, que nadie se come a nadie"
Title: Re: Word Description BBC
Post by: Özgür on January 16, 2009, 11:02:34 AM
Quote from: LinK187 on January 16, 2009, 10:11:46 AM
Quote from: Özgür | ЯocKayseri on January 16, 2009, 10:02:56 AM
@martrek
Can you upload your style.css and index.template.php? url.. any url..
@LinK187
Please send any url to demo topic. I can't help you this way.
Im try the my site  : http://www.rockayseri.net/rk/turk-rock-and-metal/ozturk/ this is work fine me. I can't understand you. the error not showing me, im try ff, opera, chrome, ie6,  ie7.if you want screen shot, i can send you.

I'll pm you a link.

open your style.css and add

#text {margin:50px auto; width:500px}
.hotspot {color:#900; padding-bottom:1px; border-bottom:1px dotted #900; cursor:pointer}
#tt {position:absolute; display:block; background:url(images/tt_left.gif) top left no-repeat}
#tttop {display:block; height:5px; margin-left:5px; background:url(images/tt_top.gif) top right no-repeat; overflow:hidden}
#ttcont {font-size:11px; display:block; padding:2px 12px 3px 7px; margin-left:5px; background:#666; color:#FFF}
#ttbot {display:block; height:5px; margin-left:5px; background:url(images/tt_bottom.gif) top right no-repeat; overflow:hidden}

Title: Re: Word Description BBC
Post by: Yağız... on January 16, 2009, 11:09:35 AM
Quote from: martrek on January 16, 2009, 11:01:05 AM
Quote from: Yağız on January 16, 2009, 10:55:46 AM
Give a post link that uses this mod.

For example, this: click here (http://www.forosdelmisterio.es/foro/index.php?topic=672.msg20077#msg20077)

My message is all with this tag "Bienvenido rcabrera69, un placer que hayas decidido compartir con nosotros ese primer comentario en los foros. Es un mundo en el que recomiendo a todo el mundo participe, que nadie se come a nadie"
Find in your ..Themes/{your_theme}index.template.php file:
echo $context['html_headers'], '
Add after:
<script type="text/javascript" language="javascript" src="', $settings['default_theme_url'], '/tooltip.js"></script>
Title: Re: Word Description BBC
Post by: rölyef on January 16, 2009, 11:10:40 AM
Nice mod.
Congratulations.
Title: Re: Word Description BBC
Post by: Yağız... on January 16, 2009, 11:14:21 AM
Fixed an XHTML error. Just find in your ../Themes/{your_theme}/index.template.php:
<script type="text/javascript" language="javascript" src="', $settings['default_theme_url'], '/tooltip.js">
Replace with:
<script type="text/javascript" language="javascript" src="', $settings['default_theme_url'], '/tooltip.js"></script>
Title: Re: Word Description BBC
Post by: martrek on January 16, 2009, 11:16:06 AM
Quote from: Yağız on January 16, 2009, 11:09:35 AM
Quote from: martrek on January 16, 2009, 11:01:05 AM
Quote from: Yağız on January 16, 2009, 10:55:46 AM
Give a post link that uses this mod.

For example, this: click here (http://www.forosdelmisterio.es/foro/index.php?topic=672.msg20077#msg20077)

My message is all with this tag "Bienvenido rcabrera69, un placer que hayas decidido compartir con nosotros ese primer comentario en los foros. Es un mundo en el que recomiendo a todo el mundo participe, que nadie se come a nadie"
Find in your ..Themes/{your_theme}index.template.php file:
echo $context['html_headers'], '
Add after:
<script type="text/javascript" language="javascript" src="', $settings['default_theme_url'], '/tooltip.js"></script>

I reupload with this and it doesn't work :(

.js is uploaded in the correct path.
Title: Re: Word Description BBC
Post by: martrek on January 16, 2009, 11:45:03 AM
Özgür | ЯocKayseri thanks a lot, it works fine now, i forget edit my template in mkportal and with it works perfect!
Title: Re: Word Description BBC
Post by: Özgür on January 16, 2009, 11:46:40 AM
Quote from: martrek on January 16, 2009, 11:45:03 AM
Özgür | ЯocKayseri thanks a lot, it works fine now, i forget edit my template in mkportal and with it works perfect!

You're welcome =)
Title: Re: Word Description BBC
Post by: arba on January 16, 2009, 02:22:50 PM
Great mod  :)
I also have problem with IE (operation aborted...) I find that this problem arise when page are not loaded completly but you put the cursor on wordtag. When the page are loaded completly then there is no problem with IE, no operation aborted... problem.
Can that be fixed?
Title: Re: Word Description BBC
Post by: Özgür on January 16, 2009, 03:00:04 PM
Quote from: arba on January 16, 2009, 02:22:50 PM
Great mod  :)
I also have problem with IE (operation aborted...) I find that this problem arise when page are not loaded completly but you put the cursor on wordtag. When the page are loaded completly then there is no problem with IE, no operation aborted... problem.
Can that be fixed?

Thanks for find it. my site is closed now. Because "botnet".. :( I can't try now.
i try fix in 2-3 days.
Title: Re: Word Description BBC
Post by: Minare on January 16, 2009, 06:41:45 PM
Great mod dudes , thanks

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Ftokihasanaga.com%2Fimages%2Fstories%2Falkis.gif&hash=5cc99faa856e3ab369f6bc6086dda733d874d0b2)


By the way, It doesn't work in firefox.
Title: Re: Word Description BBC
Post by: LinK187 on January 16, 2009, 09:49:20 PM
Quote from: arba on January 16, 2009, 02:22:50 PM
Great mod  :)
I also have problem with IE (operation aborted...) I find that this problem arise when page are not loaded completly but you put the cursor on wordtag. When the page are loaded completly then there is no problem with IE, no operation aborted... problem.
Can that be fixed?

You have to manually modify the style.css in your theme. I had the same problem.
Title: Re: Word Description BBC
Post by: Minare on January 16, 2009, 10:03:22 PM
Quote from: LinK187 on January 16, 2009, 09:49:20 PM
Quote from: arba on January 16, 2009, 02:22:50 PM
Great mod  :)
I also have problem with IE (operation aborted...) I find that this problem arise when page are not loaded completly but you put the cursor on wordtag. When the page are loaded completly then there is no problem with IE, no operation aborted... problem.
Can that be fixed?

You have to manually modify the style.css in your theme. I had the same problem.

Modifying by doing what ?
Title: Re: Word Description BBC
Post by: LinK187 on January 16, 2009, 10:05:00 PM
Quote from: Minare on January 16, 2009, 10:03:22 PM
Quote from: LinK187 on January 16, 2009, 09:49:20 PM
Quote from: arba on January 16, 2009, 02:22:50 PM
Great mod  :)
I also have problem with IE (operation aborted...) I find that this problem arise when page are not loaded completly but you put the cursor on wordtag. When the page are loaded completly then there is no problem with IE, no operation aborted... problem.
Can that be fixed?

You have to manually modify the style.css in your theme. I had the same problem.

Modifying by doing what ?

Add this to the very top:
#text {margin:50px auto; width:500px}
.hotspot {color:#900; padding-bottom:1px; border-bottom:1px dotted #900; cursor:pointer}
#tt {position:absolute; display:block; background:url(images/tt_left.gif) top left no-repeat}
#tttop {display:block; height:5px; margin-left:5px; background:url(images/tt_top.gif) top right no-repeat; overflow:hidden}
#ttcont {font-size:11px; display:block; padding:2px 12px 3px 7px; margin-left:5px; background:#666; color:#FFF}
#ttbot {display:block; height:5px; margin-left:5px; background:url(images/tt_bottom.gif) top right no-repeat; overflow:hidden}
Title: Re: Word Description BBC
Post by: Yağız... on January 16, 2009, 10:16:48 PM
I've uploaded new version. With this, you don't need to modify your themes' files.
Title: Re: Word Description BBC
Post by: LinK187 on January 16, 2009, 10:25:49 PM
Quote from: Yağız on January 16, 2009, 10:16:48 PM
I've uploaded new version. With this, you don't need to modify your themes' files.

/me slaps forehead! :P

Well i'm currently just doing a test forum, when we go live I'll use the new one :P
Title: Re: Word Description BBC
Post by: arba on January 17, 2009, 05:12:02 AM
Quote from: LinK187 on January 16, 2009, 10:05:00 PM
Quote from: Minare on January 16, 2009, 10:03:22 PM
Quote from: LinK187 on January 16, 2009, 09:49:20 PM
Quote from: arba on January 16, 2009, 02:22:50 PM
Great mod  :)
I also have problem with IE (operation aborted...) I find that this problem arise when page are not loaded completly but you put the cursor on wordtag. When the page are loaded completly then there is no problem with IE, no operation aborted... problem.
Can that be fixed?

You have to manually modify the style.css in your theme. I had the same problem.

Modifying by doing what ?

Add this to the very top:
#text {margin:50px auto; width:500px}
.hotspot {color:#900; padding-bottom:1px; border-bottom:1px dotted #900; cursor:pointer}
#tt {position:absolute; display:block; background:url(images/tt_left.gif) top left no-repeat}
#tttop {display:block; height:5px; margin-left:5px; background:url(images/tt_top.gif) top right no-repeat; overflow:hidden}
#ttcont {font-size:11px; display:block; padding:2px 12px 3px 7px; margin-left:5px; background:#666; color:#FFF}
#ttbot {display:block; height:5px; margin-left:5px; background:url(images/tt_bottom.gif) top right no-repeat; overflow:hidden}


I edited style.css but same issue, if page are not loaded completly moving cursor to wordtag crash the IE.
Title: Re: Word Description BBC
Post by: Yağız... on January 17, 2009, 05:18:22 AM
@arba;
Uninstall the old version and install the new one.
Title: Re: Word Description BBC
Post by: arba on January 17, 2009, 05:35:15 AM
Quote from: Yağız on January 17, 2009, 05:18:22 AM
@arba;
Uninstall the old version and install the new one.

Thank you Yagiz, but still I have same issue with IE. Do you have this problem with IE as well? You do not get operation aborted issue if your page are not loaded completly when you check the word description?

Title: Re: Word Description BBC
Post by: arba on January 17, 2009, 05:40:06 AM
I checked the demo : http://demo.rockayseri.net/index.php?topic=3.0 (http://demo.rockayseri.net/index.php?topic=3.0)
Same problem with IE , ie crash if page are not loaded completly.
Title: Re: Word Description BBC
Post by: spoontosser on January 17, 2009, 12:41:02 PM
Great mod! Works great on my forum on both IE7 and FF.

The only question I have is can the color of the red word and the background of the dialog bubble be changed easily? Not to concerned about the background bubble, but would like to change the red to something else.

CSS or elsewhere in my forum files?
Title: Re: Word Description BBC
Post by: Özgür on January 17, 2009, 01:07:30 PM
This is not easily =)

./Sources/Subs.php and find

#ttcont {font-size:11px; display:block; padding:2px 12px 3px 7px; margin-left:5px; background:#666; color:#FFF}

chancge : #666 to your bubblecolors and #FFF your text color.

change
"tt_left.gif" in "./Themes/default/images".
"tt_top.gif" in "./Themes/default/images".
"tt_bottom.gif" in "./Themes/default/images".

to your images.

if you can wait 2.0 version, i can make selectable this.
Title: Re: Word Description BBC
Post by: LinK187 on January 17, 2009, 02:59:35 PM
Quote from: arba on January 17, 2009, 05:40:06 AM
I checked the demo : http://demo.rockayseri.net/index.php?topic=3.0 (http://demo.rockayseri.net/index.php?topic=3.0)
Same problem with IE , ie crash if page are not loaded completly.

Is your ie7 fully updated? The addition to my style.css fixed the ie crash for me.
Title: Re: Word Description BBC
Post by: arba on January 17, 2009, 04:41:13 PM
Quote from: LinK187 on January 17, 2009, 02:59:35 PM
Quote from: arba on January 17, 2009, 05:40:06 AM
I checked the demo : http://demo.rockayseri.net/index.php?topic=3.0 (http://demo.rockayseri.net/index.php?topic=3.0)
Same problem with IE , ie crash if page are not loaded completly.

Is your ie7 fully updated? The addition to my style.css fixed the ie crash for me.

I hope it is, IE7 get updated yesterday. Do you try worddescription BBC till page are in loading stage? As I wrote, I dont have problem when page are completly loaded, then this mod work flawlesly. Of course it could be something with my IE,
Title: Re: Word Description BBC
Post by: LinK187 on January 17, 2009, 05:19:39 PM
Quote from: arba on January 17, 2009, 04:41:13 PM
Quote from: LinK187 on January 17, 2009, 02:59:35 PM
Quote from: arba on January 17, 2009, 05:40:06 AM
I checked the demo : http://demo.rockayseri.net/index.php?topic=3.0 (http://demo.rockayseri.net/index.php?topic=3.0)
Same problem with IE , ie crash if page are not loaded completly.

Is your ie7 fully updated? The addition to my style.css fixed the ie crash for me.

I hope it is, IE7 get updated yesterday. Do you try worddescription BBC till page are in loading stage? As I wrote, I dont have problem when page are completly loaded, then this mod work flawlesly. Of course it could be something with my IE,

perhaps you should try the new version.
Title: Re: Word Description BBC
Post by: arba on January 17, 2009, 05:21:28 PM
New version of Internet Expolorer or WordDescription BBC?
I have new version of WD BBC, instaled today in the morning.
Title: Re: Word Description BBC
Post by: Minare on January 17, 2009, 05:30:17 PM
The new version is fine with mozilla. Thanks
Title: Re: Word Description BBC
Post by: LinK187 on January 17, 2009, 05:37:48 PM
Quote from: arba on January 17, 2009, 05:21:28 PM
New version of Internet Expolorer or WordDescription BBC?
I have new version of WD BBC, instaled today in the morning.

wd bbc
Title: Re: Word Description BBC
Post by: chinaren on January 19, 2009, 08:48:58 AM
This one works well!  It's proving very popular on my forum!  Good job!

I've tested it on Opera, Firefox and Chrome, works on all. 

Forum is SMF 1.1.7
Title: Re: Word Description BBC
Post by: spoontosser on January 19, 2009, 08:59:49 AM
Quoteif you can wait 2.0 version, i can make selectable this.

Perfect.I can wait...thanks! :D
Title: Re: Word Description BBC
Post by: Filipina on January 20, 2009, 10:31:32 AM
Love the Mod but it crashed on IE... Maybe if you have the most current version IE it will not crash, but how many visitors are always up to date with IE?  I am at work at it aborts.  Unless I missed something on the other posts but I read them :)
Title: Re: Word Description BBC
Post by: Yağız... on January 20, 2009, 11:49:41 AM
I have IE6 installed on my pc and I have no error.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg232.imageshack.us%2Fimg232%2F4110%2F61368801gq2.gif&hash=f275c574baff773e948c3545ca9b26c0d45484b3)
Title: Re: Word Description BBC
Post by: arba on January 20, 2009, 11:55:50 AM
Quote from: Yağız on January 20, 2009, 11:49:41 AM
I have IE6 installed on my pc and I have no error.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg232.imageshack.us%2Fimg232%2F4110%2F61368801gq2.gif&hash=f275c574baff773e948c3545ca9b26c0d45484b3)

Yagiz do you check this mod when the page are not loaded completly?
Sorry to be anoying but as I told I get problem with this mod only during page loading, when the page is loaded completly then everything is fine.
I use this mod because it is great mod, anyway it will be great if, in case error what I reported is true, that this issue get fixed.
Title: Re: Word Description BBC
Post by: Yağız... on January 20, 2009, 12:16:27 PM
Can you give me a link please?
Title: Re: Word Description BBC
Post by: jayc7176 on January 21, 2009, 08:32:21 PM
Very nice Mod! Thank You.
Title: Re: Word Description BBC
Post by: arba on January 22, 2009, 06:01:28 PM
Quote from: Yağız on January 20, 2009, 12:16:27 PM
Can you give me a link please?

Sorry, did not see your post, here is the link to the post with word BBC : http://www.elegancereef.com/smf/index.php?topic=6812.msg62151#msg62151 (http://www.elegancereef.com/smf/index.php?topic=6812.msg62151#msg62151)
Title: Re: Word Description BBC
Post by: Marcus Forsberg on January 30, 2009, 11:21:43 AM
Swedish translation:


$txt['desc'] = 'Lägg till ordbeskrivning';
Title: Re: Word Description BBC
Post by: ttuu on February 12, 2009, 10:01:51 AM
my site is in RTL i want the "tooltip discreption" can be show left in word.
Is that possible?
Title: Re: Word Description BBC
Post by: Özgür on February 12, 2009, 10:29:05 AM
@ttuu ,

What are you using smf version ?

@Nas ,

Thank you! I will update really soon.
Title: Re: Word Description BBC
Post by: ttuu on February 12, 2009, 10:31:56 AM
1.1.7
Title: Re: Word Description BBC
Post by: Özgür on February 12, 2009, 10:36:46 AM
I don't test but yo can try this ;

open your ./Sources/Subs.php
Find

#ttcont {font-size:11px; display:block; padding:2px 12px 3px 7px; margin-left:5px; background:#666; color:#FFF}


Replace

#ttcont {font-size:11px; float:left; display:block; padding:2px 12px 3px 7px; margin-left:5px; background:#666; color:#FFF}


or change float:left; to float:right;
Title: Re: Word Description BBC
Post by: ttuu on February 12, 2009, 10:59:47 AM
its not change anything.
Title: Re: Word Description BBC
Post by: Özgür on February 12, 2009, 11:26:10 AM
Quote from: ttuu on February 12, 2009, 10:59:47 AM
its not change anything.

I haven't a lot of information on RTL. Im sorry.
Title: Re: Word Description BBC
Post by: ttuu on February 12, 2009, 03:09:23 PM
RTL = the post to be show right-to-left sort words.
Title: Re: Word Description BBC
Post by: tridirk on May 30, 2009, 12:16:18 PM
Could you update this to work with  1.1.9?  My members like your mod, and it won't reinstall on the update of smf.
Title: Re: Word Description BBC
Post by: Özgür on May 30, 2009, 12:48:28 PM
I totally forgot this mod O_o. Updated now.
Title: Re: Word Description BBC
Post by: tridirk on May 30, 2009, 05:38:12 PM
Thanks a bunch, it works great, and my forum Members will be happy.  They noticed it wasn't working on the first day I updated to 1.1.9

Thanks again;
Title: Re: Word Description BBC
Post by: yenidagci on June 24, 2009, 01:33:24 PM
Very nice modification, thanks..
Title: Re: Word Description BBC
Post by: PHPLearner on July 14, 2009, 05:03:43 PM
any way to use the img tag with this? like mouse over a word and show a picture instead of text? thanks for the great mod by the way
Title: Re: Word Description BBC
Post by: Groundhog on July 29, 2009, 06:09:36 PM
You probably know this but it works great with an image.

[center][desc=Some Text][img]http://www.yoursite.com/image.jpg[/img][/desc][/center]
Title: Re: Word Description BBC
Post by: plusev on September 13, 2009, 01:14:06 AM
The mod works perfect for me. Good work and much needed,

Is there anyway the default color of the described work can be modified to a specific color?

Thx
Title: Re: Word Description BBC
Post by: Özgür on September 13, 2009, 01:36:21 AM
Change to "#ttcont" color proirty on your style.css
Title: Re: Word Description BBC
Post by: plusev on September 13, 2009, 02:32:07 AM
Sorry but I'm still learning my way around - could you explain that further. Thx
Title: Re: Word Description BBC
Post by: Özgür on December 01, 2009, 04:00:39 PM
Updated for SMF 2.0 RC2.
Title: Re: Word Description BBC
Post by: Vyache on January 11, 2010, 10:07:38 AM
Any chance this mod will have a image bbc?
Title: Re: Word Description BBC
Post by: h78509 on January 23, 2010, 11:36:10 AM
Is there a mod like this one but which will give you the pop up every time you hover on a particular word?

Like if every time I hover over the word "cake" (on any thread), a picture of cake appears. I have that in my wordpress blog but I'm not sure if it's possible in SMF.

Thanks in advance.
Title: Re: Word Description BBC
Post by: Özgür on January 23, 2010, 12:55:11 PM
Quote from: h78509 on January 23, 2010, 11:36:10 AM
Is there a mod like this one but which will give you the pop up every time you hover on a particular word?

Like if every time I hover over the word "cake" (on any thread), a picture of cake appears. I have that in my wordpress blog but I'm not sure if it's possible in SMF.

Thanks in advance.
Can you give the wordpress plugin url? I will look it.
Title: Re: Word Description BBC
Post by: h78509 on January 25, 2010, 10:15:49 AM
Quote from: Daydreamer on January 23, 2010, 12:55:11 PM
Quote from: h78509 on January 23, 2010, 11:36:10 AM
Is there a mod like this one but which will give you the pop up every time you hover on a particular word?

Like if every time I hover over the word "cake" (on any thread), a picture of cake appears. I have that in my wordpress blog but I'm not sure if it's possible in SMF.

Thanks in advance.
Can you give the wordpress plugin url? I will look it.

Sure.

WP-page: http://wordpress.org/extend/plugins/hover/ (http://wordpress.org/extend/plugins/hover/)
or
Official page: http://bc-bd.org/blog/hover/ (http://bc-bd.org/blog/hover/)
Title: Re: Word Description BBC
Post by: Özgür on April 29, 2010, 05:45:42 PM
Added 2.0 RC3 Support.
Title: Re: Word Description BBC
Post by: Robin1989 on April 29, 2010, 06:01:51 PM
hi it doesnt seem to work for me in rc3 http://www.acidmods.com/forum2/index.php/topic,34113.msg257263
Title: Re: Word Description BBC
Post by: Özgür on April 29, 2010, 06:06:22 PM
Mod doesn't seem to be installed. Uninstall and reinstall again.
Title: Re: Word Description BBC
Post by: Robin1989 on April 30, 2010, 02:27:40 PM
yeh that worked - i wonder why it didnt install properly the first time round

thanks for the mod dude
Title: Re: Word Description BBC
Post by: Özgür on April 30, 2010, 06:01:54 PM
Quote from: Robin1989 on April 30, 2010, 02:27:40 PM
yeh that worked - i wonder why it didnt install properly the first time round

thanks for the mod dude
It's up to your server side problem. Because i really re-try after your message.
Title: Re: Word Description BBC
Post by: chinaren on June 22, 2010, 10:04:28 AM
This mod is MOST used on my forum.  Thank you so much for it.  And thank you twice for keeping it up to date so I can re-install on my updated SMF2 forum!!


Much karma be upon your head!  ;D
Title: Re: Word Description BBC
Post by: Seabass on July 12, 2010, 04:44:50 PM
Fantastic mod - everyone on my community loves it. However, one of our members pointed out a bug which makes JavaScript insertion possible.

Try the following:

[desc=\');alert("hi");//]free candy![/desc]


This generates

<span onmouseout="tooltip.hide();" onmouseover="tooltip.show('');alert("hi");//');" class="hotspot">free candy!</span>


A blank tooltip shows up and, well. I'm sure folks can think of worse things than alert();


The problem/solution:

When the description $1 is validated,  '  is not escaped properly,

'validate' => create_function('&$tag, &$data, $disabled', '
$data = strtr($data, array(\'&#039\' => \'\&#039\'));'),
),           


I replaced the validation with the following, and everything is back in order.
Code (php) Select

$data = htmlentities($data);
Title: Re: Word Description BBC
Post by: Özgür on July 29, 2010, 11:05:25 AM
Quote from: Seabass on July 12, 2010, 04:44:50 PM
Fantastic mod - everyone on my community loves it. However, one of our members pointed out a bug which makes JavaScript insertion possible.

Try the following:

[desc=\');alert("hi");//]free candy![/desc]


This generates

<span onmouseout="tooltip.hide();" onmouseover="tooltip.show('');alert("hi");//');" class="hotspot">free candy!</span>


A blank tooltip shows up and, well. I'm sure folks can think of worse things than alert();


The problem/solution:

When the description $1 is validated,  '  is not escaped properly,

'validate' => create_function('&$tag, &$data, $disabled', '
$data = strtr($data, array(\'&#039\' => \'\&#039\'));'),
),           


I replaced the validation with the following, and everything is back in order.
Code (php) Select

$data = htmlentities($data);

Thanks for the finding. I will update the mod package.
Title: Re: Word Description BBC
Post by: Seabass on July 29, 2010, 11:22:21 AM
Neat! Looking forward to the update. Also, this seems to work for HTML inclusion...

[desc=\x3Ciframe\x20src\x20\x3D\x22http\x3A\x2F\x2Fwww.youtube.com\x2Fwatch\x3Fv\x3DoHg5SJYRHA0\x22\x20width\x3D\x22100\x25\x22\x20height\x3D\x22100\x25\x22\x3E\x0A\x3C\x2Fiframe\x3E]An amazing video[/desc]
Title: Re: Word Description BBC
Post by: Özgür on July 29, 2010, 12:11:55 PM
It's shouldn't be like that. I guess i broke some security rules for try add images in description. I will update package. And i will change the some styles and javascript.
Title: Re: Word Description BBC
Post by: chinaren on July 31, 2010, 06:48:42 PM
Just a note that this tag has a security hole.  The other day a person posted something on my forum that, when you mouse-overed, redirected you to another site!



In this case it was a Rickrolled YT site, but it could potentially have been a nastier place.   Just a heads-up.  


[Edit] Oh!  I guess I should have read the previous few posts!  Looks like you're aware of it already.  Anyway, needs a fix I guess!
Title: Re: Word Description BBC
Post by: Özgür on August 04, 2010, 09:53:14 PM
Version 1.2
! Fixed security bug.
Title: Re: Word Description BBC
Post by: theguise on August 04, 2010, 11:32:51 PM
Upgrading and installing this gave me a strict standards warning regarding time zone and a parse error in Subs.php.  I believe I can fix it, I'm just informing you.
Title: Re: Word Description BBC
Post by: theguise on August 04, 2010, 11:39:36 PM
Okay found the problem, you have an extra ")," at the end of this array

       
array(
'tag' => 'desc',
'type' => 'unparsed_equals',
'before' => '<span class="hotspot" onmouseover="tooltip.show(\'$1\');" onmouseout="tooltip.hide();">',
'after' => '</span>',
'validate' => create_function('&$tag, &$data, $disabled', '
$data = htmlentities($data);'),
),
),           
Title: Re: Word Description BBC
Post by: Özgür on August 05, 2010, 12:44:32 PM
Fixed.
Title: Re: Word Description BBC
Post by: kanuni41 on January 12, 2011, 02:47:54 AM
RC4 e uyumlu değildir uyarısı alıyorum.Ne yapmalıyım
Title: Re: Word Description BBC
Post by: Apllicmz on February 27, 2011, 08:53:33 PM
when update dont forget portuguese_pt

<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
        <operation error="fatal">
            <search position="end" />
            <add><![CDATA[
$txt['desc'] = 'Adicionar Descri&ccedil;&atilde;o do Word';
]]></add>
        </operation>
    </file>
    <file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
        <operation error="fatal">
            <search position="end" />
            <add><![CDATA[
$txt['desc'] = 'Adicionar Descri&ccedil;&atilde;o do Word';
]]></add>
        </operation>
    </file>
Title: Re: Word Description BBC
Post by: def on March 12, 2011, 09:18:58 AM
There is another one problem. Fix in last release corrupted UTF-8 text support (tested at russian text). To fix that problem needs to change
$data = htmlentities($data);'),
to
!$context[\'utf8\'] ? $data = htmlentities($data, ENT_NOQUOTES, \'UTF-8\') : $data = htmlentities($data);'),

P.S.
Sorry for bad English.  :)
Title: Re: Word Description BBC
Post by: chinaren on November 27, 2011, 12:13:43 AM
Would love an update for SMF 2 final!  Any chance? 


This mod is one of the most beloved on my forum!
Title: Re: Word Description BBC
Post by: Özgür on November 29, 2011, 12:16:33 PM
I will update one and last time, next week it will be updated. After that I'm dropping support for it.
If anyone interested in take over, please pm me.
Title: Re: Word Description BBC
Post by: ChaosEnergy on January 14, 2012, 09:11:53 PM
I really like to see a similiar mod, based on a centralized word definition database

so you can define some words, which will automatically get the defininition in all posts whenever the keyword is used
similiar like those ad bubbles
Title: Re: Word Description BBC
Post by: Özgür on January 22, 2012, 04:00:19 PM
Quote from: ChaosEnergy on January 14, 2012, 09:11:53 PM
I really like to see a similiar mod, based on a centralized word definition database

so you can define some words, which will automatically get the defininition in all posts whenever the keyword is used
similiar like those ad bubbles
,
Look at glosary mod. If I remember correctly it will help you. :)