patrickw
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Syndicate Links ListAny ideas?
Forum: Themes and Templates
In reply to: Template Tag IssuesAlright, why it’s working now, I have no idea, but I went back and rewrote all the templates for the pages, the home.php and the header.php.
Anyway, here is what my new title tag looks like:
<? bloginfo('name'); if(is_home()) { echo ': home'; } elseif(is_single()) { echo ': journal:'; echo strtolower(wp_title('', 0)); } else { echo ':'; echo strtolower(wp_title('', 0)); } ?>For all of you out there who aren’t coders, this is what it does:
This goes in the title tag.
1) Prints the name of the blog
2) If it is the homepage, it appends ‘: home’ to the end of the title tag, so now the home page looks like:sitename: home.
3) If it is not the home page, but it is a single blog post (see: is_single()), it will append ‘: journal:’ and the post name to the end of the title after the blog name has printed so it looks like:sitename: journal: post title. The strtolower also takes the title of the post and converts it to all lowercase, just for aesthetics.
4) If the parameters dont match any of the above circumstances, then, just return the title of the page after it has been converted into lowercase.Anyway, thanks for your help.
Forum: Themes and Templates
In reply to: Template Tag IssuesAlright, after some more testing, it seems to work on pages using the default template. The two pages I was testing were using a template. One being the home.php and then the whole:
<?php query_posts('cat=-0'); //gets all posts
load_template( TEMPLATEPATH . '/index.php'); //loads index
?>I am going to play with the other pages, see what’s going on.
To answer your questions, I can’t give out the url just yet and I am running the latest.. 2.0.2
Forum: Themes and Templates
In reply to: Template Tag IssuesEach page renders the title of the window:
sitenameEach post renders the title of the page:
sitename » Post NameAny other ideas?
Check out http://mu.wordpress.org/. It’s WordPressµ (µ is pronounced mu and mu being Multi User).
That should get you off the ground.
Forum: Installing WordPress
In reply to: I’m on 1.5 and want to keep contentDon’t do the install, perform the upgrade. Once you’ve uploaded the new files go to:
*install-dir*/wp-admin/upgrade.phpIf I remember correctly that is the page which will upgrade your installation,
Forum: Fixing WordPress
In reply to: How to put adsense between postsThis will put your adsense code at the end of each post on your main homepage.
Open up your index.php inside of your template directory and add the adsense code here:
<div class=”entry”>
<?php the_content(‘Continue reading…’); ?>
</div>
<!– Put your adsense code here. –>Forum: Alpha/Beta/RC
In reply to: Upgrade Problem in RC3Yep, no problem. Let me know how it goes.
Forum: Alpha/Beta/RC
In reply to: Upgrade Problem in RC3rprins: Have you tried modifying the password in the database? If that doesn’t work then you can always install fresh and import your comments/posts via WP2’s import function.
Or you can also do it manually with the database. This is what I recommend simply because it imports everything. Here’s how:
Backup these tables in their own files (as in each table has their own file):
NOTE: This is from your UPGRADED wordpress install. Just backup the posts comments and such I listed from your UPGRADED WORDPRESS 2 Install. Not the wp1.5 one.
wp_categories
wp_comments
wp_post2cat
wp_postsAssuming you kept the default prefix. Then, open each file (notepad isn’t great, so I recommend Notepad2 from http://www.flos-freeware.ch/notepad2.html.
Once each file is opened, use the replace function and replace ‘wp’ or whatever the old prefix was and then have notepad2 search and replace ‘wp’ with the new prefix.
Then delete the ‘wp_categories, wp_comments, wp_post2cat, and wp_posts’ tables from your database and then import each of the modified files back into the new fresh install database.
This will import your posts/comments/categories and such into the new install with a working password. Your settings will be lost but you can easily fix those via wordpress’s admin interface.
Hope that helps.
Forum: Alpha/Beta/RC
In reply to: Upgrade Problem in RC3This is probably the 5th or 6th time I’ve backed up, reloaded, upgraded and installed wp2.
Finally it’s working. Here’s what I did.
Leave your 1.5.2 WP intact. Make sure that the 1.5 wordpress install is in the directory that you want WP2 to be installed to.
Backup your database just in case. In fact, back it up twice or three times just to make sure you always have a copy.
Make sure you are still logged into your 1.5.2 install. It will have the cookies and such still intact so there is no need to login again. Do not logout.
Move the 1.5.2 contents into a directory that you create. (Mine happened to be named /old/).
Upload WP2 to the / directory where 1.5.2 was installed. Now your directory structure should look like: /wp-content/, /wp-admin/, /wp-includes/, /old/
Navigate to [Wordpress install here]/wp-admin/upgrade.php
You might (probably will) recieve the error:
WordPress database error: [Table ‘yourdbname.wp_usermeta’ doesn’t exist]
SELECT meta_key, meta_value FROM wp_usermeta WHERE user_id = ‘1’Ignore it. Click upgrade.
You will probably still see that same error on the second page. Just ignore it. If you see no other errors then click continue to go to your site.
Now, you might possibly see a totally blank page. I did. Now, go to /wp-admin/. No need to login since you were already logged in. Hopefully this should stop the password issues you had.
Click on the presentation tab and since your old theme isn’t compatible (at least mine wasnt) wordpress will default to the default theme.
Now go to your site homepage and everything should be fine.
I was having lots of trouble and this is what solved it all for me. (Note: This is exactly what I did, if it doesn’t work for you, sorry, I can try to help but I can’t promise that what I say will work).
Also, if you screw up your database and you didn’t backup, it’s not my fault.
If you still are having password issues, you can always manually change the password by hand in the database.
(This is in phpMyAdmin)
Navigate to:
wpdatabase > wp_users
Click Browse and find the user ‘admin’.
Click on the little ‘Pen’ icon.
Go down until you find the user: user_passUse this little tool:
http://pajhome.org.uk/crypt/md5/To MD5 hash your new password and stick it in that field.
Save the changes and relogin to your wordpress with your new password.Enjoy. Once again, if you screw up your database and you didn’t backup, it’s not my fault.
Edit: I realize the reason my theme wasn’t compatible was because I forgot to move it to the new WP install.
Forum: Fixing WordPress
In reply to: Wipe out WordPress but retain posts and comments*hugs vkaryl*
Thank you so much. Posts are working, all the problems are fixed, and now my site is a step nearer for the css reboot. Thanks alot!
Forum: Installing WordPress
In reply to: Installation Help PleaseWell, you obviously have everything in the wp-config.php correct or wordpress wont even install. I suggest you open up PHPMyAdmin and totally delete that wordpress install from your database. Then reinstall. Dont need to delete the files, just all the wordpress stuff in the database.
Forum: Fixing WordPress
In reply to: Organizing Blog Material – How to Intelligently TopicJust copy and paste the content in the page and paste it in wordpress. I guess you could also write something to do it.. and then have people just put their thoughts in the comments. No need for new blogs each time
Did I misunderstand?
Forum: Fixing WordPress
In reply to: WordPress with Php Include.Umm, why do you have the if(!$_server stuff. can you just have the include by itself and then if needed, include the wp-blog-header.php too?
Forum: Fixing WordPress
In reply to: Wipe out WordPress but retain posts and commentsAnyone have any ideas?