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, 75 guest(s) and 2 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - PHP block help [ ]
 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
mdblaze6
Nuke Cadet
Nuke Cadet


Joined: Nov 02, 2005
Posts: 5


PostPosted: Wed Nov 02, 2005 1:13 pm Reply with quoteBack to top

If possible I could use a little help. I'm new to php. I have written a php block for my site that does simple marquee of images, with the ability for the end user to turn the marquee function on or off. It all works fine, but I keep getting text inserted in the block before the images. In this code, I keep seeing "br>". I try to delete the instance of "br>" from the code, and then the word "center>" shows up. I'm thinking I'm missing something simple, and I'll probably feel like an idiot when it is shown to me, but it's got me stumped.

Code:
<?php



if (eregi("block-Our_Members.php", $PHP_SELF)) {
Header("Location: index.php");
die();
}

//Begin AntiCheatAlliance section
global $prefix, $db;

$usemarquee = 1; //change from 0 to 1 if you want the image to scroll.
$scrolldirection = "Up"; //change from Up to Down if you want the image to scroll down. Will only work if $usemarquee is set to 1.
$url = "anticheat.Bigredracing.org"; //change to the url of the website you want the image to be linked to.

if ($usemarquee == 1)
{
$content .= "<Marquee Behavior=\"Scroll\" Direction=\"$scrolldirection\" Height=\"200\" ScrollAmount=\"2\" ScrollDelay=\"10\" onMouseOver=\"this.stop()\" onMouseOut=\"this.start()\">br>";
}

$content .= "<center><a href=http://nuketwo.bigredracing.org><img src=/images/BRRlogo.gif border=\"1\" alt=\"Big Red Racing\"></a></Center>";

$content .= "<Center><a href=http://www.rnrracingleague.com><img src=/images/RNRlogo.gif border=\"1\" alt=\"Round N Round Racing\"></a></Center>";

$content .= "<Center><a href=http://www.penairracing.com><img src=/images/hdr_logo.jpg border=\"1\" alt=\"Penair Racing\"></a></Center>";

$content .= "<Center><a href=http://www.teamrtw.com><img src=/images/rtwlogo.jpg border=\"1\" alt=\"Race To Win\"></a></Center>";

//End of AntiCheatAlliance section
Find all posts by mdblaze6View user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12397


PostPosted: Wed Nov 02, 2005 7:18 pm Reply with quoteBack to top

All I can see is this that should be changed
Code:

$content .= "<Marquee Behavior=\"Scroll\" Direction=\"$scrolldirection\" Height=\"200\" ScrollAmount=\"2\" ScrollDelay=\"10\" onMouseOver=\"this.stop()\" onMouseOut=\"this.start()\">";

Nothing else obviously wrong

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
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.185 Seconds - 265 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::