Jason Wong
Forum Replies Created
-
If there’s anyone wanting to display a “No Image Available” image as a thumbnail when the ‘none’ thumbnail is chosen in a post, here’s the following modification in wp-choose-thumb/wp-choose-thumb.php
This is for the update version 1.3.5.
/** * Display thumb. For use in theme. * @param string $style style="" * @param integer $pid optional post id * @access public */ function wct_display_thumb($style = '', $pid = '', $alt = 'thumbnail', $class = 'alignleft') { global $post; global $wct_plugin_url; if('' == $pid){ if(null != $post) { $pid = $post->ID; } else { return; } } $src = trim(get_post_meta($pid, 'wct_thumb',true)); $hasThumb = ('' != $src && 'none' != $src); if($hasThumb) { echo '<img alt="'.$alt.'" src="'. $src .'" class="'.$class.'" '.$style.'/>'; } else { $src = $wct_plugin_url . '/resources/images/no-image.jpg'; echo '<img src="'. $src .'" class="'.$class.'" />'; } return $hasThumb; }
Remember to make a “No Image Available” image (e.g., no-image.jpg), and upload into the sub-directory ‘/resources/images’ of the wp-choose-thumb plugin directory.
Enjoy …
Forum: Requests and Feedback
In reply to: [Plugin: Members] Some suggestionsI agree that the role capabilities are “optional”. However, it can be tricky to easily lock yourself out, which happened to me. I’d to edit the wp_user_roles in the “wp_options” table via phpmyadmin just to unlock myself. Just a precaution here!
Forum: Requests and Feedback
In reply to: [Plugin: Members] Some suggestionsHi Justin,
Thanks for the link to your plugin forum. But since the discussion has initiated here, I’ll continue from here.
Glad to know that the first suggestion is in your to-do list. It’ll be best to just leave the Roles submenu visible, but the manageability of the Roles will depend on the current user’s capabilities – Edit Roles and/or Delete Roles. View Roles will always be available even if both Edit Roles and Delete Roles are disabled, as a convenience for administrators.
I’ve read the post you gave. Thank you for sharing. However, how does one avoid listing all of the optional capabilities for a particular Role? I foresee this will be security issue, if a member can Edit Roles in gaining access to an administrative level.
I look forward to your next release soon.
Cheers,
JasonForum: Plugins
In reply to: [Plugin: HidePost] Show 1 link to guests, then a different link after login?This plugin will be even better if it incorporates grouping users into, say Group A, B and C. Then probably use [hidepost group_a] [/hidepost group_a] for instance to hide a selection portion of a post/page for Group A.
Forum: Plugins
In reply to: [Plugin: WP-CMS Post Control] works in 2.9 – except one minor issueI agree with dwenaus when this plugin runs under WP 2.9.
Anyway, is there a feature to hide the Comments metabox in Edit Post? Hope that’s included in the next release.Cheers …
Forum: Plugins
In reply to: Limit Login Attempts doesn’t work in 2.8Ran some tests …
Apparently, the Absolute Privacy plugin was the main culprit, which conflicted with Limit Login Attempts functions.
So much of wanting to moderate users … Sigh*
Forum: Plugins
In reply to: Limit Login Attempts doesn’t work in 2.8I’ve tested on a clean WP 2.8.4 website, and Limit Login Attempts version 1.3.1 works. I’m puzzled here.
Could that be a conflict with other plugins which I’ve installed, like Secure WordPress, Absolute Privacy, or perhaps WP Captcha Free?
Or could it be that the clean WP 2.8.4 website is operating on:
PHP version 5.2.9
MySQL version 5.0.81-communitywhilst the one which failed is operating on:
PHP version 5.2.10
MySQL version 5.1.37I hope that someone has encountered the same problem, and might have some clues to this ‘hiccup’.
Cheers … Jason
Forum: Plugins
In reply to: Limit Login Attempts doesn’t work in 2.8I’m talking about WP 2.8.3 + here …
Any luck with this WP version?Forum: Plugins
In reply to: Limit Login Attempts doesn’t work in 2.8I’ve tried both Limit Login Attempts version 1.3.1, and 2.0beta1 for WP 2.8.3 and they aren’t working.