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: Tables bbCodes

Post by Puchahawa »

Really smart change Sniper. I agree, it will make it easier to edit. :cool: :thumbup:

User avatar

Anuj Dhawan
Users
Users
Posts: 109
Joined: 31 Aug 2015, 10:32
    Windows 7 Chrome

Re: Tables bbCodes

Post by Anuj Dhawan »

Sniper_E wrote: 13 Sep 2016, 21:29 Far out! Now you have to start over again. :rolling:

First post updated to Version 2.0.0
First Post wrote:Extension Download:
Coming soon...
Am I'm missing something - My Girl says, "I'm getting old!" So may be I did miss something. :)

User avatar

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

Re: Tables bbCodes

Post by Puchahawa »

That's a bit odd. It was there yesterday when I was testing. :wtf:

Hey sniper I'm curious. As it stands at the moment the bbcodes define the overall table, header and body. With the header being used to define and label the columns. Is it possible to add 1 row above the header that would be a overall title for the table? Like in the pic.
question.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: 1161
Joined: 14 Oct 2014, 19:01
    Windows 10 Firefox

Re: Tables bbCodes

Post by Sniper_E »

Sorry I had to change the lang file real quick so I pulled it. I meant to put that back up last night. Done!
Puchahawa wrote: 14 Sep 2016, 17:54Hey sniper I'm curious. As it stands at the moment the bbcodes define the overall table, header and body. With the header being used to define and label the columns. Is it possible to add 1 row above the header that would be a overall title for the table? Like in the pic.
In the subsilver2 type table I created at first it had that overall title for the table, but prosilver's layout isn't built that way.
Adding a [size =130]overall title for the table[/size] at the beginning of the codes placed in the post would give you that.

You have 8 columns in that image. Maybe we should have more column choices in this, we have only 5 right now.
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: Tables bbCodes

Post by Puchahawa »

Ok thanks. Will play with that. It probably wouldn't hurt to add a few more columns. Maybe even 10x10. The pic was just a random sample to show my intent. Nothing to do with my board.

User avatar

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

Re: Tables bbCodes

Post by Sniper_E »

Your image using these tables with size 150 for the table title.
table_title.gif

OMG 10x10 choices... that would kill me to have to double the size of this.
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.

User avatar

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

Re: Tables bbCodes

Post by Puchahawa »

:rolling: Not a big deal just threw out those numbers. What ever works easiest for you. More columns / rows can be added manually if needed.

Appreciate your sharing the example of the title. :tumbsyes:

User avatar

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

Re: Tables bbCodes

Post by Puchahawa »

Came across another extension that needs some tlc. It's rmcgirr83's Contact Admin ext. v1.0.4
CBA.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: 1161
Joined: 14 Oct 2014, 19:01
    Windows 10 Firefox

Re: Tables bbCodes

Post by Sniper_E »

That looks like it wasn't picking up the css for the tables. Clear server cache and your browser.

User avatar

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

Re: Tables bbCodes

Post by Puchahawa »

Sniper_E wrote: 14 Sep 2016, 20:19 Clear server cache
:question: Are you meaning the board? if so, did that and browser and same result. don't know if it matters but that image is taken in the ACP / ext tab settings for the extension.

User avatar

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

Re: Tables bbCodes

Post by Sniper_E »

I just installed Contact Board Admin 1.0.3 to check that out and I don't see bbcodes in the setting, ACP

User avatar

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

Re: Tables bbCodes

Post by Puchahawa »

Puchahawa wrote: 14 Sep 2016, 20:12 Contact Admin ext. v1.0.4
The addition of that section in the ext setup is in v1.0.4

EDIT: It's in the development board topic before it was released. https://www.phpbb.com/community/viewtop ... tact+admin

or here at github: https://github.com/rmcgirr83/contactadmin

User avatar

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

Re: Tables bbCodes

Post by Sniper_E »

Yes got it. That being in the ACP it is pulling the ./adm/style/acp_posting_buttons.html into his settings page.
In the ACP the templates are using the ./adm/style/admin.css to load it's classes. No prosilver classes are used...
including any extension classes. And you must have created a acp_posting_buttons_after.html in the events/

In the ./adm/style/acp_posting_buttons.html file I added an event to get the tables button to show in the right place.

Code: Select all

<!-- EVENT acp_posting_buttons_custom_tags_before -->
	<!-- BEGIN custom_tags -->
	<input type="button" class="button2" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{custom_tags.BBCODE_HELPLINE}" />
	<!-- END custom_tags -->
</div>
<!-- EVENT acp_posting_buttons_after -->
Then I created a acp_posting_buttons_custom_tags_before.html in events/

Then you would have to add the table classes to the ./adm/style/admin.css

Code: Select all

/* Tables bbCode Extension
------------------------------------ */
tr.null {
	background-color: transparent;
}

.table-button {
	padding: 0 4px;
	height: 15px;
	margin: 1px -1px;
}

.tables .table-selections {
	display: none;
}

.tables:hover .table-selections {
	display: inline-block;
	position: absolute;
	padding: 4px 6px;
	margin-left: -70px;
	margin-top: 17px;
	border: solid 1px #666666;
	-webkit-border-radius: 8px;
	-o-border-radius: 8px;
	-moz-border-radius: 8px;
	border-radius: 8px;
	box-shadow: 3px 3px 6px #444;
	z-index: 999;
}

@media only screen and (max-width: 700px), only screen and (max-device-width: 700px) {
	.forumbg-table {
		margin-left: 0;
		margin-right: 0;
	}
	.table-button {
		padding: 0 7px;
		margin: 4px 2px;
	}
	.tables:hover .table-selections {
		padding: 4px 4px 4px 6px;
		margin-left: -80px;
		margin-top: 17px;
	}
}
But this does not get the class bg1 to work for the drop down. You would have to add that class also.

Code: Select all

.bg1 {
	background-color: #ECF3F7;
}
You are customizing the ACP pages and have left the forum.

User avatar

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

Re: Tables bbCodes

Post by Puchahawa »

Wow, thanks for looking into that for me. Sniper. :thumbup:

User avatar

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

Re: Tables bbCodes

Post by Sniper_E »

It's too bad that acp posting don't have a preview of that.

Open ext/mcgirr83/contactadmin/adm/style/acp_contact.html
Find This may be a partial find and not the whole line

Code: Select all

				<textarea name="contact_admin_info" rows="10" cols="60" style="width: 95%;" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onfocus="initInsertions();" data-bbcode="true">{CONTACT_INFO}</textarea>
Add after Add these lines on a new blank line after the preceding line(s) to find

Code: Select all

			<input type="submit" tabindex="5" name="preview" value="{L_PREVIEW}" class="button1"<!-- IF not S_PRIVMSGS --> onclick="document.getElementById('postform').action += '#preview';"<!-- ENDIF --> />
Then you should have a Preview

Post Reply Previous topicNext topic