| :: |
| Author |
Message |
Professional PR2


Joined: 07 Apr 2008 Posts: 252 Location: 1/2 of the World
|
|
| Back to top |
|
 |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3987
|
|
| Back to top |
|
 |
Professional PR2


Joined: 07 Apr 2008 Posts: 252 Location: 1/2 of the World
|
Posted: Wed Jul 09, 2008 1:27 pm Post subject: Re: GYM site map will work on omy forum? |
|
|
sorry i havent'n read the instruction that time.
i read it now.
i installed it at localhost at sub dirtory named: phpBB32
i got errors
i placed the sitemap.php and gymrss.php at /phpBB32/
i got this error for site map:
| Code: | Warning: main(./phpBB32/common.php): failed to open stream: No such file or directory in c:\program files\easyphp1-8\www\phpbb32\sitemap.php on line 13
Warning: main(): Failed opening './phpBB32/common.php' for inclusion (include_path='.;C:\PROGRA~1\EASYPH~1\\php\pear\') in c:\program files\easyphp1-8\www\phpbb32\sitemap.php on line 13
Fatal error: Call to a member function on a non-object in c:\program files\easyphp1-8\www\phpbb32\sitemap.php on line 15
|
my site map is :
| Code: | <?php
/**
*
* @package phpBB SEO GYM Sitemaps
* @version $Id: sitemap.php 2007/04/12 13:48:48 dcz Exp $
* @copyright (c) 2006 dcz - www.phpbb-seo.com
* @license http://opensource.org/osi3.0/licenses/lgpl-license.php GNU Lesser General Public License
*
*/
define('IN_PHPBB', true);
$phpEx = substr(strrchr(__FILE__, '.'), 1);
$phpbb_root_path = './phpBB32/';
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
//$user->setup('gym_sitemaps/gym_sitemaps');
$user->setup();
// Start the process
require_once($phpbb_root_path . 'gym_sitemaps/includes/gym_sitemaps.' . $phpEx);
require_once($phpbb_root_path . 'gym_sitemaps/includes/gym_google.' . $phpEx);
$gym_google = new gym_google();
exit;
?>
|
and i got this error for gymrss:
| Code: | Warning: main(./phpBB32/common.php): failed to open stream: No such file or directory in c:\program files\easyphp1-8\www\phpbb32\gymrss.php on line 13
Warning: main(): Failed opening './phpBB32/common.php' for inclusion (include_path='.;C:\PROGRA~1\EASYPH~1\\php\pear\') in c:\program files\easyphp1-8\www\phpbb32\gymrss.php on line 13
Fatal error: Call to a member function on a non-object in c:\program files\easyphp1-8\www\phpbb32\gymrss.php on line 15 |
my gymrss.php is here:
| Code: | <?php
/**
*
* @package phpBB SEO GYM Sitemaps
* @version $Id: rss.php 2007/04/12 13:48:48 dcz Exp $
* @copyright (c) 2006 dcz - www.phpbb-seo.com
* @license http://opensource.org/osi3.0/licenses/lgpl-license.php GNU Lesser General Public License
*
*/
define('IN_PHPBB', true);
$phpEx = substr(strrchr(__FILE__, '.'), 1);
$phpbb_root_path = './phpBB32/';
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup(array('gym_sitemaps/gym_common', 'common'));
// Start the process
require($phpbb_root_path . 'gym_sitemaps/includes/gym_rss.' . $phpEx);
$gym_google = new gym_rss();
exit;
?>
|
so what is the problem?
shoud i place that 2 file at root not phpBB32 folder? |
_________________ انجمن تخصصی موبایل برای ایرانیان
http://www.mobile4persian.com
برنامه موبایل - بازی موبایل - تم موبایل - اخبار موبایل - ترفند موبایل - s60 -s60 3rd- s80-s90-java-pocket pc-palm-ppc-UIQ3-UIQ |
|
| Back to top |
|
 |
TomaS PR2

Joined: 08 Jun 2007 Posts: 226
|
|
| Back to top |
|
 |
Professional PR2


Joined: 07 Apr 2008 Posts: 252 Location: 1/2 of the World
|
|
| Back to top |
|
 |
TomaS PR2

Joined: 08 Jun 2007 Posts: 226
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
Posted: Wed Jul 09, 2008 3:26 pm Post subject: Re: GYM site map will work on omy forum? |
|
|
You don't need to change anything in the gymrss.php and sitemap.php file when you use them in the phpBB directory :
| Code: | | $phpbb_root_path = './phpBB32/'; |
should just be :
| Code: | | $phpbb_root_path = './'; |
The change you made is for when you would want to use these one level above phpBB (requires some config setting in acp as explained in install file).
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
Professional PR2


Joined: 07 Apr 2008 Posts: 252 Location: 1/2 of the World
|
|
| Back to top |
|
 |
|
|