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

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Weather Module or 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
sdrye
Nuke Cadet
Nuke Cadet


Joined: Sep 06, 2004
Posts: 6


PostPosted: Tue Sep 07, 2004 5:41 pm Reply with quoteBack to top

Posted this in another forum, didn't get any answers so I thought I would try here...... TIA

I'm trying to engineer a little way to use the following code in a module or block, don't know which (I'm new to this so bear with please....)

Here's the code....

<script src='http://voap.weather.com/weather/oap/71106?template=ALERV&par=1003141247&unit=0&key=22ef89e354d72dd0524a7380752d23bb'></script>

<SCRIPT LANGUAGE="JavaScript">

ccstr = document.location.href;
ccindex = ccstr.indexOf("ShowCC=");

if (ccindex != -1) {

ccint = ccstr.substr((ccindex + 7), (ccindex +10));
wxSwap('cc1', ccint);
}

</SCRIPT><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%"><TR><TD></TD></TR>
<TR>
<TD>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD ALIGN="CENTER">
<IFRAME WIDTH="100%" FRAMEBORDER="0" MARGINHEIGHT="1" MARGINWIDTH="1" ID="FrameDS8DO2ID126859" SRC="http://wp.myweather.net/wp/?pub=ksla353908&amp;map=infrad" HEIGHT="710" SCROLLING="No"><!-- - ->&nbsp;<!- - -->
</IFRAME><SCRIPT LANGUAGE="JavaScript1.1"><!--

if (document.layers){

document.write("<img name='spacerDS8DO2ID126859' src='/images/static/gfx/pxl_trans.gif' border=0 width=1 height=710>");
document.close();

}
//--></SCRIPT>

I'm trying to get all of this to line up in the bottom left corner of my page. Unfortunately it all goes somewhere near the center. I'll be honest I don't understand some of this.

Would this be better to have as a block or a module?

Also, there is a module tag underneath it on my page that I'd like to get rid of.... see it in action here http://www.sdrye.com

Thanks,

Stephen
Find all posts by sdryeView user's profileSend private message
nobleclem
Lieutenant
Lieutenant


Joined: May 27, 2003
Posts: 167

Location: Southfield, MI

PostPosted: Tue Sep 07, 2004 6:11 pm Reply with quoteBack to top

make it a block.

1) just make a file called block-Weather.php
2) in the block file:
Code:
<?PHP
if (eregi("block-Advertising.php", $_SERVER['SCRIPT_NAME'])) {
    Header("Location: ../index.php");
    die();
}

$content = "
your html / javascript code here
";
?>


Make sure all " are prefixed by \ so that they look like \"

3) upload, activate, and place block in desired location.

_________________
....Check Out These Great Sites....


http://HackerAssassins.com is home to PHP-Nuke 7.4 HA Enhanced | http://FatalException.us

http://Vaelio.com < -- > The Future of CMS Technology and Design Today -- coming soon
Find all posts by nobleclemView user's profileSend private messageVisit poster's websiteAIM AddressMSN MessengerICQ Number
sdrye
Nuke Cadet
Nuke Cadet


Joined: Sep 06, 2004
Posts: 6


PostPosted: Tue Sep 07, 2004 8:02 pm Reply with quoteBack to top

This didn't work. But, I'm probably doing something wrong. It's late so I'll work on it more tomorrow. Thanks,

Stephen
Find all posts by sdryeView user's profileSend private message
dezina
Support Mod
Support Mod


Joined: Jun 09, 2003
Posts: 1713

Location: England

PostPosted: Wed Sep 08, 2004 12:15 am Reply with quoteBack to top

http://www.nukecops.com/postp39921.html#39921
Adding javascript to a block - details at above url Wink

_________________
Image
Backup files BEFORE altering
Use PHPNuke 7.6 with patches!!
No private messages please, POST in forums.
Find all posts by dezinaView 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.182 Seconds - 305 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::