| Author |
Message |
ciosclone
Nuke Cadet


Joined: May 12, 2003
Posts: 9
|
Posted:
Fri May 23, 2003 10:17 am |
  |
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] |
|
|
   |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Fri May 23, 2003 10:52 am |
  |
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 |
|
|
   |
 |
ciosclone
Nuke Cadet


Joined: May 12, 2003
Posts: 9
|
Posted:
Fri May 23, 2003 10:54 am |
  |
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? |
|
|
   |
 |
ciosclone
Nuke Cadet


Joined: May 12, 2003
Posts: 9
|
Posted:
Fri May 23, 2003 11:04 am |
  |
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?  |
|
|
   |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Fri May 23, 2003 11:33 am |
  |
|
    |
 |
ciosclone
Nuke Cadet


Joined: May 12, 2003
Posts: 9
|
Posted:
Fri May 23, 2003 11:42 am |
  |
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 |
|
   |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Fri May 23, 2003 11:46 am |
  |
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 |
|
    |
 |
mikem
Theme Guru


Joined: Jan 13, 2003
Posts: 1582
Location: Corn fields of Indiana
|
Posted:
Fri May 23, 2003 11:48 am |
  |
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 |
|
   |
 |
ciosclone
Nuke Cadet


Joined: May 12, 2003
Posts: 9
|
Posted:
Fri May 23, 2003 2:48 pm |
  |
|
   |
 |
|
|