Software development, photography, jokes, ....

Sites by me

 
tas-logoTransportation Administration System
snoezelkussen-logo-kleinstSnoezelen Pillows for Dementia
ikzoekeenbegeleider-logoBegeleiders voor gehandicapten
Laat uw hond het jaarlijkse vuurwerk overwinnen
Betuweroute en Kunst
logo 50x50Hey Vos! Je eigen naam@vos.net emailadres?
Kunst in huis? Nicole Karrèr maakt echt bijzonder mooie dingen
nettylogo2Kunst in huis? Netty Franssen maakt ook bijzonder mooie dingen
Professionele opvang bij Gastouderbureau
Kind-Zijn
Salarisadministratie en belastingadvies bij
De Zaak Loont
Zutphense Bomenstichting

Hosting Favorites

 
ANU Internet Services
XelMedia .internet services
register.com
GoDaddy.com

Blogroll

 
Bomenstichting
MacFreak
Google Translate
PHP
MySQL
jQuery
jQuery UI
codecademy
YourHead Stacks API
Favicon Generator. For real.
Check HTTPS problems



Categories

Archives

Marc's Place


 

Powered by the Blogspot.stack

The Blogspot Stack 1.2.4 for Stacks with RapidWeaver #blogspot #blogger #stacks #yourhead #rapidweaver #realmac #webtools

 Permalink


Version 1.2.4 of the Blogspot.stack was released on 04 September 2018

If you purchased this stack, you can re-download the installer via your Paddle account.
If not, you can read more about it here .

Changes, additions and fixes:
  • Texts with wrong information in supporting stacks have been removed.
  • The 999 number of posts when a category was clicked, has been fixed. Now, the number of posts to show from the settings is used.
  • The link 'See older posts' is now enclosed in a DIV and does not float right of a small blog post any more.
  • RSSFeed.stack has been updated to v1.1.0:
    • A new setting has been introduced to show or hide the 'Copy' button. When enabled and the user clicks this button, the RSS Feed link is copied to the user's clipboard.
 Comments

The Blogspot Stack 1.2.3 for Stacks with RapidWeaver

 Permalink


Version 1.2.3 of the Blogspot.stack was released on 05 June 2018

If you purchased this stack, you can re-download the installer via your Paddle account.
If not, you can read more about it here .

Changes, additions and fixes:

  • Fix that caused an unexpected '[' on some installations of PHP v5.4 or lower.
  • Fix that caused an unrecognised constants SORT_NATURAL and SORT_FLAG_CASE on PHP v5.3 or lower. If PHP 5.3 or lower, SORT_STRING is used.
  • Added a META tag in the HEAD-section which contains the actual PHP-version.
 Comments

The Blogspot Stack 1.2.1 for Stacks with RapidWeaver

 Permalink


Version 1.2.1 of the Blogspot.stack was released on 19 March 2018

If you purchased this stack, you can re-download the installer via your Paddle account.
If not, you can read more about it here .

Changes, additions and fixes:

  • When using Disqus, you can now have the number of comments shown, in each post.
  • Categories, archives and the RSS-feed would not render with some PHP installations. Reason: on those servers PHP is not allowed to fetch data via regular PHP commands. This has been fixed by using HTTP requests.
 Comments

The Blogspot Stack 1.2.0 for Stacks with RapidWeaver

 Permalink


Version 1.2.0 of the Blogspot.stack was released on 16 March 2018

If you purchased this stack, you can re-download the installer via your Paddle account.
If not, you can read more about it here .

Changes, additions and fixes:

  • You can now change FontAwesome icons. There is a new section, called 'FontAwesome Icons', where the checkbox has been moved to and input fields are added where you can change the icons, supported by Stacks : https://fontawesome.com/v4.7.0/icons/
  • The RSS-feed link now links to XML data, generated by the Blogspot.stack, on your own webpage. The XML data is pulled from Blogger and the links to your Blogger-posts are changed so they point to your webpage's blog. When you have chosen to filter the posts by category or categories, the RSSfeed data is also filtered by those same categories.
  • Added a blank option to the 'Time format'-popup menu. When chosen, only the post's date will be shown.
  • Removed the 'Show RSS link'-checkbox. If you want to list the RSS link, place the 'Blogspot RSS Feed link'-stack where you want it, or use the code snippet.
  • Removed the 'Enable categories'-checkbox. If you want to list the list of categories, place the 'Blogspot Categories'-stack where you want it, or use the code snippet.
  • Added CSS to .blog-entry and .blog-entry-body classes, so the use of float and other styles do not affect the layout.
  • Version number in edit-mode now shows the actual version number.
  • Some oddity with server locales / timezones when formatting the archive dates correctly has been fixed.
  • A problem with detecting if Blogger is reachable has been fixed.
  • Some problems with showing Blogger or Disqus comments have been fixed.
  • The localized string for 'Comments' was not used with Disqus comments. Fixed.
  • Some problems with displaying UTF8 characters in localization strings have been fixed.
  • Changed all HTTP URLs to HTTPS URLs where appropriate

Read the user manual for more info on how to use the code snippets.
 Comments

The Blogspot Stack 1.1.5 for Stacks with RapidWeaver

 Permalink


Version 1.1.5 is out with the following changes:

Released on 05 mar 2018.

  • Better error handling.
  • Reports error message from Blogger, when there is one.
  • Added localization field for 'No posts found' string.
  • When no posts are found, a 'No posts found'-string will be shown. If you do not want this message displayed, simply empty the corresponding localization field.
  • The categories-list is now sorted case-insensitive. Categories in Blogger are case-sensitive!
  • Added a category-filter to only show posts and an archive-list of specific categories. If you specify more than 1 categpry (comma-separated), only posts which have all specified categories will be listed.
  • Moved the common shared PHP code files to the side-wide assets folder.
    This means that you can clean-up the 'files' folders inside your blog-folders.
    To do this, first republish all your blog-pages with RW, then start your FTP client. Open your site folder, open the folder of the blog-page, open the 'files' or 'index_files' folder and delete all of the following files, when you see them there:
    • archiveMonths.xml
    • blogContents.php
    • blogEntry.php
    • blogspot.css
    • blogspot.js
    • bshelpers.inc
    • bspear.inc
    • bsremotegrab.inc
    • bsrequest.inc
    • bssocket.inc
    • bsurl.inc
    • bsxml.inc
    • feedtimeline.js
    • LHPEAR.php
    • localVars.php
    • rapidblog.js
    • rapidBlogHelpers.php
    • remoteGrab.php
    • Requestrb.php
    • Socketrb.php
    • URLrb.php
    • xmlrb.php
  • RSS feed link is a link again.
  • Various internal bugs fixed.
  • Updated the documentation on this page.

If you purchased this stack, you can re-download the installer via your Paddle account.
If not, you can read more about it here .
 Comments

The Blogspot Stack 1.1.4 for Stacks with RapidWeaver

 Permalink


Version 1.1.4 is out with the following changes:
Version 1.1.4
Released on 27 feb 2018.
  • Known issues with deprecated, removed and changed PHP calls from PHP v5.4 through v7.1 : fixed
  • Some other bugs fixed.
  • Added a checkbox 'Display errors on', which shows possible PHP warnings. Use it on your local machine and on your live site and then please report any warnings and errors you see (Deprecated: , Warning:, Notice:, Fatal error:), to me, with screen-shots. Then switch it of again.
  • Added YEAR-only option to archives. When selected, archive-links are shown as 1 link per year, and when 'Show archive count' is checked, with the number of posts per year.
  • Removed 'Show author' checkbox - you can swicth it on or off in the 'Alternate ordering'-settings.
  • Added the option to leave out blogpost-sections inside 'Alternate ordering'. If you don't want a certain section in your blogposts, check 'Alternate ordering' and choose the 'blank' option for that section.
  • Added the RSS feed link as a stack. Instead of being always on top of the blog, you can now place it anywhere you prefer, or use this code snippet: <?php renderRSSlink(); ?>
  • Included FontAwesome via Stacks API.
  • Cosmetic changes.
  • If you purchased this stack, you can re-download the installer via your Paddle account.
    If not, you can read more about it here .
     Comments

    The Blogspot Stack 1.1.3 for Stacks with RapidWeaver

     Permalink


    Version 1.1.3 is out with the following changes:
    Version 1.1.2
    Released on 23 feb 2018.
    Bug fixed when viewing a permalink.
    Permalinks now have the Google SEO name added to their URLs.
    Version 1.1.3
    Released on 23 feb 2018.
    You may now also enter the complete domain, like myblog.blogspot.nl, if you feel more comfortable about it.
    Domain check: if the domain you entered, doesn't exist, an error is displayed at the top of the page. In Preview and real-time mode.
    Some PHP4 code removed.
    Fixed E_STRICT and E_DEPRECATED errors. Not by simply switching error-reporting off, but really fixing the code!
    If you purchased this stack, you can re-download the installer via your Paddle account.
    If not, you can read more about it here .
     Comments

    The Blogspot Stack 1.1.1 for Stacks with RapidWeaver

     Permalink


    Version 1.1.1 is out with the following changes:
    Version 1.1.0
    Released on 21 feb 2018.
    Added 'In blog-entry footer (default)' to the Interblog-settings.
    Version 1.1.1
    Released on 22 feb 2018.
    Bug fixed in XML parser.
    Code improvements.
    If you purchased this stack, you can re-download the installer via your Paddle account.
    If not, you can read more about it here .

    After installing the update, you have to mark the page as changed and re-publish it, so the updated code files get uploaded to your server:



     Comments

    The Blogspot Stack for Stacks with RapidWeaver

     Permalink


    As a replacement for the old RapidBlog from Loghound , I created a replacement, named Blogspot.

    Although RapidBlog was a page-plugin for Realmac's RapidWeaver , my replacement is a stack, for use with YourHead's Stacks-plugin .

    Read all about it here

    The advantage now, is that:
    • You don't have to add new posts inside RapidWeaver. Blogger is much better for that purpose.
    • It's mobile-friendly
    • By using Stacks, you can place a Blogger-blog anywhere in the content-area of the page.
    • It's fast
    • No usernames and passwords required to login to Blogger.
    • Blogspot.stack displays any public accessible Blogspot-domain.

     Comments

    Copy DOM content to the clipboard with pure Javascript

     Permalink
    Of all the tips on the internet on how to copy data from a DOM element to the clipboard, I compiled my own function(s).

    The examples below are to copy the 'href'-part of  a link to an RSS feed to the clipboard.

    1. By class name, use the first found element
    function copyToClipboardCN(element, attr) {
    x = document.getElementsByClassName(element);
    if(x !== undefined && x !== null && x[0] !== undefined) {
    var textarea = document.createElement("textarea");
    document.body.appendChild(textarea);
    textarea.value = x[0][attr];
    textarea.select();
    var status = document.execCommand('copy');
    textarea.remove();
    }
    }

    2. By id
    function copyToClipboardID(element, attr) {
    x = document.getElementById(element);
    if(x !== undefined && x !== null) {
    var textarea = document.createElement("textarea");
    document.body.appendChild(textarea);
    textarea.value = x[attr];
    textarea.select();
    var status = document.execCommand('copy');
    textarea.remove();
    }
    }

    RSS feed link example with a class and an ID, using FontAwesome icons :

    <a class="blog-rss-link" href="https://macvos.blogspot.com/feeds/posts/default" rel="alternate" target="_blank" title="RSS Feed" type="application/rss+xml"><i class="fa fa-rss"> RSS Feed <i class="fa fa-copy" onclick="copyToClipboardCN('blog-rss-link', 'href')" style="cursor: pointer;" title="Copy RSS link to clipboard">

    <a id="blog-rss-link" href="https://macvos.blogspot.com/feeds/posts/default" rel="alternate" target="_blank" title="RSS Feed" type="application/rss+xml"><i class="fa fa-rss"> RSS Feed <i class="fa fa-copy" onclick="copyToClipboardID('blog-rss-link', 'href')" style="cursor: pointer;" title="Copy RSS link to clipboard">

    I have thought about combining the two functions into one, but i find that dangerous. In case you don't, here it is:
    function copyToClipboard(element, attr) {
    var x = document.getElementById(element);
    if(x === undefined || x === null) {
    x = document.getElementsByClassName(element);
    if(x !== undefined && x !== null && x[0] !== undefined) {
    x = x[0];
    }
    else {
    x = undefined;
    }
    }
    if(x !== undefined) {
    var textarea = document.createElement("textarea");
    document.body.appendChild(textarea);
    textarea.value = x[attr];
    textarea.select();
    var status = document.execCommand('copy');
    textarea.remove();
    }
    }
     Comments
    © 1997- Marc Vos (and others)   -   Privacy Statement   -    Contact Me