Len
Forum Replies Created
-
Forum: Installing WordPress
In reply to: A terrible noobie…need helpHi Japancinema,
It doesn’t look like you’ve changed your domain name settings to point at your new host’s nameservers.
Forum: Themes and Templates
In reply to: my first theme – getting a parse/syntax error in phpHi cscott5288,
The error (which occurs twice) is here …
<?php if (have_posts)()) : ?> <?php while (have_posts)()) : the_post(); ?>It should read …
<?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?>Forum: Fixing WordPress
In reply to: 404 not working in IEYeah, I’ve seen this with IE before. How exactly are you manifesting your 404? Do you actually have a
404.phpfile or are you using an else statement to display an error message in whatever template file is used to display a given post?What I would do is don’t bother with the else statement, just place the following at the very top of your theme’s 404.php file (if you don’t have one create it)
<?php ob_start(); ?> <?php header("HTTP/1.1 404 Not Found"); ?> <?php header("Status: 404 Not Found"); ?>Forum: Themes and Templates
In reply to: WordPress <a href title=”…”Those are called title attributes. Have a look at this plugin.
Forum: Fixing WordPress
In reply to: Very Weird Feed ErrorI’m not 100% certain but it’s a good place to begin.
Forum: Fixing WordPress
In reply to: Attempt to fix “minor” error leads to bigger problemsLike I said, the auto-upgrade may have borked something. I’ve seen this error message in conjunction with auto-upgrade a couple of times. The only thing I can think of recommending at this point is a manual upgrade (well not really a manual upgrade, more of a re-install) as per the directions in the link I gave you.
Basically…
1. Delete wp-admin and wp-includes folder
2. Leave the wp-contents folder alone
3. Delete the files that live at root EXCEPT for the wp-config.php file
4. If you have added any custom rules to your htaccess file you might want to live that alone as well
5. Upload new filesIt’s important to note: delete and upload as opposed to overwriting.
With respect to the memory errors your host will probably have to sort that out.
Forum: Fixing WordPress
In reply to: Attempt to fix “minor” error leads to bigger problemsCall to undefined function...is almost always caused by missing or corrupt files. A shot in the dark, have you recently used the automatic upgrade feature to upgrade to 2.9? I ask this because I have heard a few problems related to it resulting in this particular error message. (calling is_admin in /wp-includes/var.php L16)First, undo whatever it is you did. Then try a manual upgrade.
http://codex.wordpress.org/Upgrading_WordPress_ExtendedForum: Fixing WordPress
In reply to: Very Weird Feed ErrorLooking at the generated source of your feed I see alot if this…
<p class="MsoNormal"You’re copying/pasting from Word, yes? Have a look at this sticky post on why that’s not a good idea. The bottom line is that Word introduces a bunch of crap into your document which can, as you found out, have adverse effects.
Forum: Fixing WordPress
In reply to: Parse errors, unable to log in and view siteIt appears as though your site has been compromised. Have a look at the following links.
1. Several forum threads dealing with hacks
2. Codex info on how to harden your site
3. Detailed info on hacks from WordPress dev DonnchaForum: Everything else WordPress
In reply to: Trouble logging in – help!Hi Plantingdollars.
The function
is_site_admin()was dropped from core hence the error. The file is calling a non-existent function. Try replacing it withis_admin()Open
related-posts.phpand at Line 81 look for the following…if ( !function_exists('get_site_option') || is_site_admin() )Change it so that it reads…
if ( !function_exists('get_site_option') || is_admin() )Forum: Fixing WordPress
In reply to: Whole Blog Destroyed Need Help Fast!!!Login via FTP and rename or delete the plugin.
Forum: Themes and Templates
In reply to: footer in base64… how decrypt it?@asif2bd
As I’ve explained before, while that method works most of the time there are problems with it…a) If there are PHP or javascript functions executing in the background there may be no generated output and… more importantly…
b) This requires one to actually upload & execute this code. I would never upload anything to my server without first knowing what it does. While it’s true obfuscation is used mainly to protect spammy footer links, the technique could easily be used for something far more sinister.@paki123
This code is not base64 – it is byterun. The decoded file is here.http://wordpress.pastebin.com/m5f0c51ac
PS: love how they obfuscated the Google Adsense code.
Forum: Themes and Templates
In reply to: Sidebar: Different for each pageI don’t understand the question? You want to display different content in the sidebar for different pages?
created a Category called Sidebar… but it automatically places any post under this category on all pages with sidebars.
That’s what confuses me.^^^
One way is to create Page Templates and new sidebar PHP files and use file includes to call those sidebars. For instance, lets say you have a page called “Contact” and want to include specific info in the sidebar on that page.
Create a new Page Template called “contact” (you can use your theme’s page.php file to guide you) and insert the following at the top…
<?php /* Template Name: Contact */ ?>Then when you create the contact page you can select the contact page template from the drop down menu.
Next, create a new sidebar.php file – call it whatever you want but for sake of simplicity lets call it contact-sidebar.php. Again, use your theme’s sidebar.php file to guide you.
In your newly created Contact Page Template use a file include like this…
<?php include (TEMPLATEPATH . '/contact-sidebar.php'); ?>More reading:
http://codex.wordpress.org/Pages
http://codex.wordpress.org/Pages#Page_TemplatesForum: Your WordPress
In reply to: Need Bbpress adsense themesThere’s not an abundance of bbPress themes right now. Have you asked in their forum? http://bbpress.org/forums/
Your site has been compromised. You’re also using a vulnerable version of WordPress.
<meta name="generator" content="WordPress 2.6.5" />Some good info in this thread…
http://wordpress.org/support/topic/268083?replies=5#post-1065779