Author
Message
Raven Site Admin/Owner Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
Posted:
Mon Jan 12, 2004 12:39 am
Many have asked for the 2 scripts that pull the Proverb of the Day and Verse of the Day. Here is the code (used by permission from Bob Marion at ) 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 .= "<script src='http://www.verseoftheday.com/kjvverse.js'></script>\n";
$content .= "<!--END VOTD CODE-->\n";
?>
<?
/********************************************************/
/* 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 .= "<script src='http://www.verseoftheday.com/kjvproverb.js'></script>\n";
$content .= "<!--END VOTD CODE-->\n";
?>
Nukeum66 Life Cycles Becoming CPU Cycles Joined: Jul 30, 2003 Posts: 551 Location: Neurotic, State, USA
Posted:
Mon Jan 12, 2004 5:17 am
Here is the code for my Daily Verse Block with an image, to see what it look like on site go to
Code:
<?php
/************************************************************************/
/* */
/* DAILY VERSE WITH PICTURE */
/* Copyright (c) 2003,2004 by Scott Johnson (aka Nukeum66) */
/* http://www.mycws.org */
/* */
/* DAILY VERSE FEED BY: */
/* Copyright (c) 2003, 2004 Heartlight */
/* http://www.heartlight.org */
/* */
/* */
/* Create and upload your image into your Nuke images directory. */
/* Change line 10 <IMG SRC=\"images/sunset2.jpg (name of your image) */
/* Image size: 120x58 */
/************************************************************************/
if (eregi("block-Picverse.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
$content = "<CENTER><TABLE WIDTH=\"120\" BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"2\">";
$content .= " <TR>";
$content .= " <TD WIDTH=\"100%\">";
$content .= " <IMG SRC=\"images/sunset2.jpg\"";
$content .= " WIDTH=\"120\" HEIGHT=\"58\" ALIGN=\"BOTTOM\" BORDER=\"0\"></TD>";
$content .= " </TR>";
$content .= " <TR>";
$content .= " <TD WIDTH=\"100%\">";
$content .= " <script src=\"http://www.heartlight.org/hls/tv_kjv.js\"></script></TD>";
$content .= " </TR>";
$content .= "</TABLE></CENTER>";
?>
robertjones New Member Joined: Jan 29, 2004 Posts: 1
Posted:
Thu Jan 29, 2004 8:34 pm
Thank You very much Raven and Nukeum66, The codes works great! You guys are the best.
antcreations New Member Joined: May 07, 2004 Posts: 7
Posted:
Fri May 07, 2004 11:07 am
from a new php user.
i love this feature ... proverb and verse of the day.
how do i actually apple this to my phpnuke 6.9 site?
where do i paste the codes?
also, i want to paste another HTML code by bravenet, and i don't know where to make a new block for the module.
please help. any advice would be greatly appreciated.
<!-- Start Bravenet.com Service Code -->
<div align="center"><a href="javascript:void(0)"
onclick="window.open('http://pub24.bravenet.com/guestmap/show.php?usernum=2026200186&lightmap=0&icons=0&&entrylist=0&zoom=0&welcome=1','bnetguestmap','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=720,height=470,top=110,left=110')">
<img src="http://images.bravenet.com/cp/guestmap.gif" border="0" title="Free Guestmap from Bravenet" alt="Free Guestmap from Bravenet" /></a> <a href="http://www.bravenet.com"><img src="http://images.bravenet.com/cp/bn-guestmap.gif" border="0" title="Free Guestmap from Bravenet" alt="Free Guestmap from Bravenet" /></a>
</div>
<!-- End Bravenet.com Service Code -->
Nukeum66 Life Cycles Becoming CPU Cycles Joined: Jul 30, 2003 Posts: 551 Location: Neurotic, State, USA
Posted:
Fri May 07, 2004 6:49 pm
Here is your Bravenet Block> Copy and Paste this code in a text editor> Save it (name it) as block-Bravenet.php > Upload the file block-Bravenet.php to yoursite/blocks directory > Then go to your Admin area> blocks administration area> scroll down to "Add a New Block"> then find "Filename:" dropdown menu select the Bravenet block> then click Create Block!
Code: <?php
if (eregi("block-Bravenet.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
$content = "<!-- Start Bravenet.com Service Code --> ";
$content .= "<div align=\"center\"><a href=\"javascript:void(0)\" ";
$content .= "onclick=\"window.open('http://pub24.bravenet.com/guestmap/show.php?usernum=2026200186&lightmap=0&icons=0&&entrylist=0&zoom=0&welcome=1','bnetguestmap','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=720,height=470,top=110,left=110')\"> ";
$content .= "<img src=\"http://images.bravenet.com/cp/guestmap.gif\" border=\"0\" title=\"Free Guestmap from Bravenet\" alt=\"Free Guestmap from Bravenet\" /></a> <a href=\"http://www.bravenet.com\"><br><img src=\"http://images.bravenet.com/cp/bn-guestmap.gif\" border=\"0\" title=\"Free Guestmap from Bravenet\" alt=\"Free Guestmap from Bravenet\" /></a> ";
$content .= "</div> ";
$content .= "<!-- End Bravenet.com Service Code -->";
?>
Do the same for the above codes ......
antcreations New Member Joined: May 07, 2004 Posts: 7
Posted:
Fri May 07, 2004 7:16 pm
thanks scott!
that was really quick!
i will try it now.
God bless.
antcreations New Member Joined: May 07, 2004 Posts: 7
Posted:
Fri May 07, 2004 7:19 pm
i got an error.
it says: Parse error: parse error, unexpected T_STRING in /www/a/antcreations/htdocs/prov6:6/blocks/block-Bravenet.php on line 4
Nukeum66 Life Cycles Becoming CPU Cycles Joined: Jul 30, 2003 Posts: 551 Location: Neurotic, State, USA
Posted:
Fri May 07, 2004 8:18 pm
Try this download the block I made, unzip it and upload DO NOT EDIT IT!
antcreations New Member Joined: May 07, 2004 Posts: 7
Posted:
Fri May 07, 2004 8:35 pm
thanks ALOT scott!!!!
i do the same with the Proverbs thingy right?
like, cut and paste.
Nukeum66 Life Cycles Becoming CPU Cycles Joined: Jul 30, 2003 Posts: 551 Location: Neurotic, State, USA
Posted:
Fri May 07, 2004 8:42 pm
Yes !
I signed your book .....
antcreations New Member Joined: May 07, 2004 Posts: 7
Posted:
Fri May 07, 2004 8:47 pm
thanks for signing!
and thanks for all the help.
View next topic
View previous 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