[RC1] Prime Links - Classify Locals & Target Externals

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Suggested Hosts
.:: Chico ::.
Registered User
Posts: 463
Joined: Fri Aug 03, 2007 6:35 am
Location: Rio de Janeiro
Contact:

Re: Installation

Post by .:: Chico ::. »

HHO wrote:hello

i don t find where to add your change in the function.php in R7

could you be more precise on how to install your MOD prime_links in phpBB3 R7 ?

ty

regards

HHO
Calm down, people.
Everyone didn't find because this mod is not for RC7.
Just wait primehalo to update the mod.
User avatar
primehalo
Former Team Member
Posts: 2898
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [BETA] Prime Links - Classify Locals & Target Externals

Post by primehalo »

It looks like they moved it to "includes/functions_content.php". I haven't yet installed RC7, but once I do I'll update the installation instructions.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
User avatar
IPB_Refugee
Registered User
Posts: 1290
Joined: Fri Jul 07, 2006 2:25 pm
Location: Austria
Name: Wolfgang Weber

Re: [BETA] Prime Links - Classify Locals & Target Externals

Post by IPB_Refugee »

Thank you, prime!

I think you are right: http://www.ktuk.net/phpBB3/viewtopic.php?f=32&t=2921

Hope you enjoyed your holiday! :)
Wolfgang
User avatar
angelside
Registered User
Posts: 105
Joined: Sat Jan 27, 2007 11:32 am
Location: Türkiye
Contact:

Re: [BETA] Prime Links - Classify Locals & Target Externals

Post by angelside »

I have one problem, I look source code:

Code: Select all

rel=" nofollow"
Is have one space before nofollow.


If deactive line 123, its work:

Code: Select all

				/*$new_rel	= implode(' ', array_unique(array_merge(explode(' ', $rel), (array)$new_rel)));	// This will append the new rel instead of replacing the existing one. */
Now:

Code: Select all

rel="nofollow"
phpBB Türkiye | Turkish phpBB3 support and develop
phpBB3 Portal | simple portal for phpBB3 Olympus
User avatar
primehalo
Former Team Member
Posts: 2898
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [BETA] Prime Links - Classify Locals & Target Externals

Post by primehalo »

angelside wrote:I have one problem, I look source code:

Code: Select all

rel=" nofollow"
Is have one space before nofollow.


If deactive line 123, its work:

Code: Select all

				/*$new_rel	= implode(' ', array_unique(array_merge(explode(' ', $rel), (array)$new_rel)));	// This will append the new rel instead of replacing the existing one. */
Now:

Code: Select all

rel="nofollow"
Try this, change:

Code: Select all

				$new_rel	= implode(' ', array_unique(array_merge(explode(' ', $rel), (array)$new_rel)));	// This will append the new rel instead of replacing the existing one.
To this:

Code: Select all

				$new_rel	= trim(implode(' ', array_unique(array_merge(explode(' ', $rel), (array)$new_rel))));	// This will append the new rel instead of replacing the existing one.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
User avatar
angelside
Registered User
Posts: 105
Joined: Sat Jan 27, 2007 11:32 am
Location: Türkiye
Contact:

Re: [BETA] Prime Links - Classify Locals & Target Externals

Post by angelside »

Code: Select all

            $new_rel   = trim(implode(' ', array_unique(array_merge(explode(' ', $rel), (array)$new_rel))));   // This will append the new rel instead of replacing the existing one.
I test...
phpBB Türkiye | Turkish phpBB3 support and develop
phpBB3 Portal | simple portal for phpBB3 Olympus
justinv
Registered User
Posts: 81
Joined: Tue Nov 21, 2006 11:28 am

Re: [BETA] Prime Links - Classify Locals & Target Externals

Post by justinv »

So its not compitable with RC6/RC7??? :cry:
User avatar
primehalo
Former Team Member
Posts: 2898
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [BETA] Prime Links - Classify Locals & Target Externals

Post by primehalo »

justinv wrote:So its not compitable with RC6/RC7??? :cry:
The latest version that I just uploaded (0.0.5a) is compatible with RC7.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
.:: Chico ::.
Registered User
Posts: 463
Joined: Fri Aug 03, 2007 6:35 am
Location: Rio de Janeiro
Contact:

Re: [BETA] Prime Links - Classify Locals & Target Externals

Post by .:: Chico ::. »

Thanks primehalo
i was just waiting for the update.
HHO
Registered User
Posts: 7
Joined: Wed Oct 17, 2007 3:19 pm

Re: [BETA] Prime Links - Classify Locals & Target Externals

Post by HHO »

thanks alot primehalo

much appreciated

regards

HHO
foxy111
Registered User
Posts: 25
Joined: Fri Oct 19, 2007 3:42 pm

Re: [BETA] Prime Links - Classify Locals & Target Externals

Post by foxy111 »

Thanks sooo much primehalo
it worked very good with 3.0 RC7
You are a Hero :D
justinv
Registered User
Posts: 81
Joined: Tue Nov 21, 2006 11:28 am

Re: [BETA] Prime Links - Classify Locals & Target Externals

Post by justinv »

thnx :D

i was waiting for this mod :D
User avatar
spacefish
Registered User
Posts: 173
Joined: Mon Oct 09, 2006 8:48 am

Re: [BETA] Prime Links - Classify Locals & Target Externals

Post by spacefish »

Mod installed on RC7 and working - thanks!

A questions (or feature request). ;)
I've got all external links going through an anonymizer but it also catches the external image (urls) posted in the [img] bbcode tags. Is it possible to have the option to treat these as normal external urls rather than having them go via the anonymizer too? :)
User avatar
primehalo
Former Team Member
Posts: 2898
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [BETA] Prime Links - Classify Locals & Target Externals

Post by primehalo »

spacefish wrote:Mod installed on RC7 and working - thanks!

A questions (or feature request). ;)
I've got all external links going through an anonymizer but it also catches the external image (urls) posted in the [img] bbcode tags. Is it possible to have the option to treat these as normal external urls rather than having them go via the anonymizer too? :)
You could try something like this (though it is untested):
Find

Code: Select all

            if (!$is_local && ANONYMIZE_EXTERNAL_LINKS)  
Replace with

Code: Select all

            if (!$is_local && ANONYMIZE_EXTERNAL_LINKS && !preg_match('/\.(jpeg|jpg|gif|png|bmp)/i', $href))  
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
User avatar
spacefish
Registered User
Posts: 173
Joined: Mon Oct 09, 2006 8:48 am

Re: [BETA] Prime Links - Classify Locals & Target Externals

Post by spacefish »

primehalo wrote:You could try something like this (though it is untested):
Find

Code: Select all

            if (!$is_local && ANONYMIZE_EXTERNAL_LINKS)  
Replace with

Code: Select all

            if (!$is_local && ANONYMIZE_EXTERNAL_LINKS && !preg_match('/\.(jpeg|jpg|gif|png|bmp)/i', $href))  
Couldn't ask for anything better - thank you very much, it works just great! :D
Locked

Return to “[3.0.x] MODs in Development”