wakazashi
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Day of the Week Image Plugin/CSS Trick NeededOther way around Angela, the image tag should be outside ‘the_date’ or ‘the_time’ tags. I know this is an old thread, but I was searching through for the answer and had to cobble it together myself, figure I’d post here to help.
If you want an image to show up to the right of your header, make a call like this:
<div class="<?php the_time('l') ?>"></div>
<h2 class="title">whatever</h2>The css should look like this:
.Sunday { position: relative; left:-5px; top:54px; width: 30px; height:35px; background: url(/images/h2/sun.gif) no-repeat; }If your post occurs on a Sunday, the php script will insert “Sunday” where it makes “the_time” call. What the browser will see is this:
<div id="Sunday"></div><h2 class="title">whatever</h2>When that happens, the css script will insert the image you defined to show on sunday posts. Check my website for an example, I use japanese characters for each day of the week.
You’ll notice that I also say the day of the week and date after my title, that can be done through the following:
<?php the_time('l - F jS, Y') ?>The ‘l’ (lowercase L) is the day of week. I do this for those who can’t read japanese… The reason you want a ‘class’ tag instead of a ‘id’ tag is incase you have a long archive with multiple of the same day called on the same page. That is a valid XHTML no-no.
Forum: Fixing WordPress
In reply to: import from Greymatter: can’t find databaseI’ve got a workaround for everyone.
Go ahead and install WP version 2.01.
Install everything and then…
Install the import-greymatter.php— sounds normal so far —
If you set up your paths correctly (keep in mind, they are local paths) if you put the import script into a folder you have to use ../ before the path)
Log into wordpress and make a user with the name you want to import.
Run import-greymatter.cgi
If you did everything correctly, you will see a message that says “x user already exists” instead of the other error messages you get from the script being v1.5 and wordpress being v2.01
Worked for me, hope this helps everyone! Now to convert my templates…. ugh