Hello,
I just noticed the plugin no longer works. It shows the but you can not see the detail view/page of each one.
Any ideas?
In action: https://php.quicoto.com/wordpress-plugins/
Plugin list template:
<p>A list of my WordPress plugins hosted on www.ads-software.com</p>
<p>Try them out and let me know what you think!</p>
[implist]
[box]<a class="cws-imp-plugin-title" href="[implist_url]">[implist_name]</a>
<p class="cws-imp-plugin-description">[implist_desc]</p>
[/box]
[/implist]
Plugin template:
[box type="download"]Latest version: <a href="[imp_zip_url]">Download <b>[imp_name]</b> v[imp_version]</a> ([imp_downloads] downloads)[/box]
[box type="info"]<a href="https://www.ads-software.com/plugins/[imp_slug]/" target="_blank">For Support, view on www.ads-software.com</a>[/box]
<h3>Description</h3>
[imp_full_desc]
<h3>Screenshots</h3>
[imp_screenshots]
[if_imp_installation]
<h3>Installation</h3>
[imp_installation]
[/if_imp_installation]
[if_imp_faq]
<h3>FAQ</h3>
[imp_faq]
[/if_imp_faq]
[if_imp_changelog]
<h3>Changelog</h3>
[imp_changelog]
[/if_imp_changelog]
]]>
Looks like many shortcodes started failing. For example, in the Plugin List template I try:
<img src="[implist_banner-772x250]" style="max-width:100%;height:auto" alt="[implist_name]" />
but [implist_banner-772×250] return nothing while [implist_name] returns the List pages own name, not the plugin name.
However, when I place [implist_banner-772x250]
on its own on a new line, it will show the URL correctly.
Strangly, the code below using [implist_name]
again, does show each plugins name correctly while the URL is wrong:
<h1 class="entry-title"><a class="cws-imp-plugin-title" href="[implist_url]">[implist_name]</a></h1>
]]>
Hi Mark,
Looking to extend this fantastic plugin a bit further, I’d like to share my mod to pull those shiny golden rating stars ??
In function shortcode()
I added:
case 'imp_rating' :
return isset( $this->readme->rating ) ? round( (float)$this->readme->rating / 20, 1 ) : '';
break;
case 'imp_rating_100' :
return isset( $this->readme->rating ) ? round( (float)$this->readme->rating , 1 ) : '';
break;
case 'imp_num_ratings' :
return isset( $this->readme->num_ratings ) ? $this->readme->num_ratings : '';
break;
In the $shortcodes array
in function plugin()
I added:
'imp_rating', 'imp_rating_100', 'imp_num_ratings',
That is really all that is needed!
This allows me to use in the template for example:
<div style="height:17px;width:92px;background:url('https://www.ads-software.com/extend/plugins-plugins/bb-ratings/stars.png?19') repeat-x bottom left;"><div style="height:17px;width:[imp_rating_100]%;float:left;text-indent:100%;overflow:hidden;white-space:nowrap;background:url('https://www.ads-software.com/extend/plugins-plugins/bb-ratings/stars.png?19') repeat-x top left;" title="Rated [imp_rating] out of 5 stars">[imp_rating] out of 5 stars</div>
</div>
<p itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating"><strong>Rating:</strong> [imp_rating] out of 5 stars
<strong># Votes:</strong> [imp_num_ratings]<meta itemprop="ratingValue" content="[imp_rating]"><meta itemprop="reviewCount" content="[imp_num_ratings]"><span itemprop="offers" itemscope itemtype="https://schema.org/Offer"><meta itemprop="price" content="0" /><meta itemprop="url" content="[imp_url]" /></p>
This not only puts it into words but also creates the stars visual plus allows some fancy microdata to let Google know about it too!
If you’ve got this plugin on Github just let me know and I’ll go and create a pull request ??
]]>I have a couple of short codes mentioned in the installation part of the plugin section on the www.ads-software.com site, when this part of the text is on my site because I am using my own plugins on my site its replacing the short codes with the output from the plugin, when I would prefer it not to so its showing the installation instructions as it does on the www.ads-software.com site, I am not sure how this would be made possible.
]]>Hi Mark,
Don’t think you are monitoring the I Make Plugins support forum (I’ll add a tag too, maybe you are monitoring the tags page) but here goes anyway:
For a while now, the Plugin container page does not show the plugin list anymore. Turns out that it is since I had activated Jetpack!
Not sure if it any particular Jetpack module. Have not tested that yet…
Will update if I find out more ??
Allard
]]>Thanks for a very useful plugin.
Please add at line 374 (just before the shortcode_implist() return)
wp_reset_postdata();
Currently the plugin does not reset the query after getting the list of plugins. As a result, any comments left on the page where I put the plugin list shortcode go to the page for the last plugin listed.
Resetting the postdata will return the loop to the current page and comments will find their way to the right post.
I added the reset at line 210 (in update_plugins()) as well, just to be sure.
thanks,
Keith
]]>Hi
on this page, I just copy/pasted your template code into the HTML pane.
https://wpconsult.net/plugins/
but its showing two lists, the second one is broken
what did I do wrong?
To show the page content, edit line 330 to comment out $content = '';
.
Instead of $content = '';
it should look like #$content = '';
That will allow you to add your own page content.
]]>Hi Mark
Firstly, thanks for an awesome plugin! It saved me hours of work and it worked perfectly. I did need some changes that I thought I would share here and you can decide if you would like to implement them into the next version.
Here are my changes:
Here is the code:
https://pastie.org/1612700
cheers
Brad
Could you add an option (or a shortcode) to display the normal page content either before or after the I-make-plugins template?
]]>