Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Help with Google search module php-nuke

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

New User

10+ Year Member

joined:Feb 5, 2008
posts: 25
votes: 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


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

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


WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 24, 2001
votes: 0

you would just need to find where it generates the actual links, <a> tags and change the target I believe
8:35 pm on Feb 18, 2008 (gmt 0)

New User

10+ Year Member

joined:Feb 5, 2008
posts: 25
votes: 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...");

$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";

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>";

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

New User

10+ Year Member

joined:Feb 5, 2008
votes: 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