giantman
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Admin posts<?php get_header(); if(isset($_GET['author_name'])) { $info = get_userdatabylogin($author_name); } else { $info = get_userdata(intval($author)); } ?> <div id="pagewrap"> <div id="page"> <div id="content" class="author_page"> <div id="author_page" class="post"> <div class="entry"> <h1 class="title"><?php echo $info->display_name; ?></h1> <?php if(!empty($info->user_description)) : ?> <blockquote> <?php echo $info->user_description; ?> </blockquote> <?php endif; ?> <div class="align_right" style="padding-left: 10px;"> <?php echo get_avatar($info->user_email, 56); ?> </div> <h1 class="title"><?php _e('Information', 'fazio'); ?></h1> <ul> <?php if(!empty($info->user_url)) : ?> <li> <?php _e('Website:', 'fazio'); ?> <a href="<?php echo $info->user_url; ?>"><?php echo $info->user_url; ?></a> </li> <?php endif; ?> <?php if(!empty($info->user_twitter)) : ?> <li> <?php _e('Twitter:', 'fazio'); ?> <a href="https://www.twitter.com/<?php echo $info->user_twitter; ?>"><?php echo $info->user_twitter; ?></a> </li> <?php endif; ?> </ul> </div><!-- end entry --> </div><!-- end author_page --> <?php if ( have_posts() ) : ?> <div class="post author_page_post_list"> <div class="entry"> <h1 class="title"><?php _e('Last posts from', 'fazio'); ?> <?php echo $info->display_name; ?></h1> <ul> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part('dry/post_list'); ?> <?php endwhile; ?> </ul> </div><!-- end entry --> </div><!-- end post --> <?php pagination(); ?> <?php endif; ?> </div><!-- end content --> <?php get_sidebar(); ?> </div><!-- end page --> </div><!-- end pagewrap --> <?php get_footer(); ?>
That is my author.php. I know there is something that I have to delete there but not sure and don’t want to mess it up.
Forum: Themes and Templates
In reply to: Fazio Theme Pt. 2#2 is solved. i was erasing the ‘repeat-x;’ my bad.
Forum: Themes and Templates
In reply to: Fazio Theme Pt. 2almost got the comment box to work i think it’s the URL that’s messing it up.
#comments .commentbox { background: #edefee url(images/comment_bg.png) repeat-x; border: 1px solid #9e9e9e; padding: 10px; position: relative; margin-bottom: 5px; min-height: 50px;
When I change #edefee to white and remove the URL it messes up the borders and everything else. When I keep the url and just change it to white it will keep the borders but will show a combination of white background and the comment_bg.png. trying to get the background white without messing everything else up and keeping the borders.
any suggestions?
Forum: Themes and Templates
In reply to: Fazio Theme Pt. 2#3 is solved!!!
Forum: Fixing WordPress
In reply to: Number of commentsahh there we go it worked.
thanks rev. voodoo
Forum: Fixing WordPress
In reply to: Number of commentsFound it.
// TopCommentedPosts widget class topCommented_Widget extends WP_Widget { function topCommented_Widget() { parent::WP_Widget(false, $name = __('Top Commented Posts', 'fazio')); } /** @see WP_Widget::widget */ function widget($args, $instance) { extract( $args ); // Extract config vars $title = apply_filters('widget_title', $instance['title']); $quantity_to_show = $instance['quantity_to_show']; if(!is_numeric($quantity_to_show) OR $quantity_to_show == '0') { $quantity_to_show = 5; } // Make the widget echo $before_widget; echo $before_title; if($title) { echo $title; } else { _e('Top Commented Posts', 'fazio'); } echo $after_title; $top = new WP_Query(); $top->query('showposts=' . $quantity_to_show . '&orderby=comment_count'); if($top->have_posts()) { ?> <ul> <?php while ($top->have_posts()) { $top->the_post(); ?> <li> <a href="<?php the_permalink();?>"><?php the_title(); ?></a> (<?php echo get_comments_number(); ?>) </li> <?php } } ?> </ul> <?php echo $after_widget; }
The “quantity to show” is the number of posts. So if quantity = 5 then it will show the top 5 posts, if quantity = 10 then it shows the top 10 most commented posts.
I don’t know where the actual comment number value is…anyone?
Forum: Fixing WordPress
In reply to: Number of commentsYes it’s a widget. Came with the “Fazio” theme. It’s titled “Top Commented Posts” but there are no settings for adding anything.
Alright so I have to find out where the code for the widget is, find the place where it returns the number of comments for the top posts, and then add “Replies” so that it results as:
Title of post (5 replies)
I have no idea what I’m looking for though.
Forum: Themes and Templates
In reply to: Fazio Theme Pt. 2One more
3. I have a “Most commented” thing on my sidebar. The posts with the most comments get displayed there like this:
Title of post (5)
5 is the number of comments. Is there a way to add the word “replies” after the number so that it looks like this:
Title of post (5 replies)
??
Forum: Themes and Templates
In reply to: Fazio Theme Pt. 2bump
Forum: Everything else WordPress
In reply to: Botsdang…I just downloaded “blackwidow” webcrawler from download.com and its crawling my whole site finding almost everything…and I have about 6 security plugins blocking all kinds of stuff, plus a huge htaccess file that is supposed to be blocking BlackWidow and 100’s of other bots….and it’s still crawling my site….
This is bad….
Forum: Everything else WordPress
In reply to: BotsWTF????????????????
I put:
Options -Indexes
into an htaccess file inside /images/ and teleport pro is STILL finding the images. WTF!!!!!!!!!!!!!???????
Forum: Everything else WordPress
In reply to: BotsSetEnvIfNoCase user-agent “^Teleport\ Pro” bad_bot=1
<FilesMatch “(.*)”>
Order Allow,Deny
Allow from all
Deny from env=bad_bot
</FilesMatch>Just tried that, and teleport pro is STILL finds the images and 60 other files. grr.
Forum: Everything else WordPress
In reply to: BotsWTF??? I just put:
User-agent: *
Disallow: /in robots.txt and teleport Pro is still finding the images and other files.
Forum: Fixing WordPress
In reply to: Show comments codeSantiago,
Sorry to ask again but I have one last problem. I want to keep the “Leave a comment” link below the post, but I DON’T want to show the comments anymore. How can I do that?
I’ve tried removing the php if(!is_single()) and the else and endif but that brought back the “Leave a reply” form.
I also tried removing the code from the home.php (The withcomments code) but that removed the link AND the reply form.
I just want the “Leave a reply” link under each post without the reply form or the comments showing. How?
Forum: Fixing WordPress
In reply to: Latest posts pageGOT IT!
THANKS!