TinyPortal

Development => Support => Topic started by: alan s on March 05, 2006, 06:23:16 PM

Title: Scrolling Links?
Post by: alan s on March 05, 2006, 06:23:16 PM
Hi , I saw this on another forum. it has a box with links scrolling up the box in a continuing cycle. Im just wondering how do you do this??

This is the link to the site with the link box, bottom lefthand corner of the page

www.thegaff.net/forums
Title: Re: Scrolling Links?
Post by: IchBin on March 05, 2006, 06:29:12 PM
Here's a script that someone else posted from a nuke site I think. I modified it a bit to work with a TP block.

[attachment deleted by admin]
Title: Re: Scrolling Links?
Post by: alan s on March 05, 2006, 06:46:20 PM
dosent work for me??
Title: Re: Scrolling Links?
Post by: IchBin on March 05, 2006, 06:54:45 PM
It might help if you explain what you did that didn't work....
Title: Re: Scrolling Links?
Post by: alan s on March 05, 2006, 06:55:37 PM
this comes up

Parse error: parse error, unexpected '<' in /home/whiplash/public_html/whiplash/Sources/Load.php(1040): eval()'d code(34) : eval()'d code on line 1
Title: Re: Scrolling Links?
Post by: IchBin on March 05, 2006, 06:56:51 PM
I need specifics alan. Did you just call it in your browser? Did you add code for it to display in a block? What did you do?

This script does not touch the SMF or TP forum so you should not be getting any of these errors.
Title: Re: Scrolling Links?
Post by: alan s on March 05, 2006, 07:00:29 PM
i copyed this out of the php code

$scroll = "<center><a target=\"_blank\" href=\" http://www.mozilla.org\"><img src=\"images/firefox.gif\" border=\"0\"   title=\"Mozilla.org\"alt=\"Go Get It \"></a></center>
";

"<marquee scrollamount=\"2\" direction=\"up\" onMouseOver=\"this.stop()\" onMouseOut=\"this.start()\" loop=\"true\">$scroll</marquee>";

any replaced the image and link with my own so it turned out like this

<marquee scrollamount=\"2\" direction=\"up\" onMouseOver=\"this.stop()\" onMouseOut=\"this.start()\" loop=\"true\">$scroll

$scroll = "<center><a target=\"_blank\" href=\" http://www.freedomain.co.nr\"><img src=\"http://img399.imageshack.us/img399/2140/anima9zu.gif\" border=\"0\"   title=\"Freedomain\"alt=\"Go Get It \"></a></center>
";</marquee>";

and set it as a phpbox
Title: Re: Scrolling Links?
Post by: IchBin on March 05, 2006, 07:12:37 PM
You can't copy the code unless you have the complete statements. If I were you I would just change the images and links to what you need in the file and then include the file in a phpbox like so:

include('block-slinks.php');
Title: Re: Scrolling Links?
Post by: alan s on March 05, 2006, 07:20:21 PM
thanks that works
Title: Re: Scrolling Links?
Post by: alan s on March 05, 2006, 08:04:08 PM
only thing is i can only get 1 image to scroll?
Title: Re: Scrolling Links?
Post by: IchBin on March 05, 2006, 08:07:41 PM
Other images are not scrolling? If that is the case, can you post your edited file or code please?
Title: Re: Scrolling Links?
Post by: alan s on March 05, 2006, 08:10:32 PM
no i have 2 images set to scroll but only 1 is appearing
Title: Re: Scrolling Links?
Post by: alan s on March 05, 2006, 08:23:45 PM
this is the text

<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System                                          */
/* ===========================                                          */
/*                                                                      */
/* 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.       */
/************************************************************************/
/*                                                                      */
/*                              /0ÂÃ,¯Ã‚Ã,¯Ã‚Ã,¯Ã‚Ã,¯Ã‚Ã,¯0\                               */
/*                             //   Ãƒâ€šÃ,º   \\                              */
/*                            /0         0\                             */
/*                           //    ÂÃ,ºÃ‚Ã,ºÃ‚Ã,º    \\                            */
/*                          /0_____________0\                           */
/*                          \_______________/                           */
/*                           Ãƒâ€šÃ,¦Ã‚Ã,¦           Ãƒâ€šÃ,¦Ã‚Ã,¦                            */
/*                                                                      */
/*                                                                      */
/*       YPN Scrolling Links Block by SHARK  www.yahoopool.net          */
/************************************************************************/
//if( eregi( "block-YPN_slinks.php", $_SERVER['SCRIPT_NAME'])) {
//   Header("Location: index.php");
//   die();
//}
//global $prefix;
//if ($themesidebox == 0) {

// USE BELOW FOR EDIT YOUR LINKS

$scroll = "<center><a target=\"_blank\" href=\" http://www.Freedomain.co.nr/\"><img src=\"http://img513.imageshack.us/img513/7351/anima5wt.gif\" border=\"0\"   title=\"Mozilla.org\"alt=\"Go Get It \"></a></center>
";
$scroll = "<center><a target=\"_blank\" href=\" http://www.whiplash.xeoncube.com/whiplash/index.php?action=pm;sa=send;u=1\"><img src=\"http://img504.imageshack.us/img504/7514/yourlinkhere7jh.gif\" border=\"0\"   title=\"Mozilla.org\"alt=\"Go Get It \"></a></center>
";








// If you want it scrolls faster change the amount of marquee scrollamount below
// If you want it scrolls from top the bottom change the direction from up to down
echo "<marquee scrollamount=\"2\" direction=\"up\" onMouseOver=\"this.stop()\" onMouseOut=\"this.start()\" loop=\"true\">$scroll</marquee>";

// If you want you can keep your logo here as static,if you dont want simply put // of the beginning nexr 2 lines
$scroll .= "<center><a target=\"_blank\" href=\" http://www.yahoopool.net\"><img src=\"images/ypnfull8.png\" border=\"0\"   title=\"Yahoopool.net\"alt=\"Yahoopool.net\"></a></center>
";

//}






?>
Title: Re: Scrolling Links?
Post by: IchBin on March 06, 2006, 03:04:53 AM
looks ok to me... have a link I can take a look at it?
Title: Re: Scrolling Links?
Post by: alan s on March 06, 2006, 09:40:48 AM
whiplash forum (http://www.whiplash.xeoncube.com/whiplash/index.php)    Box Is On The Left In The Middle
Title: Re: Scrolling Links?
Post by: alan s on March 06, 2006, 10:19:27 AM
wait i fixed it , i download the script again and edited the links and pics but instead of deleting the surplus code i left it there but took out the links

The Code Now Is

***********************************************************/
/*                                                                      */
/*                              /0ÂÃ,¯Ã‚Ã,¯Ã‚Ã,¯Ã‚Ã,¯Ã‚Ã,¯0\                               */
/*                             //   Ãƒâ€šÃ,º   \\                              */
/*                            /0         0\                             */
/*                           //    ÂÃ,ºÃ‚Ã,ºÃ‚Ã,º    \\                            */
/*                          /0_____________0\                           */
/*                          \_______________/                           */
/*                           Ãƒâ€šÃ,¦Ã‚Ã,¦           Ãƒâ€šÃ,¦Ã‚Ã,¦                            */
/*                                                                      */
/*                                                                      */
/*       YPN Scrolling Links Block by SHARK  www.yahoopool.net          */
/************************************************************************/
//if( eregi( "block-YPN_slinks.php", $_SERVER['SCRIPT_NAME'])) {
//   Header("Location: index.php");
//   die();
//}
//global $prefix;
//if ($themesidebox == 0) {

// USE BELOW FOR EDIT YOUR LINKS

$scroll = "<center><a target=\"_blank\" href=\" http://www.freedomain.co.nr\"><img src=\"http://img132.imageshack.us/img132/6402/anima8ny.gif\" border=\"0\"   title=\"Free Domain\"alt=\"Go Get It \"></a></center>
";

$scroll .= "<center><a target=\"_blank\" href=\"http://cknetworx.com/~/whiplash/smf/index.php?action=pm;sa=send;u=1\"><img src=\"http://img504.imageshack.us/img504/7514/yourlinkhere7jh.gif\" border=\"0\"   title=\"phpnuke.org\"alt=\"Php Nuke \"></a></center>
";

$scroll .= "<center><a target=\"_blank\" href=\" \"><img src=\"\" border=\"0\"   title=\"\"alt=\"\"></a></center>
";
// END OF THE EDITING LINKS AREA


// If you want it scrolls faster change the amount of marquee scrollamount below
// If you want it scrolls from top the bottom change the direction from up to down
echo "<marquee scrollamount=\"2\" direction=\"up\" onMouseOver=\"this.stop()\" onMouseOut=\"this.start()\" loop=\"true\">$scroll</marquee>";

// If you want you can keep your logo here as static,if you dont want simply put // of the beginning nexr 2 lines
$scroll .= "<center><a target=\"_blank\" href=\" http://www.yahoopool.net\"><img src=\"images/ypnfull8.png\" border=\"0\"   title=\"Yahoopool.net\"alt=\"Yahoopool.net\"></a></center>
";

//}








?>
Title: Re: Scrolling Links?
Post by: nite0859 on March 29, 2006, 07:08:27 AM
Is there anyway to integrate Google's Adsense or any other Java coding into this ?