different wordpress page-template.php on signup

Discussion in 'Templates customization' started by maximilian, Jan 19, 2013.

  1. maximilian

    maximilian New Member

    Joined:
    Jan 18, 2013
    Messages:
    14
    Hello,
    I have configured the wordpress plugin and I have checked the box to use header and footer from my wordpress theme. But now I want to use a different page-template.php from my wordpress theme on amember signup page. How can I configure this?

    Thanks,
    Max
  2. gswaim

    gswaim CGI-Central Partner

    Joined:
    Jul 2, 2003
    Messages:
    641
    Max,

    As far as I know, aMember is going to pull in the header, footer, and background color. The aMember content will be displayed at full width. I don't think this approach supports a content-sidebar layout. However, with some custom coding I am sure it is possible.
  3. maximilian

    maximilian New Member

    Joined:
    Jan 18, 2013
    Messages:
    14
    I want to use a special wordpress page-template.php to get no menu display and a smaller page width and a different footer. So I have a good layout for a salespage.
  4. gswaim

    gswaim CGI-Central Partner

    Joined:
    Jul 2, 2003
    Messages:
    641
    You can always leave the "Use WP header/footer...." box unchecked and build a custom theme as described here in the support material.
  5. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,435
    I think I did this on one of my sites by creating a custom 'page' in wordpress and setting it to be the default used. Then amember pulls this one. You will need to set all your other wordpress pages to use a different style.

    David
  6. rance

    rance aMember Pro Customer

    Joined:
    Dec 1, 2012
    Messages:
    40
    This is a great idea and could really solve my need too. I do have one question. How do I set it as default used?

  7. maximilian

    maximilian New Member

    Joined:
    Jan 18, 2013
    Messages:
    14
    ok my idea is now to use standart wordpress header/footer on login, logout, memberarea,... pages.
    Only for the signup pages I want to build a custom theme as described here in the support material.

    Can I do this on this way without problems? Where I can find a developer to create this signup-page style on the basis of the existing wordpress-template.php?

    Thanks, Max
  8. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,274
    Sure this should be possible. But you will need to store your modified templates inside
    /amember/application/default/plugins/protect/wordpress/YOUR_WORDPRESS_THEME_FOLDERNAME/ folder instead on theme folder.
  9. maximilian

    maximilian New Member

    Joined:
    Jan 18, 2013
    Messages:
    14
    Ok I have do this and no I want to customize the code of layout.phtml to open the style of the page-landingpage.php template in my wordpress folder.

    Code:
    <?php
    Am_Di::getInstance()->plugins_protect->get('wordpress')->startLayout($this, $title,true);
    get_header();
    ?>
    <?php
    include dirname(__FILE__)."/../amember.php";
    ?>
    <?php
    get_footer();
    ?>
    How I modify this code to get my result? I want to open the style of the "page-landingpage.php" template in my wordpress folder and include /amember.php content in it.

    Thanks for help,
    Max
  10. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,274
    Copy all contents of page-landingpage.php to layout.phtml and place \
    <?php
    include dirname(__FILE__)."/../amember.php";
    ?>
    where ever you want to include aMember code.
  11. maximilian

    maximilian New Member

    Joined:
    Jan 18, 2013
    Messages:
    14
    okay this works great! But now the style of amember signup form is broken. I see only the pure text and "fill-in forms" without signup form design. How can I get the style of the amember signup form back?

    2. How can I display title tag in amemer signup form. At the moment I see only the domain adress in title tag.

    Thanks for help. I am much further now to get what I want with the signup page.

    Max
  12. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,274
    Make sure that you have this line at the top of your template:

    <?php Am_Di::getInstance()->plugins_protect->get('wordpress')->startLayout($this, $title,true); ?>
    It should include amember styles into wordpress and also set necessary hooks for title.
  13. maximilian

    maximilian New Member

    Joined:
    Jan 18, 2013
    Messages:
    14
    Thank you. The last thing is the title. How I can change the title tag manual on layout file or in amember? Because I use a wordpress seo plugin on my blog and there is no title tag on signup pages,..., I see only the domain adress in title tag.

    Thanks,
    Max
  14. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,274
    Can you show contents of your current layout.html template?
  15. maximilian

    maximilian New Member

    Joined:
    Jan 18, 2013
    Messages:
    14
    I have send you a message with url in the last days. This is the code:
    Code:
    <?php Am_Di::getInstance()->plugins_protect->get('wordpress')->startLayout($this, $title,true); ?>
     
    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    <head>
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <title><?php colabs_title(); ?></title>
     
    <?php
    colabs_meta(); colabs_meta_head();
    ?>
     
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/madmenu.css" type="text/css" media="screen" />
     
    <?php if (is_home()) { ?>
    <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/css/jquery.jcarousel.css" />
    <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/css/skin.css" />
    <?php } ?>
    <!--[if lte IE 9]>
    <style type="text/css">
    a img {max-width:none}
    #featured {height: 282px;
        overflow: hidden;}
    .jcarousel-skin-arthemia .jcarousel-container-vertical {
        height: 257px;
        padding: 0;
        width: 310px;
    }
    .jcarousel-skin-arthemia .jcarousel-clip-vertical {
    height: 237px;
    width: 310px;
    }
    </style>
    <![endif]-->
    <?php wp_head(); ?>
    <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/includes/css/responsive.css" type="text/css" />
    <?php if(get_option('colabs_disable_mobile')=='false'){?>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <?php }?>
    <script type="text/javascript">
    var disqus_developer = 1;
    </script>
     
    <!--[if IE 7]>
        <style type="text/css">
            .clearfloat { display:inline-block; }
            .categorybar { width:17.7% }
            #tabs ul.colabsTabs li { float:left }
            #tabs ul.colabsTabs { overflow:hidden }
        </style>
    <![endif]-->
    </head>
     
    <body <?php body_class(); ?>>
     
    <div class="container" style="width: 800px;">
     
    <div id="head" class="clearfloat">
        <div id="logo" class="left">
        <?php
            $cp_iLogo = get_option( "colabs_logo" );
            if( $cp_iLogo != "" ) {
        ?>
            <a href="<?php echo get_option('home'); ?>"><img src="<?php echo $cp_iLogo; ?>" alt=""  /></a>
        <?php } ?>
        </div>
    </div><!--/#head-->
       
        <div id="page" class="clearfloat" style="background: none;">
        <?php if (!is_home()) { ?><div id="inner"><?php } ?>
     
        <div id="content" class="archive left fullwidth">
       
        <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
                   
        <!--/.post_class()-->
     
        <?php endwhile; endif; ?>
     
    <?php
    include dirname(__FILE__)."/../amember.php";
    ?>
     
        </div><!--/#content2-->
    </div>
    <?php wp_reset_query(); ?>
     
    </div><!--/#page-->
     
    <div id="footer">
     
        <div id="footer-left">
        <?php if (get_option('colabs_credit_left')==''){ ?>
        <?php _e(); ?>
        <?php }else{
        echo get_option('colabs_credit_left');}
        ?>
        </div>
     
        <div id="footer-right">
        <?php if (get_option('colabs_credit_right')==''){ ?>
       
        <?php }else{
        echo get_option('colabs_credit_right');}
        ?>
        </div>
     
    </div><!-- #footer -->
     
    </div><!-- .container -->
     
    <?php wp_footer(); ?>
     
    </body>
    </html>
  16. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,274
    Well as far as I can see you have title tags specified in your template.
    So just change:
    <title><?php colabs_title(); ?></title>
    to
    <title><?php echo $title; ?></title>
  17. maximilian

    maximilian New Member

    Joined:
    Jan 18, 2013
    Messages:
    14
    Ok thank you this is working.
    The other wordpress/amember pages like member login, member area and soon are also without title tag, I see only the domain adress in title tag. For this pages I use a different layout file with the following code:
    Code:
    <?php
    Am_Di::getInstance()->plugins_protect->get('wordpress')->startLayout($this, $title,true);
    get_header();
    ?>
    <?php
    include dirname(__FILE__)."/../amember.php";
    ?>
    <?php
    get_footer();
    ?>
    Maybe the problem is that I use a wordpress seo plugin on my blog. How I get the title tag also on amember wordpress pages with this layout file?

    Thanks,
    Max

Share This Page