Forum Link to Topic Title

Mixed forum with code snippets, guides and styles
Forum rules
Everything in this forum is for everybody
But support only for Donators!
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Forum Link to Topic Title

Post by Stoker »

sure
Board rules! No PM support
User avatar
Rhyno
BBCoder III
BBCoder III
Posts: 100
Joined: 25 Jan 2012, 06:06
BBCodes: 10
Favourite MOD: Top Stats
Location: Australia
Contact:

Forum Link to Topic Title

Post by Rhyno »

Does this change old URL's already posted... I just did the edits and internal URL's didn't change.

EDIT : Ahhh worked out why... any old URL's with BBCODE [URL] don't change :)
Leinad4Mind
BBCoder II
BBCoder II
Posts: 27
Joined: 28 Apr 2011, 12:55

Forum Link to Topic Title

Post by Leinad4Mind »

Hi there, this MOD have some incompatibility with Download MOD.
I've been able to fix with this new code:

Code: Select all

			$text			= $relative_url;
			// Download MOD 6 - Check for download title, if directlink to download was given
			$text			=  preg_replace_callback("#(downloads\.php\?view=detail&df_id=)(\d+)#i", 'dl_mod_callback', $text);
			// Download MOD 6
			if($text == $relative_url)
			{
				$text			=  fetch_forumtitle($url);
			}
But it have a bug that I can't fix. When we have:

Code: Select all

[quote]http://www.phpbb3bbcodes.com/posting.php?mode=reply&f=45&t=1995
http://www.phpbb3bbcodes.com/posting.php?mode=reply&f=45&t=1995[/quote]
It appears as:
The first link isn't parsed... :(

EDIT: phpBB Bug after all, solved here: http://tracker.phpbb.com/browse/PHPBB3-10268
User avatar
sakkiotto
BBCoder I
BBCoder I
Posts: 3
Joined: 13 Apr 2014, 23:53
BBCodes: 14

Forum Link to Topic Title

Post by sakkiotto »

thnx Leinad4Mind .. for download fix :)

but internal link are again search.php faq.php etc...
User avatar
Nully
Donator
Donator
Posts: 258
Joined: 15 Mar 2010, 00:03
BBCodes: 10
Favourite MOD: Radios
Location: France > Bulgaria
Contact:

Re: Forum Link to Topic Title

Post by Nully »

Hello,
do you know if there will be an extension for Ascraeus?
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: Forum Link to Topic Title

Post by Stoker »

no, but try this one and see what happens
Board rules! No PM support
User avatar
Nully
Donator
Donator
Posts: 258
Joined: 15 Mar 2010, 00:03
BBCodes: 10
Favourite MOD: Radios
Location: France > Bulgaria
Contact:

Re: Forum Link to Topic Title

Post by Nully »

I have it on my forum online. I have Ascraus locally and I prefere not to modify files.
User avatar
martin123456
BBCoder VI
BBCoder VI
Posts: 765
Joined: 25 Jul 2011, 13:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!
Contact:

Re: Forum Link to Topic Title

Post by martin123456 »

Yes there is an ext https://www.phpbb.com/community/viewtop ... &t=2277841 and from what i understand its the same code. (i have not looked at the files to verify this tho)
User avatar
Nully
Donator
Donator
Posts: 258
Joined: 15 Mar 2010, 00:03
BBCodes: 10
Favourite MOD: Radios
Location: France > Bulgaria
Contact:

Re: Forum Link to Topic Title

Post by Nully »

Thank you martin123456 :)
Post Reply