» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 40
0 members and 40 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 scrolling links block problem within the Nuke 6.5 to 6.9 - Blocks forums, part of the PHP-Nuke 6.5 to 6.9 category; I have this scrolling links block, but when i click on one of the links it takes me to the ...


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

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-11-2003, 04:25 PM
Junior Member
 
Join Date: May 2003
Posts: 47
scrolling links block problem
I have this scrolling links block, but when i click on one of the links it takes me to the links main page instead of the actuall link itself, or at least to the link info on my page. how can i change this so that it will go to the link(in a separate window) or at least to the link info for that link, just like the scolling downloads block i have. thanks here is the block:
Code:
<?php

/************************************************************************/
/* Advanced Weblinks Block                                              */
/* ===========================                                          */
/*                                                                      */
/* This is basically just an edit of the original block by Francisco.   */
/* Even though this is heavly edited, I think he deserves credit, so:   */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
/*                                                                      */
/* Copyright © 2002 by Michael Bacoz                                    */
/* http://www.fatal-instinct.com                                        */
/* Changed by eagle-eye for your weblinks                               */
/* http://phpnuke-be.com                                                */
/*                                                                      */
/* For more information read the readme.txt file in this package.       */
/*                                                                      */
/************************************************************************/

/************************/
/*      Variables       */
/************************/

$linkstoshow = 5;
$usemarquee = 1;
$scrolldirection = "Up";

$most = "Most viewed";
$latest = "Latest Links";
$totalfiles = "Total Links";
$totalcategories = "Total Categories";
$totallinks = "Total Weblinks";
$hitstext = "Hits";

/************************/
/*     End Variables    */
/************************/

// Make sure people don't try and access it directly
if (eregi("block-Advanced_Links.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}

global $prefix, $dbi;

// Total Files
$result = sql_query("select * from ".$prefix."_links_links", $dbi);
$files = sql_num_rows($result, $dbi);

// Total Categories
$result = sql_query("select * from ".$prefix."_links_categories", $dbi);
$cats = sql_num_rows($result, $dbi);

// Total Links
$result = sql_query("select hits from ".$prefix."_links_links", $dbi);

$a = 1;
while(list($hits) = sql_fetch_row($result, $dbi)) {
	  $total_hits = $total_hits + $hits;
		$a++;
}

$content .= "$totalfiles: $files
$totalcategories: $cats
";
  
if ($usemarquee == 1) {
	$content .= "<Marquee Behavior=\"Scroll\" Direction=\"$scrolldirection\" Height=\"140\" ScrollAmount=\"2\" ScrollDelay=\"100\" onMouseOver=\"this.stop()\" onMouseOut=\"this.start()\">
";
}

// Latest added
$content .= $latest."
";
$a = 1;
$result = sql_query("select lid, title, hits from ".$prefix."_links_links order by date DESC limit 0,$linkstoshow", $dbi);

while(list($lid, $title, $hits) = sql_fetch_row($result, $dbi)) {
		$title2 = ereg_replace("_", " ", $title);
	  $content .= "<big>&</big>&$a: <a href=\"modules.php?name=Web_Links&d_op=viewlinkdetails&lid=$lid&title=$title\">$title2</a>
[$hitstext: $hits]

";
		$a++;
}

// Most viewed
$content .= "
".$most."
";
$a = 1;
$result = sql_query("select lid, title, hits from ".$prefix."_links_links order by hits DESC limit 0,$linkstoshow", $dbi);

while(list($lid, $title, $hits) = sql_fetch_row($result, $dbi)) {
    $title2 = ereg_replace("_", " ", $title);
    $content .= "<big>&</big>&$a: <a href=\"modules.php?name=Web_Links&d_op=viewlinkdetails&lid=$lid&title=$title\">$title2</a>
[$hitstext: $hits]

";
    $a++;
}

?>
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
scrolling block pHREDD Nuke 7.x - Blocks 3 05-13-2006 02:28 AM
Scrolling text block evilsmiley Nuke 7.x - Blocks 1 01-22-2005 11:53 AM
scrolling block ambassador Nuke 7.x - Blocks 0 07-13-2004 12:31 PM
Forum Scrolling Block Problem Meunouk Purged Topics 2 04-02-2003 08:08 AM
Scrolling Block BULLWiNkLE Purged Topics 3 12-31-2002 12:58 PM


All times are GMT -5. The time now is 01:45 AM.


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