Skip to forum content

PunBB Forums

Lightweight PHP-based Forum

You are not logged in. Please login or register.


[Extension] om_markitup 1.4.2.03

PunBB Forums → PunBB 1.4 additions → [Extension] om_markitup 1.4.2.03

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 10

1 Topic by keeshii 2013年09月18日 18:48 (edited by keeshii 2015年11月02日 13:00)

  • keeshii
  • Extension Developer
  • Offline
  • From: Poland
  • Registered: 2013年04月04日
  • Posts: 170

Topic: [Extension] om_markitup 1.4.2.03

om_markitup
Changes the bbcode editor to MarkItUp. I have hook'ed this plugin, so other extensions can easly add add their buttons to the toolbar. Please don't install pun_bbcode - these two extension cannot be activated at the same time, unless you like trouble smile


om_markitup 1.4.2.03 (current): om_markitup-1.4.2.03.zip


Changelog:
1.4.2.02
Fixed problem with forum_loader add_js
Prepared for php 5.5

1.4.2.02
Textarea in quickpost panel becomes smaller.

1.4.2.01
Initial version


Screenshot:
http://dev.poldrag.katowice.pl/distfiles/punbb/om_markitup.png

If you want to contact me quickly - send e-mail, not PM.
<?php $t='<?php $t=%c%s%c; printf($t,39,$t,39,10);%c'; printf($t,39,$t,39,10);
  • Registered: 2012年07月01日
  • Posts: 561

Re: [Extension] om_markitup 1.4.2.03

Oh, thanks Keeshii, added to the List

  • Registered: 2012年07月01日
  • Posts: 561

Re: [Extension] om_markitup 1.4.2.03

Hey, keeshii! I have a suggestion to change the height of Quick Reply Box to be similar to this without extension.
Currently it is so big like on Full Post Reply.

  • keeshii
  • Extension Developer
  • Offline
  • From: Poland
  • Registered: 2013年04月04日
  • Posts: 170

Re: [Extension] om_markitup 1.4.2.03

Trace wrote:

change the height of Quick Reply Box to be similar to this without extension.

Done.

If you want to contact me quickly - send e-mail, not PM.
<?php $t='<?php $t=%c%s%c; printf($t,39,$t,39,10);%c'; printf($t,39,$t,39,10);
  • From: Poland
  • Registered: 2014年04月23日
  • Posts: 11

Re: [Extension] om_markitup 1.4.2.03

When tring to use the extension, such an error is reported in the console when accessing new post page:

TypeError: $(...).markItUp is not a function 2:266

How should I fix this one or what could it possibly be caused by?

  • From: Siberia
  • Registered: 2013年08月05日
  • Posts: 410

Re: [Extension] om_markitup 1.4.2.03

Gregoric, why on the page two jQuery boot?

...
<meta charset="utf-8" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
...
<script>
 $LAB.setOptions({AlwaysPreserveOrder:false})
 .script("//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js").wait();
</script>
</body>
</html>
ForkBB
I speak only Russian :P

7 Reply by semperverus 2014年08月11日 15:17 (edited by semperverus 2014年08月11日 15:17)

  • Registered: 2014年07月28日
  • Posts: 10

Re: [Extension] om_markitup 1.4.2.03

Is this like the BBCode official extension?

8 Reply by Gregoric 2014年09月13日 16:48 (edited by Gregoric 2014年09月13日 16:49)

  • From: Poland
  • Registered: 2014年04月23日
  • Posts: 11

Re: [Extension] om_markitup 1.4.2.03

Visman wrote:

Gregoric, why on the page two jQuery boot?

...
<meta charset="utf-8" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
...
<script>
 $LAB.setOptions({AlwaysPreserveOrder:false})
 .script("//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js").wait();
</script>
</body>
</html>

I had declared jQuery twice, as I did not know how to add custom JS code back then (and I have coded it into the main.tpl template file). Since I made some research about LAB.js (thanks to your pointing out that jQuery is loading twice in my case) I am now able to use my custom JS files properly smile

After removing double jQuery, the addon did returned lack of jQuery lib loaded and so I have added such line to the footer.php so that the addon JS code loads after the LABjs loads jQuery library.

$forum_loader->add_js($base_url.'/extensions/om_markitup/js/jquery.markitup-1.1.13.js');

Now the extension works just fine!

  • keeshii
  • Extension Developer
  • Offline
  • From: Poland
  • Registered: 2013年04月04日
  • Posts: 170

Re: [Extension] om_markitup 1.4.2.03

You were right - the extension included js files in the wrong way. I have corrected that, now it should work without any more problems smile

If you want to contact me quickly - send e-mail, not PM.
<?php $t='<?php $t=%c%s%c; printf($t,39,$t,39,10);%c'; printf($t,39,$t,39,10);

10 Reply by rrawicz 2016年01月04日 23:27 (edited by rrawicz 2016年01月04日 23:32)

  • Registered: 2015年12月25日
  • Posts: 6

Re: [Extension] om_markitup 1.4.2.03

Bug,


if I try to use button code I have code /list instead code /code

fault is in bbcode_tags.php file at line 67

Posts: 10

Pages 1

You must login or register to post a reply

PunBB Forums → PunBB 1.4 additions → [Extension] om_markitup 1.4.2.03



AltStyle によって変換されたページ (->オリジナル) /