• I really gotta say, this is by far the best plugin’s plugin I have ever found in WP. It made me finally register in this website (but honestly, because I needed to to write this ;).

    I have been working with WP for a while now, using several different plugins.
    I was seeking for a plugin that would allow me to place custom blocks inside frontend pages.
    The thing is, sometimes the frontend pages need to be HTML code and in those cases, guys that don’t even bother to check the code, turn on the WP Visual editor and screw up everything (imagine carousels and all other Twitter Bootstrap stuff being wiped out by a single edit).
    So the goal is that when these guys click the edit page through the wp-admin, they actually only edit text/images parts without touching the page itself.

    So that led me to Magic Fields… Pure Magic really, I still am astonished. But it also led me to the great disappointment that it was only intended for backend templates usage… Until I did a search inside the WP search…. MMmmm what’s this toolkit all about?!….. HOLY…… BINGO! JACKPOT! HELL YEAH!

    So I’m happy ??

    To the DEVELOPER:

    • You used PHP 5.4 arrays’ syntax: [] and since I’m working with WAMP (that uses PHP 5.3 – array() ) several syntax errors appeared in the files when I tried to activate the plugin. I replaced all the occurrences with 5.3 syntax and it works fine. I was wondering why no one has voted/commented in this yet… Maybe more people had the same issue.
    • I suggest mentioning on your plugin’s page that you need to access the settings page through the dashboard menu in order to activate all the features, I found it through the WP page FAQ (because when you activate the plugin, the settings link doesn’t appear in the plugins page).
    • About the shortcode syntax, if I want to build something like carousel(image slider) items repeatedly:
      <div class="item">
        <img src="img.jpg"  alt="Img Alt" title="Img Title">
        <div class="carousel-caption">
          <h2>Img Title</h2>
          <p>Img Description</p>
        </div>
      </div>

      I need to copy and paste all these 5 shortcodes times the number of images the carousel has, like this:

      <!--First-->
      [show_custom_field field=carousel_image<1,1> before="<div class='item'><img src='" post_id=468]
      [show_custom_field field=carousel_title<1,1> before="' alt='" post_id=468]
      [show_custom_field field=carousel_title<1,1> before="' title='" after="'><div class='carousel-caption'><h2>" post_id=468]
      [show_custom_field field=carousel_title<1,1> after="</h2>" post_id=468]
      [show_custom_field field=carousel_description<1,1> before=<p> after=</p></div></div> post_id=468]
      <!--Second-->
      [show_custom_field field=carousel_image<1,2> before="<div class='item'><img src='" post_id=468]
      [show_custom_field field=carousel_title<1,2> before="' alt='" post_id=468]
      [show_custom_field field=carousel_title<1,2> before="' title='" after="'><div class='carousel-caption'><h2>" post_id=468]
      [show_custom_field field=carousel_title<1,2> after="</h2>" post_id=468]
      [show_custom_field field=carousel_description<1,2> before=<p> after=</p></div></div> post_id=468]
      <!--etc...-->

      I’m using the post_id because it’s outside the_loop. But it would be SPECTACULAR if I could use just one shortcode like this:

      [show_custom_field
       before="<div class='item'><img src='" field=carousel_image<1,*>
       before="' alt='<!--$content-->' title='<!--$content-->'><div class='carousel-caption'><h2>" field=carousel_title<1,*> after=</h2>
       before=<p> field=carousel_description<1,*> after=</p></div></div> post_id=468]

      Do you get it? Since you support invoking all group fields with GROUPNAME_*<i,*> why not supporting specific fields in specific positions inside one shortcode? And last but not least, reusing the field’s content (<!–$content–> similar to your <!–$F/field–> label/slug) for images titles and alts. It generates an awesome loop.

    • I haven’t found where the search feature was placed in the dashboard (from your documentation), can you detail where to access this?
    • The remove feature is fundamental IMO, but I noticed the thumbnails in the cache folder still remain in there after removing the image through the delete checked button. Also it would be a good reminder to mention in the documentation that the “image_media” field type does not place the files in the files_mf folder, so the only that affects it is “image” field type. For the interface itself of the remover, maybe https://jqueryui.com/accordion/ may help!
    • Have you considered talking to the MF guys in order to work directly on the plugin? I believe you all could boost up the plugin to an unsurpassable level. And you made your point clear, documentation is essential for this and they need documentation, specially in English. It would also be very helpful to understand your code better (commenting helps ??

    Great Job! Really! Thank you for this awesome work! ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Magenta Cuda

    (@magenta-cuda)

    Thanks for the feedback. It is the first and only that I have received. I had been concerned that there may have been some peculiar difference between my execution environment and other execution environments that allowed my application to work well for me but not so for others. It is really good to know that it does work for somebody else.

    I am relatively new to PHP – started using it Mar 2012 – so PHP 5.4 is the only version I know and did not appreciate the incompatibilities with earlier versions as much as I should have. I will replace the ‘[]’ with ‘array()’ as they are totally equivalent so I can easily get back compatibility.

    I think you are right the way to the Settings page is somewhat obscure. I will put a link on the plugins page also.

    The shortcode feature you have suggested is not easy to implement using the existing algorithm that I have. But I agree it would be extremely useful to have. I have away of doing this but it requires a different paradigm for the user. The current paradigm was chosen because it is very similar to how WordPress does things. Incidentally, the reason the feature is called “Dumb Shortcodes” is because I am also working on some “Smart Shortcodes” to do in particular the feature you want.

    The search feature is just a widget – look for “Search using Magic Fields” in the Appearance/Widgets page.

    image_media is the standard WordPress media type and can be handled using standard WordPress utilities so I did not include that functionality. The thumbnail cache error I was not aware of and I need to look into it.

    Magic Fields does not appear to be under active development – no new features have been added since the original release almost two years ago. I think it will slowly become obsolete. My real interest in this stuff is the custom field shortcodes and I think the shortcode stuff can be made to work on top of any reasonably capable custom field plugin. I am not sure that I will make another version after 0.4. In fact if you had not written this I would not have released the 0.4 version. I had stop development of 0.4 about 2 weeks ago and only restarted it today after reading your post.

    Many thanks for the feedback it is greatly appreciated.

    M.C.

    Plugin Author Magenta Cuda

    (@magenta-cuda)

    I have been thinking about your shortcode problem. It is very difficult to do the iteration you want with my existing code however a different facility may alleviate your problem. We can define a macro show_image:

    [show_custom_field field=carousel_image<1,$#index#> before="<div class='item'><img src='" post_id=$#id#]
    [show_custom_field field=carousel_title<1,$#index#> before="' alt='" post_id=$#id#]
    [show_custom_field field=carousel_title<1,$#index#> before="' title='" after="'><div class='carousel-caption'><h2>" post_id=$#id#]
    [show_custom_field field=carousel_title<1,$#index#> after="</h2>" post_id=$#id#]
    [show_custom_field field=carousel_description<1,$#index#> before=<p> after=</p></div></div> post_id=$#id#]

    Then invoke the macro with a shortcode

    [show_macro macro="show_image" index=1 id=468]
    [show_macro macro="show_image" index=2 id=468]
    [show_macro macro="show_image" index=3 id=468]

    I have coded a macro facility to do this and will put it in version 0.4.

    mc

    Thread Starter Beriem

    (@beriem)

    Wow! Awesome!

    It’s great to know that there will be a new version!! And those macros seem even better and simpler to use than my suggestion!
    I’m already using the shortcodes everywhere, but if these come out, I will certainly upgrade ??

    Also, TYVM for taking my feedback into the development!

    Still, I think the guys from MF would like to know that this plugin exists! This is a great improvement on their plugin and if they really have stopped their development, why not mentioning this plugin on their website?

    Hope that people start noticing this more!

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Awesome Toolkit! Shortcodes are Great!’ is closed to new replies.