BB Code - adding icons to custom code

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
spiritatbay
Registered User
Posts: 51
Joined: Mon Feb 06, 2017 1:37 am

BB Code - adding icons to custom code

Post by spiritatbay » Thu Jun 15, 2017 3:27 am

Is it possible/simple to add icons to custom BB code so that they show as that instead of text?

For the sake of aesthetics, I'd like it to look all around like the default codes in the bar below, rather than the custom ones that follow past "normal":

Image

Is it possible?

User avatar
3Di
Former Team Member
Posts: 14379
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: BB Code - adding icons to custom code

Post by 3Di » Thu Jun 15, 2017 3:46 am

Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
👨‍🏫 | Take a tour to | The Studio | 👨‍🏫

spiritatbay
Registered User
Posts: 51
Joined: Mon Feb 06, 2017 1:37 am

Re: BB Code - adding icons to custom code

Post by spiritatbay » Thu Jun 15, 2017 5:25 pm

Been using that, but running into issues with nested quotes, hence why I wanted to revert to default editor.

User avatar
Mick
Support Team Member
Support Team Member
Posts: 21678
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: BB Code - adding icons to custom code

Post by Mick » Thu Jun 15, 2017 6:54 pm

In that case to do what you want you would need an extension.
"The more connected we get the more alone we become" - Kyle Broflovski

spiritatbay
Registered User
Posts: 51
Joined: Mon Feb 06, 2017 1:37 am

Re: BB Code - adding icons to custom code

Post by spiritatbay » Thu Jun 15, 2017 7:18 pm

Mick wrote:
Thu Jun 15, 2017 6:54 pm
In that case to do what you want you would need an extension.
Alright. That's what I wanted to know.

Thanks :)

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

Re: BB Code - adding icons to custom code

Post by AbaddonOrmuz » Thu Jun 15, 2017 11:02 pm

You can do it with CSS, that's what I'm doing in my simple spoiler extension, but it might not work on every web browser.

https://github.com/AlfredoRamos/phpbb-e ... ss#L31-L37
https://github.com/AlfredoRamos/phpbb-e ... ss#L43-L59
Some of my phpBB extensions: [ Imgur | SEO Metadata | Markdown ]
Check out all my extensions
Arch Linux user

spiritatbay
Registered User
Posts: 51
Joined: Mon Feb 06, 2017 1:37 am

Re: BB Code - adding icons to custom code

Post by spiritatbay » Fri Jun 16, 2017 2:45 pm

AbaddonOrmuz wrote:
Thu Jun 15, 2017 11:02 pm
You can do it with CSS, that's what I'm doing in my simple spoiler extension, but it might not work on every web browser.

https://github.com/AlfredoRamos/phpbb-e ... ss#L31-L37
https://github.com/AlfredoRamos/phpbb-e ... ss#L43-L59
I'm afraid that goes beyond my coding abilities :) Thanks though.

Post Reply

Return to “[3.2.x] Support Forum”