Coder Social home page Coder Social logo

localurltotext's Introduction

phpBB Local URL To Text extension

This is the repository for the development of the phpBB 3.2 "Local URL To Text" Extension.

Build Status

Description

Replaces local URLs (links to forums, topics, posts or member profiles within your board) with a customizable text.

Examples:

  • If a user of your board posts a link to a forum, it appears as a link like http://yourboard/viewforum.php?f=5.
  • With this extension, the link to the forum is rather displayed as Forum Name.
  • Links to topics can be displayed as Topic Title instead of http://yourboard/viewtopic.php?f=5&t=2.
  • You can also include the name of the forum containing that topic to the link, e.g. Topic Title (Forum Name).
  • Similar text replacements are available for links to posts and to member profile pages.
  • Local links within Custom profile fields can be replaced as well.
  • Supports Pages extension.
  • Works with External Links extension.

The extension only replaces these links when displaying a message (post, private message, etc.). It does not alter the messages that are stored into the database. So when a topic gets renamed, all links to this topic will display the new topic title automatically.

Text replacements

The following replacements are available:

  • For forum or category links: forum/category name
  • For topic links: topic title, forum name of containing forum
  • For post links: poster user name, poster user colour, post subject, topic title, forum name, topic title (only if post subject is empty)
  • For member profile links: user name, user colour
  • For links to pages of the Pages extension: page title
  • Option to enable or disable (default) replacement of local links within Custom profile fields

Authorization

Users will only see content from forums they are authorized to read. E.g. if someone posts a link to a topic that resides in a protected forum, only members with access to this forum will see the title of this topic. Unauthorized members will see the default viewtopic.php?t=xx link.

Installation

  • Download the latest validated release.
  • Extract the downloaded release and copy it to the ext directory of your phpBB board
    • this should result in a ext/martin/localurltotext/ directory
  • Log into your forum and enter the Administration Control Panel.
  • Go to Customise > Extension Management > Manage Extensions.
  • Find Local URL To Text in the list on the right side and click on Enable.
  • Go to Extensions > Local URL To Text > Settings to set up the extension.

Removal

  • Log into your forum and enter the Administration Control Panel.
  • Go to Customise > Extension Management > Manage Extensions.
  • Find Local URL To Text in the list on the right side and click on Disable.
  • To permanently uninstall, click on Delete data and delete the ext/martin/localurltotext/ directory afterwards.

Feedback

Please feel free to post any feedback to the Local URL To Text topic in phpBB's extension community forum.

For bug reports, please open an issue on the extension's GitHub page.

License

GPLv2

localurltotext's People

Contributors

galixte avatar mar-tin-g avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

alhitary galixte

localurltotext's Issues

Problem with "&"

Hello.

After install your extension , i have one problem. (Board 3.3.1 with 7.4.9 php)

It appears in the link by using "&" ==> "& amp;" (without spaces between & and a)

How can i solve this little problem?

Thanks Jan

class="postlink" - URLs still get parsed by ext

Hi! I hope you still monitor these issues; I have a smallish problem with this extension. It works fine in general, but internal links with the class "postlink" get parsed by the extension though they should not.

This refers to links that a member posts with his own text like [url=http://…..]MyText[/url]

As far as I understand the code: Since those links do not get the class "postlink-local" (I checked) they should not be parsed. (line 168 in listener.php)

I have tried anything I could think of to make sure the MyText people want there stays intact.

Also: many links (but not all) coming from a viewtopic - link where off the actual post they should refer to. I fixed this by always looking for #postid as all viewtopic-links get one anyway.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.