Code Sample/Block Issue

Please report bugs here!

Moderator: Thorsten

Post Reply
tomjinx1
Posts: 10
Joined: Thu Sep 22, 2016 6:10 pm

Code Sample/Block Issue

Post by tomjinx1 » Thu Sep 22, 2016 6:41 pm

when making a post and using <pre> and <code> tags, it is displaying incorrectly on the front end if I add href="#" in the code block.

So in the FAQ post in Admin click on the code button, enter my code. When I view the source code, everything looks correct. When I view the post on the front in, it replaces my # with the url of my sight with the # at the end.

I have attached 3 images, image 1 and 2 show what it looks like on the admin side and image 3 is what it looks like on the front end.

Can someone tell me how to fix this so it shows correctly on the front end?

Thanks
Tommy
You do not have the required permissions to view the files attached to this post.

Thorsten
Posts: 14431
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Code Sample/Block Issue

Post by Thorsten » Thu Sep 22, 2016 7:27 pm

Hi,

this is a 10 year old hack which doesn't work any more as it seems. Please try to remove these lines:

https://github.com/thorsten/phpMyFAQ/bl ... #L106-L116

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

tomjinx1
Posts: 10
Joined: Thu Sep 22, 2016 6:10 pm

Re: Code Sample/Block Issue

Post by tomjinx1 » Thu Sep 22, 2016 8:13 pm

removing those lines in the php file made the whole post disappear. However, I just modified the sprintf to be href="#' and that took care of the issue. Thanks for you help. Great product.

Thorsten
Posts: 14431
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Code Sample/Block Issue

Post by Thorsten » Fri Sep 23, 2016 7:25 pm

Hi,

thanks for the feedback, I'll remove the broken code.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest