verticalimit
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: wp_list_comments()I found out that if i was including the callback function within <?php … ?> like this :
<?php .... function mytheme_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>"> <div id="comment-<?php comment_ID(); ?>"> <div class="comment-author vcard"> <?php echo get_avatar($comment,$size='48',$default='<path_to_url>' ); ?> <?php printf(__('<cite class="fn">%s</cite> <span class="says">dit:</span>'), get_comment_author_link()) ?> </div> <?php if ($comment->comment_approved == '0') : ?> <em><?php _e('Your comment is awaiting moderation.') ?></em> <br /> <?php endif; ?> <div class="comment-meta commentmetadata"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php printf(__('%1$s at %2$s'), get_comment_date(), get_comment_time()) ?></a><?php edit_comment_link(__('(Edit)'),' ','') ?></div> <?php comment_text() ?> <div class="reply"> <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?> </div> </div> <?php } ?>it was working better than adding at the end the following code:
<?php function im_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>"> <div id="comment-<?php comment_ID(); ?>"> <div class="comment-author vcard"> <?php echo get_avatar($comment,$size='48',$default='<path_to_url>' ); ?> <?php printf(__('<cite class="fn">%s</cite> <span class="says">says:</span>'), get_comment_author_link()) ?> </div> <?php if ($comment->comment_approved == '0') : ?> <em><?php _e('Your comment is awaiting moderation.') ?></em> <br /> <?php endif; ?> <div class="comment-meta commentmetadata"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php printf(__('%1$s at %2$s'), get_comment_date(), get_comment_time()) ?></a><?php edit_comment_link(__('(Edit)'),' ','') ?></div> <?php comment_text() ?> <div class="reply"> <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?> </div> </div> <?php } ?>To call the function, i used:
wp_list_comments('avatar_size='.$avsize.'&callback=im_comment');and after:
wp_list_comments('avatar_size='.$avsize.'type=comment&callback=im_comment');As a result, the theme and its parameters are remaining but the comments are not showing.
Forum: Plugins
In reply to: [WP-Cache] How to remove WP-CacheThanks Dennis.
In the plugin folder, i have:
– wp-db-backup
– wp-super-cacheDo i need to remove also wp-db-backup?
Or is it a default wordpress backup plugin?In the content folder, i have:
– backup-0cc64
– cache
– gt-cacheWhich ones do i need to remove please?
Thanks again 🙂
Forum: Plugins
In reply to: WP-PageNavi Version 2.72 Not Showing Page 2Hello,
The plugin was working fine on my blog for months.
Since i did the last update, i can not go to any page after page 1: I get an error: “Page is missing”.http://www.emarketinglicious.fr/blog
Thanks in advance for any help 🙂
Forum: Plugins
In reply to: [WP-PageNavi] [Plugin: WP-PageNavi] 2.73 Not Showing Page 2Thanks 🙂
Unfortunately i did not work for me.
I tried also with 4 and 5.
But still was the same.Forum: Plugins
In reply to: [WP-PageNavi] [Plugin: WP-PageNavi] 2.73 Not Showing Page 2Forum: Plugins
In reply to: [contact form 7] multiple textareasThat’s perfect.
Thanks a lot 🙂Forum: Fixing WordPress
In reply to: wp_list_comments()Thanks for your help.
How can you validate pages when your work on a local server pls?Forum: Fixing WordPress
In reply to: wp_list_comments()Thanks Esmi. It worked fine.
But still there is sthg wrong.
The header and the footer changed of colors for example.I don’t think it is connected to your code but rather because i added mytheme_comment function in the theme.
Here are the changes i have made so far:
1. functions.php
I added this code at the end of the file:
<?php function im_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>"> <div id="comment-<?php comment_ID(); ?>"> <div class="comment-author vcard"> <?php echo get_avatar($comment,$size='48',$default='<path_to_url>' ); ?> <?php printf(__('<cite class="fn">%s</cite> <span class="says">says:</span>'), get_comment_author_link()) ?> </div> <?php if ($comment->comment_approved == '0') : ?> <em><?php _e('Your comment is awaiting moderation.') ?></em> <br /> <?php endif; ?> <div class="comment-meta commentmetadata"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php printf(__('%1$s at %2$s'), get_comment_date(), get_comment_time()) ?></a><?php edit_comment_link(__('(Edit)'),' ','') ?></div> <?php comment_text() ?> <div class="reply"> <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?> </div> </div> <?php } ?>2.comments.php
I replaced the following line:
wp_list_comments('avatar_size='.$avsize);with:
wp_list_comments('avatar_size='.$avsize.'&callback=im_comment');How can i avoid to loose the original configuration of my theme that i have made through the admin panel?
Thanks,
Forum: Fixing WordPress
In reply to: wp_list_comments()Ok I found my mistake.
Just forgot to put <?phpNext one:
My theme is coded with:
wp_list_comments('avatar_size='.$avsize);I want to keep it as i would prefer to remain with the original avatar settings instead of doing it with the callback function.
I need to add this line to call the callback function:
<?php wp_list_comments('callback=mytheme_comment'); ?>How can i add those two lines together please? only one <?php wp_list_comments()
Forum: Fixing WordPress
In reply to: wp_list_comments()How can it be if i only copy and paste the codex code?
Forum: Plugins
In reply to: [Plugin: Viper’s Video Quicktags] Not workingThank you for your help.
I had already uninstalled the linkification plugin in Firefox.
I had also disabled the wordpress plugins.
But remained with the same problem.I can not understand where it is coming from:
Firefox, WordPress.My theme is not responsible for this problem.
I already checked with the development team.If it was due to my other firefox plugins, then you should see the video.
Do you see it?If i look at this page with safari (i did not install any plugin), i still can not access the video.
Any idea?