Johan Steen
Forum Replies Created
-
JChandlermsw: I want to be very clear with that this is a free, non-paid for plugin, so per definition there exists no customers for this plugin and by that there can also by definition not exist any customer service.
Anyway, back to your request. I am not familiar with WPML, but I’ll take a look and see what it is, and add your request to possible additions for the next version.
Cheers,
JohanThe option should be at the absolute bottom of the settings page, if you don’t see it, make sure you are running the latest version of the plugin (v1.6).
Cheers,
JohanThe download package are dynamically generated by WordPress on download and out of my control. Probably something temporary, which a redownload would fix.
Cheers,
JohanThanks for the find. I’ve now fixed this by rearranging the buttons to make sure that update action has priority.
Cheers,
JohanThe latest version (1.9.7) should have this fixed.
Cheers,
JohanYes, you can use the include command in a snippet and combine it with variables.
the php tags shouldn’t be used though, and php’s include function can’t include over the http:// protocol so you need to use the file system path to the file you want to include.
So something like this should do it (shortcode snippet with the php flag set):
include("/file/system/{directory-name}/to/file.php");Cheers,
JohanIt was AMPERSANDSIGNnbsp;
Thanks, I made an update to the escaping, which I believe should fix this.
There’s now some new/changed functionality in trunk. Use of POST_SNIPPETS_RENDERED_OVERVIEW definition is deprecated and removed from the code. Instead each user can now set their own option. At the top of the snippets overview page there is now a checkbox to toggle between rendered/code output. And the setting is saved per user.
Using POST_SNIPPETS_RENDERED_OVERVIEW variable isn’t set in stone. Perhaps it should be a per user setting instead. I can store it in the user meta data. So each user have a toggle as you suggested. I’ll give it a go.
I believe the character displaying as text instead of a space got displayed as space here :), which character is the problematic one?
I just checked in a small modification to trunk where do_shortcode() is enabled as well if you have set render output to true. So shortcodes in snippets are executed in the overview.
Okay, I made a little test with the latest version in trunk. By using a global definition you can decide per site if you want the overview to have rendered snippets or displayed as code.
Default is displayed as code, to avoid any breakage of the page, but if you have snippets that your want to have them rendered instead you can add this definition somewhere. Preferably just put it at the top of your functions.php for the theme.
define( 'POST_SNIPPETS_RENDERED_OVERVIEW', true );That could perhaps work as a solution to decide how to display them without adding extra options to the main admin screen.
Rendered Output:
I’m a bit unsure of how to handle this one. For simpler snippets containing just text/html it’s no problem, but for ones depending on having variables defined, they will not render correctly when there is no variables set in this view as when entering them in a post. So for some snippets it will work fine, and for others it can look very strange or even break the page.One could have an admin setting for snippets where it makes sense to have them display rendered, and if not checked they displays as-is. I want to avoid adding to much options to cluttering the snippets editors though, so I’d have to think about this one a bit.
UTF-8:
Fixed.An initial implementation is now in the trunk.
Cheers,
JohanAh, yes, I did a few tests here with setting different capabilities to access the menu and you’re correct.
I’ll make an overview page for roles without manage_options capabilites but still have edit_posts capability and commit it to trunk, and you can take a look at it if you want to.
Cheers,
JohanWith a filter I meant, if I put the basics into the plugin for different views depending on role, you can then for specific tweaks for a site add a filter to for instance the theme’s functions.php like this pseudo-code.
function ps_admin( $admin ) { // Set some admin view customization options for different roles } add_filter( 'post_snippets_admin', 'ps_admin' );Anyway, that put aside and looking at an initial implementation to begin with, I was wondering where did you have in mind that the list of shortcodes would show up for the user? If you login as a user with the role of Editor or Author for instance, you don’t have access to the settings part of WordPress and by that can’t see the Post Snippets option screen. So the read only view would have to be located somewhere else for users with read-only/no-settings-access capabilities. Any ideas?
Cheers,
Johan