Zen Cart Logo
Forums / Basic Configuration / Linking Phpbb to zen cart

Linking Phpbb to zen cart

Locked

Views: 6,605

Results 1 to 16 of 16
This thread is locked. New replies are disabled.
17 May 2006, 3:19 AM
#1
cymric avatar

cymric

New Zenner

Join Date:
May 2006
Posts:
9
Plugin Contributions:
0

Linking Phpbb to zen cart

I have just installed both the zen cart and phpbb on my website. I have changed the config file based on the forum info but still have no link in the zen cart. I am using phpbb 2.0.19 and the most current copy of zen. I have run the sniffer and got all the rigth items except that the line says FAILURE: phpBB Not Activated. Can anyone help. I have about four other sites to do after I get this one working.

17 May 2006, 3:29 AM
#2
berserker avatar

berserker

Totally Zenned

Join Date:
May 2006
Posts:
712
Plugin Contributions:
0

Re: Linking Phpbb to zen cart

Have you turned on the linkage on the admi->configuration? How did you install your phpbb?

I had the same problem before but that was because i installed it using Fantastico. If you installed in this way too, it might be because of this as well.

17 May 2006, 3:41 AM
#3
cymric avatar

cymric

New Zenner

Join Date:
May 2006
Posts:
9
Plugin Contributions:
0

Re: Linking Phpbb to zen cart

I used Fantastico to istall both of them. First I tried installing them without it and had a big problem so I went to Fantastico. I have also updated the admin link before posting the question. Thanks for your info on Fantastico.

17 May 2006, 10:26 AM
#4
stbede77 avatar

stbede77

Zen Follower

Join Date:
Apr 2006
Posts:
124
Plugin Contributions:
0

Re: Linking Phpbb to zen cart

Post your config file here but remember to edit out the username and password for your database...

17 May 2006, 3:59 PM
#5
cymric avatar

cymric

New Zenner

Join Date:
May 2006
Posts:
9
Plugin Contributions:
0

Re: Linking Phpbb to zen cart

Here is my config file:

<?php // // +----------------------------------------------------------------------+ // |Zen Cart Open Source E-commerce | // +----------------------------------------------------------------------+ // | Copyright (c) 2004 The Zen Cart developers | // | | // | <http://www.zen-cart.com/index.php> | // | | // | Portions Copyright (c) 2003 osCommerce | // +----------------------------------------------------------------------+ // | This source file is subject to version 2.0 of the GPL license, | // | that is bundled with this package in the file LICENSE, and is | // | available through the world-wide-web at the following url: | // | <http://www.zen-cart.com/license/2_0.txt>. | // | If you did not receive a copy of the Zen Cart license and are unable | // | to obtain it through the world-wide-web, please send a note to | // | [[email protected]](mailto:[email protected]) so we can mail you a copy immediately. | // +----------------------------------------------------------------------+ // // Define the webserver and path parameters // Main webserver: eg, <http://localhost> - should not be empty for productive servers define('HTTP_SERVER', 'http://website); // Secure webserver: eg, <https://localhost> - should not be empty for productive servers define('HTTPS_SERVER', 'https://website); // secure webserver for checkout procedure? define('ENABLE_SSL', 'false'); // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes! // * DIR_WS_* = Webserver directories (virtual/URL) // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder) define('DIR_WS_CATALOG', '/store/'); define('DIR_WS_HTTPS_CATALOG', '/store/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/'); define('DIR_WS_BLOCKS', DIR_WS_INCLUDES . 'blocks/'); define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/'); define('DIR_WS_PHPBB', '/var/www/public_html/forum/'); // * DIR_FS_* = Filesystem directories (local/physical) //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/ define('DIR_FS_CATALOG', '/var/www/public_html/store/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/'); define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS); define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/'); // define our database connection define('DB_TYPE', 'mysql'); define('DB_PREFIX', 'zen_'); define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty define('DB_SERVER_USERNAME', 'zc'); define('DB_SERVER_PASSWORD', 'XXXXXXX'); define('DB_DATABASE', 'zc1'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'db'); // leave empty '' for default handler or set to 'db' // The next 2 "defines" are for SQL cache support. // For SQL_CACHE_METHOD, you can select from: none, database, or file // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash define('SQL_CACHE_METHOD', 'database'); define('DIR_FS_SQL_CACHE', '/var/home/public_html/store/cache'); ?>

I hope this will help.

18 May 2006, 4:24 AM
#6
stbede77 avatar

stbede77

Zen Follower

Join Date:
Apr 2006
Posts:
124
Plugin Contributions:
0

Re: Linking Phpbb to zen cart

Well for one


define('DIR_WS_PHPBB', '/var/www/public_html/forum/');

should be something like

define('DIR_WS_PHPBB', '/home/irozeny/public_html/forum/');


define('HTTP_SERVER', 'http://website);

like

define('HTTP_SERVER', 'http://www.irozeny.com');


define('HTTPS_SERVER', 'https://website);

like

define('HTTPS_SERVER', 'https://irozeny.securedview.com/irozeny');


define('ENABLE_SSL', 'false');

like

define('ENABLE_SSL', 'true');


define('DIR_FS_CATALOG', '/var/www/public_html/store/');

like

define('DIR_FS_CATALOG', '/home/irozeny/public_html/');


define('DB_PREFIX', ''); <--- you didnt define your database


define('DIR_FS_SQL_CACHE', '/var/home/public_html/store/cache');

like

define('DIR_FS_SQL_CACHE', '/home/irozeny/public_html/cache');

21 May 2006, 6:14 PM
#7
cymric avatar

cymric

New Zenner

Join Date:
May 2006
Posts:
9
Plugin Contributions:
0

Re: Linking Phpbb to zen cart

Well it has taken a while but I have made the changes to the config file and still no links in the boxes or login page. Does anyone have pages that work who could send me copies of the config file. Also has anyone just directed linked the fourm to the site and if so how did you do it?

22 May 2006, 12:17 AM
#8
stbede77 avatar

stbede77

Zen Follower

Join Date:
Apr 2006
Posts:
124
Plugin Contributions:
0

Re: Linking Phpbb to zen cart

well here is my config file... hope it helps....

22 May 2006, 8:23 PM
#9
cymric avatar

cymric

New Zenner

Join Date:
May 2006
Posts:
9
Plugin Contributions:
0

Re: Linking Phpbb to zen cart

Well my confige file now matches your excpt for the manes. and the adnim link is on but I still don't have a link in the info box or on the login page for nick name. Now what is next.:cry:

23 May 2006, 12:08 AM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Linking Phpbb to zen cart

I don't know what's "special" about the way fantastico installs phpBB, but it seems to leave it in a state that Zen Cart is unable to interpret.

Installing phpBB from original files manually seems to allow it to work pleasantly with Zen Cart.

23 May 2006, 1:51 AM
#11
cymric avatar

cymric

New Zenner

Join Date:
May 2006
Posts:
9
Plugin Contributions:
0

Re: Linking Phpbb to zen cart

Well I got it fixed by setting up the programs myself and not using the servers help. But now for the next part I see that it opens the fourm on a page by itself and not in the center of the zen page . Is there a way to have it open inside the shop and not take the indivdual out of the shop?:lol:

23 May 2006, 1:57 AM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Linking Phpbb to zen cart

okay ... now that you've hard-coded the links to show up in the sidebox,

have you tested to be sure that the "forum nick name" field shows up on account-creation?

have you tested to make sure that the new accounts are being created in phpBB?

have you tested to be sure that the password-change activities are being reflected in phpBB?

23 May 2006, 3:44 AM
#13
cymric avatar

cymric

New Zenner

Join Date:
May 2006
Posts:
9
Plugin Contributions:
0

Re: Linking Phpbb to zen cart

Dr. B. I have tested all the items and they work great, thanks. Now can I have the furom show up on the zen page center instead of being an other extanal link page?:thumbsup:

24 May 2006, 6:11 AM
#14
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Linking Phpbb to zen cart

In a word, no.

Well, I guess that could be a yes if you wanted to retemplate phpBB and merge it into Zen Cart. Or you could run phpBB in frames inside Zen Cart. There are very complex ways to do it. You'll want to brush the dust off your PHP manuals if you intend to tackle it...

24 May 2006, 3:11 PM
#15
cymric avatar

cymric

New Zenner

Join Date:
May 2006
Posts:
9
Plugin Contributions:
0

Re: Linking Phpbb to zen cart

Thanks for the info. Looks like it stay out.

1 Jun 2006, 3:30 PM
#16
thewarden avatar

thewarden

New Zenner

Join Date:
Jun 2006
Posts:
17
Plugin Contributions:
0

Re: Linking Phpbb to zen cart

Ok, I'm also having a problem linking to my forum. Here's what I have going on,

I'm ironing out and setting up zencart on my local box (localhost). I have phpbb installed in "/phpbb/" and zencart will not link to it. I'm using my home folder as my server (localhost/~tom) and zen seems to not like this. If I put in the config file the location of the forum as, "/home/tom/public_html/phpbb/" then it will link to it, but this does not work in my browser as it must be "/~tom" instead of "home/tom/public_html"

It seems zencart requires the "public_html" to be in this path? Because I can't put that in there or it will not link correctly, but it does show up as a link in the information box when I put it in. For example, this path in the "DIR_WS_PHPBB" line will list the link in my cart, "/home/tom/public_html/phpbb/" but when you click the link, naturally, it can't be found because http://localhost/home/tom/public_html/phpbb is not a valid URL. It has to be http://localhost/~tom/phpbb.

But if I change the DIR_WS_PHPBB directive to "/~tom/phpbb/" or even "/phpbb/" the link will not even show up anymore. It will probably work fine once I upload it to my server and make the changes, but I would very much like to test it locally and have everything working the way I want it before I upload to my website and try tweaking there. Any ideas??

Here is my setup,
Zen-Cart URL - http://localhost/~tom/zencart/
phpBB URL - http://localhost/~tom/phpbb/

Zen-Cart Path - /home/tom/public_html/zencart/
phpBB Path - /home/tom/public_html/phpbb/

And here is my config file,

<?php
/**
 *
 * @package Configuration Settings
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 */


// Define the webserver and path parameters
  // HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
  // HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
  define('HTTP_SERVER', 'http://localhost');
  define('HTTPS_SERVER', 'https://localhost');

  // Use secure webserver for checkout procedure?
  define('ENABLE_SSL', 'false');

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
  // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
  define('DIR_WS_CATALOG', '/~tom/zencart/');
  define('DIR_WS_HTTPS_CATALOG', '/~tom/zencart/');

  define('DIR_WS_IMAGES', 'images/');
  define('DIR_WS_INCLUDES', 'includes/');
  define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
  define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
  define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
  define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
  define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
  define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

  define('DIR_WS_PHPBB', '/~tom/phpbb/');

// * DIR_FS_* = Filesystem directories (local/physical)
  //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
  define('DIR_FS_CATALOG', '/home/tom/public_html/zencart/');

  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
  define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
  define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
  define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

// define our database connection
  define('DB_TYPE', 'mysql');
  define('DB_PREFIX', 'zen_');
  define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty
  define('DB_SERVER_USERNAME', 'root');
  define('DB_SERVER_PASSWORD', '');
  define('DB_DATABASE', 'zencart');
  define('USE_PCONNECT', 'false'); // use persistent connections?
  define('STORE_SESSIONS', 'db'); // leave empty '' for default handler or set to 'db'

  // The next 2 "defines" are for SQL cache support.
  // For SQL_CACHE_METHOD, you can select from:  none, database, or file
  // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache 
  // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
  // ie: /path/to/your/webspace/public_html/zen/cache   -- leave no trailing slash  
  define('SQL_CACHE_METHOD', 'none'); 
  define('DIR_FS_SQL_CACHE', '/home/tom/public_html/zencart/cache');

?>