Forums / General Questions / Configuring Zen To Work With Phpbb

Configuring Zen To Work With Phpbb

Locked

Views: 171,478

Results 101 to 120 of 169
This thread is locked. New replies are disabled.
12 Jan 2006, 4:29 PM
#101
ripper avatar

ripper

Zen Follower

Join Date:
Jul 2005
Posts:
295
Plugin Contributions:
0

Configuring Zen To Work With Phpbb

Well, the cart and the forum do not share a login. The cart uses your e-mail address as the username and the forum uses a userId as the username. Perhaps in a later version, they could change that? There are ways to do it, but you'd need to write a patch unless there is one out there already.
You could append the cart login page to grab the forum userId associated with the e-mail address in the PHPBB database (providing they used the same e-mail address for the cart and the forum) and add the PHPBB login script to automatically log the user in to the forum at the same time, but there are session issues which I am about to ask about myself in another reply.

Ripper
Oz Website Services
https://www.oz-web.net

12 Jan 2006, 4:42 PM
#102
ripper avatar

ripper

Zen Follower

Join Date:
Jul 2005
Posts:
295
Plugin Contributions:
0

Re: Configuring Zen To Work With Phpbb

Speaking of sessions......

I have a site with both PHPBB and Zen Cart. I want to add elements of both the cart AND the forum onto the home page of the site.
I can get either to work, but not both because I keep getting session eroors. Is there a way to append the sessions so they work together instead of fighting each other?
I can add append_session() to the forum links, but it throws errors when I login to the cart first. If I try to use an existing session within either the cart or the forum, I get session errors.

Here's my problem...
I have the "New Products" box from the cart on the home page of the site. I also have a login box for the cart and one for the forum on the home page.

I want to have the forum login box go away when the visitor is already logged in to the forum, replaced by a link to the forum instead. If I remove the includes that make the "New Products" box work, the forum login script works fine. If I leave in the cart includes, I get "Headers Cannot be sent" several times and "Session already exists" errors in functions.php from the cart folder showing up on the home page.
If I disable the forum login detect script, all of the errors go away, even with the new products showing on the home page. I also get some weird links to the forum unless I use an absolute path. For some reason, the cart takes over my links to the rest of the site. I can fix that problem everywhere but the forum login box. That's not important though. I can work around that one.

Ripper
Oz Website Services
https://www.oz-web.net

22 Jan 2006, 5:19 AM
#103
knuckle_101 avatar

knuckle_101

Totally Zenned

Join Date:
Dec 2005
Location:
Cincinnati Ohio
Posts:
1,034
Plugin Contributions:
3

Re: Configuring Zen To Work With Phpbb

I tried to activate it and nothing shows either below is the configure.php

<?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][email protected][/email] 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://www.ritron.us');
 // Secure webserver: eg, https://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://ritron.us');
 // secure webserver for checkout procedure?
 define('ENABLE_SSL', 'true');

// 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', '/');
 define('DIR_WS_HTTPS_CATALOG', '/');

 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', '/home/ritron/public_html/phpbb2/');

// * 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/ritron/public_html/');

 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', 'ritron_');
 define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty
 define('DB_SERVER_USERNAME', 'ritron');
 define('DB_SERVER_PASSWORD', '');
 define('DB_DATABASE', 'ritron_store');
 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', '/home/ritron/public_html/cache');

?>

and it is activated in admin, whay else is left? I read this whole forum and nothing but same ole things I have already tried

PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
Business Class Web Hosting - Linux and cPanel Powered

25 Jan 2006, 5:30 PM
#104
ripper avatar

ripper

Zen Follower

Join Date:
Jul 2005
Posts:
295
Plugin Contributions:
0

Re: Configuring Zen To Work With Phpbb

Have you made template changes?

Try reverting back to the default template or choose one that you have not modified. See if the forum links work then. If they do, the problem is in your template. If they don't it's in the installation. It's a start...

Ripper
Oz Website Services
https://www.oz-web.net

25 Jan 2006, 5:32 PM
#105
ripper avatar

ripper

Zen Follower

Join Date:
Jul 2005
Posts:
295
Plugin Contributions:
0

Re: Configuring Zen To Work With Phpbb

Ripper:

Speaking of sessions......

I have a site with both PHPBB and Zen Cart. I want to add elements of both the cart AND the forum onto the home page of the site.
I can get either to work, but not both because I keep getting session eroors. Is there a way to append the sessions so they work together instead of fighting each other?
I can add append_session() to the forum links, but it throws errors when I login to the cart first. If I try to use an existing session within either the cart or the forum, I get session errors.

Here's my problem...
I have the "New Products" box from the cart on the home page of the site. I also have a login box for the cart and one for the forum on the home page.

I want to have the forum login box go away when the visitor is already logged in to the forum, replaced by a link to the forum instead. If I remove the includes that make the "New Products" box work, the forum login script works fine. If I leave in the cart includes, I get "Headers Cannot be sent" several times and "Session already exists" errors in functions.php from the cart folder showing up on the home page.
If I disable the forum login detect script, all of the errors go away, even with the new products showing on the home page. I also get some weird links to the forum unless I use an absolute path. For some reason, the cart takes over my links to the rest of the site. I can fix that problem everywhere but the forum login box. That's not important though. I can work around that one.
No ideas on this?
I can't be the only one trying to integrate PHPBB and Zen Cart onto another page, can I?

Ripper
Oz Website Services
https://www.oz-web.net

25 Jan 2006, 5:36 PM
#106
knuckle_101 avatar

knuckle_101

Totally Zenned

Join Date:
Dec 2005
Location:
Cincinnati Ohio
Posts:
1,034
Plugin Contributions:
3

Re: Configuring Zen To Work With Phpbb

No your not, the creator of the module isnt anwsering emails or forum posts, there is another part of the install instructions that he did not include with the file, I have tried many times contacting him on his site and here, but no answer.
No clue what do.
Lost cause I guess

there is a module in the downloads that iframes phpbb into your cart!!
But everything isnt there

PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
Business Class Web Hosting - Linux and cPanel Powered

25 Jan 2006, 5:57 PM
#107
ripper avatar

ripper

Zen Follower

Join Date:
Jul 2005
Posts:
295
Plugin Contributions:
0

Re: Configuring Zen To Work With Phpbb

I tiried that i-frame mod. It didn't work for me. The built-in integration works fine for what it is supposed to do, if everything is set up properly (as we've seen here, it isn't always easy though). I'm trying to make it do something neither system was designed to do. I was going to explore joining the databases, but it seems like alot of work just to get one little login box to work properly. I've looked into appending both sessions, but the sessions are written differently, so one kicks the other off, no matter which way you try to go. I'm not that skilled at sessions yet, but I have a feeling I'm going to be an expert by the time I'm done figuring this out. :rolleyes:

Ripper
Oz Website Services
https://www.oz-web.net

25 Jan 2006, 6:13 PM
#108
knuckle_101 avatar

knuckle_101

Totally Zenned

Join Date:
Dec 2005
Location:
Cincinnati Ohio
Posts:
1,034
Plugin Contributions:
3

Re: Configuring Zen To Work With Phpbb

When you go to your forums does another window open?
What exactly do you mean integrated?
Database or into the cart itself?

PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
Business Class Web Hosting - Linux and cPanel Powered

25 Jan 2006, 7:33 PM
#109
mhpcs avatar

mhpcs

New Zenner

Join Date:
Jan 2006
Posts:
1
Plugin Contributions:
0

Re: Configuring Zen To Work With Phpbb

Ripper:

That's weird.
I'd make the link a static link, for now until a solution can be worked out.
Comment out all of the PHPBB lines in cart/includes/modules/YOUR_TEMPLATE/sideboxes/information.php (should be lines 28-32) and add this under them

$information[] = '<a href="path_to_forum/index.php">Forum</a>';

Hi There

I'm just starting out on my Zencart customisation and I have got this exact same problem  :huh: 

I've changed it to a static link too. I spent some time reading the forums but cannot find another solution .. it may have passed me by so if anyone knows different please could you give me a shove in the right direction  :D 

Thanks
Marcus
2 Feb 2006, 4:22 AM
#110
cp1der avatar

cp1der

New Zenner

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

Re: Configuring Zen To Work With Phpbb

I've attempted to insert this address:

http://virt-mart.frtpg.biz/phpBB/

Nothing happens. When I go back to the Zen Config file. My edits do not show up?

Here's my Cart: http://virt-mart.frtpg.biz/

Thx!
:(

8 Feb 2006, 8:21 AM
#111
scott avatar

scott

New Zenner

Join Date:
Oct 2005
Posts:
12
Plugin Contributions:
0

Re: Configuring Zen To Work With Phpbb

It seems like the latest version of Zen Cart (zen-cart-v1.2.6d-full-release-with-security-patch) does not seem to support the phpBB2 functionality. I have set it up according to instructions at the beginning of this post and with previous experience. First attempt was to incorporate the support from an initial clean install and then the second attempt was to add support after another clean install.

I have had no luck, there is no option to enter the username required for phpbb support.

If anyone else has experienced differently please let me know.

Thanks

Scott

http://www.crazycolour.com/p2 - PRINCE2 Project Management training courses.
http://www.crazycolour.com/itil - ITIL training courses.

8 Feb 2006, 7:47 PM
#112
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,682
Plugin Contributions:
0

Re: Configuring Zen To Work With Phpbb

Did you enable the phpBB linkage in Admin> MY Store?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

9 Feb 2006, 1:17 AM
#113
scott avatar

scott

New Zenner

Join Date:
Oct 2005
Posts:
12
Plugin Contributions:
0

Re: Configuring Zen To Work With Phpbb

Hi Kim,

Thanks for your reply. I did enable "Enable phpBB linkage?" set to true.

I am perplexed. I have tried setting it up 3 times, trying to alter small things that I don't really think have anything to do with making this work.

I am not even sure I know how to trouble shoot this.

Cheers

Scott

http://www.crazycolour.com/p2 - PRINCE2 Project Management training courses.
http://www.crazycolour.com/itil - ITIL training courses.

9 Feb 2006, 8:29 PM
#114
steelwidow avatar

steelwidow

New Zenner

Join Date:
Jan 2006
Posts:
31
Plugin Contributions:
0

Re: Configuring Zen To Work With Phpbb

I'm using the newest version with patch and I couldn't get mine to work either... however instead of adding it under information, I've added my forums link at the top so that when a user logs into the store, along with the "my account" link - the forums link pops up... so in other words it's hidden until they login.

Still no way for them to tell zen to give them a username at my forums though....

regardless here's the code that's opening the forums link in a new window.

place this code into your includes/templates/YOURTEMPLATE/common/tpl_header.php file:

find this line (72 & 73):

<?php echo HEADER_TITLE_LOGOFF; ?>|
<?php echo HEADER_TITLE_MY_ACCOUNT; ?>

place this right after it

|Forums

now your forum link will show at the top of your store after a customer logs in, right next to the my account link.

9 Feb 2006, 11:17 PM
#115
scott avatar

scott

New Zenner

Join Date:
Oct 2005
Posts:
12
Plugin Contributions:
0

Re: Configuring Zen To Work With Phpbb

Hi Steelwidow,

Thanks for confirming my suspicions.

I wonder if a change was made that broke the phpbb setup.

I will keep investigating.

Thanks

Scott
:)

http://www.crazycolour.com/p2 - PRINCE2 Project Management training courses.
http://www.crazycolour.com/itil - ITIL training courses.

10 Feb 2006, 11:32 PM
#116
steelwidow avatar

steelwidow

New Zenner

Join Date:
Jan 2006
Posts:
31
Plugin Contributions:
0

Re: Configuring Zen To Work With Phpbb

that is very possible. I was wondering that myself. It doesn't make sense at all. Do let me know if you figure it out. :)

11 Feb 2006, 1:27 AM
#117
gnotgonk avatar

gnotgonk

New Zenner

Join Date:
Dec 2005
Posts:
38
Plugin Contributions:
0

Re: Configuring Zen To Work With Phpbb

Hi Ripper & All,

I have a session problem of phpbb...it is very strange.

  1. on browser A > click forum > launch a blank forum page on browser B
  2. on browser B > enter the correct username & password > didn't logged in but just refresh itself
  3. back to browser A > click forum > launch another blank forum page on browser C with LOGGED IN!!!

anyonce can help???
Thanks.

Best wishes,
gnotgonk.

11 Feb 2006, 7:09 PM
#118
ripper avatar

ripper

Zen Follower

Join Date:
Jul 2005
Posts:
295
Plugin Contributions:
0

Re: Configuring Zen To Work With Phpbb

knuckle-101:

When you go to your forums does another window open?
What exactly do you mean integrated?
Database or into the cart itself?
I'll try to explain in more detail (by the way, since updating my forum to 2.0.19, the cart no longer registers users for the forum. I was alerted to this only today when a few people registered for the cart and they were not registered for the forum at the same time. I need to look into this, but I think it's not just me if I'm reading the end of this thread correctly)

My forum does not open in a new window, it opens in the same window as the cart. Switching back and forth between the cart page and the forum page does not generate a new window, either way. I can get both of my ideas to work on the index page, but only with many errors popping up, If I correct one set of errors, it creates a whole new set. The problem seems to be the sessions and the dedicated folder paths within Zen Cart...

For example, if I put the "New Products" box on my home page, all of the images on my home page get broken. If I check the properties, there are Zen Cart variables in the path or just the cart folder thrown into the path as the root folder for the inages. I can fix that by adding a base href tag onto the home page, but then that causes a few of the images, like the "CALL FOR PRICE" button image to break. I fixed that by adding a folder named "cart" inside my "cart" folder and adding the path to those images in the new folder.
The main problem is I get header errors all over the place if both parts of my plan are implemented. Some of the header errors are from Zen Cart, some are from PHPBB. If I remove one of them, either one, ALL of my errors go away (with the exception of the image path errors which I can very easily work around).

Like I said, I have tried several methods of appending the sessions across the site, but none of it is working completely. As for now, the forum login box won over the cart options like New Products and Featured Products being shown on the site home page.

I would still like to attempt to figure this out, but I have a new problem to deal with first. My users are not getting registered for the forum any longer (and I removed the direct access to the registration section of the forum because all new users needed to register for the cart first). I need to figure out why that's happening now or re-install the forum registration until I do......

Ripper
Oz Website Services
https://www.oz-web.net

11 Feb 2006, 7:12 PM
#119
ripper avatar

ripper

Zen Follower

Join Date:
Jul 2005
Posts:
295
Plugin Contributions:
0

Re: Configuring Zen To Work With Phpbb

Scott:

Hi Steelwidow,

Thanks for confirming my suspicions.

I wonder if a change was made that broke the phpbb setup.

I will keep investigating.

Thanks

Scott
:)
What version of PHPBB are you guys using? I just found out today that several of my cart users never got registered for the forum. This has only started since I updated to PHPBB 2.0.19 The only reason I didn't notice it until now is no one complained about it until today.

Ripper
Oz Website Services
https://www.oz-web.net

11 Feb 2006, 7:27 PM
#120
ripper avatar

ripper

Zen Follower

Join Date:
Jul 2005
Posts:
295
Plugin Contributions:
0

Re: Configuring Zen To Work With Phpbb

gnotgonk:

Hi Ripper & All,

I have a session problem of phpbb...it is very strange.

  1. on browser A > click forum > launch a blank forum page on browser B
  2. on browser B > enter the correct username & password > didn't logged in but just refresh itself
  3. back to browser A > click forum > launch another blank forum page on browser C with LOGGED IN!!!

anyonce can help???
Thanks.

Best wishes,
gnotgonk.
Sorry, I don't have an answer for that one. You might be confusing things with the new windows opening.... What browser are you using? I've been reading up on some cookie issues with Firefox. It seems to handle things differently.
It would be nice if there were standards that people actually paid attention to when designing browsers instead of everyone trying to out-think the next guy.....

Ripper
Oz Website Services
https://www.oz-web.net