I'd say first ensure that it works after removing the old MOD and before installing Prime Links. Only then, go ahead and install Prime Links. My MOD doesn't distinguish between magic URLs or BBCode urls. By the time my MOD starts working on the message, both types of links have already been changed into standard HTML links.ryorevo wrote:Hi Prime, Nice mod but I'm having some problems.
Background; I originally had installed the Open Links in New Windows KB version, those changes were removed.
Any link that is now posted without the URL tags disappears, including links that were showing properly before such as "magic urls" to forum topic links.
I've also tried to make the subforum change you mentioned here:
Open the prime_links.php file and set ALL_SUBDOMAINS_INTERNAL to false.
http://www.phpbb.com/community/viewtopi ... 5#p3434355
but couldn't find that code. In v1.0.4 the line appears to actually be;
function remove_subdomains($url, $remove_subdomains = true)
so I changed it to
function remove_subdomains($url, $remove_subdomains = false)
But I'm still having the same problems.
Code: Select all
// Options define('REMOVE_SUBDOMAINS', true); // Remove these subdomains before checking the link (true will remove all subdomains) define('ANONYMIZE_EXTERNAL_LINKS', ''); // Example: 'http://anonym.to?' define('USE_TARGET_ATTRIBUTE', false); // The attribute "target" is not valid for STRICT doctypes // Link relationships define('INTERNAL_LINK_REL', ''); define('EXTERNAL_LINK_REL', 'nofollow'); // Link targets define('INTERNAL_LINK_TARGET', ''); define('EXTERNAL_LINK_TARGET', '_blank'); // Link classes define('INTERNAL_LINK_CLASS', 'postlink-local'); define('EXTERNAL_LINK_CLASS', '');
Yes several timesprimehalo wrote:Not really, it should work without any other changes. Did you clear your board's cache?HR25 wrote:I've tried to install this mod twice now, but my links stil open in the same window. Is there some setting that I need to activate or something?
Thanks in advance!
It has the ability, but I don't remember if it's enabled by default.xnitelifex wrote:Does this automatically place nofollow to all external links? I didn't see this in the description of the first post.
Code: Select all
Yes.ryndog wrote:Hey there, I just wanna verify this mod is what im looking for. I want to have all external links outside my own domain to be opened in a new window. All links within my own site to be opened in the same window within posts. Is this correct?
In phpBB3, you can make custom BBCodes without a MOD.ryndog wrote:Actually I was searching for a bbc code that would allow me or a poster to choose a seperate bbc code that would allow a link to open in a new window, such as.... but after an our and a half I never found one. There was one made for phpbb2, but that wont work of course for our new phpbb3 site ( see: http://www.phpbbhacks.com/download/258)
Code: Select all
I do believe all links in phpbb3 posted in a forum thread will always be defaulted to /self, which is fine for most links (users link to other posts open in the same window.... etc.... etc.), but for linking to another website it would be nice to have a new window.
Though it would be nice to have the option per induvidual linke via bbc (let me know if I missed a mod or hack somewhere), I would still be able to live with just having all external links open as a new window.
Let me know, I may give her a shot if thats the case
I didn't, but since that sounds like a good idea I went ahead and set one up:ryndog wrote:Worked like a charm. Another great mod Prime. I have used quit a few of you mods, including your birthday require mod (which I love by the way). I notice you have put a lot of time and effort and have great support. I would like to donate, do you have a donation link somewhere?
Create a new BBCode from the ACP and make it something like this:ryndog wrote:Also, you mentions custom bbc codes without a mod. Yes I looked into that for the URL target, but I didn't find one. If its possible to write a custom bbc code in phpbb3's custom bbc code area, could you point me in the right direction. Still new to that area, not sure how its done. I see all the samples and addons for other things, but nothing to specify the target of a window for a link thats a url. Make sense?
Sorry, I don't understand.cooldbz wrote:Just wanted to know if there is a possibility of this.
The External links opening in same window, but the Site image over it, so that it opens sort of in a frame. What i am asking may be out of context, but its a possibility