markItUp! for SMF

Started by Bugo, December 15, 2011, 06:57:32 PM

Previous topic - Next topic

adthz

Hello again, eg remove the bbc want the html, I would have to do?
I know nothing about php friend, so I asked you a hand XD

adthz

me pueden ayudar porfavor?

Bugo

Pardonu, sed mi ne povas helpi vin.

Dzonny

Hello once again Bugo.

Can we somehow remove smileys which is used in pop-up window in posts and just use the one from the post form? I have plenty of smileys in pop-up and i would like them not to show up in quick relpy if that's possible.

Or can we anyhow reduce number of smileys shown by this mod though? :)

Bugo

One can remove smileys block if you want. Open Subs-markItUp.php, find lines from 154 to 183 and remove them.

NeoXII

Hi I have this error whe I try to install the mod:

"Fatal error: Call to undefined function add_integration_function() in /Packages/temp/hooks.php on line 21"

Thank You :)

BaghdadGhost

hi Bugo,


thanks for this mod.

is it compatible with rtl? and if not, is there a way of changes I need to do to make it compatible?

I already installed it on test site and this is the result (attached)

the only problem with it so far is that the description text in showing on hover and also always on the features themselves.

thanks


Bugo

#27
Try new version.

Lout

Hi,

I'm getting hundreds upon hundreds of logs for 1 particular error. The error is because I added the option for a spoiler button by adding the following line after the line for the strikethrough button. This is what I added -
' . (!isset($disabled['spoiler']) ? '{name:"' . $txt['spoiler'] . '", openWith:"[spoiler]", closeWith:"[/spoiler]", className:"spoiler"},' : '') . '

and this is the error message received -

http://myforum.com/index.php?topic=3115.new
8: Undefined index: spoiler
File: /home/myforum/public_html/Sources/Subs-markItUp.php
Line: 54


Line 54 is the one I added which incidentally works and can post spoilers successfully so what did I do wrong?

Thanks in advance  :)

EDIT TO ADD: I'm using this spoiler code with button selected as the display option - http://custom.simplemachines.org/mods/index.php?mod=195

BaghdadGhost

new version solved the previously reported problem


I will test and let you know if there are any errors, which I doubt.

thanks

Lout

New version hasn't fixed my issue, hope someone can shed some enlightenment :)

Bugo

@Lout, your $txt['spoiler'] isn't defined in language files. Try this:
' . (!isset($disabled['spoiler']) ? '{name:"' . $txt['spoiler_tag_text'] . '", openWith:"[spoiler]", closeWith:"[/spoiler]", className:"spoiler"},' : '') . '
or add this line into your Modification.{your_language}.php:
$txt['spoiler'] = 'Spoiler';

Lout

Quote from: Bugo on July 16, 2012, 09:38:11 PM
@Lout, your $txt['spoiler'] isn't defined in language files. Try this:
' . (!isset($disabled['spoiler']) ? '{name:"' . $txt['spoiler_tag_text'] . '", openWith:"[spoiler]", closeWith:"[/spoiler]", className:"spoiler"},' : '') . '
Cheers Bugo, that appears to have resolved the issue.

vladok

#33
This mod work with windows charset? Or "UTF only"?

androgyn3

Hi bugo,

This mod is do only for the quick reply form ? when i install it, it's OK for quick reply but the markitUp is installed also in normal "reply" and "modify"
I like put this editor for quick reply and keep the old editor SMF for normal reply and modify.

It' possible with this mod ? I can add some action in admin panel as profil (signature) but i can't remove for repy and modify.

Regards,

Bugo

Try this changed file. Just put it to /Sources dir.

androgyn3

#36
Yes Bugo, it's perfect  :)

Very thank

+ rep

FragaCampos

#37
I, Bugo, thank you for giving us this mod.

I installed it fine on my SMF 2.0.3 on localhost but I wanted to remove some buttons and smiles. I managed to do it, but I can't remove the last one (Remove BBC-tags from selected text), probably because it's missing a closing code somewhere.
Can you give it a look, please?


FragaCampos

Ok, I managed to get this working as I wanted.
Here's the result:


I don't know if the code is the most accurate, but it's working fine. I leave the file for others who may want the same.

DeathSign

Hey guys,

Concerning the latest version (0.5.1), there is a little JS bug due to the use of simple quotes in smiley descriptions in french.

The fix I suggest is the following:
Edit : Sources/Subs-markItUp.php

Find (line 325)
\'<img src="' . addslashes($path) . '" alt="' . addslashes($sm['code']) . '" title="' . $sm['description'] . '" style="cursor: pointer" />&nbsp;\' +';
Replace by
\'<img src="' . addslashes($path) . '" alt="' . addslashes($sm['code']) . '" title="' . addslashes($sm['description']) . '" style="cursor: pointer" />&nbsp;\' +';

Regards,
DeathSign

Advertisement: