PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

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
Only registered users can see links on this board!
Get registered or login to the forums!
)
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 Visit poster's website AIM Address Yahoo Messenger
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 Back to top

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 to the forums!

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>";
?>
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 Back to top

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 Back to top

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
Life Cycles Becoming CPU Cycles


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

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

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
View user's profile Send private message Visit poster's website
antcreations
New Member
New Member


Joined: May 07, 2004
Posts: 7

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

thanks scott!

that was really quick!

i will try it now.

God bless.
View user's profile Send private message
antcreations
New Member
New Member


Joined: May 07, 2004
Posts: 7

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

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
View user's profile Send private message
Nukeum66
Life Cycles Becoming CPU Cycles


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

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

Try this download the block I made, unzip it and upload DO NOT EDIT IT!
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website
antcreations
New Member
New Member


Joined: May 07, 2004
Posts: 7

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

thanks ALOT scott!!!!

i do the same with the Proverbs thingy right?

like, cut and paste.
View user's profile Send private message
Nukeum66
Life Cycles Becoming CPU Cycles


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

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

Yes ! Wink

I signed your book ..... Laughing
View user's profile Send private message Visit poster's website
antcreations
New Member
New Member


Joined: May 07, 2004
Posts: 7

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

thanks for signing!

and thanks for all the help.
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum