mercuryfenix
Forum Replies Created
-
This was my first concern as well when watching the video.
Forum: Fixing WordPress
In reply to: Flash in PostFloat the UL left.
Forum: Plugins
In reply to: Adding a string to all CSS file URLsOtto42, thanks for your advice. I realized from the beginning that this wasn’t a practical thing to do. I simply wanted to learn more about hooks ??
Forum: Plugins
In reply to: Adding a string to all CSS file URLsUpon further research of actions and filters, I came up with this: it works, although the result wasn’t worth the trouble.
add_filter(‘style_loader_src’,’reducisaurus_css’,10,2);
function reducisaurus_css($css_url, $handle)
{
return “https://reducisaurus.appspot.com/css?url=” . $css_url;
}Forum: Plugins
In reply to: Adding a string to all CSS file URLsI’m not exactly sure what I’m doing here and could use some help. From my research on the issue, I would think it would look something like this:
add_filter('wp_print_styles','reducisaurus_css',10,2); function reducisaurus_css($css_url) { return "https://reducisaurus.appspot.com/css?url=" . $css_url; }
Forum: Fixing WordPress
In reply to: What are the redirect paramemters?Forum: Fixing WordPress
In reply to: Can someone tell me whyAdmin-ajax is a page used by plugins and the admin screens to make wordpress ajax requests. You see “-1” because that is the output if there is an error (i.e. you didn’t send any parameters to the script). You should exclude that page from your stats because it is used very frequently (for example when you are on the Edit Post page, it will fire every so often when it autosaves).
Forum: Plugins
In reply to: Is there any plugins that can auto insert ads?Did you even search for it? There are many Google Adsense plugins that show up in a quick search…
Forum: Plugins
In reply to: Can I used a free closed source flash component in my open source plugin?You can’t package it with your plugin. You have to tell the users to download it manually and install it to the plugin directory. NextGen Gallery does this with the flash component they use.
Forum: Fixing WordPress
In reply to: How to Display Post information using Post ID’s?yes, setup_postdata will work if the result of your query is data from the post table in wordpress
here’s how i use it with get_children which returns post objects
$pdfs_args = array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'numberposts' => -1, // unlimited 'post_mime_type' => 'application/pdf' ); $pdfs = get_children($pdfs_args); if (!empty($pdfs)) { echo "<h2>Literature</h2>"; foreach ($pdfs as $post) // important that it is "$post" { setup_postdata($post); the_title(); // to check out what's in the object, uncomment the following line // echo "<textarea style=\"width:100%\">". print_r($post, true). "</textarea>"; } }
hope this helps
Forum: Fixing WordPress
In reply to: Please help, I create a new blog – but cant be found.yes you do. you need to log into your host control panel and create the subdomain, then install WP in that directory.
— mark this as resolved if you figure it out —
Forum: Fixing WordPress
In reply to: Wierd URL : myblog.com/myblog.comWordPress address (URL)
and
Blog address (URL)Make sure they don’t have redundancies.
The folder named someblog.com is probably your site’s root. You don’t need to specify that in the url; your host probably directs your domain to that folder. Therefore you’re WP URL and/or Blog URL in those settings should probably just be someblog.com according to your above comment.
Mark this as resolved if you’ve figured it out.
Forum: Themes and Templates
In reply to: Images pushed downInspect the element with a browser extension like Firebug for Firefox or Safari’s built in Web Inspector.
Forum: Fixing WordPress
In reply to: Upgrade has overwritten my themeIt also said to backup all your files and database…
Where does it say that.
Really?
https://img.skitch.com/20090619-jj3yn12au2w1hymyf86q623yrm.jpgForum: Fixing WordPress
In reply to: Upgrade has overwritten my themeIt also said to backup all your files and database…
Why wouldn’t you have a local copy?
Welcome to the world of web development.