Prime Links

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.
Locked
Extensions Robot
Extensions Robot
Extensions Robot
Posts: 29220
Joined: Sat Aug 16, 2003 7:36 am

Prime Links

Post by Extensions Robot »

Modification name: Prime Links
Author: primehalo
Modification description: This MOD will fix links inside posts so that local links are correctly classified as such. It will also apply a target to external links.
Modification version: 1.3.0
Tested on phpBB version: 3.0.10

Download file: Prime Links.zip
File size: 59.54 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 17 times in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 28619
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Prime Links

Post by Paul »

Modification validated/released

Notes:
User avatar
primehalo
Former Team Member
Posts: 2988
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Prime Links

Post by primehalo »

The latest, non-approved version can be found here: http://www.absoluteanime.com/admin/mods.htm
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
pavobe
Registered User
Posts: 19
Joined: Mon Oct 29, 2007 4:27 pm
Location: Poland
Contact:

Re: Prime Links

Post by pavobe »

I do not speak english well. Do I understand description correctly?

This mod will repair local links, so when i post index.php as url, it will work as http://mydomain.com/index.php?
User avatar
primehalo
Former Team Member
Posts: 2988
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: Prime Links

Post by primehalo »

pavobe wrote:I do not speak english well. Do I understand description correctly?

This mod will repair local links, so when i post index.php as url, it will work as http://mydomain.com/index.php?
No, sorry, it won't do that.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
User avatar
bonelifer
Community Team Member
Community Team Member
Posts: 3542
Joined: Wed Oct 27, 2004 11:35 pm
Name: William
Contact:

Re: Prime Links

Post by bonelifer »

What it does is allow you to Classify link as either Local or External. In doing so external links will be a different color which can be changed. It also allows you to put in a link to an anonyizer an example is (http://anonym.to?). You can also choose to add the NOFOLLOW attribute to external links(default) and even add it to internal links if you choose to in(prime_links.php in the includes folder). Most webspiders will not add PR to a site when the NOFOLLOW attribute is added to a linkback URL, in order to help combat spam farms from being able to jack up another websites PR(page rank) by spamming it all over the internet. It also adds the "_blank" target to external links by default so that they open in a new tab(window). You can also choose to add it to internal links.


For the ability to fully customize the External LINK color here are some directions:

OPEN
includes/prime_links.php

FIND

Code: Select all

       define('EXTERNAL_LINK_CLASS', ' ');
REPLACE WITH

Code: Select all

       define('EXTERNAL_LINK_CLASS', 'postlink');

OPEN
styles/YOURSTYLENAME/theme/colours.css (parential search the line is longer)

FIND

Code: Select all

    a:active
AFTER, ADD(in the next line):

Code: Select all

/*postlink */
a.postlink:link {color: #694489; }
a.postlink:visited {color: #694489; }
a.postlink:hover {color: #694489; }
a.postlink:active {color: #694489; }
William Jacoby - Community Team
Knowledge Base | phpBB Board Rules | Search Customisation Database
Please don't contact me via PM or email for phpBB support .
User avatar
SecondShoe
Registered User
Posts: 48
Joined: Thu Dec 13, 2007 7:16 pm
Contact:

Re: Prime Links

Post by SecondShoe »

Great mod! All of my users used to complain about the external links being opened at the same tab. Now it's much better. Thank You!
luckyou03
Registered User
Posts: 77
Joined: Thu Aug 17, 2006 8:22 pm
Location: Memphis, TN
Contact:

Re: Prime Links

Post by luckyou03 »

I really like this mod, excellent job. keeps my internal links on my page and external on new pages.
Komanche
Registered User
Posts: 255
Joined: Thu Aug 02, 2007 10:49 am
Location: Czech Republic

Re: Prime Links

Post by Komanche »

great mod, thank you! :)
User avatar
DutchToxophilite
Registered User
Posts: 175
Joined: Fri Dec 14, 2007 9:59 pm
Location: Venlo - The Netherlands
Contact:

Re: Prime Links

Post by DutchToxophilite »

Is there a way to tread "link forums" as external links as well. I have approx. 250 "link forum" links, and they open in the same window, while you would expect them to open in a new window.

grtz,
Twan
You are never to old to be stubern.....
mdvaldosta
Registered User
Posts: 353
Joined: Sat Mar 26, 2005 12:26 am
Contact:

Re: Prime Links

Post by mdvaldosta »

Great modification, glad to see it has finally made it's way into the mod db.
ckcow
Registered User
Posts: 2
Joined: Fri Dec 21, 2007 5:13 am

Re: Prime Links

Post by ckcow »

great mod, but i don't know why sometimes occur the error message as below:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/prime_links.php on line 82: parse_url(http://www.@@@@/thread-32191-1-1.html) [function.parse-url]: Unable to parse URL
why, can you fix it???

the link of error : http://phpbb.ckfreehost.com/bc3/viewtopic.php?f=9&t=3
DaannO
Registered User
Posts: 86
Joined: Mon Sep 17, 2007 11:24 am

Re: Prime Links

Post by DaannO »

Does anyone has a screen how internal and extranel links look like then?
User avatar
DutchToxophilite
Registered User
Posts: 175
Joined: Fri Dec 14, 2007 9:59 pm
Location: Venlo - The Netherlands
Contact:

Re: Prime Links

Post by DutchToxophilite »

DaannO wrote:Does anyone has a screen how internal and extranel links look like then?
You would not really "see" it.
An "external" link is just treated differently.

IE if you would link to the FAQ page of your board without using the url bbcode, it would show as "faq.php" instead of www.board.com/faq.php

External links, so links that are not on your server, will open automatically into a new window instead of the same window.

grtz,
Twan
You are never to old to be stubern.....
User avatar
primehalo
Former Team Member
Posts: 2988
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: Prime Links

Post by primehalo »

DutchToxophilite wrote:Is there a way to tread "link forums" as external links as well. I have approx. 250 "link forum" links, and they open in the same window, while you would expect them to open in a new window.

grtz,
Twan
Not currently. So far this MOD only works with links in posts.
ckcow wrote:great mod, but i don't know why sometimes occur the error message as below:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/prime_links.php on line 82: parse_url(http://www.@@@@/thread-32191-1-1.html) [function.parse-url]: Unable to parse URL
why, can you fix it???

the link of error : http://phpbb.ckfreehost.com/bc3/viewtopic.php?f=9&t=3
That is an invalid link. I have modified the code so that you will not see the error message on improper links. Please update to version 1.0.6: http://www.absoluteanime.com/admin/mods.htm#links

To update, just overwrite the prime_links.php file.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
Locked

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