syncbox
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: max_allowed_packet errorI’ve never experienced this error in all the years I’ve used WordPress and I use it a lot, for a lot of different types of sites.
I would look at another host. Separate of that, perhaps you are using too many plugins and or other enhancements that are causing issues?
Like the OP said, optimizing your db would be a good start.
Also, as a test, try setting your site to a default theme, disabling your plugins and doing a test post. Does the problem go away? If yes, then turn on your plugins one by one and do more test posts, one after each plugin you activate. Still OK? Change back to your original theme.
Error back? It’s your theme… or something in it.
That would be my approach and of course, once you nail down the issue, delete the test posts.
HTH
CaseyForum: Fixing WordPress
In reply to: Dynamic sub-navMost of what you are wanting is explained in the documentation for WordPress — pretty permalinks and child pages, for example.
Re: changing the sidebar based on where you are in your site is controlled with if/else/elseif type php code — though there are plugins that purport to do this. Depending upon if you are using categories or pages for your content, you can use the wp_list_pages() function (or the category version), passing parameters in the function to control what pages are listed (or categories) and how.
Using something like
<?php if (is_front_page()) { wp_list_pages('title_li=&depth=2&include=3,14,16'); } elseif { //whatever you want to do here } else { //what should happen (maybe nothing) if not any of the above } ?>is what I mean. Use the Docs section here and search for wp_list_pages() to see what I mean.
The third item you listed isn’t clear… you don’t “call a page” into the index.php template. You can query for specific posts based on category or all categories… but typically, if you are using WordPress “Pages” you use the page.php file.
Based on what you want to do, you can create customized category templates and page templates. Again, this is in the Documentation for WordPress, which you can get to by clicking the Docs link at the top of this page.
Getting content into specific locations as viewed from a browser requires xhtml and css knowledge or using someone else’s theme.
HTH
CaseyForum: Fixing WordPress
In reply to: sattan.org has royally messed up my blogyou should be able to use your web server account’s control panel (cpanel or plesk or whatever the hosting server has) and the File Manager or whatever tool they provide and reset the permissions for the affected files, right?
Or, the hosting company’s tech should, if you can’t.
You should disable anonymous FTP, make your password really hard to guess, don’t use the default “admin” name when setting up a WordPress blog (make that hard to guess, too), and change the permissions of some key files from 0755 until you need to edit them again… DreamHost (DH) does use Fantastico, so you can pick something other than “admin” as the administrator username. Pick something hard to guess, including some caps and characters.
And of course, always keep WordPress up-to-date, particularly if security fixes are included in the release.
Is there any reason you cannot use DH’s cpanel to access phpMyAdmin and export out your data tables? That IS your content and frankly, you don’t have to rely on WordPress to backup your data. In fact, I never do.
DH should be able to delete that wp-blog-header file. Or, you can use your cpanel’s File Manager tool to locate it and do it, after resetting its permissions to 0755. (using the File Manager, navigate to the web root or where you installed your blog, look for wp-blog-header.php. Click it. There should be some means to see the current permissions or to “change permissions” when the file is selected.
Google file permissions to understand what is needed.
Then upload a fresh wp-blog-header.php file in the same location.
You should be able to get into your blog after that. I’ve never had this hack happen to me, but if it’s just a single file and being able to overwrite it, you have to delete that file and replace it with a fresh copy… then make sure that no users except yourself are administrators (once you can access the wp-admin)…
NOTE: you have to export your data tables using phpMyAdmin to get your current data into the fresh install. This is very easy.
1) find your phpMyAdmin tool in the cpanel at DreamHost.
2) Navigate to your database.
3) Click the Export tab.
4) Select All tables listed in the menu (they are probably pre-selected, but you should see a Select All link).
5) Scroll down to the Save as File and check that option. Export with “none” for compression. This produces a .sql file.
6) Save the file to a location where you can find it.
7) In the text editor of your choice (I use Dreamweaver CS3 and modify its preferences to add .sql to the File Types/Editors it understands how to open) try a Find on sattan.org to see if that shows up anywhere in the actual data fields… I’ve never experienced this hack, so I don’t know if they put something into the data.You also need to save your theme files and plugins unless you plan a whole new theme. Theme files are stored in wp-content/themes/
To get the data into your fresh install:
1) install in the same location as the previous install. (technically, you don’t have to but you’d need to do more Find/Replace in the data before using it if you don’t)
2) Using phpMyAdmin, navigate to the new database.
3) click the name of the database.
4) in the first screen, find the link that says “check all” below the list of tables.
5) In the menu that says “with selected”, choose Drop.
6) Click the Go button and OK the next verification.
7) Click the Import tab.
8) Browse to find the .sql file from your original database export.
9) Click the Go button.All should work well. However, in 2.5yrs of blogging, your database could be quite huge and there could be issues importing the data. Additionally (you didn’t say what happened after the updating to a newer version was done) there could be strange problems with html entities or characters, which happens if you wait a really long time to upgrade your install of WordPress… and DH isn’t the best host for WP, imo. I used them for a while, but they are more expensive than necessary and you have to pay extra to get phone support.
midphase.com, anhosting.com and many others work as well or better (same cpanels, fantastico, etc) and 24/7/365 support by email or phone.
If you change hosts, you can move your blog using the exported data tables, but you will have to do more Find and Replace on the sql file depending upon where you install the WordPress application.
HTH
CaseyForum: Fixing WordPress
In reply to: The visual text editor doesn’t workIt would help if you point us to your site. In general, the visual text editor isn’t something I use (I build my own quicktags.js file) but it doesn’t do that for me (at least not in the relatively recent versions of WordPress.
The wp version
the browser you are using
your operating system
and a URLwould all help someone help you.
Forum: Fixing WordPress
In reply to: Trackbacks to own poststhere are plugins that control trackbacks and pings. Try googling
wordpress plugin + stop internal trackbacks
Forum: Fixing WordPress
In reply to: Help Order Links on my sidebarAlphabetical per the first name? That is what it will be… if you order stuff alphabetically.
We would have to know how you are putting those names into that area of the page to help. Since the code portion of WordPress isn’t shown in the page source, it’s just a guess as to how you are doing this currently.
Copy and paste the code you are using to get these names shown and wrap it here using the code button to keep it pristine.
Then someone can try to help.
Forum: Fixing WordPress
In reply to: Website all messed up in Firefox< ! – – > – – & g t ;
sorry, this forum tends to convert markup to actual presentation… hope this comes through… I put a space between each letter of the stuff above
Forum: Fixing WordPress
In reply to: Website all messed up in FirefoxYou have an incomplete comment in your markup in a form (which is what happens when you copy and paste if not careful)
Firefox is more insistent on valid code than IE browsers (which display just about anything, even if it does so incorrectly rendered)
Look for <!–> –> in the markup below
<form method="get" id="searchform" action="/"> <div><input type="text" value="" name="s" id="s" value="Journal Search…" /> <!--> --> </p>I don’t know that this is the only issue. It’s a good idea to validate your markup and css using the w3.org validation tools or similar.
That’s ALWAYS the first step in finding out what’s wrong. It’s not a wordpress issue, I don’t think.
Forum: Requests and Feedback
In reply to: One Time Splash Screen Plug in RequestVelvetBlues.com…. did you develop this yet? I would LOVE it. yes, I hate splash pages, too, but when someone wants it, they want it.
I had come to the conclusion that lightbox would be the best way to do this — automatically loading in an active state on the frontpage — where clicking or a timed element (both, with option to set time in seconds or milliseconds) then hides the splash, displaying the actual front page content.
I think I could develop it by hand, but a plugin would rock.
Forum: Plugins
In reply to: want very simple splash/intro pageThis is fairly simple to do. Just create a static wp page — call it nanox
set nanox to be your home page in the settings
- create a custom page template (open page.php and copy it, naming it nanox.php) and be sure to put the page template bit at the top
<?php /* Template Name: nanox page */ ?> - open the header file and create some style rules just for this page… you’ll want to set up a conditional statement to show it (echo) ONLY if the front page… something like
- in the content for this page, put whatever graphic and links required to get you to the next page
<?php if (is_front_page()) { echo '<style> //whatever background colors, etc you need</style>'; else {} ?>HTH
edited to fix mark up is_front_page()
Forum: Plugins
In reply to: Splash PageTo hide the sidebar on any page, you can use conditional statements, but you need to know what the id is for the Page (I’m assuming you are using the Page function for wordpress “static” content). In any case, the idea is the same for category pages… I’ll assume Page and say that the page you use for “home” has an id of ‘3’
basically:
<?php if (is_page(3)) {} else { get_sidebar(); } ?>the logic says: if this is the page with the id of ‘3’, don’t do anything. But in all other cases, show the sidebar.
Simple. Because you are inside a php statement, you don’t use the
<?php get_sidebar(); ?>edited: oops, forgot to say that this would be put into your page.php file if you are doing this using Pages… if you are doing this kind of thing for various category pages, you’d use
(is_category('3')) {etc and you’d put it into your index.php file. I am assuming you are not using custom category template files because if you are, then you can simply remove the<?php get_sidebar();?>from the custom category page you use for your home page.to learn more, search the documentation for “conditional” and “category templates” and “(is_page());”
HTH
Forum: Fixing WordPress
In reply to: media librarynevermind… the utilities for uploading and accessing just got moved. I found them.
Forum: Fixing WordPress
In reply to: media librarydone all of that and have had this SAME problem on different servers… from Network Solutions to Midphase to godaddy
WHERE DO I FIND THE ACTUAL UPLOADER PART OF THE MEDIA LIBRARY?
Forum: Fixing WordPress
In reply to: posts orderby custom fieldI’d love to check out a post order plugin… which is a good one for v2.6.+?
Forum: Themes and Templates
In reply to: Customising Links (removing “li” etc..)is there some way to do this without widgets?
Here’s my nav (site uses pages only)
<ul id="mainnavs"> <?php wp_list_pages('title_li=&include=27'); ?> <?php wp_list_pages('title_li=&include=29'); ?> <?php wp_list_pages('title_li=&include=5'); ?> <?php wp_list_pages('title_li=&include=7'); ?> <?php wp_list_pages('title_li=&include=9'); ?> <?php wp_list_pages('title_li=&include=11'); ?> </ul>I want this image tag to appear INSIDE the
<li></li>tags<img src="<?php bloginfo('template_directory'); ?>/sharedimages/navStar.png" class="navstar" />Any ideas?
- create a custom page template (open page.php and copy it, naming it nanox.php) and be sure to put the page template bit at the top