TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

March 29, 2024, 04:51:42 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,105
  • Total Topics: 21,213
  • Online today: 304
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 311
  • Total: 311

Link goes no where

Started by bigguy, December 03, 2018, 03:04:29 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

tino

Quote from: @rjen on December 03, 2018, 04:42:49 PM
Sorry, that's on Xampp, so you cant get to it...

I didn't want to access it... I just wanted to know the board url to see if it was becuse I was using a custom url here. Although I have tried localhost and the ip directly also.

lurkalot

I've replied to your PM tino. You have access to test site 3 running 2.1 http://cctestsite.info/testsite3/index.php

tino

Quote from: lurkalot on December 03, 2018, 05:36:52 PM
I've replied to your PM tino. You have access to test site 3 running 2.1 http://cctestsite.info/testsite3/index.php

Thanks, I can see it broken on yours, as per the others and it's controlled by Automatically link posted URLs so SMF is converting it incorrectly into bbc code then converting it back wrongly as well..


tino

Ok so by manually breaking my TinyPortal install using the url from lurkalots site it breaks for me... so now to find out where SMF is falling over.

@rjen

Sorry, I was away for dinner.

You lost me now: you break it by using a different URL? HOW?

My broken test site URL happened to be: http://localhost/forum/index.php
and the online one that broke was:
https://test2.fjr-club.nl/index.php
Running Latest TP on SMF2.1 at: www.fjr-club.nl

lurkalot

I guess buy adding this to the end of the url, like that broken link does. /%3Ca%20href=

I don't know though, all way over my head.  :-[

tino

By changing the readmore to be this.

$row['body'] .= '... <p><strong><a href="https://cctestsite.info/testsite3/index.php?topic=13">'. $txt['tp-readmore']. '</a></strong></p>';


lurkalot

I was way off the mark then. lol.. This is why I leave this stuff to the clever people.  ;)

tino

The more I debug it the more I wonder if we have either always abused the parse_bbc function or if it's got a bug.

I'm not sure if to raise it on GH for SMF2.1 or not

tino

Ok so can you please try the following in TPortal.php in the two locations where we use readmore my copy of TPortal.php is so edited from this that I can't give you a line number.


$row['body'] .= '... <p><strong>'.$smcFunc['htmlspecialchars']('<a href="'. $scripturl. '?topic='. $row['id']. '">'. $txt['tp-readmore']. '</a>').'</strong></p>';


This gets around the bug....rather than actually solving it.