homepage Welcome to WebmasterWorld Guest from 54.166.66.204
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Help with Google search module php-nuke
duncan320




msg:3577243
 4:04 pm on Feb 17, 2008 (gmt 0)

Hi All, i have a google search module for php-nuke and it works great, but currently the results etc are show in the same page which is fine but also when you click a link it open in same page, i dont want this i would like links to open in a new window, i have tried a few things but cant seem to figure it out any ideas ?

Im using the Google_Search Module for PHPNUKE

Thanks

[edited by: jatar_k at 2:16 pm (utc) on Feb. 18, 2008]
[edit reason] no urls thanks [/edit]

 

jatar_k




msg:3577879
 2:17 pm on Feb 18, 2008 (gmt 0)

you would just need to find where it generates the actual links, <a> tags and change the target I believe

duncan320




msg:3578189
 8:35 pm on Feb 18, 2008 (gmt 0)

Hi, well here is the code in the index.php file, i cant seem to figure it out i have tried a few things but no luck yet, hope someone can advise :-

$title="Search $query";

if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");
}

require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
$pagetitle = "Search $query";
$lang = "en"; //fr=Franšais, ...
$country_google = "co.uk"; // fr=france co.uk=United Kingdom ca=Canada
$iso = "ISO-8859-1";
$url_color = "008000";
$faint_color = "0000FF";
$visited_link = "663399";
$title_color = "0000FF";
$text_color = "000000";
$border = "336699";
$header_bg = "FFFFFF";
$results_bg = "FFFFFF";

// DO NOT EDIT BELOW THIS LINE
include("header.php");
OpenTable();
echo "<center><font class=\"content\">Search Google$query</center><br><br>";
echo "<center><IFRAME SRC=\"http://www.google.$country_google/custom?hl=$lang&lr=&ie=$iso&oe=$iso&c2coff=1&client=pub-adsenseIDhere&cof=FORID%3A1%3BGL%3A1%3BBGC%3A$header_bg%3BT%3A$text_color%3BLC%3A$faint_color%3BVLC%3A663399%3BALC%3A$title_color%3BGALT%3A%23$url_color%3BGFNT%3A0000FF%3BGIMP%3A0000FF%3BDIV%3A%23$border%3BLBGC%3A$results_bg%3BAH%3Acenter%3B&q=$query\" WIDTH=\"100%\" HEIGHT=\"1600\" BORDER=\"0\" MARGINWIDTH=\"0\" MARGINHEIGHT=\"0\" HSPACE=\"0\" VSPACE=\"0\" FRAMEBORDER=\"0\" SCROLLING=\"no\"></IFRAME><br><noscript><a href=\"http://www.#*$!#*$!#*$!x.com\">paroles de chansons</a> <a href=\"http://#*$!#*$!#*$!xx.com\">lyrics</a></noscript><br>";
CloseTable();
include("footer.php");
?>

duncan320




msg:3578190
 8:38 pm on Feb 18, 2008 (gmt 0)

Sorry i didnt remove the URL's in my post i just put x's in as i didnt want to mess the code up. Thanks

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved