Announcement

Collapse
No announcement yet.

blog and actinic

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    blog and actinic

    hi im looking for some help please. I want to have a blog on our website, we use actinic v9. I want the blog to be part of the website so that the customers arent taken away from the site and im hoping the blog will help with increasing traffic to us and maybe help us up the pages in google. I figure it cant do any harm anyway. I think from what i have found that integrating wordpress is the best thing to do. If this is right could somebody please give me an idiots guide, i would be very grateful

    cheers

    karl

    #2
    Hi Karl, i'm pretty sure Dave Finlayson has already provided instructions on how to do this in the forum, have a search for his thread(s), he seems to be the most up on this matter, well worth finding his posts on it.

    Comment


      #3
      Thank you. Ive had a little look into that and found the post that you are referring to i think. Is this it?

      ***

      If you want to show your wordpress posts it's fairly easy to integrate wordpress into Actinic, something like this will do it:-

      THIS ASSUMES YOU HAVE WORDPRESS INSTALLED UNDER A DIRECTORY CALLED BLOG AND ACTINIC RUNNING FROM THE ROOT DIRECTORY, the code works for actinic brochures pages.

      Create a new brochure page called 'blog'
      Make sure you rename the page to 'mypage.php' (change mypage to whatever you want, just make sure it finishes in .php

      Create a fragment and again call it Blog
      Paste the code below into the fragment
      Upload, be amazed and praise Me!

      !!< include("../blog/wp-blog-header.php");?>
      <?php query_posts('showposts=5'); ?>
      <?php while (have_posts()) : the_post(); ?>
      <?php the_author(); ?>
      <?php the_excerpt(); ?>
      <?php endwhile;?>
      >!!
      NOTE: Dependent on your setup you may need to change the path to wp-blog-header.php.

      This is a very basic integration. If you know php/mysql/wordpress you can display as much as you want. A good session on Google should point you in the right direction though. It obviously will require some styling too.

      ***

      Comment


        #4
        That looks familiar, that's the one.

        Comment


          #5
          Im new to all this so this is quite complicated for me. Has anyone had any luck in doing this?

          Comment


            #6
            Hi Karl,

            We recently set up a Wordpress blog on our site, fairyglass.co.uk/blog. Providing you're familiar with FTP software and CHMOD it's quite simple. If these things are a foreign language to you, then it may be worthwhile asking someone to set it up for you, especially if you want to ensure that it looks the same as your site design.
            If I can help with questions, feel free to ask, although I'm not volunteering to set one up for you!
            Best wishes,
            Ben
            Ben
            http://www.fairygoodies.co.uk

            Comment


              #7
              I installed wordpress on my server in /blog/

              and added a "blog" button to actinic which redirects to my blog.


              www.patchwork-rabbit.co.uk
              www.patchwork-rabbit.co.uk/blog/


              To elaborate:

              1. created a blogurl variable with has the url for my blog in it
              2. basically copied another button (say, home), and posted the following in: <a href="<actinic:variable name="BlogUrl" />" target="_self" class="link_menu">Blog</a>
              The Patchwork Rabbit

              Comment


                #8
                I cant get Dave Finlayson's code above to work. I've double checked and triple checked every step, and all I'm getting when I navigate to the .php page is a 500 internal server error.

                Can anyone offer any guidance? Tried this on v10 and 2013
                Bare Essential - Chilli Fundamentals - ShrinkBands - Dynamo Hair - MatteShop - Caravan Accessory World

                Comment


                  #9
                  The first line doesn't look right, there is no bracket to start the first line. See: Integrating WordPress with Your Website
                  Peblaco

                  Comment


                    #10
                    Hi, thanks for your reply. I actually found that page but no matter what I try, I keep getting the same 500 server error.

                    The latest attempt was using this code

                    !!<
                    <?php
                    require('../blog/wp-blog-header.php');
                    ?>

                    <?php
                    $posts = get_posts('numberposts=10&order=ASC&orderby=post_title');
                    foreach ($posts as $post) : setup_postdata( $post ); ?>
                    <?php the_date(); echo "<br />"; ?>
                    <?php the_title(); ?>
                    <?php the_excerpt(); ?>
                    <?php
                    endforeach;
                    ?>
                    >!!
                    Bare Essential - Chilli Fundamentals - ShrinkBands - Dynamo Hair - MatteShop - Caravan Accessory World

                    Comment


                      #11
                      You have to work out where the problem is.

                      Try using this in place of all the other code:

                      <?php echo '<p>Hello World</p>'; ?>

                      If this doesn't work then there's probably a problem with your server / php installation.

                      If this does work then there's a problem with your php code or the wordpress installation.

                      Mike
                      -----------------------------------------

                      First Tackle - Fly Fishing and Game Angling

                      -----------------------------------------

                      Comment


                        #12
                        Take a look at this:
                        http://www.graphicz.gb.com/wpsd/acatalog/Blog.php

                        To integrate Wordpress Blog into SellerDeck

                        Create a brochure page Blog.php It does not need a fragment.

                        Create a variable 'IsBlogPage' or similar - default 'no'

                        Make it 'yes' on the blog page Blog.php

                        Create a directory called 'blog' and install your Wordpress Blog in it

                        In SD at the top of 'Brochure Page Body layout paste this:

                        Code:
                        <actinic:block if="%3cactinic%3avariable%20name%3d%22IsBlogPage%22%20%2f%3e%20%3d%3d%20true">
                        <style>.blogh5 {font-size:16px;}</style>	
                        <?php require('../blog/wp-blog-header.php');
                        
                         /*if you are getting 404 errors uncomment the next 2 lines*/
                            //status_header(200);
                            //nocache_headers();
                         
                        ?>
                        <?php while (have_posts()): the_post(); ?>
                                
                                <h5 class="blogh5"><?php the_time('l, F j, Y'); ?></h5>
                                
                                <a href="<?php the_permalink(); ?>"><h4><?php the_title(); ?></h4></a>
                                <?php the_post_thumbnail( $size, $attr ); ?>
                                <?php the_excerpt(); ?>
                                <p></p>
                                <a href="<?php the_permalink(); ?>"><p>Read More...</p></a>
                                
                                <br />
                                <?php endwhile; ?>
                        
                        		<?php if ($paged > 1) { ?>
                        
                        		<nav id="nav-posts">
                        			<div class="prev"><?php next_posts_link('&laquo; Previous Posts'); ?></div>
                        			<div class="next"><?php previous_posts_link('Newer Posts &raquo;'); ?></div>
                        		</nav>
                        
                        		<?php } else { ?>
                        
                        		<nav id="nav-posts">
                        			<div class="prev"><?php next_posts_link('&laquo; Previous Posts'); ?></div>
                        		</nav>
                        
                        		<?php } ?>
                        
                        		<?php wp_reset_postdata(); ?>
                                      
                        </actinic:block>
                        When you customise the WordPress Theme to match your site appearance you can include SellerDeck javascript so you can display the cart contents an link back to the checkout etc.

                        It is all coded in header.php of your theme folder:

                        header.php

                        Code:
                        <head>
                        <meta name="viewport" content="width=device-width, initial-scale=1">
                        <meta charset="<?php bloginfo( 'charset' ); ?>">
                        <link rel="profile" href="http://gmpg.org/xfn/11">
                        <?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
                        	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
                        <?php endif; ?>
                        <?php wp_head(); ?>
                        <?php
                        $filename = '../acatalog/sellerdeck.min.js';
                        if (file_exists($filename)) {
                            echo '<script language="javascript" type="text/javascript" src="../acatalog/sellerdeck.min.js"></script>';
                        } else {
                        	echo '<script type="text/javascript" src="../acatalog/actiniccore.js"></script>';
                        	echo '<script type="text/javascript" src="../acatalog/actinicextras.js"></script>';
                        	echo '<script type="text/javascript" src="../acatalog/actinicsearch.js"></script>';
                        }
                        ?>
                        
                             
                           
                           <script language="javascript" type="text/javascript">
                        // START Configuration variables - alter with care
                        var nMaxRecent			= 12;		
                        var nTrimListTo		= 4;		
                        var nScrollBy			= 4;		
                        var bDisplayReversed	= true;		
                        var nKeepRecentHours	= 12;		
                        </script><Actinic:COOKIECHECK /><script type="text/javascript">
                        <!--
                        var pg_sSearchScript = "../cgi/ss000001.pl";
                        var pg_sCustomerAccountsCGIURL = '../cgi/bb000001.pl';
                        var pg_nProductImageWidth = parseInt("0121", 10);
                        var pg_nProductImageHeight = parseInt("0140", 10);
                        var pg_bEnableFilterCount = parseInt("01", 10);
                        var pg_sDefaultSortOrder = "1_3_4_0";
                        var pg_sSortOrdersPrependedToProdRefs = "2,4,6,7,8";
                        var pg_sSearchValidWordCharacters = '-abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\'0123456789ŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ';
                        saveReferrer();
                        // -->
                        </script>
                        </head>
                        
                        <body <?php body_class(); ?> >
                        <div id="container">
                        
                        	<div id="header-first">
                        		<!--<div class="logo"> 
                        			<?php if ( get_theme_mod( 'privatebusiness_logo' ) ) : ?> 
                        				<a href='<?php echo esc_url( home_url( '/' ) ); ?>' title='<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>' rel='home'>
                        				<img src='<?php echo esc_url( get_theme_mod( 'privatebusiness_logo' ) ); ?>' alt='<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>'></a> 
                        			<?php else : ?> 
                        				<h1><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1>
                        				<h2><?php bloginfo('description'); ?></h2> 
                        			<?php endif; ?>
                        		</div>-->
                        		<div class="rowskel">
                        		
                        		<div class="two columnsx">		
                        		<a href="../"><img src="../acatalog/theme_corporate_logo.gif" alt="company name" /></a>
                        		</div>
                        		
                        		<div class="six columnsx undred" style="text-align:center;">
                        		<p></P>
                        		</div>
                        		
                        		<div class="four columnsx">
                        		<div class="quick-search">
                        <form action="../cgi/ss000001.pl" method="get" name="simplesearch">
                        
                        	<input type="hidden" name="page" value="search" />
                        	<input type="text" onfocus="AutoSuggest(this)" placeholder="Quick Search" size="18" name="SS" autocomplete="off">
                        	<input type="hidden" name="PR" value="-1" />
                        	<input type="hidden" name="TB" value="O" />
                        <input type="image" name="ACTION" value="" src="../acatalog/search-icon.png">
                        
                        </form>
                        </div>
                        <div class="cart-summary">
                        	<img src="../acatalog/cart-summary-icon.png"/>
                        	<div class="cartArea">
                        		<h4>My Cart</h4>
                        <p>
                        Items:<strong>
                        <script type="text/javascript" language="javascript">
                        
                        <!--
                        document.write(getCartItem(3));
                        // -->
                        </script>
                        Value:
                        <script type="text/javascript" language="javascript">
                        
                        <!--
                        document.write(getCartItem(1));
                        // -->
                        </script>
                         
                        <a href="../cgi/ss000001.pl?ACTION=LOGIN">Login:</a></strong>
                        </p>
                        	</div>
                        	<div class="cartAreaButtons">
                        <a href="../cgi/ca000001.pl?ACTION=SHOWCART">View Basket</a>
                        <a href="../cgi/os000001.pl?ACTION=Start&BASE=../acatalog/">Checkout</a>
                        <a href="../cgi/ss000001.pl?ACTION=LOGIN">Login:</a>
                        	</div>
                        </div>
                        
                        
                        
                        		</div>
                        		
                        		</div>
                        		<?php if ( has_nav_menu( 'secondary' ) ) : ?> 
                        			<?php wp_nav_menu( array( 'theme_location' => 'secondary', 'container_class' => 'nav-head-secondary' ) ); ?>
                        		<?php endif; ?>
                        	</div>
                        
                        	<div id="header-second">
                        		<div class="nav-head-primaryfx">
                        		<ul id="menu-menu" class="menu">
                        		<li><a href="../">Home</a></li>
                        				<li><a href="../acatalog/index.html">Online Shop</a></li>
                        				<li><a href="../acatalog/Blog.php" >Blog Home</a></li>
                        		<li><a href="../cgi/mf000001.pl?ACTION=SHOWFORM">Contact Us</a></li>
                        		</ul>
                        		</div>
                        		<?php if ( has_nav_menu( 'primary' ) ) : ?> 
                        			<?php wp_nav_menu( array( 'theme_location' => 'primary', 'container_class' => 'nav-head-primary' ) ); ?>
                        		<?php endif; ?>
                        			
                        
                        		<?php if ( is_front_page() ) {?> 
                        			<?php if ( get_header_image() ) {?> 
                        				<img src="<?php echo get_header_image(); ?>" class="header-img" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" />
                        			<?php } ?> 
                        		<?php } ?> 
                        		
                        	</div>
                        	<?php if( is_front_page() ) { ?>
                        
                        	<?php if ( is_active_sidebar( 'homepage-right' ) || is_active_sidebar( 'homepage-left' ) ) { ?>
                        		<div id="header-widgets">
                        			<div class="home-right"> 
                        				<?php dynamic_sidebar( 'homepage-right' ); ?>
                        			</div>
                        		
                        			<div class="home-left"> 
                        				<?php dynamic_sidebar( 'homepage-left' ); ?>
                        			</div>
                        		</div>
                        	<?php } ?> 
                        	<?php } ?>
                        (my search box is a bit crook but I was in a hurry!)
                        Last edited by graphicz; 25-Aug-2016, 08:52 AM. Reason: revision and addition
                        Jonathan Chappell
                        Website Designer
                        SellerDeck Website Designer
                        Actinic to SellerDeck upgrades
                        Graphicz Limited - www.graphicz.co.uk

                        Comment

                        Working...
                        X