» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 75
0 members and 75 guests
No Members online
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Football Betting - best nfl betting promotions at sportsbook.com.
Oral Chelation - initial cleansing of your veins & arteries
Portatiles - Ofertas en Ordenadores y Portatiles. Increibles Ofertas DELL.

Register Now! Contact Us

About this Page
This is a discussion on Top 5 Sites links open in _self? within the Nuke 6.5 to 6.9 - Modules forums, part of the PHP-Nuke 6.5 to 6.9 category; I would like to know how I can change the link of the top 5 site links block to open ...


Go Back   Nukemods Forum » PHP-Nuke 6.5 to 6.9 » Nuke 6.5 to 6.9 - Modules

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-15-2003, 12:47 PM
Junior Member
 
Join Date: Jun 2003
Location: San Clemente, Ca. Orange
Posts: 137
Send a message via MSN to paycheck
Top 5 Sites links open in _self?
I would like to know how I can change the link of the top 5 site links block to open in a blank page vs. _self or _parent. It is directing people away from my site and when closed obviously you know the problem. Any help is appreciated.

JM
__________________
Logos for free at http://www.jsm-inc.com

Be cool!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-15-2003, 01:12 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
I'd have to see the code for that block to see if it is possible. Which it should be.

mikem
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-15-2003, 10:29 PM
Junior Member
 
Join Date: Jun 2003
Location: San Clemente, Ca. Orange
Posts: 137
Send a message via MSN to paycheck
MIke as far as I can tell this is the chunk of code I need to work on, it is in the top-sites Module index.php line 550+ or so. I noticed the \"target=NEW\" in the code and tried a host of other things i.e. _blank etc. No go.

Good luck and thanks

I have bolded the ssection Ibelieve to be the culprit.

JM

Quote:
function LastLinks() {
global $prefix, $dbi,$latest,$altbgcolor1,$altbgcolor2;
include("header.php");
menu();
echo "
";
OpenTable();
$color = $altbgcolor1;
echo "<center><font class=\"option\">"._THE." $latest "._LATEST2."</font></center>
"
. "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><font class=\"content\">"
."<tr bgcolor=$color>"
."<td width=\"41%\">"._TITLE."</td>"
."<td width=\"23%\">"._CATEGORY."</td>"
."<td width=\"15%\"><div align=\"center\">"._ADDED."</div></td>"
."<td width=\"21%\"><div align=\"center\"><img src=\"modules/Top_Sites/images/stats.gif\" border=\"0\"></div></td>"
."</tr>";
$result=sql_query("select lid, title, catid,urlban,description, date, hits, linkratingsummary, totalvotes, validation from ".$prefix."_Top_Sites where validation='Y' order by lid desc limit $latest", $dbi);
while(list($lid,$title, $catid,$urlban,$description, $time, $hits, $linkratingsummary, $totalvotes, $validation)=sql_fetch_row($result, $dbi)) {
$result2=sql_query("select catname from ".$prefix."_Top_Sites_categories where catid=$catid", $dbi);
$row = mysql_fetch_array($result2);
$catname = $row["catname"];
$title = htmlspecialchars(stripslashes($title)); $description = htmlspecialchars(stripslashes($description));
if ($color == $altbgcolor1) { $color = $altbgcolor2; }
elseif ($color== $altbgcolor2) { $color = $altbgcolor1; }
echo"<tr bgcolor=$color>"
."<td><img src=\"modules/Top_Sites/images/urlgo.gif\" border=\"0\"> <a href=\"modules.php?name=Top_Sites&op=visit&amp;lid =$lid\" target=\"NEW\">$title</a></td>"
."<td>$catname</a></td>";

setlocale (LC_TIME, '$locale');
ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2})[0-9]{1,2})[0-9]{1,2})", $time, $datetime);
$datetime = strftime(""._LINKSDATESTRING."", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));
$datetime = ucfirst($datetime);
echo"<td><div align=\"center\">$datetime</div></td>";
if ($totalvotes == 0 OR $totalvotes == 1) { $votestring = _VOTE;}
else { $votestring = _VOTES; }
echo "<td>( $totalvotes $votestring - $hits "._HITS.")</td>"
."</tr>";
}
echo "</table>";
CloseTable();
include("footer.php");
}
__________________
Logos for free at http://www.jsm-inc.com

Be cool!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-15-2003, 10:39 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
target=\"NEW\">

should be

target=\"_blank\">

that "should" work even though you say it didn't
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-15-2003, 11:02 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
OK..and wait a minute. Didn't you say in your firts post it was a block?
Now it is a MODULE? index.php file?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 07-15-2003, 11:11 PM
Junior Member
 
Join Date: Jun 2003
Location: San Clemente, Ca. Orange
Posts: 137
Send a message via MSN to paycheck
OK Mike check it out and tell me if it works for you. The top_5_sites block is down on the left. Let me know if it opens in a new window for you

http://www.jsm-inc.com/nuke/html/index.php
__________________
Logos for free at http://www.jsm-inc.com

Be cool!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 07-15-2003, 11:30 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
nope..hehe..it opens in _self.
is there ANY reference in the block file?

and also check and make sure that is the only target line needed in the index.php for the module?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
failed to open stream: No error in c:\web\themes\fiblue3d pj Theme packs 6 02-28-2005 03:59 PM
Integrating open source blogs godrox Nuke 7.x - Modules 1 01-10-2005 07:24 PM
Warning: main(db/mysql.php): failed to open stream: No such btrook Open topics 26 07-10-2003 12:30 AM
make a module link open target in new window? dephton Nuke 6.5 to 6.9 - Modules 2 06-19-2003 09:53 AM
Open Directory Project module Martin Purged Topics 5 12-13-2002 11:21 AM


All times are GMT -5. The time now is 03:00 PM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31