3.1.x Extensions Database 3.1 / 3.2[RC] Tables bbCode

<span class="qte-attr qte_31_32-qte">3.1.x &amp; 3.2.x</span>
User avatar

Puchahawa
Users
Users
Posts: 193
Joined: 20 Jun 2015, 17:58
    Windows 7 Chrome

Re: [RC] Tables bbCodes

Post by Puchahawa »

:thumbup: :beers: :beers:

EDIT: confirmed. All is well in tables land. :rolling:

User avatar

Topic Author
Sniper_E
VIP
VIP
Posts: 1157
Joined: 14 Oct 2014, 19:01
    Windows 10 Firefox

Re: [RC] Tables bbCodes

Post by Sniper_E »

:thankyou:

Man that was a headache and one aggravating experience. Together we got to the bottom of it. You're awesome! :thumbup:
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

User avatar

Puchahawa
Users
Users
Posts: 193
Joined: 20 Jun 2015, 17:58
    Windows 7 Chrome

Re: [RC] Tables bbCodes

Post by Puchahawa »

Always a good day when things like that get resolved. Happy to help!

User avatar

proavia
Users
Users
Posts: 65
Joined: 30 Aug 2015, 22:50
    Windows 7 Internet Explorer

Re: [RC] Tables bbCodes

Post by proavia »

Sorry - just got back in town.....

Updated to version 2.0.6 and all works great!

One question, you both make reference to the ACP - Am I supposed to see any extension options under "Extensions" or is what you are referencing somewhere else (and where)?

User avatar

Puchahawa
Users
Users
Posts: 193
Joined: 20 Jun 2015, 17:58
    Windows 7 Chrome

Re: [RC] Tables bbCodes

Post by Puchahawa »

proavia wrote: 01 Oct 2016, 01:40 Sorry - just got back in town.....

Updated to version 2.0.6 and all works great!

One question, you both make reference to the ACP - Am I supposed to see any extension options under "Extensions" or is what you are referencing somewhere else (and where)?
There are some extensions that have settings under the ext tab in the ACP that allow bbcodes and the tables are available there. Sniper was having a challenge getting the code to work correctly in the ACP. That is what we were referencing as we were trouble shooting different variations of the code for the ext. He got it worked out and now it's playing nice everywhere. :eusa_dance: :smile:

User avatar

proavia
Users
Users
Posts: 65
Joined: 30 Aug 2015, 22:50
    Windows 7 Internet Explorer

Re: [RC] Tables bbCodes

Post by proavia »

Puchahawa wrote: 01 Oct 2016, 02:32
proavia wrote: 01 Oct 2016, 01:40 Sorry - just got back in town.....

Updated to version 2.0.6 and all works great!

One question, you both make reference to the ACP - Am I supposed to see any extension options under "Extensions" or is what you are referencing somewhere else (and where)?
There are some extensions that have settings under the ext tab in the ACP that allow bbcodes and the tables are available there. Sniper was having a challenge getting the code to work correctly in the ACP. That is what we were referencing as we were trouble shooting different variations of the code for the ext. He got it worked out and now it's playing nice everywhere now. :eusa_dance: :smile:
Thanks - yes, I do see several of my different extension settings under the ext tab - but not tables. Should it show there? Or just the BBCodes for tables under the Posting tab? Just wanting to know if mine installed fully or not. The extension itself works GREAT!

User avatar

Puchahawa
Users
Users
Posts: 193
Joined: 20 Jun 2015, 17:58
    Windows 7 Chrome

Re: [RC] Tables bbCodes

Post by Puchahawa »

proavia wrote: 01 Oct 2016, 02:36
Thanks - yes, I do see several of my different extension settings under the ext tab - but not tables. Should it show there? Or just the BBCodes for tables under the Posting tab? Just wanting to know if mine installed fully or not. The extension itself works GREAT!
The only thing that shows for this ext in the acp is the bbcodes under the posting tab. YES it installed fully! :thumbup:

Other extensions like the contact admin ext have the option of editing the message that people see and it has the bbcodes, smilies etc... It's setting are under the extension tab and was one of them that wasn't working correctly.

User avatar

Topic Author
Sniper_E
VIP
VIP
Posts: 1157
Joined: 14 Oct 2014, 19:01
    Windows 10 Firefox

Re: [RC] Tables bbCodes

Post by Sniper_E »

You know I did not setup any acp settings for the admin to allow anyone to use the tables bbcode. It is setup as a normal bbcode.
But I'm sure if an admin sets a user up to not allow bbcodes then this table bbcode will not be available.

Now there is a problem with the table bbcode not showing in the acp if posting buttons or abbc extensions are not installed.
The adm/style/acp_posting_buttons.html needs an event for this <!-- EVENT acp_posting_buttons_custom_tags_before -->
I have requested this event added at area51 already. But if they do add it... it will come out in a newer version of phpbb3.

And there is a problem with the table bbcode not working in posting buttons also. Or any bbcode ext working in posting buttons.
I have put in a request to dmzx also for his event name changed before custom buttons. That's been a few days ago.
I have put in a request to dmzx also for acp templates so his posting buttons would show in the acp as well.

But you guys do not need to worry about that because you use abbc3.
Abbc3 does not have any templates for the acp yet they show in the acp. Not sure how he made that happen.
Last edited by Sniper_E on 01 Oct 2016, 06:08, edited 1 time in total.

User avatar

proavia
Users
Users
Posts: 65
Joined: 30 Aug 2015, 22:50
    Windows 7 Internet Explorer

Re: [RC] Tables bbCodes

Post by proavia »

Thanks Guys! Just wanted to be sure it installed correctly and I wasn't missing parts of it.

I think you could easily restrict the bbcodes associated with the extension via the Posting, BBCodes tabs, then edit each bbcode and select the Group permissions. I know this works with custom bbcodes, not positive if it would work with an actual extension though.

User avatar

Topic Author
Sniper_E
VIP
VIP
Posts: 1157
Joined: 14 Oct 2014, 19:01
    Windows 10 Firefox

Re: [RC] Tables bbCodes

Post by Sniper_E »

You taught me something new dm... I use event acp_posting_buttons_custom_tags_before.html in tables.

So I looked...
Image

Therefor in the tables/ext.php file I would use:

Code: Select all

	public function is_enableable()
	{
		$config = $this->container->get('config');
		return version_compare($config['version'], '>=3.1.10-RC1');
	}
I did not know what to look for before, now I do. Thanks! :thumbup:

Sniper_E wrote: 01 Oct 2016, 03:19Now there is a problem with the table bbcode not showing in the acp if posting buttons or abbc extensions are not installed.
The adm/style/acp_posting_buttons.html needs an event for this <!-- EVENT acp_posting_buttons_custom_tags_before -->
I have requested this event added at area51 already. But if they do add it... it will come out in a newer version of phpbb3.
As you can see from the image above they added it right away. Why was I not notified that they added it? Need to know kind of thing I guess.

User avatar

dmzx
Founder
Founder
Posts: 6464
Joined: 13 Jan 2014, 21:45
    Windows 10 Chrome

Re: [RC] Tables bbCodes

Post by dmzx »

Sniper_E wrote: 21 Oct 2016, 09:15 You taught me something new dm... I use event acp_posting_buttons_custom_tags_before.html in tables.
:thumbup:

User avatar

mh254
Users
Users
Posts: 15
Joined: 28 Jan 2016, 09:23
    Windows 10 Chrome

Re: [RC] Tables bbCodes

Post by mh254 »

I use the latest version and the table looks like this:
2016-10-21_14h10_52.png
This is the text in posting:

Code: Select all

[size=130]Vim Manager Settings[/size][table=95 vimmanager][thead]
[tr=null][th=30]Bezeichnung[/th][th=30]Wert[/th][th=40]Kommentar[/th][/tr]
[/thead][tbody]
[tr=bg2][td]V...
Where are those linebreaks coming from?
2016-10-21_14h03_22.png
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.

User avatar

Topic Author
Sniper_E
VIP
VIP
Posts: 1157
Joined: 14 Oct 2014, 19:01
    Windows 10 Firefox

Re: [RC] Tables bbCodes

Post by Sniper_E »

When you click on a table, how ever many rows and columns you want and it inserts it in the textarea...
It will insert it in one line. Leave it that way and edit the titles and text areas the way it is.

You are entering the <br/>s yourself trying to make it look right in the textarea. Don't do that.
Click on a table choice and then click Preview. It will show without any <br/>s.
Then hit Enter to drop a row down and click Preview, you will see a <br/> added by you.

https://www.phpbb.com/community/viewtop ... #p14521076
The only directions wrote:Click Preview after inserting table. From your view change the titles and text to suit your post.

User avatar

mh254
Users
Users
Posts: 15
Joined: 28 Jan 2016, 09:23
    Windows 10 Chrome

Re: [RC] Tables bbCodes

Post by mh254 »

Thanks, now it looks good :)

User avatar

Topic Author
Sniper_E
VIP
VIP
Posts: 1157
Joined: 14 Oct 2014, 19:01
    Windows 10 Firefox

Re: [RC] Tables bbCodes

Post by Sniper_E »

I should add that to the directions. You are not the first one to do that.

Post Reply Previous topicNext topic