Eric Mann
Forum Replies Created
-
When you’re putting the source in the code, you have to include the http:// before blog.mariosworld.org. A browser on its own is smart enough to recognize that’s a standalone address, but when it’s interpreting a code like , it thinks it’s relative to the site. This is why it gives you http://mariosworld.org/blog.mariosworld.org. Instead, use the full web address (http://blog.mariosworld.org) and you should be fine.
Forum: Themes and Templates
In reply to: How to fix the width after removing sidebar on one page?You need to edit your stylesheet. Right now, it is likely set up to display the “main” content only to a specific width. The sidebar is set to be a certain width on the right. You need to find the right sections of your style.css file and add the two numbers together to make it stretch to fill the whole page.
Forum: Fixing WordPress
In reply to: Dropping unused tables in databaseThose tables were installed by various plugins, and it doesn’t look like you’re using any of the plugins anymore (but don’t quote me on that!) If you’re absolutely sure you’ve uninstalled the plugins that use those tables then they should be safe to drop.
Forum: Fixing WordPress
In reply to: How to remove double titlesThat’s what we lost in the long forum post … I thought we had been working with page.php and just now noticed we had been working instead with single.php. My mistake for not catching that the first time around.
I’m glad it’s working for you now!
Forum: Fixing WordPress
In reply to: Menu not displaying in IEWow! That never happens. 🙂 I’m glad it’s working for you now, though. (I’ve never liked IE … it always causes problems …)
~Eric
Forum: Plugins
In reply to: Plugin Error PageWhat error is showing up? Is it a WordPress error page, a server error page, or something else?
Forum: Fixing WordPress
In reply to: I wont to insert Counter “One in Two”Your footer file is located in your themes directory (/wp-content/themes/your-theme-name/footer.php).
I don’t know what you mean buy “one in two.” Can you please explain your question?
Forum: Fixing WordPress
In reply to: Website going slow, not loading, database issues, 17MB memory usageThere’s a very good chance that the amount of traffic you’re getting is just really taxing on your server. You might want to look in to a plugin like WP Super Cache (http://wordpress.org/extend/plugins/wp-super-cache/) that makes your most popular pages into static HTML files. This way, users aren’t requesting the same dynamic page from the database every time and burning through your available processing power.
Forum: Plugins
In reply to: Check if user is using visual editor?Short answer: yes.
You need information out of two tables in the database, wp_users and wp_usermeta. The wp_users table will tell you what user ID maps to which user (by name, nickname, email, etc). The wp_usermeta table defines certain attributes based on user ID. One of these “meta keys” is called “rich_editing” and will either be “true” or “false” depending on their settings.
You can get user names and user IDs with built-in WP functions (ie get_userdata()). Knowing the user ID, you can run a loop in your plugin to get data from the database … GET ‘meta_value’ WHERE ‘user_id’ = x AND ‘meta_key’ = “true” … or something along those lines.
Forum: Fixing WordPress
In reply to: Can’t login to wp-admin anymoreSculley –
Clear your browser cache. I just clicked on your http://www.verbalremedies.com/wp-admin link and was taken directly to your login screen. It’s still there, your computer is just probably trying to access outdated information.
Forum: Plugins
In reply to: Display different text in post according to user levelI haven’t seen a plugin with this level of functionality … yet. But that doesn’t mean there isn’t one out there. You could always take a crack at building it yourself (I’m sure there’d be a demand). Or you could talk to a developer about creating it. Keep in mind, some developers will charge a fee to build this kind of customer functionality for you.
If you want to look for a commercially available solution that does exist, check out aMember (http://www.amember.com/). There are plugins to integrate this system with WordPress, though the system itself is probably rich with features you don’t need.
Forum: Fixing WordPress
In reply to: Menu not displaying in IERob,
Actually, the changes need to be made in your other theme files. If you want, I can take a peek at them and add the code in the appropriate places for you. You’ll actually have to make changes to either the sidebar file or to the files referencing it … but I’ll have to see them first to be sure where the change needs to be.
If you want, I can just change it for you. It will take at most 5-10 minutes for me to find and fix the code. Set up a temporary admin account and email the information to me at: eric [at] eamann [dot] com. I’ll add the code for you, then you can delete the account.
Forum: Fixing WordPress
In reply to: How to remove double titlesAntonella,
Contact me ‘offline’ and I’ll take a look at your theme. I’m wondering if maybe we’re just missing something by talking in the forum. My email is eric [at] eamann [dot] com.
Forum: Fixing WordPress
In reply to: Restrict access to logged in users?I found a plugin the other day that allows you to use an external means to authenticate users within WordPress: http://wordpress.org/extend/plugins/http-authentication/ This might be what you’re looking for if you can get your external site to work with it properly.
Restricting pages within WordPress to registered, signed-in users is actually quite simple.
- Create a new page template (by copying page.php, renaming it, and uploading it back to the server).
- Add the following to the top part of the page template:
- Find the line “<div class=”post-content”><?php the_content() ;?></div>” and change it to:
<div class="post-content"> <?php global $user_ID; get_currentuserinfo(); ?> <?php if($user_ID) { the_content(); } else { echo '<p style="font-size: 36px;"><center><a href="' . get_settings('home') . '/wp-login.php?action=register">Please Register!</a></center></p>'; echo '<p style="font-size: 11px; font-family: Arial, Helvetica, sans-serif;">You must be a registered user to view this page.</p>'; } ?> </div>This script checks to see if the user is logged in. If they are, then the page will display normally. If not, then they’ll see a message asking them to register.
Forum: Fixing WordPress
In reply to: site got hacked! now trying to restore itIf your site was hacked, my best advice would be to wipe everything and reinstall from your backups. You might catch one file here and there, but they might have added lines to your database or external calls in legitimate files as well. I’d recommend restoring your backup and then immediately upgrading to the latest version of WP just to be safe … and changing your and all of your other users’ passwords right after.