Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11

    Default Re: using a forum with zen cart?

    Dr. Byte,

    I have phpBB managing all the user data that includes address, phone number, and various other things.

    I had found the code I posted in the header.php file. I believe I have a good handle on the way that zen cart handles the user data now.

    There are two additional things I need to do that will allow a user to change their information and that change will affect the phpBB user database and the newly populated zen cart database tables. I believe that change would take place in this file: /includes/templates/YOUR_TEMPLATE/templates/tpl_account_edit_default.php and the associated header_php.php file which I believe is:
    /includes/modules/pages/account_edit/header_php.php

    Finally, I would like to have people register using the phpBB database, so I need to replace the new-account fields on the bottom half of the login page with a link back to the phpBB registration page. I'm assuming that would be located here:
    /includes/templates/YOUR_TEMPLATE/templates/tpl_login_default.php

    Specifically, here:

    Code:
    <fieldset>
    <legend><?php echo HEADING_RETURNING_CUSTOMER; ?></legend>
    
    <label class="inputLabel" for="login-email-address"><?php echo ENTRY_EMAIL_ADDRESS; ?></label>
    <?php echo zen_draw_input_field('email_address', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_email_address', '40') . ' id="login-email-address"'); ?>
    <br class="clearBoth" />
    
    <label class="inputLabel" for="login-password"><?php echo ENTRY_PASSWORD; ?></label>
    <?php echo zen_draw_password_field('password', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_password') . ' id="login-password"'); ?>
    <br class="clearBoth" />
    </fieldset>
    
    <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_LOGIN, BUTTON_LOGIN_ALT); ?></div>
    <div class="buttonRow back important"><?php echo '<a href="' . zen_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>'; ?></div>
    </form>
    <br class="clearBoth" />
    and

    Code:
    <?php echo zen_draw_form('create_account', zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'), 'post', 'onsubmit="return check_form(create_account);"') . zen_draw_hidden_field('action', 'process') . zen_draw_hidden_field('email_pref_html', 'email_format'); ?>
    <fieldset>
    <legend><?php echo HEADING_NEW_CUSTOMER; ?></legend>
    
    <div class="information"><?php echo TEXT_NEW_CUSTOMER_INTRODUCTION; ?></div>
    
    <?php require($template->get_template_dir('tpl_modules_create_account.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_create_account.php'); ?>
    
    </fieldset>
    Thoughts?

  2. #12
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: using a forum with zen cart?

    Yes, those template-file snippets are where you could replace Zen Cart code with a link to your phpBB login page.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #13
    Join Date
    Jan 2008
    Posts
    32
    Plugin Contributions
    0

    Default Re: using a forum with zen cart?

    Dr. Byte,

    Would it be possible to make phpBB also logged in when they sign in ZenCart?

  4. #14
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: using a forum with zen cart?

    I haven't seen anyone do that yet, no.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #15
    Join Date
    Jan 2008
    Location
    China
    Posts
    144
    Plugin Contributions
    0

    Default Re: using a forum with zen cart?

    Dear Drbyte, You have posted so many here and you didn't see anyone do that! Can anyone fix this problem and post the solution here for everyone to share? A good linkage with smf or phpbb would make it hugely popular for people to use!

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Using Linkpoint/YourPay API module with Zen Cart Zen Cart 1.3.0.1
    By mars22 in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 23 Oct 2010, 11:57 AM
  2. Using FrontPageSlideShoe with Zen-Cart?
    By wdkstudio in forum General Questions
    Replies: 6
    Last Post: 6 Sep 2009, 02:54 AM
  3. Intergrating a forum social media with Zen Cart
    By wearethecure in forum General Questions
    Replies: 0
    Last Post: 1 May 2009, 10:02 PM
  4. How to integrate zen cart with phpBB, SMF or other forum open source software?
    By sunzhoujian in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 7 Jun 2008, 04:23 PM
  5. using non-zen cart templates with zen cart
    By ssbeats in forum General Questions
    Replies: 2
    Last Post: 26 Jun 2007, 09:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg