PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   Mod Requests (http://www.phpdig.net/forum/forumdisplay.php?f=23)
-   -   How to open found links in _blank or _top depending on extension? (http://www.phpdig.net/forum/showthread.php?t=1635)

Hoek 12-15-2004 03:38 AM

How to open found links in _blank or _top depending on extension?
 
In search_function.php the url as result of a seach-action is presented. In config.php you can define the way of opening a link: top, blank, etc.

I would like to open .htm(l) in _top and for instance office document and pdf's in _blank. Is is possible to modify the LINK_TARGET section in config.php or the table_results section in search_function.php:

'page_link' => "<a class=\"phpdig\" href=\"".$url."\" onmousedown=\"return clickit(".$n.",'".$js_url."')\" target=\"".LINK_TARGET."\" >".ereg_replace('%20*',' ',$title)."</a>",

Is it yet possible to do so, or maybe a new function in future releases?

Charter 12-15-2004 03:55 AM

http://www.phpdig.net/forum/showthread.php?t=1527

Hoek 12-15-2004 04:29 AM

Thanks, just where I am looking for, (but not found in first place...)

Rolf


All times are GMT -8. The time now is 03:59 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.