Simple php error

Reply

Join Date: Feb 2006
Posts: 21
Reputation: conspiringfate is an unknown quantity at this point 
Solved Threads: 1
conspiringfate conspiringfate is offline Offline
Newbie Poster

Simple php error

 
0
  #1
Jul 15th, 2006
I have been working on installing a script called Fantastic News from http://fscripts.com

I have been trying to make it so I can use the news.php on other pages

Right now im getting an Unable to Open Template error

http://www.ipetrescue.com/arts/articles.php


Here are the instructions....
If you plan on including news.php on a page rather than calling it directly you can use the include("news.php"); if you're page is php or if its just straight html use the ssi equivalent. You'll also need to put the config.php file in the location where you do the include so that the script can read the config.php file If you are including it make sure to set that in your settings so that the script knows not to include the header and footer templates on your news.php file. You'll also need to include a script path so that the script can find the location of your templates and internal functions that the script uses. This feature is not recommended however doing this can make it possible but please note you'll need to move your config.php file over everytime you change settings also since this won't be the config.php file it usually uses


here is my articles.php file
  1. <?php
  2. // +----------------------------------------------------------------------+
  3. // | Fantastic News |
  4. // +----------------------------------------------------------------------+
  5. // | By Tony Baird |
  6. // | Copyright (c) 2003 Fantastic Scripts |
  7. // | http://fscripts.com |
  8. // +----------------------------------------------------------------------+
  9. // | Fantastic News Can be modified freely as long as the copyright at |
  10. // | the bottom of every page and is visible. This copyright header must |
  11. // | also be left intact on php file |
  12. // +----------------------------------------------------------------------+
  13. // | news.php |
  14. // +----------------------------------------------------------------------+
  15. include("/home/ipetresc/public_html/fnews/FNews/news.php");
  16. require_once($CONFIG['script_path']."/home/ipetresc/public_html/arts/config.php");
  17. require_once($CONFIG['script_path']."/home/ipetresc/public_html/fnews/FNews/functions/functions.php");
  18. require_once($CONFIG['script_path']."/home/ipetresc/public_html/fnews/FNews/functions/mysql.php");
  19. require_once($CONFIG['script_path']."/home/ipetresc/public_html/fnews/FNews/functions/template.php");
  20. if (empty($tpl))
  21. {


can anyone help?
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,422
Reputation: stymiee is on a distinguished road 
Solved Threads: 35
Moderator
stymiee's Avatar
stymiee stymiee is offline Offline
He's No Good To Me Dead

Re: Simple php error

 
0
  #2
Jul 15th, 2006
You should contact the support of the people who wrote the script.
John Conde
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC