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

Prime Links

Postby Extensions Robot » Sat Apr 05, 2008 7:39 pm

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: 63735 Bytes

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 Modifications Team may not be able to provide support.

-->Modification support<--
Last edited by Extensions Robot on Sat May 05, 2012 6:19 pm, edited 10 times in total.
(this is a non-active account manager for the phpBB Extensions Team)

User avatar
Paul
Extensions Team Member
Extensions Team Member
Posts: 21551
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Prime Links

Postby Paul » Sat Apr 05, 2008 7:39 pm

Modification validated/released

Notes:
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development

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

Prime Links

Postby primehalo » Sat Apr 05, 2008 7:39 pm

The latest, non-approved version can be found here: http://www.absoluteanime.com/admin/mods.htm
Ken F. Innes IV
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

Postby pavobe » Sat Apr 05, 2008 8:54 pm

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: 2698
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: Prime Links

Postby primehalo » Sat Apr 05, 2008 10:38 pm

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 MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!

User avatar
bonelifer
Moderator Team Member
Moderator Team Member
Posts: 3093
Joined: Wed Oct 27, 2004 11:35 pm
Name: William
Contact:

Re: Prime Links

Postby bonelifer » Sat Apr 05, 2008 11:02 pm

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; }
Knowledge Base | phpBB Board Rules | Search All Mods
Image
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

Postby SecondShoe » Sat Apr 05, 2008 11:24 pm

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

Postby luckyou03 » Mon Apr 07, 2008 4:10 am

I really like this mod, excellent job. keeps my internal links on my page and external on new pages.

User avatar
Komanche
Registered User
Posts: 232
Joined: Thu Aug 02, 2007 10:49 am
Location: Czech Republic

Re: Prime Links

Postby Komanche » Wed Apr 09, 2008 9:18 pm

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

Postby DutchToxophilite » Thu Apr 10, 2008 12:35 pm

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

Postby mdvaldosta » Thu Apr 10, 2008 2:40 pm

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

Postby ckcow » Fri Apr 11, 2008 9:00 am

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

Postby DaannO » Fri Apr 11, 2008 12:09 pm

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

Postby DutchToxophilite » Fri Apr 11, 2008 12:33 pm

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: 2698
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: Prime Links

Postby primehalo » Fri Apr 11, 2008 5:44 pm

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 MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!


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

Who is online

Users browsing this forum: No registered users and 12 guests