Images Not Linkable

Get help developing custom BBCodes or request one.
profKroy
Registered User
Posts: 139
Joined: Sun Feb 14, 2016 2:39 pm

Images Not Linkable

Post by profKroy » Mon Jul 22, 2019 7:10 pm

I've run into a bit of odd behavior when trying to link image, that I can't seem to resolve <cough>

Using this combination of BBCode should result in a linkable image in the post.

Code: Select all

[url=https://www.bbcode.org/images/lubeck.jpg][img]https://www.bbcode.org/images/lubeck_small.jpg[/img][/url]
On my 3.2.5 board, this functionality has disappeared for some reason. The HTML that is derived from the BBCode combination is this:

Code: Select all

<a href="https://www.bbcode.org/images/lubeck.jpg" class="postlink"></a>
<img src="https://www.bbcode.org/images/lubeck_small.jpg" class="postimage" alt="Image">
To my eye, the end tag </a> in the markup above is not positioned correctly to turn the image into a link. Question is, why?

What I know:
- my extensions don't seem to be causing this. I've disabled and tested.
- nor is the custom style affecting this, as far as I can tell. When I preview in Prosilver, the issue persists.

Wondering what I might look at next. Many thanks for your helpful insight.
Are you a skilled extension developer? I need an extension developed right now. Here are the general specs. Please PM me if interested.

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

Re: Images Not Linkable

Post by 3Di » Mon Jul 22, 2019 7:21 pm

3.2.7 and prosilver, it works: http://prntscr.com/oilph6

Code: Select all

<a href="https://www.bbcode.org/images/lubeck.jpg" class="postlink"><img src="https://www.bbcode.org/images/lubeck_small.jpg" class="postimage" alt="Image"></a>
http://prntscr.com/oilq3m
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 | πŸ‘¨β€πŸ«

profKroy
Registered User
Posts: 139
Joined: Sun Feb 14, 2016 2:39 pm

Re: Images Not Linkable

Post by profKroy » Mon Jul 22, 2019 8:26 pm

3Di wrote: ↑
Mon Jul 22, 2019 7:21 pm
3.2.7 and prosilver, it works: http://prntscr.com/oilph6

Code: Select all

<a href="https://www.bbcode.org/images/lubeck.jpg" class="postlink"><img src="https://www.bbcode.org/images/lubeck_small.jpg" class="postimage" alt="Image"></a>
http://prntscr.com/oilq3m
Thanks 3Di. It is a 3.2.5 issue then?
Are you a skilled extension developer? I need an extension developed right now. Here are the general specs. Please PM me if interested.

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

Re: Images Not Linkable

Post by 3Di » Mon Jul 22, 2019 8:38 pm

profKroy wrote: ↑
Mon Jul 22, 2019 8:26 pm
Thanks 3Di. It is a 3.2.5 issue then?
It works also in 3.2.5: http://prntscr.com/oimot9 -> http://prntscr.com/oimpjg

Do you have some custom CSS there?
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 | πŸ‘¨β€πŸ«

profKroy
Registered User
Posts: 139
Joined: Sun Feb 14, 2016 2:39 pm

Re: Images Not Linkable

Post by profKroy » Mon Jul 22, 2019 8:54 pm

3Di wrote: ↑
Mon Jul 22, 2019 8:38 pm
profKroy wrote: ↑
Mon Jul 22, 2019 8:26 pm
Thanks 3Di. It is a 3.2.5 issue then?
It works also in 3.2.5: http://prntscr.com/oimot9 -> http://prntscr.com/oimpjg

Do you have some custom CSS there?
No custom CSS I added that I can recall. I think it's pretty clean and unmodified. Is there a specific document/code that I can navigate to? Sorry, I'm still not as versed as I'd like to be on how all the code is structured and organized. Thanks 3Di.
Are you a skilled extension developer? I need an extension developed right now. Here are the general specs. Please PM me if interested.

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

Re: Images Not Linkable

Post by 3Di » Mon Jul 22, 2019 8:57 pm

profKroy wrote: ↑
Mon Jul 22, 2019 8:54 pm
Is there a specific document/code that I can navigate to? Sorry, I'm still not as versed as I'd like to be on how all the code is structured and organized.
No probs at all, just trying to figure out the issue.
Do you have some custom BBcodes which relates to IMG or URL?
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 | πŸ‘¨β€πŸ«

User avatar
Lumpy Burgertushie
Registered User
Posts: 66469
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Images Not Linkable

Post by Lumpy Burgertushie » Mon Jul 22, 2019 9:01 pm

works just fine for me as well.
the html is correct also.
maybe you have some extension that is conflicting. something that has to do with bbcode?

robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

profKroy
Registered User
Posts: 139
Joined: Sun Feb 14, 2016 2:39 pm

Re: Images Not Linkable

Post by profKroy » Mon Jul 22, 2019 9:14 pm

3Di wrote: ↑
Mon Jul 22, 2019 8:57 pm
profKroy wrote: ↑
Mon Jul 22, 2019 8:54 pm
Is there a specific document/code that I can navigate to? Sorry, I'm still not as versed as I'd like to be on how all the code is structured and organized.
No probs at all, just trying to figure out the issue.
Do you have some custom BBcodes which relates to IMG or URL?
I've installed the extension "Advance BBCode" many years ago. It's not updated. However, I've disable the extension to test with no results. Other than that I can't see any other BBCode that may conflict. Although I have added some in the past, but none that explicitly make changes to images or links.
Are you a skilled extension developer? I need an extension developed right now. Here are the general specs. Please PM me if interested.

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

Re: Images Not Linkable

Post by 3Di » Mon Jul 22, 2019 9:21 pm

Try updating such extension and then .. re-enable it.
Follow the instructions provided.
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 | πŸ‘¨β€πŸ«

profKroy
Registered User
Posts: 139
Joined: Sun Feb 14, 2016 2:39 pm

Re: Images Not Linkable

Post by profKroy » Tue Jul 23, 2019 6:06 pm

Updated the "Advanced BBCode" extension and issue persists.

Obviously the HTML is being written incorrectly. I'd upgrade to 3.2.7 but the board is being used quite heavily at the moment so would prefer an alternative. Other things to check?

I've ruled out the styles and extensions, unless Prosilver might be causing an issue.

EDIT: Because I can't stop trying to solve this, I upgraded to 3.2.7...a full install, and the problem still persists. Now I'm thinking that something in my BBCodes is causing a conflict, but I'm not sure how. How would I make that determination? Thanks for considering this.

Creating a simple text hyperlink works fine. And I obviously can embed an image. Combined, something goes wrong apparently.

Tested 3 browsers, no ad blockers or extensions running. And the functionality work for me on this phpBB board.

Image
Are you a skilled extension developer? I need an extension developed right now. Here are the general specs. Please PM me if interested.

User avatar
JoshyPHP
Code Contributor
Posts: 1005
Joined: Mon Jul 11, 2011 12:28 am

Re: Images Not Linkable

Post by JoshyPHP » Wed Jul 24, 2019 9:35 am

Go to your admin panel and clear the cache if you haven't already.
I wrote the thing that does BBCodes in 3.2.

User avatar
ViolaF
Registered User
Posts: 1452
Joined: Tue Aug 14, 2012 11:52 pm

Re: Images Not Linkable

Post by ViolaF » Wed Jul 24, 2019 3:03 pm

Image

Happy 1000th Post - Hurray... :lol:

profKroy
Registered User
Posts: 139
Joined: Sun Feb 14, 2016 2:39 pm

Re: Images Not Linkable

Post by profKroy » Wed Jul 24, 2019 6:14 pm

JoshyPHP wrote: ↑
Wed Jul 24, 2019 9:35 am
Go to your admin panel and clear the cache if you haven't already.
Yes, always purge the cache in ACP after changes.

This is the most bizarre thing. My other thought is that it's not a phpBB issue at all, hence the browser testing and perhaps it's so obvious I'm just overlooking it.

Other things to report.

- completely fresh prosilver install.
- no extensions running.
- custom BBCodes still in place though

But it still remains, the HTML is being generated incorrectly for some reason from that order of BBCode i.e.,

Code: Select all

[url][img][/img][/url].
Can you point me in the direction of where the img BBCode is? I want to double check that there's no issue there. So I thought maybe I'd compare that code to see if there are any differences that might cause this issue. But maybe that's the wrong path to follow. All advise welcome at this point.
Are you a skilled extension developer? I need an extension developed right now. Here are the general specs. Please PM me if interested.

User avatar
JoshyPHP
Code Contributor
Posts: 1005
Joined: Mon Jul 11, 2011 12:28 am

Re: Images Not Linkable

Post by JoshyPHP » Wed Jul 24, 2019 6:36 pm

Check out your database and post the XML for that message here. It should start with something like this: <r><URL><s>[url

Also, look into your cache/production directory, find a file named like s9e_renderer_*.php and attach it here. If there's more than one file, clear your cache and try again.

If the issue is related to style, switching style may not make a difference but uninstalling it will.
I wrote the thing that does BBCodes in 3.2.

profKroy
Registered User
Posts: 139
Joined: Sun Feb 14, 2016 2:39 pm

Re: Images Not Linkable

Post by profKroy » Wed Jul 24, 2019 7:10 pm

JoshyPHP wrote: ↑
Wed Jul 24, 2019 6:36 pm
Check out your database and post the XML for that message here. It should start with something like this: <r><URL><s>[url

Also, look into your cache/production directory, find a file named like s9e_renderer_*.php and attach it here. If there's more than one file, clear your cache and try again.

If the issue is related to style, switching style may not make a difference but uninstalling it will.
Thanks will follow through with this.

Quick question, when you say to "check out the database and post the XML" can you elaborate a little for clarification? Specific table? Thanks, as always.
Are you a skilled extension developer? I need an extension developed right now. Here are the general specs. Please PM me if interested.

Post Reply

Return to β€œCustom BBCode Development and Requests”