Thread: phpBB Question?

Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2006
    Location
    Minnesota
    Posts
    10
    Plugin Contributions
    0

    phpBB Question?

    Can someone show me what this code from: /includes/modules/sideboxes/information.php looks like after phpBB has been installed?
    // Forum (phpBB) link:
    if ( (isset($phpBB->phpBB['db_installed_config']) && $phpBB->phpBB['db_installed_config']) && (isset($phpBB->phpBB['files_installed']) && $phpBB->phpBB['files_installed']) && (PHPBB_LINKS_ENABLED=='true')) {
    $information[] = '<a href="' . zen_href_link($phpBB->phpBB['phpbb_url'] . FILENAME_BB_INDEX, '', 'NONSSL', false, '', true) . '" target="_blank">' . BOX_BBINDEX . '</a>';
    // or: $phpBB->phpBB['phpbb_url'] . FILENAME_BB_INDEX
    // or: str_replace(str_replace(DIR_WS_CATALOG, '', DIR_FS_CATALOG), '', DIR_WS_PHPBB)
    }
    I'm trying to get the link for my forum to show up in the information side box..

  2. #2
    Join Date
    Dec 2005
    Location
    Cincinnati Ohio
    Posts
    1,026
    Plugin Contributions
    13

    Default Re: phpBB Question?

    It all depends how you code it there is 2 ways.

    Default code or hardcode.

    Here is the default code when you install it.

    Code:
    // Forum (phpBB) link:
      if ( (isset($phpBB->phpBB['db_installed_config']) && $phpBB->phpBB['db_installed_config']) && (isset($phpBB->phpBB['files_installed']) && $phpBB->phpBB['files_installed'])  && (PHPBB_LINKS_ENABLED=='true')) {
        $information[] = '<a href="' . zen_href_link($phpBB->phpBB['phpbb_url'] . FILENAME_BB_INDEX, '', 'NONSSL', false, '', true) . '" target="_blank">' . BOX_BBINDEX . '</a>';
    // or: $phpBB->phpBB['phpbb_url'] . FILENAME_BB_INDEX
    // or: str_replace(str_replace(DIR_WS_CATALOG, '', DIR_FS_CATALOG), '', DIR_WS_PHPBB)
    and here is the hard code

    Code:
    // Forum (phpBB) link:
      if ( (isset($phpBB->phpBB['db_installed_config']) && $phpBB->phpBB['db_installed_config']) && (isset($phpBB->phpBB['files_installed']) && $phpBB->phpBB['files_installed'])  && (PHPBB_LINKS_ENABLED=='true')) {
            $information[] = '<a href="http://www.xtreme-hosting-inc.com/demo/demotest/forums/" target="_blank">' . BOX_BBINDEX . '</a>';
    // or: $phpBB->phpBB['phpbb_url'] . FILENAME_BB_INDEX
    // or: str_replace(str_replace(DIR_WS_CATALOG, '', DIR_FS_CATALOG), '', DIR_WS_PHPBB)
    Code:
    Note: Change this address http://www.xtreme-hosting-inc.com/demo/demotest/forums/ in the baove code to your phpbb address on your site ot ftp or hosts appointed file location
    If you didnt enable it when you first installed zen, its harder to get it to work.

    If you reupload zc_install and update Config files only, it should worked (did for me anyway)

    Give that a **** see what happenes.

    If it does'nt take the information.php and hard code the forum address in there and see if it works.

    But the forum will not intergate into zen without being installed through zc_install.

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

  3. #3
    Join Date
    Oct 2006
    Location
    Minnesota
    Posts
    10
    Plugin Contributions
    0

    Default Re: phpBB Question?

    I will give this a try...
    I did have phpBB installed when I installed Zen cart.. but for some reason it would not take or register that it was there when I installed it.. So now I'm trying to do it this way.. "hard coding" as you say...

    I am curious.. does this make it so that when you log into zen cart you are also logged into phpBB? or does it only put a link to phpBB?

  4. #4
    Join Date
    Dec 2005
    Location
    Cincinnati Ohio
    Posts
    1,026
    Plugin Contributions
    13

    Default Re: phpBB Question?

    Gives a link only in the information sidebox.

    Or you can try this

    go to admin/Configuration/My Store/enable phpbb link at the bottom of the page make it say true see if the link shows then. before hard coding
    PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
    Business Class Web Hosting - Linux and cPanel Powered

  5. #5
    Join Date
    Oct 2006
    Location
    Minnesota
    Posts
    10
    Plugin Contributions
    0

    Default Re: phpBB Question?

    I already set it to true that didn't work.. I haven't tried the hard coding yet.. just about to do that.. I'll let you know if it worked

  6. #6
    Join Date
    Mar 2006
    Location
    Rosebud, Victoria, Australia
    Posts
    310
    Plugin Contributions
    2

    Default Re: phpBB Question?

    G'day,

    Your problems might be related to the discussion in this topic...
    http://www.zen-cart.com/forum/showthread.php?t=46628

    Best Regards, Lloyd Borrett.
    Zen Cart 1.5.5e, PHP 5.3.29 MySQL 5.5.42

  7. #7
    Join Date
    Oct 2006
    Location
    Minnesota
    Posts
    10
    Plugin Contributions
    0

    Default Re: phpBB Question?

    Just tried it.. all I got was a message that said:
    Parse error: parse error, unexpected ',' in /home/content/html/includes/modules/sideboxes/information.php on line 29

    ok.. next.. if all it's doing is putting a link to the Forum is there an easier way of doing it.. How would you add any other link to the information side box?

    MaxOtter.com

  8. #8
    Join Date
    Oct 2006
    Location
    Brisbane, Australia
    Posts
    3
    Plugin Contributions
    0

    Default Re: phpBB Question?

    Hi all,

    I just posted elsewhere about having trouble getting the zencart installer to find my phpbb filepath. For some reason it wasn't working. knuckle 101, you said:

    But the forum will not intergate into zen without being installed through zc_install.
    Can you explain what you mean? I gave up and manually linked them through the zc admin panel but i get the sense from your commetn that i am missing something?

    Like does it create an information sidebox for the forum if you do it through the installer?

    Thanks

  9. #9
    Join Date
    Dec 2005
    Location
    Cincinnati Ohio
    Posts
    1,026
    Plugin Contributions
    13

    Default Re: phpBB Question?

    LokoLobo
    Please show your information.php file here

    yollana
    I never said it will intergate thorugh the installer,
    What I said was it will share the username between databases.

    Zencart and phpbb will only working sharing names not databases

    When you install zencart for the first time

    You can also see this thread http://www.zen-cart.com/forum/showth...ighlight=phpbb for help with phpbb.

    Zencart only shares usernames with an exisiting phpbb installation.

    Refer to the above thread address for other information that worked for others such as lloyd_borrett posted.

    For the hard coding its not easy make sure you have all comments etc. In place same as I have placed in the beginning of this thread.

    If you try to hardcode the information.php please see attachment.

    This file is for the 1.3.6 version of zencart.

    Where it says whateverhardcodedlinkyoudesire change this to the address of your phpbb, however in admin/Configuration/My Store/Enable phpBB linkage? set this to true, hardcoded or not this has to be activated to true.

    Try these steps
    Last edited by knuckle-101; 18 Nov 2007 at 05:24 AM.
    PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
    Business Class Web Hosting - Linux and cPanel Powered

 

 

Similar Threads

  1. v153 Question about phpBB Plugin
    By hyperion12 in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 24 Sep 2014, 01:17 AM
  2. Blah!!! phpbb setup question
    By crazyedy in forum Installing on a Windows Server
    Replies: 3
    Last Post: 18 May 2007, 08:14 AM
  3. phpbb/zencart question
    By PrincessGeek in forum Templates, Stylesheets, Page Layout
    Replies: 14
    Last Post: 3 Oct 2006, 02:08 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