th23 Autolinks

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Extensions Robot
Extensions Robot
Extensions Robot
Posts: 29220
Joined: Sat Aug 16, 2003 7:36 am

th23 Autolinks

Post by Extensions Robot »

Modification name: th23 Autolinks
Author: th23
Modification description: This modification enables you to specify key words and a related URL for each one. Whenever these words are used in a posting, your specified link is automatically included.
Modification version: 1.2.4
Tested on phpBB version: 3.0.2

Download file: th23_autolinks_1_2_4.zip
File size: 44.66 KiB

Modification overview page: View

The phpBB Team is not responsible nor required to provide support for this modification. By installing this MOD, you acknowledge that the phpBB Support Team or phpBB Extension Customisations Team may not be able to provide support.

-->Modification support<--
Last edited by Extensions Robot on Mon Sep 19, 2022 7:33 pm, edited 11 times in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)
User avatar
A_Jelly_Doughnut
Former Team Member
Posts: 34459
Joined: Sat Jan 18, 2003 1:26 am
Location: Where the Rivers Run
Contact:

th23 Autolinks

Post by A_Jelly_Doughnut »

Modification validated/released

Notes:
A Donut's Blog
"Bach's Prelude (Cello Suite No. 1) is driving Indiana country roads in Autumn" - Ann Kish
User avatar
th23
Registered User
Posts: 233
Joined: Sat Jul 03, 2004 7:36 am
Location: Germany
Contact:

th23 Autolinks

Post by th23 »

Many thanks for the validation :)
Life is what happens...while you're busy making other plans!
User avatar
Doctor Love
Registered User
Posts: 117
Joined: Sat Jul 24, 2004 12:20 am
Location: USA
Contact:

Re: th23 Autolinks

Post by Doctor Love »

This is the perfect MOD for my forum, except for one thing; the links aren't underlined, and I use non-standard link colors. Is this a LINK setting situation on my part or can you modify the MOD to underline the links?

Thank you in advance !
Aleichem Shalom,

Doctor Love
User avatar
SAFFLEUR
Registered User
Posts: 323
Joined: Thu Nov 24, 2005 5:56 am
Location: Lenoir NC
Contact:

Re: th23 Autolinks

Post by SAFFLEUR »

Doctor Love wrote:This is the perfect MOD for my forum, except for one thing; the links aren't underlined, and I use non-standard link colors. Is this a LINK setting situation on my part or can you modify the MOD to underline the links?

Thank you in advance !
There is a css file for the auto links, should be able to change it there.
Pleex
Registered User
Posts: 1
Joined: Tue Aug 05, 2008 7:43 pm

Re: th23 Autolinks

Post by Pleex »

I had an error after installing that the db th23_autolinks wasn't found. I added the columns manually and now it works just fine.
User avatar
Doctor Love
Registered User
Posts: 117
Joined: Sat Jul 24, 2004 12:20 am
Location: USA
Contact:

Re: th23 Autolinks

Post by Doctor Love »

SAFFLEUR wrote:
There is a css file for the auto links, should be able to change it there.
I tried changing "text decoration" from "none" to "underline" in the autolink css file and it didn't work, but changing "links.css" as follows did work:

/* proSilver Link Styles
---------------------------------------- */

a:link { color: #898989; text-decoration: underline; }
a:visited { color: #898989; text-decoration: none; }
a:hover { color: #d3d3d3; text-decoration: underline; }
a:active { color: #d2d2d2; text-decoration: underline; }
Aleichem Shalom,

Doctor Love
User avatar
Metzle
Registered User
Posts: 113
Joined: Sat Mar 15, 2008 2:55 am
Location: Waiblingen-Neustadt (Germany)
Name: Daniel
Contact:

Re: th23 Autolinks

Post by Metzle »

Hi,

great Mod! Installation very easy and it works fine.

If there's an interest of having a german translation, take a look here at MetziMods.

Edit:

I had to notice that there's a problem with one of my selfcreated BBCodes.

Code: Select all

BBCode:
[mail={EMAIL}]{TEXT}[/mail]

HTML:
<a href="mailto:{EMAIL}">{TEXT}</a>
Everytime there's used a word in an e-mailadress, which is also used by the Mod as autolink word, i can't use the BBCode because the Mod links the word in the e-mailadress.

Anybody knows a solution for this problem?
Last edited by Metzle on Sun Aug 10, 2008 3:01 pm, edited 1 time in total.
Metzle
phpBB.de-Support-Team
No Support via PN/E-Mail/ICQ etc.
Allround-phpBB.de
mrshermanoaks
Registered User
Posts: 10
Joined: Sun Apr 25, 2004 10:43 pm

Re: th23 Autolinks

Post by mrshermanoaks »

Nice job - great mod.
User avatar
Doctor Love
Registered User
Posts: 117
Joined: Sat Jul 24, 2004 12:20 am
Location: USA
Contact:

Re: th23 Autolinks

Post by Doctor Love »

Everytime there's used a word in an e-mailadress, which is also used by the Mod as autolink word, i can't use the BBCode because the Mod links the word in the e-mailadress.

Anybody knows a solution for this problem?
Yes, th23 will have to fix it, but you could ease the problem by using short phrases instead of single words in your autolink list.
Aleichem Shalom,

Doctor Love
User avatar
Metzle
Registered User
Posts: 113
Joined: Sat Mar 15, 2008 2:55 am
Location: Waiblingen-Neustadt (Germany)
Name: Daniel
Contact:

Re: th23 Autolinks

Post by Metzle »

Great solution to fix it ;)

Then I'll be waiting for the fix and ease the problem with short phrases till it will be fixed ;)
Metzle
phpBB.de-Support-Team
No Support via PN/E-Mail/ICQ etc.
Allround-phpBB.de
User avatar
th23
Registered User
Posts: 233
Joined: Sat Jul 03, 2004 7:36 am
Location: Germany
Contact:

Re: th23 Autolinks

Post by th23 »

Doctor Love wrote:Yes, th23 will have to fix it...
Guys, I am sorry to say...but it's not easy / possible to fix that behaviour for custom BB Codes as it fully depends on the BB Code / involved variables / involved HTMl replacement / etc. in which order the replacements are done.

Whenever there are custom BB Codes involved I am afraid, but you will have to manually edit the "includes/th23_autolinks.php" file and add the custom BB Code at the respective position :geek:

@Metzle: For your specific custom BB Code have a look onto where the URL BB Code is handled... that should be the similar locations...
Life is what happens...while you're busy making other plans!
User avatar
Metzle
Registered User
Posts: 113
Joined: Sat Mar 15, 2008 2:55 am
Location: Waiblingen-Neustadt (Germany)
Name: Daniel
Contact:

Re: th23 Autolinks

Post by Metzle »

th23 wrote: @Metzle: For your specific custom BB Code have a look onto where the URL BB Code is handled... that should be the similar locations...
Hi,

great! I've fixed it.

Open: includes/th23_autolinks.php

Find:

Code: Select all

'/\[attachment.*?:' . $th23_autolinks_uid . '\].*?\[\/attachment:' . $th23_autolinks_uid . '\]/i',
After-Add:

Code: Select all

'/\[mail.*?:' . $th23_autolinks_uid . '\].*?\[\/mail:' . $th23_autolinks_uid . '\]/i',
Thx to you, th23 :)
Metzle
phpBB.de-Support-Team
No Support via PN/E-Mail/ICQ etc.
Allround-phpBB.de
prophetUK
Registered User
Posts: 38
Joined: Wed Apr 19, 2006 12:21 pm
Location: UK

Re: th23 Autolinks

Post by prophetUK »

I get the following error when trying to activate this via the module in ACP:

Code: Select all

SQL ERROR [ mysqli ]

Duplicate entry 'th23_autolinks_forum_ids' for key 1 [1062]

SQL

INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('th23_autolinks_forum_ids', '-', 0)

BACKTRACE

FILE: includes/db/mysqli.php
LINE: 143
CALL: dbal->sql_error()

FILE: includes/functions.php
LINE: 156
CALL: dbal_mysqli->sql_query()

FILE: includes/acp/acp_th23_autolinks.php
LINE: 388
CALL: set_config()

FILE: includes/functions_module.php
LINE: 471
CALL: acp_th23_autolinks->main()

FILE: adm/index.php
LINE: 74
CALL: p_master->load_active()
Any ideas? I entered the SQL query as instructed using PHPMyAdmin. Not had problems executing SQL before...
User avatar
th23
Registered User
Posts: 233
Joined: Sat Jul 03, 2004 7:36 am
Location: Germany
Contact:

Re: th23 Autolinks

Post by th23 »

prophetUK wrote:I get the following error...
Any ideas?
Just purge the cache and you're fine :)
Life is what happens...while you're busy making other plans!
Locked

Return to “[3.0.x] MOD Database Releases”