Wrapping aMember into an existing site

Discussion in 'Integration' started by peter_schmitz, Dec 4, 2013.

  1. peter_schmitz

    peter_schmitz New Member

    Joined:
    Sep 24, 2013
    Messages:
    4
    Hi,

    We're running a XenForo website, and want to integrate aMember completely. By this I mean that we want to have the forum's layout (header, footer, etc.) showing up around aMember, so the shop feels like it's part of the bigger website.

    Does anyone have experience with this? I'd be more than happy to pay for someone to help out with this.

    Thanks.

    /Peter
  2. thehpmc

    thehpmc aMember Pro Customer

    Joined:
    Aug 24, 2006
    Messages:
    901
  3. peter_schmitz

    peter_schmitz New Member

    Joined:
    Sep 24, 2013
    Messages:
    4
    I followed those instructions, and created the pages using the exact code from the page.

    Nothing changed. The site looks exactly the same as it did before.
  4. thehpmc

    thehpmc aMember Pro Customer

    Joined:
    Aug 24, 2006
    Messages:
    901
    Maybe I misunderstood you. Is this the effect you are trying.

    Click on link then select 'Join the library'

    Couple of bits not displaying correctly (QR code for example) as site is being upgraded and broken bits.
  5. peter_schmitz

    peter_schmitz New Member

    Joined:
    Sep 24, 2013
    Messages:
    4
    Pretty much, yes. I have no idea what I did wrong.

    I created the template.phmtl, the css file, and set the theme in the aMember config. Nothing seems to have happened at all.
  6. thehpmc

    thehpmc aMember Pro Customer

    Joined:
    Aug 24, 2006
    Messages:
    901
    In your last post noticed you have template.phmtl this should be layout.phtml

    Copy of mine to produce effect on my site
    PHP:
    <?php
    $home
    =$_SERVER"DOCUMENT_ROOT" ];
    $b_dir $home.'/mainsite';
    ?>
    <!DOCTYPE html>
     
    <html lang="en-gb">
        <head>       
        <title>Technical manuals for downloading</title>
            <meta charset="utf-8" />
            <meta name="robots" content="all" />
            <meta name="author" content="The Manuals Library" />
            <meta name="description"  content="The FIRST, the LARGEST and only FULLY SEARCHABLE online resource of boiler manuals. The definitive resource for boiler manuals. The Manuals Library hosting the United Kingdoms largest independent collection of Gas and Oil Boiler Manuals and Installation and Servicing Manuals" />
            <meta name="keywords" content="Installation and Servicing Manuals,gas boilers,oil boiler manuals,boiler servicing,boiler manuals,user guides,the manuals library,Central Heating, boiler manual, Boiler Manuals, installation &amp; servicing manuals, installation and servicing manuals, www.themanualslibrary.co.uk" />
            <link rel="shortcut icon" href="favicon.ico" />
                <link rel="stylesheet" type="text/css" media="screen" href="/mainsite/css/mainstyles.css" />   
                  <?php $this->printLayoutHead(); ?> 
           
            <!--[if lte IE 6]>
    <link rel="stylesheet" type="text/css" media="screen" href="ie6.css" />
    <![endif]-->
     
    <!-- layoup.phtml - Version 12.1-03 -->
    </head>
     
        <body>
        <!-- Wrapper -->
       
        <div id="wrapper">
        <div id="header">
            <?php include($b_dir.'/includes/header.php'); ?>
        </div>
        <div id="navigation">
        <?php include($b_dir.'/includes/navigation.php'); ?>
        </div>
    <div class="page-container">
    <div class="am-wrapper">
                <div class="am-body">
                    <div class="am-body-content-wrapper am-main">
                        <div class="am-body-content">
                            <?php include $this->_script('_top.phtml'); ?>
                            <?php if (empty($this->layoutNoTitle)): ?>
                                <h1><?php echo $title ?></h1>
                            <?php endif; ?>
                            <!-- content starts here -->
                            <?php echo $content ?>
                        </div>
                </div>
           
                    </div>
    </div>
     
    </div>    <!-- page container end-->
              <div id="footer">
                  <?php include($b_dir.'/includes/footer.php'); ?>
     
              </div>   
            </div> <!-- wrapper end -->   
           
            <?php echo $this->render('_popup.phtml'); ?>
             
    </body>
    </html>
    I have used php 'includes' in various pages so the same header, navigation and footer sections so the identical sections appear within the aMember pages. I have also 'included' the same css styles used on main site and not produced a separate one in the themes folder.
  7. peter_schmitz

    peter_schmitz New Member

    Joined:
    Sep 24, 2013
    Messages:
    4
    The filename I used was actually correct. I merely remember and posted the wrong name.

    I think I caught what caused my changes not to work, though.

    My foldername for the style was named using capitals. They showed up in the drop-down box, but for some reason the script did not seem to recognize it. On a hunch, I renamed the folder to using all lowercase (the dropdown still capitalizes the first letter), but at least now I could see the script using a custom HTML line I dropped in there.

    However, the red css did not seem to take effect. I'm also not entirely certain how easy it will be to somehow copy/paste the entire HTML markup from XenForo over to provide the navigation etc.

    Thanks for your assistance, though. It's been appreciated.

Share This Page