Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 74
1 members and 73 guests
health46ev26
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
» .:.

Go Back   Nukemods Forum > PHP-Nuke 6.5 to 6.9 > Nuke 6.5 to 6.9 - Modules

Reply
 
LinkBack Thread Tools Display Modes
Please check my code on this module
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 2
Join Date: Jul 2003
Location: Arizona
Please check my code on this module - 07-07-2003, 09:10 AM

Hi,

I am very new to the php-nuke community. 1 full day now. I have tried to create a module that I want to be used as my front page instead of the "news" module. I want to only show one piece of news or article or whatever the right terminology is. So I have searched and found what I thought was the correct information to create this module. My problem is that I keep getting the error message.

Could someone please look and tell me what I have done wrong?

Thanks in advance.

Rick


Code:
<?php
if (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die ("Access Denied"); }
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
include("header.php");
$index = 0;
OpenTable();
echo"<p class=\"subhead\">What is Discipleship Resource Center?</p>"
  . "<p style=\"margin-top:-1em\">To put it simply, this Discipleship Resource Center exists to provide information and resources to those who are trying to live their lives as disciples of Jesus the Christ or who may be  involved in discipleship or mentoring of another person. We will be providing what we believe to be the best materials available on discipleship.

"
  . "As part of this mission we provide links to the sites of those whose material we have used. Even though the material on our site (Discipleship Resource Center) has been reviewed and approved in content, we do not necessarily endorse or advocate all the material that may be found on an authors personal site. You, as a Christian should evaluate and verify any information found in these sites against the truth of scripture.

"
  . "Acts 17:11 - These were more fair-minded than those in Thessalonica, in that they received the word with all readiness, and searched the Scriptures daily to find out whether these things were so.</p>"
  . "<p class=\"subhead\">Where does this material come from?</p>"
  . "<p style=\"margin-top:-1em\">Our material has been gathered from a variety of sources. Through books, videos and personal experience our staff has written some of the articles and courses. We have used material from some of the leading disciplers of the past and present. We actively engage in the search for quality material from any source that would help in your discipleship mission. If you feel like you have what it takes to write an article, bible study or any other material that would aid in the gowth of disciples please feel free to view our submission guidelines <a href=\"http://www.discipleshipresourcecenter.com/artman/publish/article_15.shtml\">HERE.</a>"
  . "

The staff of DRC carefully screens all material before placing it on this site so you can concentrate on using it rather than reviewing it.</p>"
  . "<p style=\"margin-top:-1em\">A great majority of the material on this site is free, however, we are associated with several other ministries and groups who may charge for their materials.</p>"
  . "<p class=\"subhead\">Why do you have so many topics?</p>"
  . "<p style=\"margin-top:-1em\">Discipleship involves ALL areas of a persons life. Therefore, we provide material that will benefit each person in as many areas as possible. It is important to note that no amount of knowledge will benefit you or your disciple unless you take that knowledge and put it into action.</p>"
  . "<p class=\"subhead\">Does this material cost anything?</p>";
CloseTable();
include("footer.php");
?>
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#2 (permalink))
Moderator
 
Status: Offline
Posts: 737
Join Date: Nov 2002
07-07-2003, 11:49 AM

What error message do you get?

If you only want to show one, why don't you just change the configuration of news?

If you go into preferences, in "general site info" you will see a place right below admin email that says "number of stories in home" Change that value to 1.

Alternatively you could also use message to post it, instead of news.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can Anyone check this error? DjMike Site design 1 02-05-2005 03:32 PM
Comics! Have code, need converted to module FatherStorm Nuke 6.5 to 6.9 - Modules 0 07-12-2003 06:00 PM
Need help with Upload Code for a Tweaked Submit News Module. Audioslaved Open topics 2 06-16-2003 09:53 AM
check this out! Darkrain Showoff 0 05-29-2003 12:03 PM
Check This Out COSCLAN.COM cosclan Showoff 0 05-04-2003 08:59 PM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31