peiqinglong
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Trying to pull last 30 day postsMichael: you’re awesome! Do you have a link where I can buy you some coffee or something?
Forum: Fixing WordPress
In reply to: Trying to pull last 30 day postsMichael: Yes!
Forum: Fixing WordPress
In reply to: Trying to pull last 30 day postsMichael: is it possible to make it so that rather than 30-days it’s just posts from whatever the current month is or is that vastly more difficult?
Also if I wanted to say do last month’s, I tried this:
$oldest = date($format_of_date, strtotime('-30 days,-30 days'));
But that didn’t work for me.
Forum: Fixing WordPress
In reply to: Trying to pull last 30 day postsMichael: Thanks for the speedy reply! I’m going to try this and report back ??
Forum: Fixing WordPress
In reply to: Uploading Images ProblemHave you checked to make sure the directory does exist? Are you sure you are recursive the chmod?
Forum: Fixing WordPress
In reply to: Unable to access in local networkWhat you might consider doing is modifying the HOSTS files on your computer (and ever other computer you wish to access the local site from).
Do a search on your computer for Hosts or Host and edit it in notepad. Put in the IP address of you web server and then hit tab and put in 3ck.us. All done.
Forum: Fixing WordPress
In reply to: Uploading Images ProblemTry chmoding your uploads folder to 777 with recursive. Then see if it uploads. If it does, it’s a permissions issues. Change it to a safer chmod like 755 after you done testing.
Forum: Fixing WordPress
In reply to: convert to static sitesYea, open each page in your web browser. Do View Source and copy everything and paste it into a notepad document and save as “index.html”, this-is-a-page.html, etc. Upload everything back up. Done.
Forum: Plugins
In reply to: Trying to show the contents of a specific postHaha, stupid me, I should be using $wpdb->get_var and not get_col.
Forum: Fixing WordPress
In reply to: How to get rid of google ads that have suddenly appearedDo you use feedburner? If so, do you have Adsense Ads enabled in FeedBurner because it would automatically put Adsenses into your blog. Other thing I would try: switch themes, ads go away, it’s the theme, if not deactivate all your plugins.
Forum: Fixing WordPress
In reply to: Intranet HelpYou have to setup a database for each one. You could copy the wordpress folder, but make sure you don’t copy the wp-config.php.
I also don’t think XAMPP would be the *best* method for an intranet. At my company here, I’ve setup a 2003 server (long story) with apache, php, mysql, etc. with WordPress MU installed and we use the Active Directory to push out the DNS. With XAMPP, you will have to edit each host file on each computer so that they can access your notebook. This is tedious if you have more than 5 people in your company.
Forum: Fixing WordPress
In reply to: “Fatal error …. dashboard.php on line 13”I would rename your plugins directory. That should first unload all plugins.
Forum: Fixing WordPress
In reply to: Adding padding to this code?You could add this in your stylesheet:
#content img {padding: 5px; }
, but this will give any images in the content a padding of 5px…Forum: Fixing WordPress
In reply to: <sup>?Check its stylesheet… sometimes theme authors add really weird things to it (like 0 margins for all paragraphs, ending up with no breaks in text; defining as bold and other such idiotic things).
That’s why I usually add the sup/sup in my stylesheet, I’m one of those idiots that does the global reset. ??
Forum: Fixing WordPress
In reply to: Adding padding to this code?See if this will work for you:
<?php the_post(); userphoto_the_author_photo('', '', array(align => 'right', border =>'1', class =>'author-image')); rewind_posts(); ?>
and add
img .author-image {padding: 5px; }
to your stylesheet.or try this:
<?php the_post(); echo "<span style=\"padding:5px;\">"; userphoto_the_author_photo('', '', array(align => 'right', border =>'1')); echo "</span>"; rewind_posts(); ?>