Author |
Message |
Victor
New Member


Joined: Feb 17, 2004
Posts: 15
|
Posted:
Tue Oct 26, 2004 3:27 pm |
|
I am trying to add the verse of the day and proverb of the day code to my site by creating Blocks with the HTML.
But when I do so, I getting sent to a Sentinal default page on my site that I have attempted a Scripting attack.
How can I get these to work?
I am getting them from http://www.verseoftheday.com/
If I turn off the script block then the Proverb html says an unknown attack
PHP-Nuke then says my HTML is bad for the verse of the day code. |
Last edited by Victor on Tue Oct 26, 2004 3:29 pm; edited 1 time in total |
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Tue Oct 26, 2004 3:28 pm |
|
Don't make them as HTML. Make them as a standard block and add them through the Blocks Admin menu. |
|
|
|
 |
Victor

|
Posted:
Tue Oct 26, 2004 3:30 pm |
|
That is what I am doing,
I cut and paste the HTML from the site and put it into a new block. |
|
|
|
 |
Raven

|
Posted:
Tue Oct 26, 2004 3:41 pm |
|
Code:/********************************************************/
/* Proverb of the Day block (King James Version) */
/* By: NukeScripts Network (webmaster@nukescripts.net) */
/* http://www.nukescripts.net */
/* Copyright © 2000-2003 by NukeScripts Network */
/********************************************************/
/* Verse of the Day feed */
/* By: VerseOfTheDay.com */
/* http://www.verseoftheday.com */
/* Copyright © by VerseOfTheDay.com */
/********************************************************/
/* Verses */
/* By: God */
/* Copyright © by The Holy Bible */
/********************************************************/
if (eregi("block-POTD_KJV.php",$_SERVER['PHP_SELF'])) {
Header("Location: ../index.php");
die();
}
$content = "";
$content .= "<!--BEGIN VOTD CODE-->\n";
$content .= "<s~cript src='http://www.verseoftheday.com/kjvproverb.js'></s~cript>\n";
$content .= "<!--END VOTD CODE-->\n";
}
|
Code:
/********************************************************/
/* Verse of the Day block (King James Version) */
/* By: NukeScripts Network (webmaster@nukescripts.net) */
/* http://www.nukescripts.net */
/* Copyright © 2000-2003 by NukeScripts Network */
/********************************************************/
/* Verse of the Day feed */
/* By: VerseOfTheDay.com */
/* http://www.verseoftheday.com */
/* Copyright © by VerseOfTheDay.com */
/********************************************************/
/* Verses */
/* By: God */
/* Copyright © by The Holy Bible */
/********************************************************/
if (eregi("block-VOTD_KJV.php",$_SERVER['PHP_SELF'])) {
Header("Location: ../index.php");
die();
}
$content = "";
$content .= "<!--BEGIN VOTD CODE-->\n";
$content .= "<s~cript src='http://www.verseoftheday.com/kjvverse.js'></s~cript>\n";
$content .= "<!--END VOTD CODE-->\n";
}
|
Remove the ~ from the <s~cript> and </s~cript> |
|
|
|
 |
Victor

|
Posted:
Tue Oct 26, 2004 4:17 pm |
|
OK,
This just isn't working for me.
What I did is I created two index.php files. One name block-votd.php and the other block-potd.php
I put one code into each of these, uploaded them to my /blocks folder and then went into admin to add the blocks.
Here is what happened:
http://policeprayers.org |
|
|
|
 |
Raven

|
Posted:
Tue Oct 26, 2004 4:44 pm |
|
index.php files? There are no index files for blocks. You left out the openin and closing php tags <? ?>. I assumned you knew that. Sorry. |
|
|
|
 |
beetraham
Regular


Joined: Dec 13, 2003
Posts: 94
Location: Finland (EU)
|
Posted:
Tue Oct 26, 2004 4:50 pm |
|
Victor wrote: | OK,
This just isn't working for me.
What I did is I created two index.php files. One name block-votd.php and the other block-potd.php
I put one code into each of these, uploaded them to my /blocks folder and then went into admin to add the blocks.
Here is what happened:
http://policeprayers.org |
Seems like you'd be missing the necessary PHP Tags
Your code now:
Code:
/********************************************************/
/* Verse of the Day block (King James Version) */
/* By: NukeScripts Network (webmaster@nukescripts.net) */
/* http://www.nukescripts.net */
/* Copyright © 2000-2003 by NukeScripts Network */
/********************************************************/
/* Verse of the Day feed */
/* By: VerseOfTheDay.com */
/* http://www.verseoftheday.com */
/* Copyright © by VerseOfTheDay.com */
/********************************************************/
/* Verses */
/* By: God */
/* Copyright © by The Holy Bible */
/********************************************************/
if (eregi("block-POTD_KJV.php",$_SERVER['PHP_SELF'])) {
Header("Location: ../index.php");
die();
}
$content = "";
$content .= "<!--BEGIN VOTD CODE-->\n";
$content .= "<s~cript src='http://www.verseoftheday.com/kjvproverb.js'></s~cript>\n";
$content .= "<!--END VOTD CODE-->\n";
}
|
change it to following (with PHP TAGS "<?" and "?>" included);--->
Code:
<?
/********************************************************/
/* Verse of the Day block (King James Version) */
/* By: NukeScripts Network (webmaster@nukescripts.net) */
/* http://www.nukescripts.net */
/* Copyright © 2000-2003 by NukeScripts Network */
/********************************************************/
/* Verse of the Day feed */
/* By: VerseOfTheDay.com */
/* http://www.verseoftheday.com */
/* Copyright © by VerseOfTheDay.com */
/********************************************************/
/* Verses */
/* By: God */
/* Copyright © by The Holy Bible */
/********************************************************/
if (eregi("block-POTD_KJV.php",$_SERVER['PHP_SELF'])) {
Header("Location: ../index.php");
die();
}
$content = "";
$content .= "<!--BEGIN VOTD CODE-->\n";
$content .= "<s~cript src='http://www.verseoftheday.com/kjvproverb.js'></s~cript>\n";
$content .= "<!--END VOTD CODE-->\n";
}
?>
|
BR,
-beetraham |
_________________ - Let there be no windows at your home - |
|
|
 |
Victor

|
Posted:
Tue Oct 26, 2004 5:09 pm |
|
OK,
I renamed my blocks to be block-VOTD_KJV.php and block-POTD_KJV.php as that seems to be what the code refers to.
I also added the ?> parts but I am getting this error now:
Parse error: parse error, unexpected '}' in /home/carryco/public_html/blocks/block-POTD_KJV.php on line 26
See it at:
http://www.policeprayers.org/ |
|
|
|
 |
beetraham

|
Posted:
Tue Oct 26, 2004 6:04 pm |
|
Victor wrote: | OK,
I renamed my blocks to be block-VOTD_KJV.php and block-POTD_KJV.php as that seems to be what the code refers to.
I also added the ?> parts but I am getting this error now:
Parse error: parse error, unexpected '}' in /home/carryco/public_html/blocks/block-POTD_KJV.php on line 26
See it at:
http://www.policeprayers.org/ |
It seems that the original code that was posted by you, contained (1) pcs of excess brackets (to what was expected by a glance) - as I removed it, all's well now... please see inline a couple of proofs in action;
(the reason why I did not include written CODE, but a snaphot instead, is that you need to additionally reformulate the word s~cript, so that it is changed into what can be seen in the underbeneath screenshot - this limitation/restriction of not writing the *word along with code* herein is to avoid getting unintentionally banned by the launched "hacker trap/alert" (NukeSentinel) that Raven is effectively using in these Forums, and in the whole Site as well)
You may download the VERIFIED CODE from here : Only registered users can see links on this board! Get registered or login!
The CODE (tested/verified, downloadable from the above link) --->
In Action --->
Let me know if you have any obstacles with the "other block (I assume you have another block as well)
BR,
-beetraham |
|
|
|
 |
Victor

|
Posted:
Wed Oct 27, 2004 12:28 am |
|
|
|
 |
beetraham

|
Posted:
Wed Oct 27, 2004 4:13 am |
|
Thanks Vic, good to hear that those snippets are steadily performing.
OK, so I took a look at the code you referred and performed the necessary minor formatting in order to have it stuffed into the PHP-Nuke env.
Please find inline a link to the zip-packaged code for yours to download it - been tested and verified as seen from the underbeneath screeshot.
As the *space* that is required by this Block code (300+ pixels), you may want to instantiate the block as a *center-area-block* - (either top or bottom center) from the PHP-Nuke Admin Panel (Blocks' Section).
The packaged code is set downloadable at :
Only registered users can see links on this board! Get registered or login!
Screenshot (in Action):
Thanks a lot,
BR,
-beetraham |
|
|
|
 |
Victor

|
Posted:
Wed Oct 27, 2004 6:39 am |
|
Man, how can I thank you, you rock! This is great. I really wanted these three up and couldn't figure it out.
I really appreciate it!
Vic |
|
|
|
 |
beetraham

|
Posted:
Wed Oct 27, 2004 8:08 am |
|
Victor wrote: | Man, how can I thank you, you rock! This is great. I really wanted these three up and couldn't figure it out.
I really appreciate it!
Vic |
That's good news - glad to hear things have worked out just fine.
There's always someone at Ravens' to reply, so by all means do get these Forums posted in case of need for info backups in future as well.
Thanks a lot! Kind regards,
-beetraham |
|
|
|
 |
sharlein
Member Emeritus

Joined: Nov 19, 2002
Posts: 322
Location: On the Road
|
Posted:
Wed Oct 27, 2004 11:48 am |
|
I have found a quick and easy way to create modules and blocks. On my site, left, near the bottom, you will find some usefull tools. (PHP-Nuke Tools v3.00
By Disipal) |
_________________ Give Me Ambiguity Or Give Me Something Else! |
|
|
 |
|