Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Seeking applications ...
Author Message
christianb
Worker
Worker



Joined: Nov 24, 2004
Posts: 131
Location: Batesville, AR

PostPosted: Wed Nov 24, 2004 8:44 pm Reply with quote

I know I'm new here, but I figured with such a great crowd, I might find some help here. Very Happy

Question 1: I'm looking to put an a daily bible verse on my website. Should I go with a feed or a block? What is recommended? Opinions?

Question 2: I've seen phpKJV but I can't find anywhere to download it. I used Google, but the downloads came up empty. Is this a good addon? Are there better?

Question 3: I am running phpNuke 7.0, I am considering 7.5, what would be my best approach to implementing this?

Question 4: What's my best approach to upgrading from phpbb (in phpNuke 7.0) 2.06? Does 7.5 have an updated version or is it a manual upgrade? If so, what do I need to do?

Question 5: I've searched google and other web sites, in your opinion(s), what is the best digital clock to use on a nuke page? Best Calendar Block? I tried using a calendar as a module - horrible horrible horrible. Works fine as an addon, but would like a block instead (small, compact).

Thanks in advance!
 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Wed Nov 24, 2004 9:52 pm Reply with quote

#1 - Look at the bottom right and left blocks on the home page. Is that what you're after?

#2 - I'm not familiar with that addon.

#3 - I would ask you're need to upgrade. The only feature you will gain is the points thing which isn't worth much, imo.

#4 - You can upgrade the forums w/o upgrading nuke, other than the core code that the forums use.

#5 - I don't use either but maybe others can chime in here.

Welcome to the site!
 
View user's profile Send private message
TheosEleos
Life Cycles Becoming CPU Cycles



Joined: Sep 18, 2003
Posts: 960
Location: Missouri

PostPosted: Wed Nov 24, 2004 10:11 pm Reply with quote

#5 - Be sure you really need some of this stuff before you install it. It may seem really cool when you first see it but I have found a lot of the time with my members they don't go to the home page much. They are there for the forums (that is why I just added the forums news add on).

Points system with 7.whatever does stink.

Welcome to Raven's!

_________________
http://jamesdibben.com 
View user's profile Send private message Visit poster's website AIM Address ICQ Number
christianb







PostPosted: Thu Nov 25, 2004 7:37 am Reply with quote

Thanks for the warm welcome and the quick response!

On #1, I'm looking for that. Btw, I've also been interested in the Site Info block as well, but it hasn't been up there on my priorities list. Right now I'm using a Grand Info block and I don't care for 60% of the content on there. That would make a great replacement. Smile
On #2, I didn't know of any other bible feature that could be implemented in my site. here is one site that has it. I've seen it in other sites as well. I don't necessarily have to have that one, but its the only one I've found.
On #3, I honestly don't know if there really is a need, but I hear so many site trying to upgrade and I wasn't sure if there were improved security features, or if some of the bugs/issues I've found with 7.0 would be corrected. I gave up on one thing (webmail) in favor of squirrelmail, because I couldn't fix 2 major bugs with it.
On #4, do I need to upgrade them one at a time (currently using 2.06) or can I just go straight for 2.011?
On #5, I'm currently using a calendar that I've added on to the site, although it is not in any way connected to phpNuke - just as a stand alone. I just want something small that I can work with, even if its just an admin-only feature.

A lot of things I installed (without much manual work) I've removed because I really didn't think it fit, and didn't work well with my site. I use maybe 1 out of 8 things I download, but have settled on the things above.
Thanks again!

Edit: Downloaded and installed the Site/User Info Block. Nice Smile Only one issue: I have my custom avatars point to /avatars/custom and other avatars to /avatars/gallery Should I change the avatars directory and move everything, or is there a fix to find out where the avatars are located and then reference them?

Edit 2: I took a close look at the two blocks and found (by clicking) where I can get the script. Very Happy
 
Nukeum66
Life Cycles Becoming CPU Cycles



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

PostPosted: Fri Nov 26, 2004 9:01 am Reply with quote

Quote:
Question 2: I've seen phpKJV but I can't find anywhere to download it. I used Google, but the downloads came up empty. Is this a good addon? Are there better?


I have phpKJV, I'll setup a DL for it later this evening and post back here.

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







PostPosted: Fri Nov 26, 2004 9:33 am Reply with quote

Thanks!

Edit: Addon to previous posts - how do I allow images in signatures? It won't accept any code I use. Sad
 
Nukeum66







PostPosted: Fri Nov 26, 2004 11:54 am Reply with quote

phpKJV download link: [ Only registered users can see links on this board! Get registered or login! ]

This module is also active on my site if you would like to have a peek before downloading.
 
christianb







PostPosted: Fri Nov 26, 2004 3:28 pm Reply with quote

Thank you, registered and downloaded.
 
Nukeum66







PostPosted: Fri Nov 26, 2004 6:21 pm Reply with quote

You're Welcome ..... Laughing
 
christianb







PostPosted: Sat Nov 27, 2004 7:59 am Reply with quote

That was really easy to install too.

The Verse and Proverb of the Day - it was all in html and wouldn't work, so I rewrote the code to turn it into a php block. I even have the links open up in new windows. Smile

So, now all I have left is:

Question #4, (regarding upgrading phpBB) Do I need to upgrade them one at a time (currently using 2.06) or can I just go straight for 2.011?

and

Question #6, (new question - same as addon above) How do I allow images in signatures? It won't accept any code I use.

I'm going to put off question 5 regarding block calendar.
 
christianb







PostPosted: Mon Jun 27, 2005 3:28 pm Reply with quote

I know its been 7 months since I last commented in this thread, however, I've run across something. NukeScripts created a block similar to mine. It's the Verse of the Day and Proverb variant that I'm referring to.

My code:
Code:
<?php


/************************************************************************/
/* Copyright (c) 2004 by David Webb (christianb@christianboards.org)    */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/

if (eregi("block-VerseOfTheDay.php",$_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
    die();
}

/************************************************************************/
/* To use this block you only need to download the .gif image from      */
/* verseoftheday.com and copy them to the /images/ directory.  There is */
/* an image for the verse of the day and for the proverb of the day.    */
/************************************************************************/

$content = "<br><center><a href=\"#\" onClick=\"window.open('http://www.verseoftheday.com')\"><input type=\"image\" src=\"images/smalllogo.gif\" width=\"90\" height=\"30\" border=\"0\" alt=\"Verse of the Day\"></center>";
$content  .= "<br><SCR IPT LANGUAGE=\"Jav aScr ipt\" ";
$content  .= "SRC=\"http://www.verseoftheday.com/kjvverse. js\"> ";
$content  .= "</SCR IPT> ";

?>


NukeScripts' code:
Code:
<?php


/********************************************************/
/* Verse of the Day block (King James Version)          */
/* By: NukeScripts Network (webmaster@nukescripts.net)  */
/* http://www.nukescripts.net                           */
/* Copyright © 2000-2005 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 (stristr($_SERVER['PHP_SELF'], "block-VOTD_KJV.php")) {
    Header("Location: ../index.php");
    die();
}
global $db, $prefix;
$content  = "";
$row = $db->sql_fetchrow($db->sql_query("SELECT content, time FROM ".$prefix."_blocks WHERE blockfile='block-VOTD_KJV.php'"));
$content = $row['content'];
$otime = date("Y-m-d", $row['time']);
$ntime = date("Y-m-d", time());
if ($otime < $ntime) {
  $btime = strtotime($ntime);
  $content = implode("", file("http://www.verseoftheday.com/kjvverse.js"));
  $content = str_replace("<!--\n\ndocument.write(\"", "", $content);
  $content = str_replace("\")\n\n//-->", "", $content);
  $content = "<!--BEGIN VOTD CODE-->\n".$content."<!--END VOTD CODE-->\n";
  $content = addslashes($content);
  $db->sql_query("UPDATE ".$prefix."_blocks SET content='$content', time='$btime' WHERE blockfile='block-VOTD_KJV.php'");
  $content = stripslashes($content);
}

?>


I've got a couple questions -
1) Is there anything wrong with my code - security-wise or anything?
2) Do I have a right to distribute my block, the one I created?
 
sellout
New Member
New Member



Joined: Jun 25, 2006
Posts: 2

PostPosted: Sun Jun 25, 2006 8:02 pm Reply with quote

could anyone re-uplaod phpkjv i would love to have it for my site...
 
View user's profile Send private message
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Mon Jun 26, 2006 8:59 am Reply with quote

Wow, that is really interesting. I didn't know that Bob updated that block. I am still using something very similar to yours, but with this at the top instead of the "PHP_SELF":

Code:


if ( !defined('BLOCK_FILE') ) {
   Header('Location: ../index.php');
   die();
}


There is always the off-chance that someone hacks in to that site and mucks with the .js file to do "bad things". That is a risk with either method. However, the really interesting this is that he has really turned this into a "self-perpetuating" HTML block. Really an innovative idea if you ask me. It keeps the server from going out to the VOTD site each and every time someone visits that page! If VOTD is experiencing problems, it makes the site not wait. Since the verse is only refreshed once daily, that is his refresh period.

Personally, I am going to update mine to Bob's latest code. Again, quite innovative idea! Kudos Mr. Marion!

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
montego







PostPosted: Mon Jun 26, 2006 9:01 am Reply with quote

sellout, you can get it from [ Only registered users can see links on this board! Get registered or login! ]
 
sellout







PostPosted: Mon Jun 26, 2006 9:15 am Reply with quote

i did multiple seraches for bible kjz phpkjv etc and was unable to locate it. Am i missing the obvious somewhere?
 
montego







PostPosted: Mon Jun 26, 2006 9:44 am Reply with quote

"kjz"? I think you'll find it under "kjv". Wink
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Seeking applications ...

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 ©