ifelse
Forum Replies Created
-
Forum: Plugins
In reply to: RSS Feed – Exclude Some CategoriesTo exclude one category i.e. category 3, add the following to the root index.php before the include to wp-blog-header.php:
if(isset($_GET['feed'])) {
$cat=-3;
}To exclude multiple categories i.e. 3,4 and 5, you’ll have to work backwards and include only the categories that you want i.e.
if(isset($_GET['feed'])) {
$cat='1 2 6';
}Forum: Your WordPress
In reply to: Switched from Nucleus to WP -danmeister.netNice design! Out of interest, was the background custom designed?
Forum: Plugins
In reply to: who can make a plug in for searching“thanks for your repley, in fact it is not exactly what i want, i want to build a search engine just like feedster.com, webmaster can submit their sites rss feeds to me, and then people can search in my search engine just like feedster.”
…so you want to make feedster without any of the hard work involved?
Forum: Fixing WordPress
In reply to: noticed installation problems“what about the source for go.php someone?”
Have you tried clicking the link I gave you?
go.php is part of the click counter plugin developed by OZH and is not a core part of WP.
The source code, usage and installation instructions can all be found on OZH’s plugin page.
Forum: Installing WordPress
In reply to: RSS renamed itselfThe two feed URLs are exactly the same. ?feed=rss2 is simply the indirect way of accessing wp-rss2.php
Forum: Fixing WordPress
In reply to: noticed installation problemsThis table is used by OZH’s click counter plugin.
For some reason, your table definition is incorrect. Use PHPMyAdmin and drop (i.e. remove) the wp_linkclicks table.
You should then recreate it via the following piece of SQL:
CREATE TABLE wp_linkclicks (
link_id INT NOT NULL AUTO_INCREMENT ,
link_url TEXT NOT NULL ,
link_clicks INT NOT NULL ,
link_date DATETIME NOT NULL ,
link_title TEXT NOT NULL ,
UNIQUE (
link_id
)
);Forum: Fixing WordPress
In reply to: How to disable pingbacks when linking internallyWhat Josepo is trying to say is, instead of using absolute URLs, use relative ones.
Forum: Fixing WordPress
In reply to: using a .swf file for the header“is there any way I can have the swf code in my .css, then call it in my index.php page???”
The answer is no. You can’t use an object (i.e. the SWF file) as a background using CSS as only image files are accepted. Unfortunately, what you’ll need to do is mark it up specifically by using the object tag.
Forum: Installing WordPress
In reply to: What can I do???As it’s a ‘.com.np’ domain, I did a search for it (bnepal.com.np) at http://www.mos.com.np which gives “The domain name bnepal.com.np is not yet registered”.
Forum: Themes and Templates
In reply to: Sidebar Graphisc Header Question“One more quicky I want to hide the text in my header”
Rather than removing the php call which will negatively affect Search Engine spiders and screen readers, add the following to the end of your style.css file:
.headerimg h1, .headerimg .description{
margin-top:-3000px;
}Forum: Fixing WordPress
In reply to: Permissions 101I made a reply to another post which gives a bit of a background on what the chmod numbers mean.
This should allow you to make your own judgement on what to chmod the files to.
Forum: Themes and Templates
In reply to: Do you use the ‘BligBlog’ theme ?Extremely bad form indeed…
Forum: Themes and Templates
In reply to: Adding a theme from WRC Theme ViewerHabit, laziness or a just in case mentality? 🙂
Forum: Themes and Templates
In reply to: Adding a theme from WRC Theme Viewer“Jalenack, what’s the difference between 666 (the BEAST! ha!) and 766? is 666 safer? I’m curious.”
Just realised that in my previous post, I gave the theory without actually explicitly answering the question.
There’s no need to chmod it to 766 instead of 666 as you won’t be executing the file. If it’s not a shell script or executable program, then don’t bother.
It’s redundant work and you should stick to 666.
In fact, it’s best practice to be as restrictive with permissions as possible. Depending on the file, if you can get away with assigning less permissions, the better.
Forum: Themes and Templates
In reply to: Adding a theme from WRC Theme Viewer“Jalenack, what’s the difference between 666 (the BEAST! ha!) and 766? is 666 safer? I’m curious.”
In unix, every file is assigned a set of permissions designating the level of access. The 3 possible permission types are Read (R), Write (W) and Execute (X).
Each of these is given a bit pattern or in other words, a numeric identifier:
Read (R) = 4
Write (W) = 2
Execute (X) = 1Hence, assigning a permission type of 7 means giving Read, Write and Execute as 7 = 4+2+1. Assigning a permission type of 6 instead will mean giving Read and Write as 6 = 4+2.
Now that probably makes sense, but why then do we pass 3 numbers to Chmod? That’s because in Unix, the permissions are given to 3 entities: The owner (i.e. the person that owns/created the file), the group (i.e. the group which the owner belongs to) and others (i.e. everyone else).
Hence, Chmod 766 means give full permissions to the owner and RW permissions to everyone else.
OK, I give…what’s 766? Is that the extension?
To give permissions, type at the shell prompt (command line)
chmod 766 filename