Travers
Forum Replies Created
-
Forum: Plugins
In reply to: [RecipePress] [Plugin: RecipePress] How to delete the plural S in ingidients?Yeah, I should be more diligent when writing my instructions – I tend to assume that if you want to hake code you would know that it gets overwritten when you upgrade plugins, themes, etc.
I keep a top level folder outside public_html with copie of modified files (as my own backup) and also a “mods_log” text file which pretty much has instructions on what to look for for my changes and the actual change matching the version of plugin/theme…but that’s the Architect/Engineer in me taking control of me 😉
Good luck all, and hopefully the great support for this wonderful app will continue after grandslambert moves on…
Trav
Forum: Plugins
In reply to: [RecipePress] [Plugin: RecipePress] How to delete the plural S in ingidients?I have just spent the better part of this afternoon doing exactly this. My ‘sizes’ are in g, kg, etc and needed the exact same thing.
There are two ways you can do this.
1. Edit wp-content/plugins/recipe-press/includes/template_tags.php.
Find the line with “/* Convert size to plural if more than one */” (approx line 366) and comment out the if statement (5 lines worth). This will make the size display as you have entered it in the size settings. Only down side to this, it will not then ‘fix’ pluralisation when size is something like “cup”.
2. Edit /wp-content/plugins/recipe-press/includes/inflector.php
Add the terms you do not want to be pluralised into the array generated by “static function cacheUncountable()”. You can also use the static function cacheIrregular() in a similar way.
Option 2 means that you can still have pluralisation being used, but only on items that then make sense.
Hope this helps. I know my recipes now make more sense.
Cheers,
TravForum: Plugins
In reply to: [Custom Login] [Plugin: Custom Login] Frosty Network Feeds on Dashboard?Love the plugin – does just what I want it to do.
Only have a few issues with it – as above the shameless feeds within the admin functions and what seems to be an auto-hide function within the help components (not had time to look at that one, but it could just be my setup).
For the others interested in a simple way of removing Austin’s feeds, then edit the following file:
/wp-content/plugins/custom-login/library/admin/admin.phpSearch for the function custom_login_create_settings_meta_boxes()
Comment out (using a double slash eg: //) the meta boxes you don’t want. In my case, “Announcements” and “TheFrosty Network”.
Version 0.8.8 it happens to be the 2nd and the last items.
Keep up the good coding (from what I’ve seen it is VERY good), but dude, you gotta allow people to easily turn that stuff off.