Search found 14 matches

by Elya
Fri Feb 14, 2020 9:02 am
Forum: Custom BBCode Development and Requests
Topic: Replace br in bbcode
Replies: 13
Views: 942

Re: Replace br in bbcode

I'll try to make it clearer then. This bbcode calls a JS file that builds an image gallery from a few parameters such as the name of the folder(s) which contains the images on the server, the number of images per line, and the list of the images themselves. The list of images should look like this :...
by Elya
Tue Feb 11, 2020 8:08 pm
Forum: Custom BBCode Development and Requests
Topic: Replace br in bbcode
Replies: 13
Views: 942

Re: Replace br in bbcode

What I am trying to do is to process a list of images and in case there are line breaks, remove them so the bbcode can transform it into HTML. Is there a way to do this without applying a regex? JS doesn't work.
by Elya
Wed Feb 05, 2020 4:34 pm
Forum: Custom BBCode Development and Requests
Topic: Replace br in bbcode
Replies: 13
Views: 942

Re: Replace br in bbcode

OK, so I have no way to apply a regex to my BBcode then?
by Elya
Wed Feb 05, 2020 3:42 pm
Forum: Custom BBCode Development and Requests
Topic: Replace br in bbcode
Replies: 13
Views: 942

Re: Replace br in bbcode

I understand and I'll take a deeper look at the data thing. I'd like to understand the regex part in the database though, can somebody explain to me how it works? What I mean is, if there is the right regex for my BBcode in the database, could the line break removal work whether it is {TEXT} or {INT...
by Elya
Wed Feb 05, 2020 3:00 pm
Forum: Custom BBCode Development and Requests
Topic: Replace br in bbcode
Replies: 13
Views: 942

Re: Replace br in bbcode

It entirely depends on the BBCode's template. IIRC, the "not safe" warning in phpBB 3.3 is fairly accurate. Here is my code: BBcode usage: [myBBCode={INTTEXT1} ipl={NUMBER1} thumb={NUMBER2}]{TEXT}[/myBBcode] HTML replacement: <script type="text/javascript"> myFunction("{INTTEXT1}","{TEXT}",{NUMBER2...
by Elya
Wed Feb 05, 2020 2:52 pm
Forum: Custom BBCode Development and Requests
Topic: Replace br in bbcode
Replies: 13
Views: 942

Re: Replace br in bbcode

Thank you for your help. Currently there are very few posts that contains this BBcode because I'm still working on it and still making changes, but I'd like to start using it soon. What exactly are the risks if I use {TEXT} instead of {INTTEXT} ? This BBcode will not appear in the posting page, it i...
by Elya
Tue Feb 04, 2020 3:17 pm
Forum: Custom BBCode Development and Requests
Topic: Replace br in bbcode
Replies: 13
Views: 942

Re: Replace br in bbcode

Hi, can someone help me? Thanks :)
by Elya
Fri Jan 31, 2020 10:36 am
Forum: Custom BBCode Development and Requests
Topic: Replace br in bbcode
Replies: 13
Views: 942

Replace br in bbcode

Hello, I have a few questions about regex and the database. I have noticed than in my old phpBB forum, every bbcode field in the database was automatically filled with regular expressions : first_pass_match, first_pass_replace, second_pass_match, second_pass_replace. In the new version the "replace"...
by Elya
Thu Jan 09, 2020 8:38 pm
Forum: Custom BBCode Development and Requests
Topic: BBcode : % question
Replies: 9
Views: 704

Re: BBcode : % question

I will, thank you. And thanks for testing the BBcode :)
by Elya
Thu Jan 09, 2020 8:16 pm
Forum: Custom BBCode Development and Requests
Topic: BBcode : % question
Replies: 9
Views: 704

Re: BBcode : % question

OK, I'm sorry, the problem comes from elsewhere, I guess. Everytime I try to edit this BBcode, I fill the form and then click on the submit button, and I get a 403 error "forbidden" for some reason. I thought the modifications were saved anyway but I was wrong, everything I have tried was never save...
by Elya
Thu Jan 09, 2020 4:41 pm
Forum: Custom BBCode Development and Requests
Topic: BBcode : % question
Replies: 9
Views: 704

Re: BBcode : % question

Thank you, I have tried this previously and % is ignored.
by Elya
Thu Jan 09, 2020 3:08 pm
Forum: Custom BBCode Development and Requests
Topic: BBcode : % question
Replies: 9
Views: 704

Re: BBcode : % question

Yes I know but for some reason the % sign is being totally ignored. [thumb={NUMBER}]{URL}[/thumb] <a href="{URL}" class="highslide" onclick="return hs.expand(this, config1)"><img src="{URL}" alt="" title="" width="{NUMBER}%"/></a>  There's % here, but I've tried with % or others a...
by Elya
Thu Jan 09, 2020 2:12 pm
Forum: Custom BBCode Development and Requests
Topic: BBcode : % question
Replies: 9
Views: 704

BBcode : % question

Hello guys,
I have a question about the % sign in bbcode. I'd like to resize an image using % value instead of pixels, but the % sign is totally ignored, how does it work? Thanks.
by Elya
Fri Sep 07, 2018 8:50 am
Forum: Custom BBCode Development and Requests
Topic: BBcode that generates an image gallery
Replies: 1
Views: 549

BBcode that generates an image gallery

Hi guys, I'm trying to put together a code that would allow me to : - automatically list the image files from a given directory on my server - get the list back as a string - use that string to generate a gallery image The BBcode itself would look like this: [gallery]folder_name[/gallery] So I manag...

Go to advanced search