Looks pretty interesting. I have another question on your downloads control. Do you use a plugin for that? If so, what is it as I was looking for something like that.
Thank You,
You can use “Download Beautifier” from http://binslashbash.org/. But currently I use “Click Counter” from http://frenchfragfactory.net/ozh/archives/2004/09/17/click-counter-plugin-for-wordpress/
Download Beautifier:
– have a little problem with XHTML Validation,
– show file size and download counter.
But if you try Click Counter:
– Don’t have any problem with XHTML Validation,
– You should make a small tweak to the code,
– Can not show file size.
Correct me if I wrong 🙂 Feel free to have your own choice. Good Luck…
I downloaded and activated the plugin. Not real sure where to put the function call. I guess it should go in the file which displays the Posts?
Testing it in my single.php, seems to work well ;’) I did have to tweak the css, and remove the year (personal preference) but it went smoothly…
Thanks, that gave me the clue I needed. I modified my single and main files. I had to tweak the CSS a little, too. It looks really cool.
I’m new to WordPress, this may be obvious to others but I cant figure out where to put the code… I don’t have a single.php file anywhere… help anyone?
You’ll have to find the file that has the have_posts() function call in it to display your posts. This will be theme dependent. If you don’t have a single post php, then it’s probably in the main index php. Once you find it, you can add something like:
<?php if (function_exists('hotDates')) { ?>
<?php hotDates(); ?>
<?php } else { ?>
<?php the_time('l j F Y',display); ?>
<?php } ?>
Then you’ll probably have to modify the ccs file.
To add (complicate?) jwurster’s example, this is from my single.php:
<?php if (function_exists('hotDates')) { hotDates(); ?>
<h2 class="post-title-single"> <?php the_title(); ?> </h2>
<?php } else { ?>
<p class="post-date-single"> <?php the_time('Y m d'); ?>
<h2 class="post-title-single"> <?php the_title(); ?> </h2>
<?php } ?>