actionbasic
Forum Replies Created
-
Forum: Hacks
In reply to: Random Default Avatar FunctionIndybook / bcworkz,
Thank you so much for the help. Again still learning and this is darn tricky for me for some reason! I’ve compiled the code based on both of your instructions. Does this look correct? Do I just place this in my functions file? I’m assuming I need to create the random_images folder in my template directory and fill it with avatar images? Do they have to be .png or anything? I don’t see any file type in the code.
function ab_rand_avatar() { $folder = scandir( dirname(__FILE__). '/random_images' ); $avs = array(); foreach( $folder as $pic ) { if( strpos($pic, '.') ! == 0 ) { $avs[] = $pic; } } $n = rand(0, sizeof($avs)-1); $avatar = '<a href="bla.."><img src="'. get_bloginfo('template_directory') . '/random_images/' . $avs[$n] . '"></a>'; return $avatar; add_filter('get_avatar', 'ab_rand_avatar');
Forum: Hacks
In reply to: Random Default Avatar Functionindyhook,
thank you so much. I’n just not sure at all how to use that code. Is it used on it’s own in the functions file?
I really appreciate any help. This is killing me!
Tobias,
Again thanks for being prompt. I am importing fairly large .CSV files. Will the table know to put the header data in the left column upon import? Also, please disregard the black rows. I will not be using those.
Thanks!
BrandonBasically it’s just the layout of table 1 repeated in the image. If I can style one that way I’m set!
Forum: Themes and Templates
In reply to: Sorting Posts By Date problemHmmm. Time for some research. No idea how to do that. ??
Forum: Themes and Templates
In reply to: Sorting Posts By Date problemIf I do that, is there still a way to output it as 03/10/11 ?
Forum: Fixing WordPress
In reply to: Comment Excerpt Help!Sorry. I need it to be part of the “list” tag that houses the rest of the comment info.
Forum: Fixing WordPress
In reply to: Can I rotate Sidebars depending on the post catagory?that helped quit a bit! thank you.
Forum: Fixing WordPress
In reply to: Enable Comments Not WorkingIs there something in WordPress that would make it not read the comment code and delete it? This is exactly what seems to be happening. thanks again for all the help.
Forum: Fixing WordPress
In reply to: Enable Comments Not WorkingMoshu,
I am editing in Dreamweaver. I’m pretty comfortable working in code and such, and I’m quite certain I am placing the code correctly, but it still does not show up. If I paste code into either page.php, archive.php or index.php that calls the catagory, edit post and leave comment, everything shows great but leave comment. And I am using known-good code from this site and from the original theme. Is there anything on the WordPress side that might be causing it? This is making me nuts! As I said comments were working as they should when I started building. I removed the tags to pull in that “leave comment” link and now as I said it keeps disappearing.
Forum: Fixing WordPress
In reply to: Enable Comments Not WorkingMoshu,
Me theme uses the files page.php and index.php. I have added the proper code to both many times. The ONLY thing that will not show up is the Leave Comment link. And when I post it, the php call tags for the comment code are gone!
Forum: Fixing WordPress
In reply to: Resized Youtube videos causing site to freeze.Solved! Thanks guys.
Forum: Fixing WordPress
In reply to: “Leave Comment” text not showing up.this is the HTML is generates….it’s not even there!!!
Uncatagorized | </p>
Forum: Fixing WordPress
In reply to: “Leave Comment” text not showing up.I just passted the code into my index.php with the same results. Here is my code:
<?php get_header(); ?>
<link href=”/assets/wp-content/themes/blue-zinfandel-enhanced-20/style.css” rel=”stylesheet” type=”text/css” /><div id=”content”>
<?php include(TEMPLATEPATH.”/l_sidebar.php”);?>
<div id=”contentmiddle”>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class=”post”>
<span class=”pagetitle”>“>
<?php the_title(); ?> | Filed Under <?php the_category(‘, ‘) ?> | <?php comments_popup_link(‘Leave a Comment’, ‘1 Comment’, ‘% Comments’); ?> <?php edit_post_link(‘(Edit Post)’, ”, ”); ?></span>
<small>
<?php the_time(‘F jS, Y’); ?>
</small>
<div class=”entry”>
<?php the_content(); ?>
</div>
<p class=”postmetadata”> Posted in
<?php the_category(‘, ‘); ?>
</p>
</div>
<?php endwhile; else: ?>
<p> Sorry, no posts matched your criteria.</p>
<?php endif; ?>
</div><?php include(TEMPLATEPATH.”/r_sidebar.php”);?>
</div>
<!– The main column ends –>
<?php get_footer(); ?>
It makes no sense to me. Everything shows up but the link to leave a comment….
again, using the Blue Zinfindel theme. https://www.detour-mag.com is the site. Thanks all.