You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 70 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Site News Ticker Block [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Savent
Nuke Soldier
Nuke Soldier


Joined: Jun 26, 2003
Posts: 29


PostPosted: Wed Jul 02, 2003 8:13 pm Reply with quoteBack to top

Hi, anybody know where to get the site news ticker block from?, Nuke Resources has it in downloads, but the link is broken, it's a small center block, that scrolls all your news you post in your home page, Thanks Exclamation
Find all posts by SaventView user's profileSend private messageVisit poster's website
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Thu Jul 03, 2003 4:52 am Reply with quoteBack to top

CS is out of town right now, he might know when he gets back. Make sure you PM him to this thread.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Thu Jul 03, 2003 5:20 am Reply with quoteBack to top

He got back in last night Wink

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Thu Jul 03, 2003 8:03 am Reply with quoteBack to top

If you have clicked on the block's homepage link you'll notice the block's author seems to be reinstalling his server so let's wait awhile to see if he will bring back the site.

_________________
Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
Find all posts by chatservView user's profileSend private messageVisit poster's website
Savent
Nuke Soldier
Nuke Soldier


Joined: Jun 26, 2003
Posts: 29


PostPosted: Thu Jul 03, 2003 10:50 am Reply with quoteBack to top

Thanks, i found it, got it working, but can somebody tell me how to change the color of the text in it, it scrolling white, i would like it to be orange to match my site, here is the whole block code, i dont see anyplace to enter or change the 6 digit #color code at? my website url is: http://www.usnatoteam.vze.com

block code

<?php

/************************************************************************/
#based on block-scrollnews by DarkBoy (http://www.maax-design.de)
# developed by arabnuker@yahoo.com - Feb 2003
# see demo on www.arabnuker.net

if (eregi("block-News_Ticker.php", $PHP_SELF)) {
Header("Location: index.php");
die();
}
####################################
#Configuration
####################################
$behavior ='scroll'; // Marquee Behavior. You have 3 options: scroll , slide or alternate . default is scroll.
$dir ='right'; // options: right or left. default is right.
$align ='center'; //
$width ='100%'; // change width
$amount ='106'; // scrollamount.
$delay ='850'; // Scrolldelay.
$topic = '2'; //choose topics to read news from.
#
### End Of Configuration###########

global $locale, $storynum, $storyhome, $cookie, $categories, $cat, $prefix, $multilingual, $currentlang, $dbi, $new_topic, $sitename;

if ($multilingual == 1) {
if ($categories == 1) {
$querylang = "where catid='$cat' AND (alanguage='$currentlang' OR alanguage='')";
} else {
$querylang = "where (alanguage='$currentlang' OR alanguage='')";
if ($new_topic != 0) {
$querylang .= " AND topic='$new_topic'";
}
}
} else {
if ($categories == 1) {
$querylang = "where catid='$cat'";
} else {
$querylang = "";
if ($new_topic != 0) {
$querylang = "WHERE topic='$new_topic'";
}
}
}
$storynum = 109;// you can change the number of news to be displayed.
$boxstuff = " <A name= \"scrollingCode\"></A>
<MARQUEE align=\"middle\" behavior= $behavior align= $align direction= $dir width=$width scrollamount= $amount scrolldelay= $delay onmouseover='this.stop()' onmouseout='this.start()'>";
$result = sql_query("select sid, title, time, comments, topic from ".$prefix."_stories where topic = $topic order by time desc limit $storynum ", $dbi);
$vari = 0;

$r_options = "";
if (isset($cookie[4])) { $r_options .= "&mode=$cookie[4]"; }
if (isset($cookie[5])) { $r_options .= "&order=$cookie[5]"; }
if (isset($cookie[6])) { $r_options .= "&thold=$cookie[6]"; }

while(list($sid, $title, $time, $comments) = sql_fetch_row($result, $dbi)) {
$see = 1;

ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2})Sad[0-9]{1,2})Sad[0-9]{1,2})", $time, $datetime2);
$datetime2 = strftime(""._DATESTRING2."", mktime($datetime2[4],$datetime2[5],$datetime2[6],$datetime2[2],$datetime2[3],$datetime2[1]));
$datetime2 = ucfirst($datetime2);
if($time2==$datetime2) {
$boxstuff .= "<a href=\"article.html$sid$r_options\">$title</a> &\n";
} else {
if($a=="") {
$boxstuff .= " $datetime2 &<a href=\"article.html$sid$r_options\"><b>$title</b></a>\n";
$a = 1;
} else {
$boxstuff .= "$datetime2 &<a href=\"article.html$sid$r_options\"><b>$title</b></a>\n";

}
}
$vari++;

if (isset($cookie[3])) {
$storynum = $cookie[3];
} else {
$storynum = $storyhome;
}
$min = $storynum;
$dummy = 1;
}

if ($see == 1) {
$content = $boxstuff;
}

?>
Find all posts by SaventView user's profileSend private messageVisit poster's website
Savent
Nuke Soldier
Nuke Soldier


Joined: Jun 26, 2003
Posts: 29


PostPosted: Thu Jul 03, 2003 6:59 pm Reply with quoteBack to top

I cant believe i installed php nuke all by myself, and cant fiquire out how to change text to orange from white -lol look at the block code, no color code in it, anybody have any ideas?
Find all posts by SaventView user's profileSend private messageVisit poster's website
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Thu Jul 03, 2003 8:16 pm Reply with quoteBack to top

It is controlled in the themes. But, you can override it with an in-line style, like this. I only did the first one as an example. there are other ways too, but this seemed like enough to get you started.
Code:
$boxstuff .= "<a href=\"article.html$sid$r_options\"><font style='color:FF00FF'>$title</font></a>"><font style='color:FF00FF'> &</font>\n";
} else {
if($a=="") {
$boxstuff .= " $datetime2 &<a href=\"article.html$sid$r_options\">$title</a>\n";
$a = 1;
} else {
$boxstuff .= "$datetime2 &<a href=\"article.html$sid$r_options\">$title</a>\n";

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
Savent
Nuke Soldier
Nuke Soldier


Joined: Jun 26, 2003
Posts: 29


PostPosted: Thu Jul 03, 2003 8:42 pm Reply with quoteBack to top

Thanks, Raven but where do i put that code at? in the sitew news ticker block itself? or somewhere in my themes file?
Find all posts by SaventView user's profileSend private messageVisit poster's website
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Thu Jul 03, 2003 8:45 pm Reply with quoteBack to top

It's right out of the block code. I just added the
Code:
<font style='color:FF00FF'>
to the existing code.

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
Savent
Nuke Soldier
Nuke Soldier


Joined: Jun 26, 2003
Posts: 29


PostPosted: Fri Jul 04, 2003 6:57 am Reply with quoteBack to top

Cool it worked, Thanks Raven- you "Da Man" Cool
Find all posts by SaventView user's profileSend private messageVisit poster's website
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Fri Jul 04, 2003 7:00 am Reply with quoteBack to top

You're welcome and the site looks good!

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.371 Seconds - 306 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::