[CDB] Simple Spoiler BBCode

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!
Get Involved
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
AbaddonOrmuz
Registered User
Posts: 694
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact:

Re: [3.2][RC] Simple Spoiler BBCode

Post by AbaddonOrmuz » Mon Feb 20, 2017 11:30 pm

JWPlatt wrote:
Mon Feb 20, 2017 4:59 am
The irony is that the spoiler title is truncated with an appended ellipsis before it gets too long anyway, so the whole subdiscussion about that is fairly moot.
ImageImage

Sure 8-)
JWPlatt wrote:
Mon Feb 20, 2017 4:59 am
I see you were able to apply my fix yourself without merging my Pull Request and attribution, Mr. Open Source. Good job.
I didn't use "your fix" because I used this as example, you know, you're not the only person who could reach the same conclusion.
Some of my phpBB extensions: [ Imgur | SEO Metadata | Markdown ]
Check out all my extensions
Arch Linux user

User avatar
AbaddonOrmuz
Registered User
Posts: 694
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact:

Re: [3.2][RC] Simple Spoiler BBCode

Post by AbaddonOrmuz » Mon Feb 20, 2017 11:32 pm

eunaumtenhoid wrote:
Sun Feb 19, 2017 12:48 pm
nice work dude^^

ty
Thanks, please test and report issues you find.
Some of my phpBB extensions: [ Imgur | SEO Metadata | Markdown ]
Check out all my extensions
Arch Linux user

User avatar
AbaddonOrmuz
Registered User
Posts: 694
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact:

Re: [3.2][RC] Simple Spoiler BBCode

Post by AbaddonOrmuz » Tue Feb 21, 2017 12:42 am

Version 1.0.5 released, see first post for upgrade instructions, the second one for the changelog.
Some of my phpBB extensions: [ Imgur | SEO Metadata | Markdown ]
Check out all my extensions
Arch Linux user

manicx
Registered User
Posts: 75
Joined: Fri Feb 14, 2003 6:40 pm

Re: [3.2][RC] Simple Spoiler BBCode

Post by manicx » Wed Feb 22, 2017 3:43 pm

Is there an icon for spoiler when you install it or you only type the bbcode in your post? I am confused because I had a BBCode for spoiler before and I can see the button with an icon and beside the world spoiler=. This comes from the bold (and larger) test in the BBCode usage that was set up:

[spoiler={TEXT2;optional}]{TEXT1}[/spoiler]

And the result is this

Image

The eye with the line is perfect. The thing is how to get rid of the text.

JWPlatt
Registered User
Posts: 25
Joined: Tue Nov 07, 2006 4:41 am

Re: [3.2][RC] Simple Spoiler BBCode

Post by JWPlatt » Wed Feb 22, 2017 3:59 pm

There is a Show (green) and Hide (red) icon/button, if that's what you mean, on the spoiler's Title Bar. The entire bar responds to a click - not just the button - which I think is a nifty feature.

AbaddonOrmuz has a screencap above on this page of the thread showing it.

User avatar
AbaddonOrmuz
Registered User
Posts: 694
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact:

Re: [3.2][RC] Simple Spoiler BBCode

Post by AbaddonOrmuz » Thu Feb 23, 2017 2:24 am

manicx wrote:
Wed Feb 22, 2017 3:43 pm
Is there an icon for spoiler when you install it or you only type the bbcode in your post? I am confused because I had a BBCode for spoiler before and I can see the button with an icon and beside the world spoiler=. This comes from the bold (and larger) test in the BBCode usage that was set up:

[spoiler={TEXT2;optional}]{TEXT1}[/spoiler]

And the result is this

Image

The eye with the line is perfect. The thing is how to get rid of the text.
Yes there is, but only if you check the "Display on posting" BBCode option.

It's hidden by default for this very reason, it might require edits for some styles, like setting a smaller font size in your case.

The text can be hidden, but this might not work on all browsers, please test and comment.

ext/alfredoramos/simplespoiler/styles/<STYLE>/theme/css/style.css

Add just before .bbcode-spoiler-::before

Code: Select all

.bbcode-spoiler- {
	font-size: 1px;
	letter-spacing: -1px;
}
Add inside .bbcode-spoiler-::before

Code: Select all

	letter-spacing: normal;
	padding: 0 2px;
It should look like this

Code: Select all

.bbcode-spoiler- {
	font-size: 1px;
	letter-spacing: -1px;
}

.bbcode-spoiler-::before {
	content: "\f070";
	font-style: normal;
	font-variant: normal;
	font-weight: normal;
	font-size: 14px;
	line-height: 1.3;
	font-family: FontAwesome;
	text-rendering: normal;
	letter-spacing: normal;
	padding: 0 2px;
}
PS: It would be helpful to know, your browser (and version) and the name of your style.
Some of my phpBB extensions: [ Imgur | SEO Metadata | Markdown ]
Check out all my extensions
Arch Linux user

manicx
Registered User
Posts: 75
Joined: Fri Feb 14, 2003 6:40 pm

Re: [3.2][RC] Simple Spoiler BBCode

Post by manicx » Thu Feb 23, 2017 11:18 am

Thanks for your answer

Browser: Firefox 51.0.1 (64bit)
Style is slate/bootlike. Slate extends bootlike and everything about bootlike can be found here

viewtopic.php?f=596&t=2404406

The outcome is this

Image

I assume that what I see as a line in the bottom right of the image is tiny text?

User avatar
AbaddonOrmuz
Registered User
Posts: 694
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact:

Re: [3.2][RC] Simple Spoiler BBCode

Post by AbaddonOrmuz » Thu Feb 23, 2017 1:18 pm

manicx wrote:
Thu Feb 23, 2017 11:18 am
Thanks for your answer

Browser: Firefox 51.0.1 (64bit)
Style is slate/bootlike. Slate extends bootlike and everything about bootlike can be found here

viewtopic.php?f=596&t=2404406

The outcome is this

Image

I assume that what I see as a line in the bottom right of the image is tiny text?
ext/alfredoramos/simplespoiler/styles/<STYLE>/theme/css/colors.css

Code: Select all

.bbcode-spoiler- {
	color: transparent;
}

.bbcode-spoiler-::before {
	color: #fff;
}
Some of my phpBB extensions: [ Imgur | SEO Metadata | Markdown ]
Check out all my extensions
Arch Linux user

manicx
Registered User
Posts: 75
Joined: Fri Feb 14, 2003 6:40 pm

Re: [3.2][RC] Simple Spoiler BBCode

Post by manicx » Thu Feb 23, 2017 3:30 pm

You are a legend! Works like a dream! :D

User avatar
AbaddonOrmuz
Registered User
Posts: 694
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact:

Re: [CDB] Simple Spoiler BBCode

Post by AbaddonOrmuz » Fri Mar 24, 2017 1:22 pm

Version 1.0.2 been accepted into the Customisation Database, support for this extension will be provided in the following link:

Simplle Spoiler BBCode - Support

PS: The latest version has been uploaded for revision, it will be available as soon as it passes the validation.
Some of my phpBB extensions: [ Imgur | SEO Metadata | Markdown ]
Check out all my extensions
Arch Linux user

Locked

Return to “Extensions in Development”