PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Mod Requests

Reply
 
Thread Tools
Old 12-15-2004, 04:38 AM   #1
Hoek
Green Mole
 
Join Date: Feb 2004
Posts: 17
Question 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?
Hoek is offline   Reply With Quote
Old 12-15-2004, 04:55 AM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
http://www.phpdig.net/forum/showthread.php?t=1527
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 12-15-2004, 05:29 AM   #3
Hoek
Green Mole
 
Join Date: Feb 2004
Posts: 17
Thanks, just where I am looking for, (but not found in first place...)

Rolf
Hoek is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
no links found mathieu How-to Forum 1 11-05-2004 02:37 AM
links not found (well, most of them) b2l_grefix Troubleshooting 5 07-16-2004 12:57 PM
Please help : no links found Danydan Troubleshooting 2 07-13-2004 12:23 AM
Another: links found : 1 majestique Bug Tracker 11 07-12-2004 01:19 AM
0 links found xibalba Troubleshooting 5 03-09-2004 01:45 PM


All times are GMT -8. The time now is 09:36 PM.


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