Upgrading from Pulse 3 To Pulse 5 On Non Template Site

I upgraded to Pulse 5.1, and left alone the “template”, “content” and “/pulsecore/storage/” folders. I’m hoping that was correct. I still could not change the template in the meta on the blog page in the Pulse dashboard, so I added your suggestion {{template:alternate}}, using the name of my folder, and added that to the blog page under “Pages” in the Pulse dashboard.

The template I made for my blog is being read, but I can not get any blog posts to display at all. Nor can I get a block for use in the sidebar to show up either.

Maybe I missed something. This is what I’ve done so far.

In the layout.php file in the folder for my blog template I removed all the previous HTML content for my blog in the “body” tag, except for my container and row class. Inside the row class I added <?php echo $parsedown->text($content); ?>, which is where I want the content for my blog page to appear.

Then, in the Pulse dashboard, on the blog page in “Pages”, I have this:

<!-- Blog Entries Column -->
<div id="blog-pg" class="col-md-8">

<!-- Blog Posts -->
{{template:myblog}} {{search}}{{blog-tags:"blog"}}  {{social}}       
{{blog:"":"[[featured-image]] [[blog-content-loop(<<blog-item-author>> <<blog-item-date>> <<blog-item- 
featured-image>> <<blog-item-content>> <<blog-item-tag>>)]]"}}

</div>

<!-- Blog Sidebar Widgets Column -->
<div class="blog col-md-4">
    <div class="well">
         {{block:blog/blog_sidebar}}
    </div>
</div>

But neither the blog posts nor the sidebar block show up. Am I missing something else?

1 Like

Looks good!

The line in the template is now:
<?php echo (isset($parsedown) ? $parsedown->text($content) : $content); ?>

You can see an example in the layout.php of the example template.

But the rest looks right and should work. Have you also included the htaccess file?

If it still doesn’t appear, can you zip and send it to me via a dropbox link or something - “message” on this forum is fine.

And will take a look :slight_smile:
I think it’s almost there!

Thank you for getting back to me so quickly. I added the new line in the template, I was still following the manual, so I didn’t even think to look in the layout.php example in the new files.

I did add the htaccess, I was also successful in combining both the Pulse htaccess and my custom htaccess rules in the main htaccess, which is in the root of the subfolder I’m testing in on my server.

The blog posts now show up, I just have to do some styling tweaks to get them to display similar to how they display on my current setup with Pulse 3 on my live site. Hopefully I’ll now be able to get this completed so I can upgrade Pulse on my live site soon.

One other thing I’ve noticed is the pagination is just numbers, I don’t want that. I just want the pagination to show “< Older Posts” as one button, and “Newer Posts >” as another button. See this page for the pagination at the bottom of the page https://rachelhkay.com/blog. How can I achieve this?

1 Like

Sounds great @RHKay - we’ll have to do a write up of this as a tutorial for the new Tutorials page we are preparing :slight_smile:

You can style the blog by adding overwrites in your CSS to the pulsecore/style.css - best to add it in your template CSS files as Pulse updates are safe that way.

For the pagination… you can hide it completely by allowing all posts for the page. But we upgraded to that as it was often requested from Pulse4 users :sweat_smile: A lot of people had large blogs and wanted a quicker way to browse through posts.

That said, we can see if it’s possible to include both and a toggle option in the settings?

1 Like

Yes, a tutorial about the migration would be great! This whole post is already very helpfull, thanks @RHKay and Michael!

3 Likes

I’ve pretty much got the styling completed. One thing I like about Pulse 5 is that now I can add categories in my sidebar. The only thing I don’t like is that for the recent posts, which I’ve added in my sidebar as well, there isn’t a date, just the title of the post. In Pulse 3 the recent posts showed the title of the post and the date it was posted. See this link to my current blog with Pulse 3 https://rachelhkay.com/blog, recent posts is in my sidebar. Also, is there a way to add a “See More” link at the end, as I did with Pulse 3?

If I keep the tags in my blog posts, which I’ve left at the end of my blog post content, is there a way to customize them, such as add some text before them. For example, if I have a blog post with the tag “web development”, right now it just says that, I can’t find a way to add something like “Posted in” before “web development”.

Oh, and one other thing. Since I turned my sites index.php file into a Pulse 5 template, to display my home page the same way without having to fully template it out into Pulse, I can’t get the title of that page to change from the demo. My favicon shows up, but next to my favicon it still says “Acme Inc. Home” instead of “Rachel H Kay Web Designer & Developer”. How do I change that?

Other than that, I’m just about ready to push this to my live site. Hoping once I get to that point everything goes well. I think I’m going to temporarily redirect my site to a maintenance page while making the upgrade. Luckily, I’ll be able to see the changes but everyone else will just see the maintenance page.

1 Like

Great - glad you like the categories!

If I keep the tags in my blog posts, which I've left at the end of my blog post content, is there a way to customize them, such as add some text before them. For example, if I have a blog post with the tag "web development", right now it just says that, I can't find a way to add something like "Posted in" before "web development".

This is possible but you'll need to add this to the Pulsecore files - it's not something we've made flexible at the moment I'm afraid, but it's a good idea for a future update.

Oh, and one other thing. Since I turned my sites index.php file into a Pulse 5 template, to display my home page the same way without having to fully template it out into Pulse, I can't get the title of that page to change from the demo. My favicon shows up, but next to my favicon it still says "Acme Inc. Home" instead of "Rachel H Kay Web Designer & Developer". How do I change that?

This is the site title tag in your META data - so you can either change it in the page META drawer or in the template:

If this is in layout.php (your index.php perhaps) <title><?php echo $page_title; ?></title> then you can change the title here:

Can't wait to see this live - will add it to the showcase :slight_smile:

And please let us know. Also, just take a backup (of course I'm sure you will!) before moving live just in case you need to switch back temporarily :slight_smile:

Thank you for your help. I just have one little issue. I downloaded the starter plugins pack you linked to and added the recent posts plugin so I can see how it looks, but it isn’t working.

I uploaded the “sb_recent.txt” file into content/blocks/blog, which is a folder in the blocks folder I created to put all blocks related to the blog into. The blog url is correct in the config, yet when I embed the recent posts block in my blog page in Pulse admin, all that shows up in my sidebar is broken code. Any ideas why this is happening?

Oh, and how can I put the back button on the blog posts below the content?

One last thing, if I use the Pulse navigation in order to be able to add the two Pulse page links for my home page and blog, the HTML and CSS are completely different from my sites HTML and CSS for my navigation. I just can’t use it. What are my other options to keep from breaking the style of my current navigation, but still be able to link to my Pulse home page and blog page, as well as my other non templated pages.

I did figure out a solution for the two templated pages, my home page and blog page, adding <?php echo $path; ?> to the links in the navigation in the layout.php files for those two pages. Is there a solution to now link my non templated pages to the Pulse home and blog pages?

1 Like

I uploaded the "sb_recent.txt" file into content/blocks/blog, which is a folder in the blocks folder I created to put all blocks related to the blog into. The blog url is correct in the config, yet when I embed the recent posts block in my blog page in Pulse admin, all that shows up in my sidebar is broken code. Any ideas why this is happening?

Not sure - could you send a link or screenshot (DM message is fine) so can see the error. It maybe that you could just embed the PHP code directly in your case. And we're going to make this update in the future so you could wait for that also. But send in the link and can check what is going on...

This is coming in a later update:

One last thing, if I use the Pulse navigation in order to be able to add the two Pulse page links for my home page and blog, the HTML and CSS are completely different from my sites HTML and CSS for my navigation. I just can't use it. What are my other options to keep from breaking the style of my current navigation, but still be able to link to my Pulse home page and blog page, as well as my other non templated pages.

You could add the same styles for the HTML elements, so double up so they both have the same and will look the same? So copy and paste the CSS so it's the same?

I did figure out a solution for the two templated pages, my home page and blog page, adding <?php echo $path; ?> to the links in the navigation in the layout.php files for those two pages. Is there a solution to now link my non templated pages to the Pulse home and blog pages?

The Pulse Navigation you can link non-templated pages like this:

For linking the other way, it's just a standard link or absolute link.

1 Like

I’ve updated Pulse on my live site, and have the blog working. There are just a couple of issues I’m now running into.

The first issue is with the tags. Since they are supposed to be the categories for the blog, if I click on one of the tags the page it goes to, which is supposed to list all posts with that tag, the page doesn’t load correctly, and just keeps loading. See this link: https://rachelhkay.com/tagged/gardening

The second issue I’m having is getting the Disqus comments to work. Since Pulse isn’t listed in the CMS options I chose to install with universal code. I don’t know where I’m supposed to the code, such as the code for where I want Disqus to load. It doesn’t work if I put it in the layout.php file for my blog, and if I create a block, well, since the comments should display below each blog post I can’t see where that block would go. Am I missing something to get this set up?

1 Like

Site looking good :slight_smile:

Disqus - you can add your Disqus username in Pulse > Admin > Settings
There’s no need to embed the Disqus code in the site :slight_smile:

Tags - This is strange! It doesn’t happen in Pulse sites installed in the usual way so there might need to be adjustment made for your setup. I see the errors on the page. Do you also see anything in the logs? Can you private message to me the ZIP via a dropbox link or something (admin > settings > extend > download log)

Thanks

My Disqus username is already in the settings in admin, but there is no comment form below the posts. It just says “Comments powered by Disqus” at the bottom of my posts. If that’s how its supposed to display, I’d rather have an actual comment form.

As for the tags, I can’t access that part of the admin settings. For some strange reason the settings section in admin is not displaying properly, as if it can’t connect to its stylesheet, but yesterday everything was working fine. The dashboard displays and functions properly, and the options on the dashboard navigation, but the settings just won’t display as it should, so I can’t select the “extend” section in settings. Any ideas on what went wrong over night?

Oh and the settings in the admin in the sub folder I was testing in before moving to my live site, it still displays properly. The config file for my live site is setup correctly, is there anything else anywhere that may be trying to find the test URL instead of my live site URL for displaying the settings? I did install Pulse on my live site, and copied the “template” and “content” folders from the test sub folder. As well as the file in the pulsecore files that I customized so “Posted in” would display before the tag name at the end of my posts.

Also, I’m using AddThis in order to display suggested posts and/or pages at the end of my blog posts, but the featured images on my blog posts aren’t displaying with this. It works for the page, which has custom social tags in the header, but since my blog is setup with Pulse I was wondering if there was something I might have missed so that the featured images would be found.

See the bottom of this post for an example:
https://rachelhkay.com/blog-23-the-need-for-php-7-compatibility-with-wordpress

This is what I have at the top of my blog.txt file in the admin:

<!-- Blog Posts --> {{template:myblog}} {{blog:"":" [[blog-content-loop( <<blog-item-date>> <<blog-item-featured-image>> <<blog-item-content>> <<blog-item-tag>>)]]"}}

Am I missing something? I’m beginning to wonder since Facebook also isn’t pulling in the featured image of each blog post, but Twitter and Google+ are.

For Disqus the page is showing this error:

Failed to load resource: The certificate for this server is invalid. You might be connecting to a server that is pretending to be “rachelhkay.com.disqus.com” which could put your confidential information at risk.

The page also doesn't exist:

Can you check the comment Disqus setup is correct in your Disqus account? Change the URL in the settings to point to https://rachelhkay.com/ ?
Yes the comments will be embedded in Pulse not the sentence like that..


Not sure why the Settings should suddenly stop working.. it sounds like something was changed on the server or setup? Can you let me see it? (send me a private message).

For the "related posts" two seem to be working and two not:

I'm not sure and this could be something on addThis side?

Are you adding OGP data to your blog posts too?

For the Disqus issue I went into my account and did notice that the URL was blank, I’m not sure why, maybe I missed it, I don’t know, so I ensured it was https://rachelhkay.com, but there still isn’t a comment form showing up. Oh and the URL for my Disqus is rachelhkay.disqus.com.

I’ll send you a message related to the settings in Pulse issue.

For the related posts issue with AddThis, I contacted them to see if there is anything they can do to help. For the OGP setup in Pulse, I have meta keywords for each blog post, but I’m not entirely sure if I got the setup correct so my posts featured images show up as they should. I wasn’t sure if I missed something or not when I setup what shows up on my blog posts on the blog.txt page in Pulse. While I do have the tag for featured image, it is in the blog content loop, and I wasn’t sure if I was supposed to place a tag for the featured image elsewhere as well, or if its okay to just have it there. Is there something else I’m supposed to add to my blog posts for the OGP data? I’m honestly not sure if I’m missing something or not since this new Pulse setup is something I’m still learning. Its completely different from Pulse 3.

I did get a response back from AddThis and they said that one of my posts doesn’t have the Open Graph image meta tag, so I inspected that page and sure enough, all the other meta tags show up but the image meta tag does not. So I inspected other blog posts and they are the same. The url, type, title, and description og tags show up, but not the image, so there is something I’m missing, but I’m not sure what exactly.

“rachelhkay” needs to be in the Settings only

If all setup correctly in Disqus it should appear straight away.

I did get a response back from AddThis and they said that one of my posts doesn’t have the Open Graph image meta tag, so I inspected that page and sure enough, all the other meta tags show up but the image meta tag does not. So I inspected other blog posts and they are the same. The url, type, title, and description og tags show up, but not the image, so there is something I’m missing, but I’m not sure what exactly.

Let’s check this out as well once we can sort out your settings :slight_smile:

Since my re-install and sudden realization explained in the message I sent you earlier today the Disqus comments are now working now that I can access settings again.

Now the next issue here is getting the og image to show up and work, and figuring out why my tags pages aren’t loading correctly.

1 Like

I sent you a message about the settings in admin issue, I know that fixing this issue may put figuring out the issue with the og images in my blog, but maybe since the settings are working in the sub-folder setup, maybe that can be used to figure out the tag pages issue and the og image issue, or at least to maybe debug why the settings aren’t working on my live site.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

A lot of these improvements baked into 5.2: