[CDB] Advanced BBCode Box 3.1

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Ideas Centre
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 6080
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman

Re: [BETA] Advanced BBCode Box 3.1

Post by MattF »

Татьяна5 wrote:Bbcodes fade, spoil, BBvideo (all bbcodes which use javascript) don't work in the ajax preview
AJAX preview ???
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
User avatar
Татьяна5
Registered User
Posts: 192
Joined: Wed Feb 13, 2013 5:30 pm
Name: Tatiana

Re: [BETA] Advanced BBCode Box 3.1

Post by Татьяна5 »

Yes, ajax preview in the QuickReply ext - https://github.com/Tatiana5/QuickReply
(If not working in ajax preview, it will not work in other cases ajax dynamic loading content)
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 6080
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman

Re: [BETA] Advanced BBCode Box 3.1

Post by MattF »

Татьяна5 wrote:Yes, ajax preview in the QuickReply ext - https://github.com/Tatiana5/QuickReply
(If not working in ajax preview, it will not work in other cases ajax dynamic loading content)
That Quickreply extension isn't loading the abbc3.min.js script with its AJAX preview content.

It's normally loaded into the footer of phpBB pages. But it won't be loaded in AJAX content unless explicity added to it or the AJAX content is loading an entire phpBB page as its content.
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
User avatar
Татьяна5
Registered User
Posts: 192
Joined: Wed Feb 13, 2013 5:30 pm
Name: Tatiana

Re: [BETA] Advanced BBCode Box 3.1

Post by Татьяна5 »

There is no need to load all scripts used

In the ext/vse/abbc3/styles/all/template/js/abbc3.js I replaced

Code: Select all

$(".spoilbtn").on("click", function () {
to

Code: Select all

$(document).on("click", ".spoilbtn", function () {
(3 attributes instead 2) and spoiler began working


For other BBcodes I do not know how to do this
User avatar
Going4Quests
Registered User
Posts: 77
Joined: Sat Sep 07, 2013 7:34 am

Re: [BETA] Advanced BBCode Box 3.1

Post by Going4Quests »

VSE wrote:
Going4Quests wrote:Erm can I report a little glitch here? :P

http://i.imgur.com/trlVuXG.png

This happens when editing your signature, the smilies are a bit misaligned. :P
This extension has nothing to do with smilies.
It doesn't, but the bb-code bar breaks the alignment of the smilies.
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 6080
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman

Re: [BETA] Advanced BBCode Box 3.1

Post by MattF »

Going4Quests wrote:
VSE wrote:
Going4Quests wrote:Erm can I report a little glitch here? :P

http://i.imgur.com/trlVuXG.png

This happens when editing your signature, the smilies are a bit misaligned. :P
This extension has nothing to do with smilies.
It doesn't, but the bb-code bar breaks the alignment of the smilies.
No, it does not. The smilies at the bottom, the one with the glasses, are wider than the others.

Even a board without this extension looks exactly the same as your image.
Screen Shot 2014-08-15 at 3.28.50 PM.png
You do not have the required permissions to view the files attached to this post.
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 6080
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman

Re: [BETA] Advanced BBCode Box 3.1

Post by MattF »

Татьяна5 wrote:Bbcodes fade, spoil, BBvideo (all bbcodes which use javascript) don't work in the ajax preview
OK, you're right... boils down to event delegation.

I solved spoiler with event delegation.
I solved fade by switching from JS to CSS for the effect.

But we have to work together for BBvideos. I REALLY do not like the only solution to make BBvideos work on my end alone, which is to reapply bbvideos to any bbvideo classes after every time an AJAX event completes. The smarter way to deal with this is to do it inside the AJAX request function itself, which is happening in your extension. So, you will need to add the following one line of code to your extension to work (shouldn't really be a problem since you already have code in it to support abbc3):

In your overall_footer_after.html, after the line 156:

Code: Select all

$('#preview .content').html(res.PREVIEW_TEXT);
Add this new line:

Code: Select all

<!-- IF S_ABBC3_INSTALLED -->$('#preview .bbvideo').bbvideo();<!-- ENDIF -->
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
User avatar
Going4Quests
Registered User
Posts: 77
Joined: Sat Sep 07, 2013 7:34 am

Re: [BETA] Advanced BBCode Box 3.1

Post by Going4Quests »

Ah now i see, thanks. The triple bars made it look mis aligned. :P
User avatar
Татьяна5
Registered User
Posts: 192
Joined: Wed Feb 13, 2013 5:30 pm
Name: Tatiana

Re: [BETA] Advanced BBCode Box 3.1

Post by Татьяна5 »

Now everything works, thanks
Skhilled44
Registered User
Posts: 21
Joined: Wed Mar 26, 2014 12:29 pm

Re: [BETA] Advanced BBCode Box 3.1

Post by Skhilled44 »

Hi,

I've installed it using [RC] Upload Extensions and it installed flawlessly. The Hidden BBC is a nice touch, great job! :mrgreen:
leschek
Registered User
Posts: 861
Joined: Tue Jul 18, 2006 12:49 pm

Re: [BETA] Advanced BBCode Box 3.1

Post by leschek »

I was a bit unhappy about removing table BBCode (I use it a lot), but it seems it is possible to replace it with a little modified BBCodes I found here. In case somebody wants to try it:

usage:
[table={TEXT}]{TEXT1}[/table]
HTML replacement:
<table style="{TEXT}"><!-- {TEXT1} --></table>

usage:
[tr={TEXT}]{TEXT1}[/tr]
HTML replacement:
tr --><tr style="{TEXT}"><!-- {TEXT1} --></tr><!-- tr

usage:
[td={TEXT}]{TEXT1}[/td]
HTML replacement:
td --> <td style="{TEXT}">{TEXT1}</td> <!-- td
User avatar
mr.ruf
Registered User
Posts: 136
Joined: Thu Apr 04, 2013 11:12 pm
Location: PuErTo RiCo
Name: Harold

Re: [BETA] Advanced BBCode Box 3.1

Post by mr.ruf »

a question, this extension, the hide, hide those content are not registered, right? hides the content but also to those who have not made a post in a thread?
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 6080
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman

Re: [BETA] Advanced BBCode Box 3.1

Post by MattF »

mr.ruf wrote:a question, this extension, the hide, hide those content are not registered, right? hides the content but also to those who have not made a post in a thread?
No, just hides content from guests. It's for members only content.
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
SüKûT
Registered User
Posts: 48
Joined: Fri Mar 15, 2013 11:50 am
Location: Türkiye

Re: [BETA] Advanced BBCode Box 3.1

Post by SüKûT »

Image Resizer, thumbnail and click options have been canceled. I wonder if they will be included in the new version? How do I add myself or these options?
User avatar
yasser33311
Registered User
Posts: 277
Joined: Sat Jul 27, 2013 1:27 pm
Location: algeria
Name: yasser ghe

Re: [BETA] Advanced BBCode Box 3.1

Post by yasser33311 »

arabic ar translation: :)
ar.zip

Code: Select all

<?php
/**
*
* Advanced BBCode Box 3.1 [Arabic]
* Arabic traslation by dzyasseron tajribaty.com/phpbb for phpbbarabia.com
* @copyright (c) 2013 Matt Friedman
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

$lang = array_merge($lang, array(
	// Hidden BBCode
	'ABBC3_HIDDEN_ON'			=> 'محتوى مخفي',
	'ABBC3_HIDDEN_OFF'			=> 'محتوى مخفي (للأعضاء فقط)',
	'ABBC3_HIDDEN_EXPLAIN'		=> 'هذا المنتدى يطلب التسجيل أو الدخول لمشاهدة المحتوى المخفي.',

	// Spoiler BBCode
	'ABBC3_SPOILER_SHOW'		=> '&#9658; Show Spoiler',
	'ABBC3_SPOILER_HIDE'		=> '&#9660; Hide Spoiler',

	// Off Topic BBCode
	'ABBC3_OFFTOPIC'			=> 'موضوع مغلق',

	// Font BBCode
	'ABBC3_FONT_BBCODE'			=> 'قائمة الخطوط',
	'ABBC3_FONT_FANCY'			=> 'Fancy fonts',
	'ABBC3_FONT_SAFE'			=> 'Safe fonts',
	'ABBC3_FONT_WIN'			=> 'Windows fonts',

	// BBCode help lines
	'ABBC3_ALIGN_HELPLINE'		=> 'محاذات النص: [align=center|left|right|justify]نص[/align]',
	'ABBC3_BBVIDEO_HELPLINE'	=> 'فيديو: [BBvideo=width,height]http://video_url[/BBvideo]',
	'ABBC3_BLUR_HELPLINE'		=> 'Blur text: [blur=color]نص[/blur]',
	'ABBC3_DIR_HELPLINE'		=> 'اتجاه الكتابة: [dir=ltr|rtl]نص[/dir]',
	'ABBC3_DROPSHADOW_HELPLINE'	=> 'Drop shadow text: [dropshadow=color]نص[/dropshadow]',
	'ABBC3_FADE_HELPLINE'		=> 'Text fadein / fadeout: [fade]نص[/fade]',
	'ABBC3_FLOAT_HELPLINE'		=> 'Float text: [float=left|right]نص[/float]',
	'ABBC3_FONT_HELPLINE'		=> 'Font type: [font=Comic Sans MS]نص[/font]',
	'ABBC3_GLOW_HELPLINE'		=> 'Glow text: [glow=color]نص[/glow]',
	'ABBC3_HIDDEN_HELPLINE'		=> 'إخفاء عن الزوار: [hidden]نص[/hidden]',
	'ABBC3_HIGHLIGHT_HELPLINE'	=> 'Highlight text: [highlight=yellow]نص[/highlight]  Tip: you can also use color=#FF0000',
	'ABBC3_MARQUEE_HELPLINE'	=> 'Marquee text: [marq=up|down|left|right]نص[/marq]',
	'ABBC3_MOD_HELPLINE'		=> 'رسالة تنبيه: [mod=username]نص[/mod]',
	'ABBC3_NFO_HELPLINE'		=> 'NFO ascii art text: [nfo]نص[/nfo]',
	'ABBC3_OFFTOPIC_HELPLINE'	=> 'Off Topic message: [offtopic]نص[/offtopic]',
	'ABBC3_PREFORMAT_HELPLINE'	=> 'Preformatted text: [pre]نص[/pre]',
	'ABBC3_SHADOW_HELPLINE'		=> 'Shadow text: [shadow=color]نص[/shadow]',
	'ABBC3_SOUNDCLOUD_HELPLINE'	=> '[soundcloud]http://soundcloud.com/user-name/song-title[/soundcloud]',
	'ABBC3_SPOILER_HELPLINE'	=> 'Spoiler message: [spoil]نص[/spoil]',
	'ABBC3_STRIKE_HELPLINE'		=> 'Strike-through text: [s]نص[/s]',
	'ABBC3_SUB_HELPLINE'		=> 'نص منخفض: [sub]نص[/sub]',
	'ABBC3_SUP_HELPLINE'		=> 'نص مرتفع: [sup]نص[/sup]',
	'ABBC3_YOUTUBE_HELPLINE'	=> 'يوتوب فيديو: [youtube]http://youtube_url[/youtube]',

	// Utility BBCodes
	'ABBC3_COPY_BBCODE'			=> 'نسخ النص المحدد',
	'ABBC3_PASTE_BBCODE'		=> 'لصق النص من الحافظة',
	'ABBC3_PASTE_ERROR'			=> 'يجب عليك نسخ جزء من النص، بعدها الصقه',
	'ABBC3_PLAIN_BBCODE'		=> 'حذف تنسيق النص المحدد (حذف الBBcode(',
	'ABBC3_NOSELECT_ERROR'		=> 'لا يوجد نص محدد.',

	// BBCode Wizards
	'ABBC3_BBCODE_WIZ_SUBMIT'	=> 'Insert into message',
	'ABBC3_BBCODE_WIZ_EXAMPLE'	=> 'مثال',

	// BBvideo Wizard
	'ABBC3_BBVIDEO_SITES'		=> 'المواقع المتاحة',
	'ABBC3_BBVIDEO_LINK'		=> 'رابط الفيديو',
	'ABBC3_BBVIDEO_SIZE'		=> 'فيديو عرض x طول',
	'ABBC3_BBVIDEO_PRESETS'		=> 'حجم العرض',

	// ACP
	'ABBC3_BBCODE_ORDERED'		=> 'تم تحديث BBCode المطلوب.',
	'ABBC3_BBCODE_GROUP'		=> 'إدارة المجموعات التي يمكنها استعمال هذا الـ BBCode',
	'ABBC3_BBCODE_GROUP_INFO'	=> 'إذا لم تحدد أي مجموعة، كل المستخدمين سيمكنهم استخدام هذا الـBBCode. استعمل CTRL+CLICK (أو CMD+CLICK في ماك) لتحديد/إلغاء تحديد أكثر من مجموعة واحدة.',
));
You do not have the required permissions to view the files attached to this post.
PhpBB Services - install, update, upgrade, customize: PM

Return to “Extensions in Development”