ifelse
Forum Replies Created
-
Forum: Everything else WordPress
In reply to: Getting the word out…Write something that people will hunt out, search for and link to. Release a theme, write a plugin, make an interesting design. Do something that makes you stand out from the other 100 million blogs out there.
Forum: Fixing WordPress
In reply to: Static content on home page only in 1.5?Oops, fixed the type. I meant home.php:-) Note that default doesn’t currently contain a home.php file.
Forum: Fixing WordPress
In reply to: Changing Category ID numbersI wrote quite a lot on category numbers in this thread. Might be quite interesting even if you don’t go through with it.
Forum: Fixing WordPress
In reply to: Static content on home page only in 1.5?That’s incorrect. Actually, home.php is higher in the template hierachy so if you want a static homepage, just add your code in wp-content/themes/YOUR_THEME/home.php
Forum: Themes and Templates
In reply to: [Theme] New theme “Falling Leaves”Nice. I like the little touches like the blockquotes and entry seperators.
Forum: Themes and Templates
In reply to: equiX v1.1Looks good. Nice job!
Forum: Themes and Templates
In reply to: Liberated 1.0Here’s a list of useful theme resources.
Forum: Themes and Templates
In reply to: Liberated 1.0I agree, it’s looks like a nice, clean template that should be a good basis for customising.
Good job!
Forum: Fixing WordPress
In reply to: i can’t do more comments…Sounds like you installed a comment throttling plugin. Try disabling your spam/comment plugins one by one until you identify the offending plugin.
Forum: Fixing WordPress
In reply to: Category Numbers in the Thousands? Why?An auto_increment field will always retrieve the next highest number in a given table.
Assume that we have a table test defined as thus:
id int auto_increment
message varchar
and we insert a set of values as thus:
insert into test(message) (‘a’);
insert into test(message) (‘b’);
insert into test(message) (‘c’);The table will now contain the following:
id | message
---|----------
1 | a
2 | b
3 | cNow we go and execute the following:
insert into test(id, message) (100,’d’); //note the explicit id valueThe table will now contain the following:
id | message
---|----------
1 | a
2 | b
3 | c
100| dIf we now go and execute “insert into test(message) (‘e’)”, we’ll find that the next value retrieved by MySQL for the id column is 101 i.e. that is the next sequential value.
This may provide some clues as to how a scenario arose. At some point, a category with an id of 4423 was inserted into the db which naturally caused all subsequent id’s to start from that offset.
Forum: Your WordPress
In reply to: My lil’ site =)Nice little touches. Are you considering using these theme for your Authentic Asian site (which, btw, is building up a lot of good content)?
Forum: Fixing WordPress
In reply to: Category Numbers in the Thousands? Why?vkaryl,
Auto_increment is a MySQL feature i.e. a database feature. It’s used for sequential id’s (i.e. similar to sequences and identity fields in other databases). This is used to typically generate unique primary keys i.e. post_id and category_ids. An auto_increment field will always retrieve the next highest number in a given table.
Forum: Fixing WordPress
In reply to: Category Numbers in the Thousands? Why?Lorelle,
To reset the auto_increment counter, you can run do the following.
You’ll need to remove all the records from wp_categories and wp_post2cat tables where the category id is greater > the sensible value i.e. 70.
You’ll then need to run the following in MySQL:
ALTER TABLE wp_post2cat AUTO_INCREMENT = 70Now the category_ids will start incrementing from 70.
However, as this appears to be only a cosmetic issue, my advice would still be to just live with it. However, if you do decide to do this, make sure that you back up your DB before doing so. I cannot stress this enough. Direct DB manipulation is inherently risky so make sure that you’re in a situation to recover from any mishaps.
I tested this on a dummy table that I generated which was successful but I cannot guarantee that this will be the same in your case as I neither have access to nor enough information on your system.
Forum: Fixing WordPress
In reply to: I need “Big Quotes”, like on this site.This isn’t a WP functionality per se but a html/css issue. Unfortunately, you didn’t provide a link to your blog in your profile so I can’t see what your design is like but hopefully I can steer you in the right direction.
What you need to do is appropriately markup the quote and apply some styling to it. BBC’s markup, in this instance, isn’t ideal but I digress.
What you should do is in your post, enclose the quote text with
< blockquote > tags. Now add the following to your style.css file.blockquote{
float:right;
width:100px;
background:white;
border:1px solid black;
}Voila. Standout blockquotes.
Forum: Your WordPress
In reply to: Deviations of Sanity, my redesignWow. I liked the old look but I have to say this redesign is fantastic! Clearly a lot of care and attention has gone into this one. Good job!