• Welcome to Simple Machines Community Forum. Please login or sign up.

[BBCode] Dotted Underline

Started by SMF Customization Team, October 31, 2009, 06:45:18 PM

Previous topic - Next topic

SMF Customization Team

October 31, 2009, 06:45:18 PM Last Edit: June 15, 2011, 08:37:30 PM by Spuds
Link to Mod

[BBCode] Dotted Underline



Original Author: iKiller | Current Author: SMF Customization Team
Supported Languages: English
Link To Mod | Mod Discussion | Other SMF Customization Team Mods



Summary:
This modification adds a BBCode button next to the "Underline" button on the post page. You can use the [dot] BBCode to place a dotted line underneath the selected text. Instead of being a plain underline, this makes an underline of dots.

Compatibility:
Compatible with SMF 2.0 only

Installation Information:
The Package Manager should work in most cases, if you have problems installing please use the discussion thread as well as Manual Installation of Mods

Change Log:

Version 1.1 - March 20 2014
! Fixed wrong language string
! Fixed issue with hooks
Version 1.0 - October 30 2009
- Initial release



Copyright (c) 2018, Simple Machines, under BSD 3-Clause License.
All rights reserved.


Liam.

Thanks ^_^ Just something random that I thought might aswell be done./

Arantor

Mod site cannot parse it for 2.0 RC2 and it won't work properly anyway due to a number of changes in the code.
No good deed goes unpunished
All helpful urges should be circumvented

C4G-TK

I should have looked at this before trying to install on my site.

I get the "The package you are trying to download or install is either corrupt or not compatible with this version of SMF." when I tried to install it on RC2.

-img removed-

Arantor

This hasn't been made compatible with RC2 yet as far as I could tell when I looked.

Even if the package-info.xml is updated to include RC2, it won't actually work properly anyway; the image will be broken in the editor due to changes in RC2.
No good deed goes unpunished
All helpful urges should be circumvented

C4G-TK

I only tried to install because it said Compatible With: 2.0 RC1.2, 2.0 RC2 on the mod site

-img removed-

Arantor

As far as I could tell it hasn't been tested on RC2, it won't work properly unless something seriously changed between Charter and Public releases of RC2.
No good deed goes unpunished
All helpful urges should be circumvented

7s-1k

For SMF 2.0 RC2

in sourcedir/Subs.php find:

array(
'tag' => 'u',
'before' => '<span class="bbc_u">',
'after' => '</span>',



after add:

         array(
            'tag' => 'dot',
            'before' => '<span style="border-bottom:1px dotted;">',
            'after' => '</span>',
         ),



in posts use [dot] [/dot]
One Day, Two Many

Arantor

The Subs edit doesn't change between 2.0 RC1.2 and 2.0 RC2. It's only the Subs-Editor.php edit that should need to change.

iKorp, please either update this mod to be compatible with 2.0 RC2 properly, or I can remove the 2.0 RC2 compatibility tag from it, since right now it isn't compatible.
No good deed goes unpunished
All helpful urges should be circumvented

7s-1k

in Subs-Editor.php find:

array(
'image' => 'underline',
'code' => 'u',
'before' => '[u]',
'after' => '[/u]',
'description' => $txt['underline']
),


after add:

array(
'image' => 'dot',
'code' => 'd',
'before' => '[dot]',
'after' => '[/dot]',
'description' => $txt['dot_desc']
),


upload dot.gif to /Themes/default/images/bbc/
One Day, Two Many

Arantor

Thank you 7s-1k.

iKorp, please roll these changes in as soon as possible (I note I already advised you a week ago that you needed to update your mods) otherwise unmark this mod as 2.0 RC2 compatible.
No good deed goes unpunished
All helpful urges should be circumvented

7s-1k

One Day, Two Many

Arantor

It's more iKorp that this helps. I wouldn't mind but I already gave him two mods that have these changes applied.
No good deed goes unpunished
All helpful urges should be circumvented

flamechica

I take it iKorp still hasn't fixed this as I got the not compatible error too....which is frustrating cuz it says on the download page that it is compatible with RC2

Arantor

It isn't, as I pointed out over a week ago.
No good deed goes unpunished
All helpful urges should be circumvented

Eclipse16V

I worked with:
SMF 2 in German

Shop:
SID Giessen

Arantor

Eclipse, I'm guessing you did the manual edits mentioned above? The mod won't work properly without those.
No good deed goes unpunished
All helpful urges should be circumvented

Eclipse16V

I worked with:
SMF 2 in German

Shop:
SID Giessen

Liam.

This has now been updated to work with SMF 2.0 RC2.

C4G-TK

I don't think you updated it correctly.  It still gives a TEST FAILED for the Subs-Editor.php edit for RC2.  I looked at the parse for it and it still shows the wrong thing to look for as well.  Is this going to be updated to work correctly?

-img removed-

Arantor

If you grab the 2RC2 package it looks right at a glance.
No good deed goes unpunished
All helpful urges should be circumvented

C4G-TK

I'm obviously not doing something right then.  I can't find:

array(
'image' => 'dot',
'code' => 'dot',
'before' => '[dot]',
'after' => '[/dot]',
'description' => $txt['dot']
),


in my Subs-Editor.php file in RC2.  In the parse of it for the RC2 package, it says to find that piece of code. ????

-img removed-

Arantor

Ah. I didn't actually look at what it said - just literally glanced at it to ensure it was 2.0 RC2 format not the previous one-line format.

* Arantor would remind all mod authors that packages should be tested on a fresh RC2 installation prior to updating their mod on this site.
No good deed goes unpunished
All helpful urges should be circumvented

C4G-TK

Overline is his other mod.  Somehow, that code is in this mod according to the parser which it wouldn't be.  I think he may have saved the file and mixed up the packages after working on the two mods or something.

-img removed-

Liam.

Ahh, I may have gotten mixed up. Sorry, I'll fix it ASAP!

Liam.

Fixed and tested. It should all work now.

C4G-TK

THANK YOU!!!!

It now install and works perfectly!

-img removed-

Liam.

No problem! I guess I should've checked it before uploading, I checked the others but I knew I missed one ^_^
Thanks for using the Dotted Underline mod!

dougiefresh

Thank you for the wonderful mod!  I thought I'd let everybody know that when I updated my forum from 2.0 RC5 to 2.0 Gold, I had to reinstall all my mods.  This mod installed without issues and using 2.0 RC5 emulation.  Hope this info helps someone!

Rain Forest

It's not working for me on 2.0 Final

Suki

giovannie_1 please define "not working"  do you installed it properly? does it gave you errors on install?  what happen when you try to use it?

you must provide more info so we can help you, otherwise it is extremely difficult to assist you.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Making tough decisions, so you don't have to.

Rain Forest

Hi Miss All Sunday,

For 2.0 Final the manual says:

in: /Themes/default/languages/Modifications.english.php

find
?>
add before
$txt['dot'] = 'Dotted Underline';

in ./Themes/default/languages/Modifications.english-utf8.php

find
[code?>[/code]
add before
$txt['blink'] = 'Dotted Underline';

Code
add_remove_hooks.php

This file should be able to execute standalone.

File Operations
Move the included file "Subs-Dottedunderlinebbc.php" to "./Sources".
Move the included file "dot.gif" to "./Themes/default/images/bbc".

Just that...

But now it works.

I added manually:

in Sources/Subs.php
afterarray(
'tag' => 'u',
'before' => '<span class="bbc_u">',
'after' => '</span>',
         ),

add after
         array(
            'tag' => 'dot',
            'before' => '<span style="border-bottom:1px dotted;">',
            'after' => '</span>',
         ),


and in Sources/Subs-Editor.php
find
array(
'image' => 'underline',
'code' => 'u',
'before' => '[u]',
'after' => '[/u]',
'description' => $txt['underline']
),

add after
array(
'image' => 'dot',
'code' => 'd',
'before' => '[dot]',
'after' => '[/dot]',
'description' => $txt['dot_desc']
),


Suki

This mod uses hooks, which means theres no need to edit your  Sources/Subs.php.

You still do not say if you install it with the packager manager or you installed it manually.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Making tough decisions, so you don't have to.

Rain Forest

Quote from: Miss All Sunday on September 19, 2011, 06:05:29 PM
This mod uses hooks, which means theres no need to edit your  Sources/Subs.php.

You still do not say if you install it with the packager manager or you installed it manually.

I installed it first with the packager manager.

But after that the dotted where not visible. After my manual editting it was visible.

Suki

so, is the mod working or do you still need assistant?
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Making tough decisions, so you don't have to.

Rain Forest


Apllicmz

Good Work
When Update dont forget portuguese file




Shambles

Just a FYI...

In the package file english.xml,

Code (Find) Select
         <add><![CDATA[$txt['blink'] = 'Dotted Underline';]]></add>

Code (Amend To Read) Select
         <add><![CDATA[$txt['dot'] = 'Dotted Underline';]]></add>

margarett

Thanks.

The package was fixed. Not only that wrong string, but also an issue with hooks that prevent the MOD from working as expected (as indicated by Soft Drink above)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Shambles

Yeah, the hook call-by-reference problem was why I revisited my installation of this mod :)

Shambles

I'm sure it's purely documentary, but the ID strings in english.xml are also a tad misleading ;)


<name>[BBCode] Blink</name>
<id>iKorp:Blink</id>

margarett

That was how the original author wrote it (based in some other MOD, of course) and it was never fixed :P

I'll correct it in a minute. Thanks.
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Advertisement: