lauch
Forum Replies Created
-
Forum: Plugins
In reply to: Category FashionOh, I’m sorry….I did see his post, but when I looked at the plugin, I didn’t think it was what I was looking for. Does anyone have an example of that plugin being used?
Forum: Plugins
In reply to: Category FashionCan you link to it for me?
Thanks!
Forum: Themes and Templates
In reply to: Display by Category home.php templateThis is nifty! I actually might use parts of this for my dynamic category headings, though I’m not sure. It seems rather similar.
Forum: Plugins
In reply to: Category FashionI forgot one important thing on the stylesheet being in php. You need to alter your .htaccess to tell the server that it’s ok:
AddType application/x-httpd-php .css
AddType text/css .css
The first line is what matters, because you’re telling the server that your php file is a style sheet.
Forum: Plugins
In reply to: Category FashionI actually was thinking for multiple categories, to just display the first one, though that is just a concept at the moment. I’ll take your suggestions into account.
I’m thinking that I’d have to put all the categories into an inline style sheet. That way, the php could pull all the category names dynamically from the database and create a stylesheet rule from that.
Something like this:
<style type="text/css">
<?php
while (*categories exist loop*){
echo .*categoryname*;{
*insert styling for header here*
}
*next category*
}
?>
</style>
I obviously didn’t code the php right, but I think that would do it. I’ll work on testing it when I have more time (I’m on vacation for a week starting tomorrow)
I think the actual category pages would be the easiest to code since the page itself is already passed the category name.
I think if I really wanted it to work, I could probably place style tags inside the loop and define the CSS directly into the header, but I really hate the way that looks. I believe you agree with me when I like my CSS to be separate from my html separate from my javascript. Style and behavior and content all deserve to be on their own.
Anyway, thanks for the suggestions. My goal is to have an extremely customizable theme!
Forum: Plugins
In reply to: Del.ici.ous LinksDel.icio.us has a way to do this – Check it out
Hope this helps!
Forum: Plugins
In reply to: Category Fashiondoodlebee, the actual stylesheet isn’t online, only a test server locally, but here is the style sheet I have (it’s short since I’m only testing one scenario):
style.php
<?php
header("Content-type: text/css");
$white = '#ff6600';
$dkgray = '#0099ff';
$dkgreen = '#008400';
?>.funny{
background: url("texting.php?value=Funny!") top right no-repeat <?php echo $white; ?>;
display: block;
width: 100%;
height: 45px;
}.notfunny{
background: url("texting.php?value=Birthin the Baby!") top right no-repeat <?php echo $dkgray; ?>;
display: block;
width: 100%;
height: 45px;
}h1, h2, h3, h4 {
color:<?=$dkgreen?>;
}
blockquote {
color:<?=$dkgreen?>;
}The last two entries are just to test the dynamic colors
One thing to note, and this has been discussed on a few websites I’ve found, is that the style sheet is not cached, unless you add some caching headers. If you’re interested in that, I’d be happy to show you.
Funny and notfunny are just two headers for posts I was messing with. I didn’t really construct the post loop yet, as I’ve been working on getting the images to align correctly.
I’m not sure I’m being clear on this though. I want my front page, with multiple posts and multiple categories to have backgrounds in the heading area with the category in them. While this would probably also happen on the category page, it would kind of be like having a “music” icon next to a post in the “Music” category, only it would actually have the word “Music” in the background of the header of the post.
And while I could go in and make a class for each category without a problem, I was hoping I could make it dynamic, so
1. If I make a new category, I wouldn’t need to add a class, it would already be there and
2. If I were to release this to the public, it would create the same backgrounds for each user’s categories.Forum: Plugins
In reply to: Category FashionSo, obviously this is a tricky one.
Just to clarify – my goal is to make a dynamic theme that includes a background image for each post with the category name. I have:
1. Figured out how to dynamically create the image as long as I have the category name passed along to the image creator. (i.e. – url(“categoryimage.php?value=Music”) )
2. Figured out how to create the dynamic style sheet (style.php)
3. Figured out how to assign the proper class to the post.
What I haven’t figured out is:
1. How to dynamically create the style sheet entry for every category. It’s easy to do manually, but I’d like for the theme to create this part by pulling from the database and there’s where my question lies.
— How do you create the classes needed (say “Music”) for each Category using PHP and place it into the style sheet at load time? Would this need to be done inline or would I still be able to pull in an external style sheet?
Forum: Plugins
In reply to: Mini Footer – Plugin RequestI think you’re looking for in_category, which is used inside the loop:
Forum: Fixing WordPress
In reply to: Can’ access my pageI would say that it is your wp-config.php (sorry I didn’t give you the filename when I responded)
cPanel also gives you access to phpyadmin, where you can go in and take a look at the db you have set up. (in case HandySolo’s comment is correct)
Forum: Fixing WordPress
In reply to: Can’ access my pageCheck out the wordpress config file and make sure that you have the right values there for the site and database. This should fix the problem. I use lunarpages as well, and installed wordpress from Fantastico in the cPanel, which was alot easier than downloading and ftping everything.
Forum: Fixing WordPress
In reply to: sub domain for different categoryI’ve never seen that done before with WordPress, but I do believe the best thing to do is to contact them and asking. Every designer I’ve ever contacted has been glad to answer questions.
Forum: Fixing WordPress
In reply to: sub domain for different categoryFirst of all, how do you know they are using WordPress? Secondly, why don’t you contact them and ask?
Forum: Themes and Templates
In reply to: Suggested method for testing theme modifications?I copied the folder and changed the header on the default theme as stated above. This is the best way, if you don’t feel like setting up a local server.
Forum: Your WordPress
In reply to: My First wordpress Blog Feedbacks pleaseFrom a design perspective, rather bland, but from a usability perspective, looks nice and crisp.