41
psychicadvis
Re: Should index.html,be in the template folder

ok I just pasted the back up to the main.php

42
m0nty
Re: Should index.html,be in the template folder
  • 2005/2/20 6:48

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


main.php or mainfile.php

in your mainfile.php the very 1st line.. does it contain <?php

43
psychicadvis
Re: Should index.html,be in the template folder

I got this
mainfile.dist.php
mainfile.php (this is the one I edit)
In the mainfile.dist.php theres nothing like that it starts off looking lik this
if ( !defined("XOOPS_MAINFILE_INCLUDED") ) {
define("XOOPS_MAINFILE_INCLUDED",1);

// XOOPS Physical Path
// Physical path to your main XOOPS directory WITHOUT trailing slash
// Example: define('XOOPS_ROOT_PATH', '/path/to/xoops/directory');
define('XOOPS_ROOT_PATH', '');

44
m0nty
Re: Should index.html,be in the template folder
  • 2005/2/20 6:58

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


hmmmm

mainfile.dist.php and mainfile.php should look exactly the same, exact mainfile.php should have all your info in and mainfile.dist will be a blank template..

they should all look like this at the very beginning..

<?php
// $Id: mainfile.dist.php,v 1.7 2004/12/26 19:11:47 Onokazu Exp $
//  ------------------------------------------------------------------------ //
//                XOOPS - PHP Content Management System                      //
//                    Copyright (c) 2000 XOOPS.org                           //
//                       <https://xoops.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, or        //
//  (at your option) any later version.                                      //
//                                                                           //
//  You may not change or alter any portion of this comment or credits       //
//  of supporting developers from this source code or any supporting         //
//  source code which is considered copyrighted (c) material of the          //
//  original comment or credit authors.                                      //
//                                                                           //
//  This program is distributed in the hope that it will be useful,          //
//  but WITHOUT ANY WARRANTY; without even the implied warranty of           //
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            //
//  GNU General Public License for more details.                             //
//                                                                           //
//  You should have received a copy of the GNU General Public License        //
//  along with this program; if not, write to the Free Software              //
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
//  ------------------------------------------------------------------------ //

if ( !defined("XOOPS_MAINFILE_INCLUDED") ) {
    
define("XOOPS_MAINFILE_INCLUDED",1);

    
// XOOPS Physical Path
    // Physical path to your main XOOPS directory WITHOUT trailing slash
    // Example: define('XOOPS_ROOT_PATH', '/path/to/xoops/directory');
    
define('XOOPS_ROOT_PATH''');

    
// XOOPS Virtual Path (URL)
    // Virtual path to your main XOOPS directory WITHOUT trailing slash
    // Example: define('XOOPS_URL', 'http://url_to_xoops_directory');
    
define('XOOPS_URL''http://');

45
psychicadvis
Re: Should index.html,be in the template folder

ok neither one of the files had the top part you just mention so I added them to it.Should i now go back and re change thouse lines that I take away teh xoops2.09

46
m0nty
Re: Should index.html,be in the template folder
  • 2005/2/20 7:13

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


i just sent you an email to the the address in your profile.. with an attached mainfile.php

i've included your info in it so all u need to do is copy it to your server..

47
psychicadvis
Re: Should index.html,be in the template folder

Ok I just did that and email you back.Was this to go into both main.psp files

48
m0nty
Re: Should index.html,be in the template folder
  • 2005/2/20 7:29

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


nah u just need to copy it to the server and overwrite mainfile.php

mainfile.dist.php is only used during installation..

i think something def went wrong when u moved all the files.. not sure how u did it exactly..

do you have the XOOPS 2.0.9.2 download on your pc, as it looks like your index.php file has been replaced with mainfile.php, copy index.php from the original XOOPS download zip into the root folder on your server..

49
psychicadvis
Re: Should index.html,be in the template folder

yes I still have the orginal xoops2.09 on my pc.Should I re upload it

50
m0nty
Re: Should index.html,be in the template folder
  • 2005/2/20 7:36

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


actually it's looking like all the files look like mainfile..


how did u copy the XOOPS files? as every php file i try to open on your server produces a page from mainfile.php

Login

Who's Online

150 user(s) are online (78 user(s) are browsing Support Forums)


Members: 0


Guests: 150


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits