1 (edited by Lucas Malor 2008-06-07 11:01)

Topic: External Links In New Windows 2.0.0

Download:
http://www.punres.org/files.php?pid=444

Description:
With this MOD, a link posted in the forum will be opened in a new window if clicked, but only if it points outside the forum.

Tested on PunBB 1.2.15 and PunBB 1.2.17

Changelog:

- version 2.0.0
changes to MOD:
-- all your domain links will be not opened in new windows
new:
-- little image next to new window links
-- also homepages of users and punBB.org link will be opened in new windows
changes to punBB:
-- long urls will be truncated if > 70 chars instead of 55
-- transitional doctype (because of target attribute)

#####################################################################################
##
##        Mod title:  External links in new windows
## 
##     Document aim:  Instructions for a FRESH INSTALL of this Mod 
##                    (there's no previous versions already installed)
##                    For update instructions, look in "update" dir of Mod package.
##
##      Mod version:  2.0.0
##   Works on PunBB:  1.2.15
##     Release date:  2007-10-08
##           Author:  Lucas Malor ( http://pazziaumana.blogspot.com/ )
##
##      Description:  With this MOD, a link posted in the forum will be opened in a
##                    new window if clicked, but only if it points outside the forum.
## 
##   Affected files:  include/parser.php
##   Included files:  upload/*
##
##       Affects DB:  No
##
##            Notes:  preg_xquote() function from a comment on php.net:
##                    http://php.net/manual/function.preg-quote.php#38519
##                    Thanks to MattF for the idea to pick out new window links.
##
##       DISCLAIMER:  Please note that "mods" are not officially supported by
##                    PunBB. Installation of this modification is done at your
##                    own risk. Backup your forum database and any and all
##                    applicable files before proceeding.
##
#####################################################################################

Download:
http://www.punres.org/files.php?pid=444

2 (edited by TheRealSephiroth 2007-10-04 22:32)

Re: External Links In New Windows 2.0.0

cool. i'll give it a try.

edit: it works(only tested extern links, no intern). thx

Re: External Links In New Windows 2.0.0

This type of functionality should be in the default installation of the forum with a toggle to open all external in a new window or not.

Rob Ludlow 
www.Nifty-Stuff.com - Repository of all Stuff Nifty!
www.reviewum.com - Professor Ratings + Teacher Reviews

Re: External Links In New Windows 2.0.0

bring on the purists.... wink *poke*

~James
FluxBB - Less is more

5

Re: External Links In New Windows 2.0.0

It works cool!

Wished that a lot of other mods were updated for 1.2.15

6 (edited by Lucas Malor 2007-10-08 11:01)

Re: External Links In New Windows 2.0.0

Updated to the version 2.0.0 :-)

--------------------------

***Please read the IMPORTANT! instructions in the readme***

Download:
http://www.punres.org/files.php?pid=444

Changelog:

- version 2.0.0
changes to MOD:
-- all your domain links will be not opened in new windows
new:
-- little image next to new window links
-- also homepages of users and punBB.org link will be opened in new windows
changes to punBB:
-- long urls will be truncated if > 70 chars instead of 55
-- transitional doctype (because of target attribute)

Re: External Links In New Windows 2.0.0

Can you upload the old version again?

Re: External Links In New Windows 2.0.0

??? What's wrong with the new one?

Re: External Links In New Windows 2.0.0

Never mind. Modified a bit.

10 (edited by Lucas Malor 2007-11-14 11:09)

Re: External Links In New Windows 2.0.0

Good ^____^
If you want, you can post your modifies. If they are good I'll add them :-)

Re: External Links In New Windows 2.0.0

I need a images for a link in mod.

Re: External Links In New Windows 2.0.0

AndyDeacon wrote:

I need a images for a link in mod.

I don't understand you.... you are searching a preview image of the MOD?

Re: External Links In New Windows 2.0.0

No? after every link is an image. In RAR I didn't find it. I need simply image that shows that it's link.

-- little image next to new window links

There are no image in the RAR.

Re: External Links In New Windows 2.0.0

Emmmhhhh...... you are right :-P
I repackaged the release. You can download only the image here:

http://www.punres.org/download.php?id=1724

I also split the update instructions from normal readme (a lot more clear now ^__^'')

Re: External Links In New Windows 2.0.0

Thanx!

Re: External Links In New Windows 2.0.0

This is what middle click, ctrl/shift+click are for.