Jump to content

Archived

This topic is now archived and is closed to further replies.

mckdesign

Grid Shortcodes discontinued?

Recommended Posts

mckdesign    3
mckdesign

Hi. Is Grid Shortcodes discontinued? I ran an update to 1.2.1 in my Store, but that resulted in errors on my website pages. Consequently, I restored version 1.2. I no longer see the plug-in in the store on the PL site, making me wonder if you've pulled it.

 

Mostly just curious at this point, but knowing more about the plug-in's future will help me map out how I'm setting up pages with HTML-fearing authors in mind.

 

Thanks!

Share this post


Link to post
Share on other sites
evan    0
evan

No it's not discontinued!

 

I see that it does not appear to be showing on the website as well, I'll need to contact them about it.

 

1.2.1 is the DMS ready release.  What were the errors you were seeing?

Share this post


Link to post
Share on other sites
mckdesign    3
mckdesign

Hi, Evan. Glad to know it's not. I assume from your comment that it's DMS-only -- I get an error on trying to run the updater. "Fatal Error! The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature." It's also missing from the PL website store.

 

I may have to not use it anyhow, as I get a consistent issue where the first para block in a [span] block isn't wrapped in a P tag, and it's followed by a blank P/CloseP line. If I could get beyond that, it makes the website updates a lot simpler for my editors.

 

Thanks for the fast response.

Share this post


Link to post
Share on other sites
mckdesign    3
mckdesign

Sure. To give you background, I'm running PL 2.4.4 with a child theme, on WordPress 3.6. Grid Shortcodes version 1.2 (since I'm not using DMS until the bug work out :)

 

When I add grids to my Pages using plain Bootstrap divs, all's good. I've tried with and without pl_raw shortcode (with it is stripping ALL autop), all to no avail. You'll see that in the published page, the first line of copy after the div isn't enclosed within a P tag.

 

Here's a snippet of what I've got in the Page editor:

<h1>Leverage Advanced Technology to Simplify Adherence</h1>
[row]
[span8]

11% of Americans take more than five meds a day, and fewer than 50% of them take their meds as prescribed. Helping your patients know what to take next — and when to take it — is an ideal way to help patients who takes multiple medications regularly, such as independent seniors, the chronically ill, frequent travelers and children at school or camp.
<h3>Parata PASS<sup>TM</sup> (Patient Adherence Strip System)</h3>
With Parata PASS, you make it easy for patients to take the right medications at the right time, every time. Prescriptions, over-the-counter medications and vitamins can be packaged together, organized by day and time of dose in clear, plastic packets.

Here's what I get on my published page (pulled from Firebug):

<h1>Leverage Advanced Technology to Simplify Adherence</h1>

<div class="row">
<div class="span8">
11% of Americans take more than five meds a day, and fewer than 50% of them take their meds as prescribed. Helping your patients know what to take next — and when to take it — is an ideal way to help patients who takes multiple medications regularly, such as independent seniors, the chronically ill, frequent travelers and children at school or camp.
<p></p>
<h3>
Parata PASS
<sup>TM</sup>
(Patient Adherence Strip System)
</h3>
<p>With Parata PASS, you make it easy for patients to take the right medications at the right time, every time. Prescriptions, over-the-counter medications and vitamins can be packaged together, organized by day and time of dose in clear, plastic packets.</p>

I've tried some wpautop filters with no luck. Need more info or code samples? Many thanks for looking into it.

Tim

Share this post


Link to post
Share on other sites
evan    0
evan

I see what you mean.  Could you provide the GS code for the whole grid you are doing there?  You can just drop it in a paste.pagelines.com and post the url.

 

I think the problem has to do with wpautop but I'll see if there is something that can be done about it.

Share this post


Link to post
Share on other sites
mckdesign    3
mckdesign

Hi, Evan. Here's the link for the paste:  http://paste.pagelines.com/8d2

 

I included everything that I've got in the edit window.

 

In addition, I've done another paste with both wpautop fixes that I'd found (neither seems to do the trick -- one is commented out now, I've tried swapping which one is active, and neither active):  http://paste.pagelines.com/2sj

Share this post


Link to post
Share on other sites
evan    0
evan

Hey mckdesign,

 

Just wanted to let you know that I just pushed an update for Grid Shortcodes (1.2.2) that I think will take care of this :)

 

Let me know what happens!

Share this post


Link to post
Share on other sites
mckdesign    3
mckdesign

Hi, Evan. Thanks for the update.

 

I refreshed my store but it's still showing 1.2.1 -- does it take a while to propagate? Or do I need to manually DL and install (or is it detecting that I'm not on DMS?)

Share this post


Link to post
Share on other sites
evan    0
evan

It may be due to a bug that has been found in the auto-update system.  Although that fix is not included in the latest version yet, it will be in 1.0.3.

 

I have verified that the downloaded package for GS is the new version, so if you do a manual upgrade, you'll get the latest.

 

I would just deactivate and delete the installed GS and reinstall through DMS - you should get 1.2.2!

Share this post


Link to post
Share on other sites
mckdesign    3
mckdesign

Much better, Evan. Thanks! I combine that with

// Prevents Shortcodes from adding blank P tags
remove_filter( 'the_content', 'wpautop' );
add_filter( 'the_content', 'wpautop' , 99);

and it's working. It does add an empty P with a display style of none, but at least all my paragraph text is wrapped with P tags now. Thanks again!

Share this post


Link to post
Share on other sites
evan    0
evan

Great!  (I hope so because I tested it with your code!)

 

Your extra code there really shouldn't be necessary.  Have you tried it without?  I took this into consideration when developing the plugin.  The plugin shortcodes are not your average shortcodes, so I'm not even sure the filter priority change is going to make a difference.

 

The empty <p style="display:none;"></p> IS the fix.  It's essentially tricking wpautop to wrap the following first block of code in a paragraph if necessary. The element is not displayed of course and is only at the beginning of each spanX tag.

 

Glad to know all is good now!

Share this post


Link to post
Share on other sites
mckdesign    3
mckdesign

Hey, Evan. To follow up and close this out, all's good. I figured out a workaround with my CSS to target nth-child, so I'm set. Thanks so much for keeping on this.

Share this post


Link to post
Share on other sites

  • Similar Content

    • caspersjan
      By caspersjan
      Dear Pagelines, dear Evan,
       
      Grid Shortcodes is doing its simple work solidly, it probably never gets much praise. I am glad that it has been continued through all of Pagelines iterations since it arrived on the scene!
       
      However now I have a problem I fail to understand. I thought the spans can add up to 12. I am trying to achieve a three column set-up, like this:
       
      [row] [span8]Text[/span8] [span2]Text[/span2] [span2]Text[/span2] [/row]   But it breaks, i.e. the third column is put on a new page. If I try this it doesn't work either:   [row] [span3]Text[/span3] [span3]Text[/span3] [span3]Text[/span3] [/row]   Am I doing something wrong or leaving something out? You can see the page here: http://animatinglibraries.com/wordpress/?p=247 (underneath the second <hr> divider, "Report"/"Group size"/"Sessions") For a practical fix I used this solution - just making the wide column narrower:   [row] [span7]Text[/span7] [span2]Text[/span2] [span2]Text[/span2] [/row]   But I'd like to use the whole line - without the margin at the front and end that the 7/2/2 solution entails. Maybe you can help - I am as ever grateful for your assistance.   Yours faithfully, Jan.        
    • jamieg270
      By jamieg270+
      Hi Grid shortcodes don't seem to be working when nested. I am using DMS 2.0.5 I have deactivated all plugins leaving just the Paglines Updater, DMS Professional and Grid SHortcodes.
       
      This is my shortecode:
      [row] [span6] content here [/span6] [span6] [row_a] [span6] content here [/span6] [span6] content here [/span6] [/row_a] [/span6] [/row] Is there something I'm doing wrong? I've used this before on DMS v1.x.x without problems....
       
      I can't show you the result the file size for upload is too small to be able to attach the image!! However the [/row_a] and then [/span6] are being rendered in text on the page and the second nested column gets set as if its in its own row below the first. I don't have another DMS install to test this is so I'm not sure its reproducible. 
       
      I'm going to have to add the columns in using divs and classes as the client needs to see this tomorrow. 
       
      If I get the chance I'll set up a separate install to test aqain and give you an example to look at.
    • dchetson
      By dchetson+
      Trying to sue grid shortcodes to create nested columns. Really dumb question, but where do you enter the shortcodes? Tried in the CSS area but that doesn't seem to work.
    • rpacker
      By rpacker
      I have installed the Grid Shortcodes plugin for Framework and the documentation links for Evan Mattson are broken.  Is there any documentation still online? Is this plugin no longer intended to be used? I can't seem to find a user interface for the shortcodes, that is, if there is one.
       
      Thanks.
    • jamieg270
      By jamieg270+
      Hi,
       
      I installed Grid Shortcodes as I thought it would be easier for my client to use when using columns. However I'm now getting a php error wherever I use them.
       
      Warning: array_map() [function.array-map]: Argument #2 should be an array in /home/cypherde/public_html/pfc/site/wp-content/plugins/grid-shortcodes/grid-shortcodes.php on line 102

      Warning: array_map() [function.array-map]: Argument #2 should be an array in /home/cypherde/public_html/pfc/site/wp-content/plugins/grid-shortcodes/grid-shortcodes.php on line 102

      Warning: array_map() [function.array-map]: Argument #2 should be an array in /home/cypherde/public_html/pfc/site/wp-content/plugins/grid-shortcodes/grid-shortcodes.php on line 102
       
      You can see this at http://pfc.cypher-design.net/site on the first tab on the feature box.
       
      The feature box is custom code I've added into a custom section using a custom post type so the client cn update the tabs without my input.
       
      Any insight into the cause would be great.
       
      Thanks!
×