<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/rss-style.css?cache=2026-11-13T15:19:59+00:00" type="text/css"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	     xmlns:dc="http://purl.org/dc/elements/1.1/"
	   xmlns:atom="http://www.w3.org/2005/Atom"
	     xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	  xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>
<html:meta xmlns:html="http://www.w3.org/1999/xhtml" name="viewport" content="width=device-width" />
<channel>
	<title>plugins &#8211; Terence Eden’s Blog</title>
	<atom:link href="https://shkspr.mobi/blog/tag/plugins/feed/" rel="self" type="application/rss+xml" />
	<link>https://shkspr.mobi/blog</link>
	<description>Regular nonsense about tech and its effects 🙃</description>
	<lastBuildDate>Wed, 16 Oct 2024 07:42:45 +0000</lastBuildDate>
	<language>en-GB</language>
	<copyright>© Terence Eden. 🄯 CC BY-SA. See https://shkspr.mobi/blog/copyright-and-copyleft/</copyright>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>

<image>
	<url>https://shkspr.mobi/blog/wp-content/uploads/2023/07/cropped-avatar-32x32.jpeg</url>
	<title>plugins &#8211; Terence Eden’s Blog</title>
	<link>https://shkspr.mobi/blog</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title><![CDATA[WordPress GeSHi Highlighting for Markdown]]></title>
		<link>https://shkspr.mobi/blog/2024/05/wordpress-geshi-highlighting-for-markdown/</link>
					<comments>https://shkspr.mobi/blog/2024/05/wordpress-geshi-highlighting-for-markdown/#respond</comments>
				<dc:creator><![CDATA[Terence Eden]]></dc:creator>
		<pubDate>Wed, 01 May 2024 11:34:46 +0000</pubDate>
		<category><![CDATA[markdown]]></category><category><![CDATA[PHP]]></category><category><![CDATA[plugins]]></category><category><![CDATA[WordPress]]></category>		<guid isPermaLink="false">https://shkspr.mobi/blog/?p=50390</guid>

		
		<description>I've launched a WordPress Plugin for an extremely niche use-case.  WP GeSHi Highlight Redux works with WordPress's Classic Editor to convert Markdown to syntax highlighted code.  That allows me to write:  ```php $a = "Hello"; $b = 5 * 2; echo $a . str($b); ```   And have it displayed as:  $a = "Hello"; $b = 5 * 2; echo $a . str($b);   I've previously written about the WP GeSHi Highlight plugin.…</description>
			
		<content:encoded>&lt;p&gt;I've launched a WordPress Plugin for an &lt;em&gt;extremely&lt;/em&gt; niche use-case.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/edent/WP-GeSHi-Highlight-Redux/"&gt;WP GeSHi Highlight Redux&lt;/a&gt; works with WordPress's Classic Editor to convert Markdown to syntax highlighted code.&lt;/p&gt;

&lt;p&gt;That allows me to write:&lt;/p&gt;

&lt;pre&gt;```php
$a = "Hello";
$b = 5 * 2;
echo $a . str($b);
```
&lt;/pre&gt;

&lt;p&gt;And have it displayed as:&lt;/p&gt;

&lt;pre&gt;&lt;code class="language-php"&gt;$a = "Hello";
$b = 5 * 2;
echo $a . str($b);
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I've previously written about the &lt;a href="https://shkspr.mobi/blog/2024/04/server-side-rendering-of-embedded-markdown-code-snippets/"&gt;WP GeSHi Highlight plugin&lt;/a&gt;. My plugin is a fork of that. It has the following changes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;RSS &amp;amp; Atom feeds - disable code highlighting&lt;/li&gt;
&lt;li&gt;Remove extra style wrappers&lt;/li&gt;
&lt;li&gt;Markdown support&lt;/li&gt;
&lt;li&gt;Remove line-numbers&lt;/li&gt;
&lt;li&gt;Remove escape option (escape now permanent)&lt;/li&gt;
&lt;li&gt;Remove TinyMCE changes&lt;/li&gt;
&lt;li&gt;Remove custom CSS options&lt;/li&gt;
&lt;li&gt;Improve default CSS&lt;/li&gt;
&lt;li&gt;Improve HTML detection&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These changes work for me, with my weird blogging set-up. If they work for you, feel free to use it. If they don't work for you, please fork and write your own code.&lt;/p&gt;

&lt;p&gt;You can &lt;a href="https://github.com/edent/WP-GeSHi-Highlight-Redux/"&gt;download WP GeSHi Highlight Redux&lt;/a&gt; or &lt;a href="https://gehrcke.de/wp-geshi-highlight/"&gt;get the original plugin&lt;/a&gt;.&lt;/p&gt;
&lt;img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=50390&amp;amp;HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager"&gt;</content:encoded>
	

					<wfw:commentRss>https://shkspr.mobi/blog/2024/05/wordpress-geshi-highlighting-for-markdown/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title><![CDATA[HOWTO: Remove the Blubrry PowerPress "New!" Banner]]></title>
		<link>https://shkspr.mobi/blog/2022/10/howto-remove-the-blubrry-powerpress-new-banner/</link>
					<comments>https://shkspr.mobi/blog/2022/10/howto-remove-the-blubrry-powerpress-new-banner/#respond</comments>
				<dc:creator><![CDATA[Terence Eden]]></dc:creator>
		<pubDate>Sun, 16 Oct 2022 11:34:19 +0000</pubDate>
		<category><![CDATA[blogging]]></category><category><![CDATA[HowTo]]></category><category><![CDATA[plugins]]></category><category><![CDATA[WordPress]]></category>		<guid isPermaLink="false">https://shkspr.mobi/blog/?p=43730</guid>

		
		<description>The best thing about WordPress is the plugin infrastructure. A million little gadgets to make your blog better.  Sadly, there are all sorts of ways plugin authors can abuse their privileges. Dodgy code and user-hostile features sometimes make plugins more trouble than they're worth.  Recently, the normally excellent Blubrry PowerPress plugin pissed me off. It's a useful plugin for publishing…</description>
			
		<content:encoded>&lt;p&gt;The best thing about WordPress is the plugin infrastructure. A million little gadgets to make your blog better.&lt;/p&gt;

&lt;p&gt;Sadly, there are all sorts of ways plugin authors can abuse their privileges. Dodgy code and user-hostile features sometimes make plugins more trouble than they're worth.&lt;/p&gt;

&lt;p&gt;Recently, the normally excellent &lt;a href="https://wordpress.org/plugins/powerpress/"&gt;Blubrry PowerPress plugin&lt;/a&gt; pissed me off. It's a useful plugin for publishing podcasts on WordPress.  They had a new feature - some kind of embedded audio player - and introduced it with a "New!" banner on the main menu.&lt;/p&gt;

&lt;img src="https://shkspr.mobi/blog/wp-content/uploads/2022/10/Screenshot-2022-10-16-at-10-59-38-Edit-Plugins-‹-Terence-Edens-Blog-—-WordPress.png" alt="WordPress menu. There is a distracting badge with a white background and red text." width="210" height="247" class="aligncenter size-full wp-image-43731"&gt;

&lt;p&gt;That's... Fine I guess. You have to let people know about new features. And it wasn't too obnoxious.  I took a look at their new stuff and decided it wasn't for me.  I expected the banner to disappear.&lt;/p&gt;

&lt;p&gt;It did not.&lt;/p&gt;

&lt;p&gt;Look, this is a trivial thing but annoying to me. The red text on a white background is designed to be noticeable. And I kept noticing it while I was writing. Because it is a bit distracting. I &lt;a href="https://wordpress.org/support/topic/remove-the-new-banner/"&gt;asked in their support forums about removing it&lt;/a&gt; - but they said it would stay until a future update.&lt;/p&gt;

&lt;p&gt;Well, the best thing about WordPress is that the plugins are hackable! There's a build in code editor which lets you change the functions of any plugin.&lt;/p&gt;

&lt;p&gt;So I found where the "New!" banner was coded - &lt;code&gt;powerpressadmin.php&lt;/code&gt; line 5282 and changed:&lt;/p&gt;

&lt;pre&gt;&lt;code class="language-php"&gt;return '&amp;lt;sup style="'.$style.'"&amp;gt;'. __('New!', 'powerpress') .'&amp;lt;/sup&amp;gt;';
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;to&lt;/p&gt;

&lt;pre&gt;&lt;code class="language-php"&gt;return '';
&lt;/code&gt;&lt;/pre&gt;

&lt;img src="https://shkspr.mobi/blog/wp-content/uploads/2022/10/Screenshot-2022-10-16-at-11-00-06-Edit-Plugins-‹-Terence-Edens-Blog-—-WordPress.png" alt="Screenshot of a code listing." width="1163" height="295" class="aligncenter size-full wp-image-43732"&gt;

&lt;p&gt;Hit save, refreshed the page, and the annoying thing was banished.&lt;/p&gt;

&lt;p&gt;Maybe it'll come back in a future update. And maybe I'll fix it again. Or maybe I'll disable auto-updates. Or maybe I'll remove the plugin. Or maybe Blubrry will realise that annoying users isn't a great strategy.&lt;/p&gt;

&lt;p&gt;Either way, if that's been bugging you, I hope you found this blog post to be useful.&lt;/p&gt;
&lt;img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=43730&amp;amp;HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager"&gt;</content:encoded>
	

					<wfw:commentRss>https://shkspr.mobi/blog/2022/10/howto-remove-the-blubrry-powerpress-new-banner/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title><![CDATA[Why I Love Open Source]]></title>
		<link>https://shkspr.mobi/blog/2009/12/why-i-love-open-source/</link>
					<comments>https://shkspr.mobi/blog/2009/12/why-i-love-open-source/#comments</comments>
				<dc:creator><![CDATA[Terence Eden]]></dc:creator>
		<pubDate>Sun, 06 Dec 2009 12:31:57 +0000</pubDate>
		<category><![CDATA[Open Source]]></category><category><![CDATA[PHP]]></category><category><![CDATA[plugins]]></category><category><![CDATA[WordPress]]></category><category><![CDATA[wpmp]]></category>		<guid isPermaLink="false">http://shkspr.mobi/blog/?p=1336</guid>

		
		<description>There are many reasons to love Open Source Software.  It's free (as in you pay nothing), it's free (as in speech) and - perhaps my favourite reasons - it's free (as in liberating).  By liberating, I mean that one isn't tied down to the product roadmap and release schedule of the developers.  If I find a bug, not only can I report it, I can fix it myself.  If I can't fix it myself, I can often fi…</description>
			
		<content:encoded>&lt;p&gt;There are many reasons to love &lt;a href="http://www.opensource.org/"&gt;Open Source Software&lt;/a&gt;.&amp;nbsp; It's free (as in you pay nothing), it's free (as in speech) and - perhaps my favourite reasons - it's free (as in liberating).&lt;/p&gt;

&lt;p&gt;By liberating, I mean that one isn't tied down to the product roadmap and release schedule of the developers.&amp;nbsp; If I find a bug, not only can I report it, I can fix it myself.&amp;nbsp; If I can't fix it myself, I can often find someone to fix it for me.&lt;/p&gt;

&lt;p&gt;Imagine writing to MicroSoft and saying "Please can you make this change to Office - just for me?"&amp;nbsp; If you ever got a response, it would be "No".&amp;nbsp; To be fair, you may also get the same reply from &lt;a href="http://www.openoffice.org/"&gt;OpenOffice&lt;/a&gt; - the free replacement for MicroSoft Office - but because OpenOffice is Open Source, you can scratch the itch yourself.&lt;/p&gt;

&lt;p&gt;If your itch-scratching is useful, others will benefit from it.&amp;nbsp; If you are the only one benefiting from it, so what? You're happier and more productive.&lt;/p&gt;

&lt;p&gt;I use &lt;a href="http://wordpress.org/extend/plugins/wordpress-mobile-pack/"&gt;WordPress Mobile Pack&lt;/a&gt;.&amp;nbsp; It creates a mobile version of this blog.&amp;nbsp; It's a very easy to use and very powerful plugin.&lt;/p&gt;

&lt;p&gt;Unfortunately, like all software, it has bugs.&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;&lt;div id="attachment_1337-2" style="width: 490px" class="wp-caption aligncenter"&gt;&lt;img aria-describedby="caption-attachment-1337-2" class="size-full wp-image-1337" title="WPMP Bug" src="https://shkspr.mobi/blog/wp-content/uploads/2009/12/Capture11_43_16.jpg" alt="WPMP Bug" width="480" height="320"&gt;&lt;p id="caption-attachment-1337-2" class="wp-caption-text"&gt;WPMP Bug&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;

&lt;p&gt;What you're seeing in the screenshot is WPMP picking up a shortcode and, rather than ignoring it, rendering it as human readable text within the teaser.&amp;nbsp; It's ugly and confusing.&lt;/p&gt;

&lt;p&gt;So, I &lt;a href="https://www.assembla.com/spaces/wordpress-mobile-pack/tickets/60-Teaser-shows-shortcode-tags"&gt;raised a bug report&lt;/a&gt; and though "I bet I can fix this!".&amp;nbsp; Now, I'm not the world's most talented programmer - but with my knowledge of PHP and WordPress plugin architecture, I was able to locate the problem, fix it, test it and deploy it within half an hour.&lt;/p&gt;

&lt;pre&gt;if(strpos($content, '[')!==false)
{
   $content = "Read more";
}&lt;/pre&gt;

&lt;p&gt;That's it.&amp;nbsp; Judicouly applied in the correct place made my problems disappear.&lt;/p&gt;

&lt;p&gt;So, that's why I love Open Source.&amp;nbsp; It places my destiny in my hands.&lt;/p&gt;
&lt;img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=1336&amp;amp;HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager"&gt;</content:encoded>
	

					<wfw:commentRss>https://shkspr.mobi/blog/2009/12/why-i-love-open-source/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
