Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Mon Jan 12, 2004 12:39 am Reply with quote

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";

?>
 
View user's profile Send private message
Nukeum66
Life Cycles Becoming CPU Cycles



Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Mon Jan 12, 2004 5:17 am Reply with quote

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  .= "    &nbsp;<script src=\"http://www.heartlight.org/hls/tv_kjv.js\"></script></TD>";
$content  .= "  </TR>";
$content  .= "</TABLE></CENTER>";
?>

_________________
Scott Johnson MIS Ubuntu/Linux 11.10 
View user's profile Send private message Visit poster's website
robertjones
New Member
New Member



Joined: Jan 29, 2004
Posts: 1

PostPosted: Thu Jan 29, 2004 8:34 pm Reply with quote

Thank You very much Raven and Nukeum66, The codes works great! You guys are the best.
 
View user's profile Send private message
antcreations
New Member
New Member



Joined: May 07, 2004
Posts: 7

PostPosted: Fri May 07, 2004 11:07 am Reply with quote

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>&nbsp;<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 -->
 
View user's profile Send private message
Nukeum66







PostPosted: Fri May 07, 2004 6:49 pm Reply with quote

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>&nbsp;<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
 
antcreations







PostPosted: Fri May 07, 2004 7:16 pm Reply with quote

thanks scott!

that was really quick!

i will try it now.

God bless.
 
antcreations







PostPosted: Fri May 07, 2004 7:19 pm Reply with quote

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







PostPosted: Fri May 07, 2004 8:18 pm Reply with quote

Try this download the block I made, unzip it and upload DO NOT EDIT IT!

http://mycws.org/pub/block-Bravenet.zip
 
antcreations







PostPosted: Fri May 07, 2004 8:35 pm Reply with quote

thanks ALOT scott!!!!

i do the same with the Proverbs thingy right?

like, cut and paste.
 
Nukeum66







PostPosted: Fri May 07, 2004 8:42 pm Reply with quote

Yes ! Wink

I signed your book ..... Laughing
 
antcreations







PostPosted: Fri May 07, 2004 8:47 pm Reply with quote

thanks for signing!

and thanks for all the help.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©