Len
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: URLS linke a normal website ?What happens when you change the structure and click “Save Changes”. Any error messages?
What is the content of the htaccess file in your WordPress directory?
Is that file writable during the update process? WordPress needs to be able to write to that file in order to save any changes.
Forum: Plugins
In reply to: Is there a way to hide the uploads folder from public/Actually an ever better way is place the following in a htaccess file,
Options -IndexesThat will turn off indexing for whatever folder it resides in as well as any subfolders beneath it. For example, if you place it in
wp-contentsit will protect not onlywp-contentsbutwp-contents/themes,wp-contents/pluginsandwp-contents/uploadsas well.If you place it at root it will work for all foldes/subfolders sitewide.
Forum: Fixing WordPress
In reply to: After log in- To home pageI’m sure there must be a plugin that could handle this. Have you looked in the Plugin Directory for a redirect plugin or some such thing?
Here is a little hack, open
wp-login.phpand look for
$redirect_to = admin_url();replace it with…
$redirect_to = get_option('siteurl');A caveat: altering core files is not usually a good idea especially since any mods you make will vanish the next time you upgrade.
Forum: Fixing WordPress
In reply to: Ive made a mistake and can’t log in to rectify!!I’m not referring to the WordPress backend. I’m referring to cPanel. The control panel you use to access your hosting account.
Forum: Fixing WordPress
In reply to: Ive made a mistake and can’t log in to rectify!!phpMyAdmin is a program that allows you to directly interact with the database. It is accessible via your cPanel.
Forum: Fixing WordPress
In reply to: URLS linke a normal website ?You need to make sure your host has
mod_rewriteenabled which is an Apache module that rewrites permalinks on the fly. Further info…Forum: Fixing WordPress
In reply to: Ive made a mistake and can’t log in to rectify!!This is easy to fix. Podz has great instructions here.
Forum: Fixing WordPress
In reply to: Banner ClickableTry this …
Modify
<div class="header">so that it reads …<div class="header" onclick="location.href='http://www.thehateblog.net';" style="cursor: pointer;">Forum: Fixing WordPress
In reply to: 2.7 – I’ve moved my upload folder! HELP!Have a look at Moving WordPress Within Your Site
Forum: Themes and Templates
In reply to: need helpYou’re using excerpts on the home page so WordPress strips out all formatting. What you could do for the home page is utilize custom fields to show images.
Have a look at a few magazine-style themes to see how they do this.
Forum: Fixing WordPress
In reply to: Sidebar Navagation – how to change?If you’re using widgets then navigate to Appearance > Widgets and edit that particular widget. With the theme you’re using widgets are north_sidebar, south_sidebar, east_sidebar and west_sidebar.
Or, if you’re like me and refuse to use widgets preferring instead to hard code everything then edit the file sidebar.php
With respect to slugs –> WordPress Glossary
Forum: Fixing WordPress
In reply to: threaded comments tutorial?http://ottodestruct.com/blog/2008/09/29/wordpress-27-comments-enhancements/
Edit: samboll beat me by 10 secs 😉
Forum: Plugins
In reply to: Is there a way to hide the uploads folder from public/Drop a htaccess file in the wp-contents folder.
Order Allow,Deny Deny from all <Files ~ "\.(css|jpe?g|png|xsl|gif|ico|js)$"> Allow from all </Files>This will return a 404 for wp-contents and all subdirectories beneath it such wp-content/uploads, /themes, /plugins
Forum: Fixing WordPress
In reply to: How can I Fix the footer for the GAMEZINE themeHi Joe,
Got your email but I see this issue is already resolved. For future reference and the benefit of anyone reading this thread please DO NOT upload this type of code to your website especially not knowing what it is or what it does.
In this particular case it is simply a technique to protect the spammy links in the footer but it could easily be used for something far more sinister. If anyone wanted to blow a hole the size of an aircraft carrier through your defences this is certainly one way to do it.
eval(base64_decode(...)See that line of code above. That command decodes everything with the () while
evalevaluates or executes the newly decoded goodies. And therein lies the danger. If you want to learn how to decode this stuff just visit any good PHP forum. Decoding this kind of stuff can be tedious and time consuming. I replaced theevalwithprintjust to view the source and saw a bunch moreevalcalls. I’ve seen instances where code was encrypted a dozen times or more. (the newly encrypted code was then encrypted again and so forth) Even running this crap on your computer is dangerous.The bottom line is STAY AWAY from this kind of stuff. There are tons of great free themes from reputable authors out there including magazine-style themes.
I agree with Saurus when he called it a monstrosity.
Forum: Fixing WordPress
In reply to: orderby=rand doesn’t work ?Hmmm, try this…
<?php $featured = new WP_Query("cat=2&showposts=1&orderby=rand"); ?> <?php if ($featured->have_posts()) : ?> <?php while ($featured->have_posts()) : $featured->the_post(); ?>