[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!
Scam Warning
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
JoshyPHP
Code Contributor
Posts: 1292
Joined: Mon Jul 11, 2011 12:28 am

Re: [BETA] Advanced BBCode Box 3.1

Post by JoshyPHP »

You can add AND post_id = 123 to the query, where 123 is the post_id of the test post.
I wrote the library that handles markup in phpBB 3.2+.
User avatar
M.O.B.
Registered User
Posts: 944
Joined: Tue Jan 04, 2005 1:07 am
Location: San Diego CA USA

Re: [BETA] Advanced BBCode Box 3.1

Post by M.O.B. »

JoshyPHP wrote:You can add AND post_id = 123 to the query, where 123 is the post_id of the test post.
Can you put it together for me?

This is the code to do it to all posts:

Code: Select all

UPDATE phpbb_posts
SET post_text = REPLACE(
   post_text,
   CONCAT('[hr:', bbcode_uid, ']'),
   CONCAT('[hr:', bbcode_uid, '][/hr:', bbcode_uid, ']')
)
WHERE post_text LIKE '%[hr:%'
Where does that above code fit so it only focuses on one post (for testing).?
Image
User avatar
JoshyPHP
Code Contributor
Posts: 1292
Joined: Mon Jul 11, 2011 12:28 am

Re: [BETA] Advanced BBCode Box 3.1

Post by JoshyPHP »

If you don't know anything about SQL you should not be running random queries on your database. Here's the query I gave you with the other condition appended to it. It might obliterate all of your posts. Good luck.

Code: Select all

UPDATE phpbb_posts
SET post_text = REPLACE(
   post_text,
   CONCAT('[hr:', bbcode_uid, ']'),
   CONCAT('[hr:', bbcode_uid, '][/hr:', bbcode_uid, ']')
)
WHERE post_text LIKE '%[hr:%'
AND post_id = 123
I wrote the library that handles markup in phpBB 3.2+.
User avatar
M.O.B.
Registered User
Posts: 944
Joined: Tue Jan 04, 2005 1:07 am
Location: San Diego CA USA

Re: [BETA] Advanced BBCode Box 3.1

Post by M.O.B. »

Yeah, your query does seem like it will do all of them and also the one I will also focus on.

I was hoping to just test one post, so I can see if it will work or not.

I can always just backup my database, then run the first one you gave me. And if it messes it up or doesn't work. I could then redump my backup. Keep in mind that this is not a live board yet. I am still tweaking away before I go live--perhaps several months until all the past MODs are converted to EXTENSIONS by the devs.

Question: when I do this, will it automatically reparse all the posts with that new BBCode property? If not, I will wait until STK is made available for 3.1.x
Image
stragami
Registered User
Posts: 20
Joined: Thu Dec 06, 2012 5:48 am

Re: [BETA] Advanced BBCode Box 3.1

Post by stragami »

after activation i get this error msg:

Code: Select all

Fatal error: Cannot redeclare class vse\abbc3\event\listener in /home/webwax5n/public_html/forum/ext/vse/abbc3/migrations/event/listener.php on line 18
what i can do?
lukiaensyl
Registered User
Posts: 31
Joined: Tue Oct 28, 2014 8:47 pm

Re: [BETA] Advanced BBCode Box 3.1

Post by lukiaensyl »

How can we rephrase the BBCode?
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 6097
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 »

stragami wrote:after activation i get this error msg:

Code: Select all

Fatal error: Cannot redeclare class vse\abbc3\event\listener in /home/webwax5n/public_html/forum/ext/vse/abbc3/migrations/event/listener.php on line 18
what i can do?
you managed to install it wrong. there is no such file event/listener.php inside /migrations/. Re-install the extension.
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
stragami
Registered User
Posts: 20
Joined: Thu Dec 06, 2012 5:48 am

Re: [BETA] Advanced BBCode Box 3.1

Post by stragami »

i copy all files comming from the beta version to/forum/ext/vse/abbc3

the file is inside /forum/ext/vse/abbc3/migrations/event

line 18

Code: Select all

class listener implements EventSubscriberInterface
can it happen that a file is missing inside the last betaversion?

rgds
alfred
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 6097
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 »

What I'm saying is there is no such thing as an event folder inside the migrations folder.

https://github.com/VSEphpbb/abbc3/tree/ ... migrations

I don't know what you did, so you should just start over with a fresh download.
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
John Leeuwis
Registered User
Posts: 20
Joined: Mon Sep 28, 2009 3:08 pm
Location: Netherlands
Name: John Leeuwis

Re: [BETA] Advanced BBCode Box 3.1

Post by John Leeuwis »

Do Legend and Tabs néver kom back, or is there still hope :roll:
User avatar
cholo981
Registered User
Posts: 62
Joined: Mon Nov 10, 2014 9:40 am

Re: [BETA] Advanced BBCode Box 3.1

Post by cholo981 »

Hello,
the extension works pretty well.

I've just a couple of questions about the customization:
  • I created a custom BBcode [spoiler] to replace the one used by a mod on the old board (an inline versione of the spoil BBcode). Hoping that the STK's parse BBcode feature will do what I think it does ( :? ), I would like to replace the text button with an icon. It's there a place/file where I can do it?
  • Look like the active css is abbc3.min.css. May I use abbc3.css to be able to edit it, instead?
    Of course I can copy/paste the content of the second inside the first but I would like to keep clean;
Thanks
Cheers
discovery
Registered User
Posts: 13
Joined: Fri Nov 07, 2014 6:54 pm

Re: [BETA] Advanced BBCode Box 3.1

Post by discovery »

hello,

Possible in the future not to see appararaitre the youtube link above the video?

http://zupimages.net/up/14/46/zjmr.png
GregariousJB
Registered User
Posts: 32
Joined: Wed Oct 01, 2014 5:13 am

Re: [BETA] Advanced BBCode Box 3.1

Post by GregariousJB »

This extension is excellent. Thank you!

I tried searching for "bbcode" to see if this issue was already posted. I didn't find it, so I hope I'm not beating a dead horse:

I used ABBC on phpBB 3.0.12, and just recently upgraded to 3.1.1. After uninstalling ABBC on 3.0.12 and re-installing this new version on 3.1.1, I'm finding that BBcode isn't working.

For example: Glow. The forum post will simply have:

Code: Select all

[glow=red]Yes[/glow]
... rather than show the text glowing.

It appears to be installed correctly. It enabled fine. I can see the list of BBCodes in ACP > Posting > BBCodes, and the "Glow=" BBCode is showing the exact same HTML Replacement as shown in the v310_m4_install_data.php file.

What am I screwing up?
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 6097
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 »

discovery wrote:hello,

Possible in the future not to see appararaitre the youtube link above the video?

http://zupimages.net/up/14/46/zjmr.png
No. The link is available as a courtesy for user, in case the video itself provides no link to the source, or if the video is broken, so the user has a way to get to the video.

the issue in your image could be easily resolved by just choosing one of the largest size presets, so the video is full width, and then there is no need to center it.
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 6097
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 »

cholo981 wrote:Hello,
the extension works pretty well.

I've just a couple of questions about the customization:
  • I created a custom BBcode [spoiler] to replace the one used by a mod on the old board (an inline versione of the spoil BBcode). Hoping that the STK's parse BBcode feature will do what I think it does ( :? ), I would like to replace the text button with an icon. It's there a place/file where I can do it?
  • Look like the active css is abbc3.min.css. May I use abbc3.css to be able to edit it, instead?
    Of course I can copy/paste the content of the second inside the first but I would like to keep clean;
Thanks
Cheers
1. yes, as the first post says: "Custom BBCodes support icons if a GIF is available, otherwise it will display as text." So just add a gif named spoiler.gif to the images/icons folder
2. the un-minified files are there, mostly for the validation team to be able to review the code. If you need to change CSS it will need to be done to the minified versions.
Formerly known as VSEMy ExtensionsPlease do not PM me for support.

Return to “Extensions in Development”