rshandel
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Field Suite] [Plugin: Custom Field Suite] No Value ReturnedThanks. What about WP super cache? I don’t have plugins loaded and am just designing the site now and the page load is very slow. Its seem super cache will serve static pages so the pages will load alot faster.
hmm. Is ACF still the plugin of choice then, even with the site slowing issue? What functionality is missing with CFT?
Thanks lancemonotone. I came across another plugin. Custom Field Suite. Did you ever use this one? The developer said its similar to ACF but created because it was lightweight and didn’t break on update of WP, etc.
Forum: Plugins
In reply to: [Custom Field Suite] [Plugin: Custom Field Suite] No Value ReturnedI’m with you. I need something solid that won’t slow down my client’s sites or break on updates. I’m used to building ecommerce sites where creating custom pages using templates and native php code rather than plugins. With the myriad of plugins in WordPress I’m finding that one can easily create “spaghetti-ware” affecting the site’s performance.
With that said, I’m going to try out CFS right now.
Thanks for your help. Also, if you know of any other light-weight plugins that would be useful for a CMS WP site development, I’d love to hear your recommendations.Forum: Plugins
In reply to: [Custom Field Suite] [Plugin: Custom Field Suite] No Value ReturnedHi,
I’m trying to figure out which custom fields plugin to use – how are CFS and ACF different, better, etcouch! I’m afraid to jump into ACF if this issue isn’t resolved. Is there another plugin I can use in the interim?
Anyone come up with a solution? I’m about to install ACF on WP 3.3.1, but the sluggisness certainly scares me. I’ve read about more fields and custom field template, but both sound like they are having serious issue in WP 3.3.1…
Has anyone come up with any alternatives to this plugin or resolved the slowing down the site issue?
Thanks for the insight everyone. I’m about to start creating custom fields for several different page templates and I’m a little confused as to which plugin I should be trying at this point (i.e. “custom field template”, “advanced custom fields” or “more fields”).
For example, one custom page template will have several text area fields to enter custom data, and another one will need 2 separate input areas for users to upload a picture and a description (each input areas needs to have the ability to add more “user profiles” – picture and a description (post loop?).
Any thoughts?
Thanks.Forum: Fixing WordPress
In reply to: turn off comments on pages by defaultThanks for all info. Unfortunately, my page is acting strangely. It seems my theme (lightword) already has provisions for adding comments on pages, BUT, when I add one comment it removes the “leave a comment box”. I tried everything. I did a var_dump on the $post array and before I add a comment on a page, it contains all the data, has comment_status = open, etc.
As soon as I add one comment on a page, the array is empty except some integer value i.e. int(19).
the page.php code is
<?php if (comments_open() && $lw_disable_comments == "false"):comments_template();endif;?>
this executes fine, but $post array doesn’t contain a comment_status value and thereby doesn’t execute the condition in the comments.php to display comments form:
here’s the comments.php code:
<?php if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) die ('Please do not load this page directly. Thanks!'); if ( post_password_required() ) { echo '<p class="nocomments">'; echo _e('This post is password protected. Enter the password to view comments.','lightword'); echo '</p>'; return; } $comments_nr = fb_get_comment_type_count('comment'); $trackbacks_nr = fb_get_comment_type_count('pings'); $oddcomment = 'alt '; ?> <div id="tabsContainer"> <a href="#" class="tabs selected"><span><?php _e('Comments','lightword'); ?> (<?php echo $comments_nr; ?>)</span></a> <a href="#" class="tabs"><span><?php _e('Trackbacks','lightword'); ?> (<?php echo $trackbacks_nr; ?>)</span></a> <span class="subscribe_comments"><?php post_comments_feed_link(__('( subscribe to comments on this post )','lightword')); ?></span> <div class="clear_tab"></div> <div class="tab-content selected"> <a name="comments"></a> <?php if ( $comments ) : ?> comments<br /> <div id="comentarii"> <ol class="commentlist"> <?php wp_list_comments('type=comment&callback=nested_comments'); ?> </ol> <?php if ((int) get_option('page_comments') === 1 && get_comment_pages_count() > 1): ?> comments<br /> <div class="next_previous_links_comments"> <span class="alignleft"><?php previous_comments_link(__('« Older Comments','lightword')); ?></span> <span class="alignright"><?php next_comments_link(__('Newer Comments »','lightword')); ?></span> <div class="clear"></div> </div> <?php endif; ?> </div> <?php else : ?> <?php if ('open' == $post->comment_status) : ?> <p class="no"><?php _e('No comments yet.','lightword'); ?></p> <?php else : // comments are closed ?> <p class="no"><?php _e('Sorry, the comment form is closed at this time.','lightword'); ?></p> <?php endif; ?> <?php endif; ?> <?php if ('open' == $post->comment_status) : ?> comments<br /> <br /><div id="respond"> <h2 style="background:transparent;"><?php comment_form_title( __('Leave a comment', 'lightword'), 'Reply' ); ?></h2> comments<br /> <?php if ( get_option('comment_registration') && !$user_ID ) : ?> <p><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.','lightword'), get_option('siteurl')."/wp-login.php?redirect_to=".urlencode(get_permalink()));?></p> <?php else : ?> <form action="<?php bloginfo('wpurl'); ?>/wp-comments-post.php" method="post" id="commentform"> <?php if ( $user_ID ) : ?> <p><?php printf(__('Logged in as %s.','lightword'), '<a href="'.get_option('siteurl').'/wp-admin/profile.php">'.$user_identity.'</a>'); ?> <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Log out of this account','lightword') ?>"><?php _e('Log out »','lightword'); ?></a></p> <p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="1"></textarea></p> <?php else : ?> <p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="1"></textarea></p> <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" /> <label for="author"><small><?php _e('Name','lightword'); ?> <?php if ($req) _e('(required)','lightword'); ?></small></label></p> <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" /> <label for="email"><small><?php _e('Mail (will not be published)','lightword');?> <?php if ($req) _e('(required)','lightword'); ?></small></label></p> <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" /> <label for="url"><small><?php _e('Website','lightword'); ?></small></label></p> <?php endif; ?> <p><input name="submit" type="submit" id="submit" tabindex="4" accesskey="s" value="<?php echo attribute_escape(__('Submit','lightword')); ?>" /><?php cancel_comment_reply_link(__('( Cancel )', 'lightword')); ?><br class="clear"/></p> <?php comment_id_fields(); ?> <?php do_action('comment_form', $post->ID); ?> </form> <?php endif; ?> </div> <?php endif; ?> </div> <div class="tab-content"> <?php if($trackbacks_nr == "0" && pings_open()) { echo "<p class=\"no\">"; ?><?php _e('No trackbacks yet.','lightword'); ?><?php echo "</p>"; } ?> <?php if(!pings_open()) { echo "<p class=\"no\">"; ?><?php _e('Trackbacks are disabled.','lightword'); ?><?php echo "</p>"; } ?> <?php foreach ($comments as $comment) : ?> <?php $comment_type = get_comment_type(); ?> <?php if($comment_type != 'comment') { ?> <div class="trackbacks"><?php comment_author_link() ?></div> <?php } ?> <?php endforeach; ?> </div> </div>
I’m pulling my hair out trying to figure this out!!
Any ideas?
Thanks.
Forum: Fixing WordPress
In reply to: Leave a Comment disappears on custom page after 1 comment is postedI was looking at the code in comments.php and noticed that the custom pages don’t satisfy the condition open comment status for the form.
I did a var_dump on the $post array and the value of “comment status” is “open” in a regular post page, but the values in the entire array on the custom page is only “int(2)”. Why is it removing the open status???I created another new page called test. Without any comments it dumps the array just fine with the comment satus = “open”.
object(stdClass)#80 (25) { ["ID"]=> int(19) ["post_author"]=> string(1) "1" ["post_date"]=> string(19) "2010-04-06 12:53:06" ["post_date_gmt"]=> string(19) "2010-04-06 17:53:06" ["post_content"]=> string(16) "testing comments" ["post_title"]=> string(4) "test" ["post_excerpt"]=> string(0) "" ["post_status"]=> string(7) "publish" ["comment_status"]=> string(4) "open" ["ping_status"]=> string(4) "open" ["post_password"]=> string(0) "" ["post_name"]=> string(6) "test-2" ["to_ping"]=> string(0) "" ["pinged"]=> string(0) "" ["post_modified"]=> string(19) "2010-04-06 12:53:43" ["post_modified_gmt"]=> string(19) "2010-04-06 17:53:43" ["post_content_filtered"]=> string(0) "" ["post_parent"]=> int(0) ["guid"]=> string(47) "https://www.mysite.com/blog/?page_id=19" ["menu_order"]=> int(0) ["post_type"]=> string(4) "page" ["post_mime_type"]=> string(0) "" ["comment_count"]=> string(1) "0" ["ancestors"]=> array(0) { } ["filter"]=> string(3) "raw" }
If I add comment to the test page, the $post array dump is : int(19)
Why is it deleting all the array values (except for the page value?? int(19))… only after I have added 1 comment????
Are custom pages designed to only accept 1 comment?
Here’s the page code:
<?php if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) die ('Please do not load this page directly. Thanks!'); if ( post_password_required() ) { echo '<p class="nocomments">'; echo _e('This post is password protected. Enter the password to view comments.','lightword'); echo '</p>'; return; } $comments_nr = fb_get_comment_type_count('comment'); $trackbacks_nr = fb_get_comment_type_count('pings'); $oddcomment = 'alt '; ?> <div id="tabsContainer"> <a href="#" class="tabs selected"><span><?php _e('Comments','lightword'); ?> (<?php echo $comments_nr; ?>)</span></a> <a href="#" class="tabs"><span><?php _e('Trackbacks','lightword'); ?> (<?php echo $trackbacks_nr; ?>)</span></a> <span class="subscribe_comments"><?php post_comments_feed_link(__('( subscribe to comments on this post )','lightword')); ?></span> <div class="clear_tab"></div> <div class="tab-content selected"> <a name="comments"></a> <?php if ( $comments ) : ?> <div id="comentarii"> <ol class="commentlist"> <?php wp_list_comments('type=comment&callback=nested_comments'); ?> </ol> <?php if ((int) get_option('page_comments') === 1 && get_comment_pages_count() > 1): ?> <div class="next_previous_links_comments"> <span class="alignleft"><?php previous_comments_link(__('« Older Comments','lightword')); ?></span> <span class="alignright"><?php next_comments_link(__('Newer Comments »','lightword')); ?></span> <div class="clear"></div> </div> <?php endif; ?> </div> <?php else : ?> <?php if ('open' == $post->comment_status) : ?> <p class="no"><?php _e('No comments yet.','lightword'); ?></p> <?php else : // comments are closed ?> <p class="no"><?php _e('Sorry, the comment form is closed at this time.','lightword'); ?></p> <?php endif; ?> <?php endif; ?> <?php if ('open' == $post->comment_status) : ?> <br /><div id="respond"> <h2 style="background:transparent;"><?php comment_form_title( __('Leave a comment', 'lightword'), 'Reply' ); ?></h2> comments<br /> <?php if ( get_option('comment_registration') && !$user_ID ) : ?> <p><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.','lightword'), get_option('siteurl')."/wp-login.php?redirect_to=".urlencode(get_permalink()));?></p> <?php else : ?> <form action="<?php bloginfo('wpurl'); ?>/wp-comments-post.php" method="post" id="commentform"> <?php if ( $user_ID ) : ?> <p><?php printf(__('Logged in as %s.','lightword'), '<a href="'.get_option('siteurl').'/wp-admin/profile.php">'.$user_identity.'</a>'); ?> <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Log out of this account','lightword') ?>"><?php _e('Log out »','lightword'); ?></a></p> <p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="1"></textarea></p> <?php else : ?> <p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="1"></textarea></p> <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" /> <label for="author"><small><?php _e('Name','lightword'); ?> <?php if ($req) _e('(required)','lightword'); ?></small></label></p> <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" /> <label for="email"><small><?php _e('Mail (will not be published)','lightword');?> <?php if ($req) _e('(required)','lightword'); ?></small></label></p> <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" /> <label for="url"><small><?php _e('Website','lightword'); ?></small></label></p> <?php endif; ?> <p><input name="submit" type="submit" id="submit" tabindex="4" accesskey="s" value="<?php echo attribute_escape(__('Submit','lightword')); ?>" /><?php cancel_comment_reply_link(__('( Cancel )', 'lightword')); ?><br class="clear"/></p> <?php comment_id_fields(); ?> <?php do_action('comment_form', $post->ID); ?> </form> <?php endif; ?> </div> <?php endif; ?> </div> <div class="tab-content"> <?php if($trackbacks_nr == "0" && pings_open()) { echo "<p class=\"no\">"; ?><?php _e('No trackbacks yet.','lightword'); ?><?php echo "</p>"; } ?> <?php if(!pings_open()) { echo "<p class=\"no\">"; ?><?php _e('Trackbacks are disabled.','lightword'); ?><?php echo "</p>"; } ?> <?php foreach ($comments as $comment) : ?> <?php $comment_type = get_comment_type(); ?> <?php if($comment_type != 'comment') { ?> <div class="trackbacks"><?php comment_author_link() ?></div> <?php } ?> <?php endforeach; ?> </div> </div>