[ABD] Local URL To Text

Any abandoned Extensions will be moved to this forum.

WARNING: Extensions in this forum are not currently being supported or maintained by the original Extension author. Proceed at your own risk.
Forum rules
IMPORTANT: Extension Development Forum rules

WARNING: Extensions in this forum are not currently being supported nor updated by the original Extension author. Proceed at your own risk.
User avatar
___Martin
Registered User
Posts: 58
Joined: Wed Aug 27, 2014 3:05 pm
Location: Germany

Re: [BETA] Local URL To Text

Post by ___Martin »

Updated to version Beta2. Since I changed the vendor and package name to all lowercase, unfortunately you have to reinstall the extension.

Please follow these steps if you already have installed the previous version:
  1. Note your settings in the ACP on the Extensions > Local URL To Text > Settings page.
  2. Disable the extension in the ACP on the Customise > Manage Extensions page.
  3. Delete data for the extension on the same page.
  4. Delete the folder /ext/Martin/LocalUrlToText and all contained files.
  5. Delete the folder /ext/Martin (should be empty since this is my first extension).
  6. Create new folders /ext/martin/localurltotext (all lowercase!).
  7. Download the extension from the repository and unpack it to this folder.
  8. Enable the extension on the Customise > Manage Extensions page.
  9. On the Extensions > Local URL To Text > Settings page, fill in your noted values from step 1.
M.Gaetan89 wrote:When replacing a link to a user profile, would it be possible to colorized the link with the user's group color?
Thanks, I will consider adding this feature. It is possible to use HTML code like <span style="color: red;">{USER_NAME}</span> as a text replacement for user profile links, but the group color is not currently available. I will look into implementing it.

Schtorsch wrote:EDIT: Seems to be an extension for external links. Disabled -> now the mod works fine. :)
I have to search a better mod for external links...
Thank you for the feedback. I plan to release another extension that opens external links in new browser windows, perhaps you would like to check that extension when I release it. :)
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6798
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James

Re: [BETA] Local URL To Text

Post by HiFiKabin »

Schtorsch wrote:Hm, I tested the extension and get the correct result at my first post.
From the second post it doesn´t work for me. At preview it looks correct - but if I send the posting the link is the URL and not the topic title...

Whats going wrong?

EDIT: Seems to be an extension for external links. Disabled -> now the mod works fine. :)
I have to search a better mod for external links...
I am using it with ELONW enabled without a problem

Image
image post
Schtorsch
Registered User
Posts: 52
Joined: Tue Aug 12, 2008 8:49 am

Re: [BETA] Local URL To Text

Post by Schtorsch »

ELONW is okay - but that mod opens my lightbox-links also in new tabs...
But I don´t want that. So I use only the mod "External Links" - and it works for now.
Nully
Registered User
Posts: 453
Joined: Thu Jan 29, 2009 10:11 pm
Location: France

Re: [BETA] Local URL To Text

Post by Nully »

___Martin wrote:
Nully wrote:Is it different from Convert Local Url To Link Name?
viewtopic.php?f=456&t=2277841
Yes. HAMMER663's extension converts the local URL links when submitting a message to the database, e.g. when posting a reply, so the posting of the member is modified. My extension does not alter the messages, but rather replaces the local URL links when viewing the message.

This implies that while HAMMER663's extension is called only once when submitting messages, my extension is called for every view of a message. To reduce the load, my extension tries to minimize database queries.

This also implies that the link texts that HAMMER663's extension creates could be out of date. Imagine a topic that someone posts a link to, but then a while later the topic is renamed. The link texts of HAMMER663's extension will still contain the old topic title, while the link texts of my extension will display the new title.

Another difference would be that in the current version of HAMMER663's extension you (as board admin) are not able to customize the way the text links are created.
Thank you for your good explanation.
User avatar
Wolfsblvt
Registered User
Posts: 634
Joined: Sun Oct 26, 2014 9:12 pm
Location: Solingen, Germany

Re: [BETA] Local URL To Text

Post by Wolfsblvt »

This extension sound very good. I had something similar installed for 3.0.x and wanted it back for 3.1.x, but the other extension didn't provided what I needed.

So I'll try this soon, great so see that someone had done this (:
If you have a specific extension request and you are willing to pay for, you can write me a PM.
My extensions (Trending: @Mention SystemAdvanced PollsUser Online Time)

»Du kamst zu uns. Deine Stimme kam. Du zeigtest uns die Sterne. Sie funkelten. Wir konnten sehen.«
User avatar
___Martin
Registered User
Posts: 58
Joined: Wed Aug 27, 2014 3:05 pm
Location: Germany

Re: [BETA] Local URL To Text

Post by ___Martin »

New version 1.0.0-beta3 released. As I changed the version numbering scheme and the migration file, please reinstall the extension as described here: viewtopic.php?p=13866056#p13866056
M.Gaetan89 wrote:Nice extension!
When replacing a link to a user profile, would it be possible to colorized the link with the user's group color?
Implented - added a new replacement {USER_COLOUR} for member profile links and for post links.
This is filled with the user colour (in hexadecimal, like #AA0000) if the user has a special colour, otherwise with inherit.
You can use this example for member profile links: <span style="color: {USER_COLOUR}">{USER_NAME}</span>

Also implented a version check, and did some small fixes.
User avatar
Volksdevil
Registered User
Posts: 2415
Joined: Sun Oct 03, 2010 2:03 pm
Location: Lancashire, UK
Name: Neil

Re: [BETA] Local URL To Text

Post by Volksdevil »

Ah this looks great, but It's a shame it won't work when External Links - URL Manager viewtopic.php?f=456&t=2270671 is installed.

Edit: If I remove the classes from the extension I linked to, and hard code them into the phpBB css then all is well :D Seems to work great so far, good work!
My phpBB Extensions
Finally found great Website Hosting from :arrow: KUALO!
Do NOT use 123-reg.co.uk - Incapable of running phpBB!
:ugeek: TekNeil - Streamer on Twitch | My Volkswagen Corrado G60
User avatar
draky
Registered User
Posts: 250
Joined: Tue Dec 10, 2002 2:04 pm
Location: France
Name: Gilles W.

Re: [BETA] Local URL To Text

Post by draky »

Very nice :)

Small suggestion : grabe <title> from external links to display text instead of URL :) so it will always provide links with title of target, inside or outside forum ;)
User avatar
___Martin
Registered User
Posts: 58
Joined: Wed Aug 27, 2014 3:05 pm
Location: Germany

Re: [BETA] Local URL To Text

Post by ___Martin »

Volksdevil wrote:Ah this looks great, but It's a shame it won't work when External Links - URL Manager viewtopic.php?f=456&t=2270671 is installed.

Edit: If I remove the classes from the extension I linked to, and hard code them into the phpBB css then all is well :D Seems to work great so far, good work!
Thanks for bringing this to my attention. I will have a look at the linked extension and see if I can modify Local URL To Text to work with External Links - URL Manager "out of the box".
draky wrote:Very nice :)

Small suggestion : grabe <title> from external links to display text instead of URL :) so it will always provide links with title of target, inside or outside forum ;)
Hmm.. For this to achieve, the extension had to fetch the linked URL and try to parse it and find a <title> within the fetched resource.
Sorry, this is out of scope of this extension. Besides that I see security problems with an extension automatically trying to fetch external URLs that users post - this could be exploited e.g. for banner ad click fraud.
User avatar
M.Gaetan89
Registered User
Posts: 39
Joined: Sun Apr 21, 2013 12:36 pm
Location: Divonne-les-Bains
Name: Gaëtan

Re: [BETA] Local URL To Text

Post by M.Gaetan89 »

___Martin wrote:Implented - added a new replacement {USER_COLOUR} for member profile links and for post links.
This is filled with the user colour (in hexadecimal, like #AA0000) if the user has a special colour, otherwise with inherit.
You can use this example for member profile links: <span style="color: {USER_COLOUR}">{USER_NAME}</span>

Also implented a version check, and did some small fixes.
Great, thank you!

In case someone is looking for the correct style for the colored username, use this:

Code: Select all

<span class="username-coloured" style="color: {USER_COLOUR};">{USER_NAME}</span>
Kharaz
Registered User
Posts: 6
Joined: Sun Feb 22, 2015 5:38 pm

Re: [BETA] Local URL To Text

Post by Kharaz »

I remember using something similiar in my old phpBB 3.0 board, so it's nice being able to use it again. Nevertheless I have one little problem with your extension. :?

Would it be possible to make it work for the profile fields in "viewtopic" too? I'm managing a Pen-and-Paper board where users can put the url to their character-topic in a custom profile field and it would be awesome, if the url would be something like "character xyz" instead of "viewtopic.php?f=11&p=1329". :oops:

Image <--- Image
FomenkoAndrey
Registered User
Posts: 369
Joined: Thu Aug 19, 2010 10:44 am

Re: [BETA] Local URL To Text

Post by FomenkoAndrey »

Ah this looks great, but It's a shame it won't work when External Links - URL Manager viewtopic.php?f=456&t=2270671 is installed.
the same ext http://www.phpbbguru.net/community/topic42372.html stable and it works perfect with viewtopic.php?f=456&t=2270671
User avatar
Galixte de EzCom
Registered User
Posts: 1106
Joined: Mon Oct 04, 2004 11:14 pm
Location: France
Name: Raphaël M.

Re: [BETA] Local URL To Text

Post by Galixte de EzCom »

Hi,

here the French language pack.
Last edited by Galixte de EzCom on Thu May 21, 2015 8:37 am, edited 1 time in total.
Communau EzCom
📖 « Traductions d’extensions & styles pour phpBB 3.2.x & 3.3.x ».
📋 Lists of all extensions identified for phpBB 3.1.x & 3.2.x.
📋 Lists of all styles identified for phpBB 3.1.x & 3.2.x.
Image Tu as un forum et tu veux aussi un site web ? Regarde par ici.
koraldon
Registered User
Posts: 530
Joined: Sat Jun 30, 2007 12:42 pm

Re: [BETA] Local URL To Text

Post by koraldon »

Great extension
Just one request - can you update to include automatic version check, per https://wiki.phpbb.com/Extension_meta_data
Thanks :)
MelcomB56
Registered User
Posts: 3
Joined: Sat Jan 17, 2009 5:20 pm

Re: [BETA] Local URL To Text

Post by MelcomB56 »

Hi There,

realy great extension! I love it !

Any question, is there an extension which makes the same with external links ?

Greetings

Melcom

Return to “Abandoned Extensions”