cdsanchez
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: [Plugin: Lightbox Gallery] Display scripts only when gallery is usedI tried editing your plugin to see if I could do it myself, but I couldn’t figure it out. When you do decide to implement this, take this in mind: only display the scripts when a gallery is used, not when an image is attached to the post.
I tried:
if (do_shortcode('[gallery]')) { //display scripts }
and
if (gallery_shortcode($post->ID)) { //display scripts }
But those two will display the scripts if the post has an image attached, regardless of whether an actual gallery was inserted. Someone suggested iterating through an array created by the shortcode_parse_atts() function and searching for the [gallery] short code, but I haven’t tried it out:
$array = shortcode_parse_atts($post->post_content);
Other than that, it’s a pretty good plugin and does what it says. The only thing I think would be nice, in addition to the scripts feature I mentioned above, is an option page to change the default size on the images so we don’t have to change the size in the gallery shortcode every time.
Forum: Fixing WordPress
In reply to: Set Category Base to NULLI asked on another forum and they pointed me to: https://www.ads-software.com/extend/plugins/advanced-permalinks/
Does the job perfectly
I tried that, but it disables the sidebar widget as well
Forum: Plugins
In reply to: [Plugin: Yet Another Related Posts Plugin] Upgraded to 2,0 – now not workingThe dev version worked for me perfectly. Thanks ??
EDIT: Actually, I noticed that it always returns the same related posts. I don’t have a tremendous amount of posts on it but it should still vary. The relevance scores for all stories are always exactly the same when viewing as admin.
Using WP-Supercache if that matters at all.
https://addonsfirefox.com if you want to look for yourself.
Forum: Plugins
In reply to: [Plugin: Yet Another Related Posts Plugin] Upgraded to 2,0 – now not workingUpgraded to 2.0.3 and I still get no results
Forum: Plugins
In reply to: [Plugin: Yet Another Related Posts Plugin] Upgraded to 2,0 – now not workingUpgraded to 2.0.1 and I also get the T_DNUMBER error as well.
Forum: Plugins
In reply to: [Plugin: Yet Another Related Posts Plugin] Upgraded to 2,0 – now not workingI installed the 2.0 version first and it doesn’t display any. When I installed the plugin I got these errors:
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/addonsfi/public_html/wp-content/plugins/yet-another-related-posts-plugin/includes.php on line 63Warning: Invalid argument supplied for foreach() in /home/addonsfi/public_html/wp-content/plugins/yet-another-related-posts-plugin/includes.php on line 63
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/addonsfi/public_html/wp-content/plugins/yet-another-related-posts-plugin/includes.php on line 67
Warning: Invalid argument supplied for foreach() in /home/addonsfi/public_html/wp-content/plugins/yet-another-related-posts-plugin/includes.php on line 67
Hopefully it should help in tracking down the problem
Using PHP5 in safemode