Author |
Message |
Raven
Site Admin/Owner
![](modules/Forums/images/avatars/45030c033f18773153cd2.gif)
Joined: Aug 27, 2002
Posts: 17088
|
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 http://nukescripts.net )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";
?>
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Nukeum66
Life Cycles Becoming CPU Cycles
![](modules/Forums/images/avatars/438e821747faeb6553037.gif)
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 Only registered users can see links on this board! Get registered or login!
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>";
?>
|
|
_________________ Scott Johnson MIS Ubuntu/Linux 11.10 |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
robertjones
New Member
![New Member New Member](modules/Forums/images/ranks/1star.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
antcreations
New Member
![New Member New Member](modules/Forums/images/ranks/1star.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
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 --> |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Nukeum66
![](modules/Forums/images/avatars/gallery/blank.gif)
|
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 ...... ![Wink](modules/Forums/images/smiles/icon_wink.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
antcreations
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri May 07, 2004 7:16 pm |
|
thanks scott!
that was really quick!
i will try it now.
God bless. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
antcreations
![](modules/Forums/images/avatars/gallery/blank.gif)
|
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 |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Nukeum66
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri May 07, 2004 8:18 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
antcreations
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri May 07, 2004 8:35 pm |
|
thanks ALOT scott!!!!
i do the same with the Proverbs thingy right?
like, cut and paste. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Nukeum66
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri May 07, 2004 8:42 pm |
|
Yes !
I signed your book ..... ![Laughing](modules/Forums/images/smiles/icon_lol.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
antcreations
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri May 07, 2004 8:47 pm |
|
thanks for signing!
and thanks for all the help. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|