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, 72 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 - How can I add this javascript to a 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
Elwyyn
Nuke Soldier
Nuke Soldier


Joined: Apr 08, 2003
Posts: 29


PostPosted: Sun Jul 13, 2003 6:13 am Reply with quoteBack to top

I am trying to create a block that has this javascript in it:

<SCRIPT language="JavaScript" SRC="http://eqlive.station.sony.com/includes/js_news/eq_headlines.jsp"></SCRIPT>
<noscript>The EverQuest Live news requires you to have JavaScript turned on.</noscript>

This is how I attempted doing it after searching in the forums, however it doesn't create a block.

$content = <<< _HTMLCODE_

<SCRIPT language="JavaScript" SRC="http://eqlive.station.sony.com/includes/js_news/eq_headlines.jsp"></SCRIPT>
<noscript>The EverQuest Live news requires you to have JavaScript turned on.</noscript>

_HTMLCODE_;
Find all posts by ElwyynView user's profileSend private messageVisit poster's website
disgruntledtech
Site Admin
Site Admin


Joined: Apr 14, 2003
Posts: 991

Location: Tulsa, OK

PostPosted: Sun Jul 13, 2003 12:51 pm Reply with quoteBack to top

this has been covered many times please search

http://www.nukecops.com/modules.php?name=Forums&file=search&mode=results&search_keywords=javascript+block&search_terms=all&show_results=topics
Find all posts by disgruntledtechView user's profileSend private messageSend e-mailVisit poster's website
Elwyyn
Nuke Soldier
Nuke Soldier


Joined: Apr 08, 2003
Posts: 29


PostPosted: Sun Jul 13, 2003 1:06 pm Reply with quoteBack to top

I did search, which is where I found the script portion I posted. I finally figured out how to do it. None of the instructions were very clear on where exactly to put that script.

For those others who may have the same question and are new to this as I am, you don't put the code in the block under Block Administration. You actually create your own block.php file (somename-block.php) and upload it to your blocks folder.
Find all posts by ElwyynView 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.357 Seconds - 352 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::