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, 35 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 - Blocks doesnt want to see html [ ]
 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
ciosclone
Nuke Cadet
Nuke Cadet


Joined: May 12, 2003
Posts: 9


PostPosted: Fri May 23, 2003 10:17 am Reply with quoteBack to top

Ok, i have a problem..I make a block , title it ," Vote" and then enter the html code, then when i click add the block, it does not show up on the page? I have already made one block that was nothing but html and it is fine! So i cant figure out why its not working>? I know the code is right ! Any help would be greatly appreciated! http://1stmarinedivision.com


[/code]
Find all posts by cioscloneView user's profileSend private message
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Fri May 23, 2003 10:52 am Reply with quoteBack to top

is there any code on that block that's not HTML (ie. JavaScript or PHP or whatever)? if so, you'll need to create a block file for the blocks directory, you can't create them in the Admin Panel that way.

AI
Find all posts by ArtificialIntelView user's profileSend private message
ciosclone
Nuke Cadet
Nuke Cadet


Joined: May 12, 2003
Posts: 9


PostPosted: Fri May 23, 2003 10:54 am Reply with quoteBack to top

The code is
Code:
<!-- BEGIN DF inside Top 100 Code -->
<SCRIPT language="JavaScript" src="http://www.df-inside.com/top100/hits.php?id=472"></SCRIPT>
<!-- END DF inside Top 100 Code -->
but if it makes any difference, i used my "user custom block file" and inserted the code and still didnt show up?
Find all posts by cioscloneView user's profileSend private message
ciosclone
Nuke Cadet
Nuke Cadet


Joined: May 12, 2003
Posts: 9


PostPosted: Fri May 23, 2003 11:04 am Reply with quoteBack to top

Whats even more weird, is that when i used the "user's custom block" it says its active to all vistors, but yet it still don't show up? Crying or Very sad
Find all posts by cioscloneView user's profileSend private message
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Fri May 23, 2003 11:33 am Reply with quoteBack to top

Please see this thread for how to insert Javascript/html code anywhere, in a block, admin block, or module http://nukecops.com/postt2548.html

_________________
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
ciosclone
Nuke Cadet
Nuke Cadet


Joined: May 12, 2003
Posts: 9


PostPosted: Fri May 23, 2003 11:42 am Reply with quoteBack to top

I have read your article there but i have created many, many blocks and inserted html and it works just fine! I even have a blank block on my site now with nothing but html code in it and it works fine! So the question is, why is it doing this? Again, I already have just a plain block on the site with html and its fine! I should even be able to insert that code into the footer and it work fine but it doesnt. Even converted it to PHP , still didnt make difference
Code:
echo"<!-- BEGIN DF inside Top 100 Code -->"
  . "<SCRIPT language=\"JavaScript\" src=\"http://www.df-inside.com/top100/hits.php?id=472\"></SCRIPT>"
  . "<!-- END DF inside Top 100 Code -->"
  . "
 ."";


Last edited by ciosclone on Fri May 23, 2003 11:48 am; edited 1 time in total
Find all posts by cioscloneView user's profileSend private message
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Fri May 23, 2003 11:46 am Reply with quoteBack to top

Javascript can't be inserted that way. HTML, yes, but not Javascript.

_________________
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
mikem
Theme Guru
Theme Guru


Joined: Jan 13, 2003
Posts: 1582

Location: Corn fields of Indiana

PostPosted: Fri May 23, 2003 11:48 am Reply with quoteBack to top

One other thing to be aware of. Anytime you create a custom block that has the word script in it, you'll get no response from Nuke.

Here's a solution.

by Humpa:
There are two "foreach" loops at the begining of the mainfile.php for phpnuke 6.5
The second one will redirect you to the index.php if it finds the word "script" inside of a tag (in a POST'd variable).

You can edit that second "foreach" loop, such that it is "skipped" when you are in an admin page.

In the mainfile.php, find this:
Code:
foreach ($_POST as $secvalue) {
    if (eregi("<[^>]*script*\"?[^>]*>", $secvalue)) {
   Header("Location: index.php");
   die();
    }
}

Change it to this:
Code:
global $admincode;
if($admincode != "abc123"){
foreach ($_POST as $secvalue) {
    if (eregi("<[^>]*script*\"?[^>]*>", $secvalue)) {
   Header("Location: index.php");
   die();
    }
}
}


Then, in the begining of the admin.php, add a line after the opening php tag like this:
Code:
<?php
$admincode = "abc123";

You can change the two occurances of "abc123" to something else, so no one knows what you are using.

For more info from Humpa's Help site, see HERE

mikem

_________________
Getting Started | My Projects
Find all posts by mikemView user's profileSend private message
ciosclone
Nuke Cadet
Nuke Cadet


Joined: May 12, 2003
Posts: 9


PostPosted: Fri May 23, 2003 2:48 pm Reply with quoteBack to top

Thanks for all the help everyone. Mike thank you very much, it works like a charm Very Happy http://www.1stmarinedivision.com
Find all posts by cioscloneView user's profileSend private message
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 - TUTTISU E-COMMERCE http://www.tuttisu.it
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.718 Seconds - 16 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::