clarklab
Forum Replies Created
-
Forum: Networking WordPress
In reply to: Displaying a custom post type in multisite?I’m an idiot. Taking one of these existing plugins and searching for “post_type” then changing it to my custom post type seems to do the trick just fine.
Carry on.
Forum: Plugins
In reply to: [Twit Connect] [Plugin: Twit Connect] Displaying the user pic in templatesDoh! Figured it out, just need to help making sure I had a proper ID to work with:
<?php global $current_user; get_currentuserinfo(); ?>
Forum: Fixing WordPress
In reply to: Staging / development server with live DB contentOk, I’ve decided the best way to manage things seems to be to perform a complete copy (which I’ve done), make my changes (which I’m in the process of doing), and use the WP built-in import/export tool to move just the most recent post/comments from the live site to the dev site.
Question before I try it: will using the import tool on an install already filled with content create any trouble? I figured it be an easy way to scrape up the latest posts in batches and move them over.
Forum: Themes and Templates
In reply to: is_iphone documenation?No love for is_iphone?!
I think making compromises on the main site to accommodate the accessibility guidelines does the general viewer a dis-service. Of the few things that caught my eye, the main was a rule that your site MUST fit an 800×600 screen. My site most certainly will not, so where does that leave me?
I think it’d be possible to build a dual theme right alongside the main site that included all the same content and images but cut out or reformatted a ton of ‘fluff’ and was much higher contrast for an overall cleaner layout with the same feel as the main site.
Forum: Fixing WordPress
In reply to: Cookies and headers – logins sometimes failingI still haven’t seen much info on the is_iphone conditional, I only discovered it on accident, as it’s used in the WP core.
Here is a short article I wrote about using it: https://androidandme.com/2010/02/news/tutorial-making-your-wordpress-blog-android-and-iphone-friendly/
Everything seems to be working for me now. I probably should’ve updated this thread but last I looked no one had chimed in.
I think we should start a movement to get is_iphone swapped to is_smartphone to include more browser agents. Right now it returns true for iphone and android but I’ve seen reports that it doesn’t work on BB or Palm.
Forum: Plugins
In reply to: How to modify P2::media_buttons^That did it. Thanks!
Forum: Themes and Templates
In reply to: blank theme / framework – what’s the new hotness?although I have been following Justin Tadlock for quite some time, maybe I should give Hybrid a shot.
Forum: Themes and Templates
In reply to: blank theme / framework – what’s the new hotness?^^I seem to remember those refueled themes from years back. did they ever get an update to support the new features? the download page and demo theme are a little less than explanatory…
^Hybrid and Thematic are both very interesting to me but they both look a little to ‘heavy’ for my needs. I’ve actually purchased a few Thematic child themes over the years and while they were made well, I seemed to run into a bunch of extra functions, custom code, markup I didn’t need, etc.
basically I’m just after a completely vanilla, CSS-less theme with the basic (but newest) WP guts (loops, comments, etc)
Forum: Plugins
In reply to: How to modify P2::media_buttonsI’ve got the same error as you guys. It’s calling up the URL twice so my icons for the media buttons aren’t loading, leaving the rather unsightly alternate text of “Add an ImageAdd VideoAdd AudioAdd Media”
Looking at the path to the image, its calling:
https://domain.com/wp-admin/https://domain.com/wp-admin/images/media-button-image.gif
I tracked down the actual
media_buttons
function in p2/inc/p2.php but it’s doing some pretty gnarly things to the URL which I don’t really understand or want to change. anyone have a simple fix?Forum: Fixing WordPress
In reply to: Cookies and headers – logins sometimes failingThe most pressing issue still remains the sporadic failure of the is_iphone conditional. Trying to pinpoint the problem, I made a blank template containing ONLY an is_phone check, and went about testing it on various devices. My template was setup like so:
<?php if ( $is_iphone ) {?><h1>YOU ARE ON A MOBILE DEVICE</h1><?php } else { ?><h1>NOT</h1><?php } ?>
On multiple devices that can’t load the mobile site (which uses is_phone), the test template worked just fine, rendering YOU ARE ON A MOBILE DEVICE. Checking the main index of the site, however, the devices are still served the desktop version.
Anyone have any idea what exactly could be nerfing my is_phone checks? How could the conditional work in one template and not another, on the same device?
Forum: Fixing WordPress
In reply to: Cookies and headers – logins sometimes failingWe made a thread on our forums asking people to report when the mobile site failed to load and what browser they were using: https://forums.androidandme.com/topic/mobile-site-loading
After looking through some of the posts I’m even more confused. Lots of users who are having troubles have the same model phones as people who can load the site fine. Others have reported the site working, then not working. My fiancee’s phone wasn’t loading it for almost a day, then just started working last night.
It appears to be almost completely at random. In a way, that makes me feel better, I might not have specifically broken something. But overall it just leaves me confused because I have no idea how to replicate the problem or where to look to fix it.
Forum: Fixing WordPress
In reply to: Cookies and headers – logins sometimes failingAnother thing maybe worth mentioning: we are running WP Super Cache on the site and it’s added all sorts of stuff to the .htaccess file. In the latest version there are mobile options but I’ve got them off and I don’t have the rules in the .htaccess file. There is a clump of stuff in the .htaccess file I don’t recognize though, and one had the word header in it:
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
can someone tell me what that does or how it got there?
Forum: Plugins
In reply to: [Plugin: Wickett Twitter Widget] Error: Twitter did not respond..Same problem here. It works some times but way, WAY too often it gives an error. Probably close to 2/3rds of the time the widget fails to produce any tweets.
Perhaps some light caching of tweets would solve the problem? keeping the last X tweets in memory in case the connection to twitter cannot be reached? other than the fact that it doesn’t work this widget would be absolutely PERFECT. any fix in sight?
In all fairness though I have a crazy complex blog with thousands of entries and millions of pageviews.