WPIntell

Source evidence

Short Description

Plugins List · support · 2023-01-22T19:23:00+00:00

mixedsentiment
highseverity
0.94relevance
5replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

1 / 30 rows with source links

3.3% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

29 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
DigTek resolved
Hello, I have added a few lines of code to the plugin so I can offer a formatted list with a short description (1 line). Not sure if you have any interested in that mod, with a bit of tweak I am sure it could be integrated as a shortcode option as well. I’m not sure I quite understand what you’ve done, so if you’d like to share the code here I’ll happily take a look. Sorry, the changes made were to this function. I also wanted to skip a plugin, so added that bit, but the main thing was being able to offer a Short Description. My little hack works fine, but it was not immediately obvious how I could add the maximum length to the shortcode, like max_desc=140 rather than having it hard coded. <code> function replace_plugin_list_tags( $plugin_data, $format, $nofollow, $target ) { // SKIP PLUGIN BY NAME if ($plugin_data['Title'] == "Plugin Name") { unset($format); } // CREATE SHORT DESCRIPTION (truncate at first period or 140 characters) $pre_desc = explode('.', $plugin_data['Description']); $sho_desc = $pre_desc[0]; $pos=strpos($sho_desc, ' ', 140); $sho_desc = (strlen($sho_desc) > 140) ? substr($sho_desc,0,$pos).'...' : $sho_desc.'.'; $format = strtr( $format, array( '{{Title}}' => $plugin_data['Title'], '{{PluginURI}}' => $plugin_data['PluginURI'], '{{AuthorURI}}' => $plugin_data['AuthorURI'], '{{Version}}' => $plugin_data['Version'], '{{Description}}' => $plugin_data['Description'], '{{ShortDesc}}' => $sho_desc, '{{Author}}' => $plugin_data['Author'], '{{LinkedTitle}}' => "<a href='" . $plugin_data['PluginURI'] . "' title='" . $plugin_data['Title'] . "'" . $nofollow . $target . '>' . $plugin_data['Title'] . '</a>', '{{LinkedAuthor}}' => "<a href='" . $plugin_data['AuthorURI'] . "' title='" . $plugin_data['Author'] . "'" . $nofollow . $target . '>' . $plugin_data['Author'] . '</a>', '#Title#' => $plugin_data['Title'], '#PluginURI#' => $plugin_data['PluginURI'], '#AuthorURI#' => $plugin_data['AuthorURI'], '#Version#' => $plugin_data['Version'], '#Description#' => $plugin_data['Description'], '#Author#' => $plugin_data['Author'], '#LinkedTitle#' => "<a href='" . $plugin_data['PluginURI'] . "' title='" . $plugin_data['Title'] . "'" . $nofollow . $target . '>' . $plugin_data['Title'] . '</a>', '#LinkedAuthor#' => "<a href='" . $plugin_data['AuthorURI'] . "' title='" . $plugin_data['Author'] . "'" . $nofollow . $target . '>' . $plugin_data['Author'] . '</a>', '{{' => '<', '}}' => '>', '{' => '<', '}' => '>', ) ); return $format; } </code> This reply was modified 3 years, 4 months ago by DigTek . Thanks. Okay, now I understand what it is that you’re doing. Next question – why? Why do you need a short description? Personal preference I guess. I think the page is cleaner when all the items have a one line description. Some get long winded, but in most cases that one line does help explain what the plugin does when the title is not sufficient. I was just messing with some options mainly for my own use, but here is the page if you want to see why I like it that way. https://wpmain.elite-star-services.com/plugin-testing/ Thanks for the context – that’s really helpful. I’ll look to add something like this, with the option to specify length. https://github.com/dartiss/plugins-list/issues/41

Comments

5 shown
David Artiss 2023-01-23T07:20:00+00:00

I’m not sure I quite understand what you’ve done, so if you’d like to share the code here I’ll happily take a look.

DigTek 2023-01-23T13:53:00+00:00

Sorry, the changes made were to this function. I also wanted to skip a plugin, so added that bit, but the main thing was being able to offer a Short Description. My little hack works fine, but it was not immediately obvious how I could add the maximum length to the shortcode, like max_desc=140 rather than having it hard coded. <code> function replace_plugin_list_tags( $plugin_data, $format, $nofollow, $target ) { // SKIP PLUGIN BY NAME if ($plugin_data['Title'] == "Plugin Name") { unset($format); } // CREATE SHORT DESCRIPTION (truncate at first period or 140 characters) $pre_desc = explode('.', $plugin_data['Description']); $sho_desc = $pre_desc[0]; $pos=strpos($sho_desc, ' ', 140); $sho_desc = (strlen($sho_desc) > 140) ? substr($sho_desc,0,$pos).'...' : $sho_desc.'.'; $format = strtr( $format, array( '{{Title}}' => $plugin_data['Title'], '{{PluginURI}}' => $plugin_data['PluginURI'], '{{AuthorURI}}' => $plugin_data['AuthorURI'], '{{Version}}' => $plugin_data['Version'], '{{Description}}' => $plugin_data['Description'], '{{ShortDesc}}' => $sho_desc, '{{Author}}' => $plugin_data['Author'], '{{LinkedTitle}}' => "<a href='" . $plugin_data['PluginURI'] . "' title='" . $plugin_data['Title'] . "'" . $nofollow . $target . '>' . $plugin_data['Title'] . '</a>', '{{LinkedAuthor}}' => "<a href='" . $plugin_data['AuthorURI'] . "' title='" . $plugin_data['Author'] . "'" . $nofollow . $target . '>' . $plugin_data['Author'] . '</a>', '#Title#' => $plugin_data['Title'], '#PluginURI#' => $plugin_data['PluginURI'], '#AuthorURI#' => $plugin_data['AuthorURI'], '#Version#' => $plugin_data['Version'], '#Description#' => $plugin_data['Description'], '#Author#' => $plugin_data['Author'], '#LinkedTitle#' => "<a href='" . $plugin_data['PluginURI'] . "' title='" . $plugin_data['Title'] . "'" . $nofollow . $target . '>' . $plugin_data['Title'] . '</a>', '#LinkedAuthor#' => "<a href='" . $plugin_data['AuthorURI'] . "' title='" . $plugin_data['Author'] . "'" . $nofollow . $target . '>' . $plugin_data['Author'] . '</a>', '{{' => '<', '}}' => '>', '{' => '<', '}' => '>', ) ); return $format; } </code> This reply was modified 3 years, 4 months ago by DigTek .

David Artiss 2023-01-23T20:25:00+00:00

Thanks. Okay, now I understand what it is that you’re doing. Next question – why? Why do you need a short description?

DigTek 2023-01-23T20:46:00+00:00

Personal preference I guess. I think the page is cleaner when all the items have a one line description. Some get long winded, but in most cases that one line does help explain what the plugin does when the title is not sufficient. I was just messing with some options mainly for my own use, but here is the page if you want to see why I like it that way. https://wpmain.elite-star-services.com/plugin-testing/

David Artiss 2023-01-24T07:28:00+00:00

Thanks for the context – that’s really helpful. I’ll look to add something like this, with the option to specify length. https://github.com/dartiss/plugins-list/issues/41