wordpress

MySQL: Replace substring if string ends in jpg, gif or png

Hi gang, I'm doing a favor for a friend, getting him off of Blogger and onto a hosted WordPress blog. The big problem is, with over 1,800 posts, there are a lot of image links to deal with. WordPress has no mechanism to import these automatically, so I'm doing it manually. I've used wget to download every single image that has ever be...

treeview/hierarchy structure in wordpress

could anybody suggest solution how to display data in treeview like format in wordpress. There is no plugin for that. I want to display something like table of content. Not talking about pages/categories from wordpress itself. I found this jQuery plugin that can be used to display my data. I cannot edit and store data using this plu...

Get the Latest Wordpress Bookmarklet

Hi, Can such thing as a "get the most recent WP release" bookmarklet can be done? I can sure use that link in my browser. Thanks! ...

PHP/WordPress Session CountDown

I have the following code to show how long a user has left before their session will expire, I am using WordPress. How can I do this? Thanks <script> var obj_Span; var n_Seconds = 0; var n_Minutes = 0; var n_Hours = 0; function F_ConvertNumberToString ( n_Num ) { var str_Num = String(n_Num); ...

PHP/Apache REQUEST_URI different behaviour?

I am moving websites from one server to another. Both are on a similar variant of Centos 5 x64 with Apache 2.2 and PHP 5.2.X. Some of my scripts including Wordpress are behaving incorrectly. It turns out the issue is the difference between the REQUEST_URI global: On the older server: REQUEST_URI = /phpinfo.php On the new server: REQUES...

i inserted a search field into wordpress and it wont show.

i put this piece into the site <?php get_search_form(); ?> and the search field wont show :( what can i do or have to do? it just shows "search for" never mind i figure it out, i had set in the css to hide it (a long time ago) ...

Script to Add User to Wordpress

Hi, I need help to quickly add about >100 username and password to a locally installed Wordpress. I have a list of usernames in text file, and I'd let each password to be equal to username (or someother function if equal is not allowed by Wordpress). Is there a way I can programmatically add users to Wordpress? I have access to wordp...

what does this syntax ( page = $page ? $page : 'default' ) in php mean?

i'm new to php. I came across this syntax in wordpress. Can anyone explain to me the last line of that code? $page = $_SERVER['REQUEST_URI']; $page = str_replace("/","",$page); $page = str_replace(".php","",$page); **$page = $page ? $page : 'default'** the last line(bolded). thanks ...

CSS Overflow issue in IE7

I'm working on a site for a client at the moment, and have it working correctly in all browsers except IE7 (IE6 and IE8 tested fine). It's a WordPress site and the theme is a child theme of the Thematic framework. This is an example of a page that is not displayed correctly in IE7: http://roynesbitt.credit-medics.co.uk/our-donors The ...

Wordpress Authenticate Filter

Hi All, I'm currently trying to override Wordpress' wp_authenticate function (without modifying the core files, mainly pluggable.php), however I'm not sure if I'm going about it the correct way. There are two great references (see below), but they don't explicitly state what to do in order to prevent the login provided certain criteria ...

WordPressMU - get blog list, alphabetically sorted by blogname

In WordPress MU, I've tried writing my own query for this but can't seem to get all of the joins I really need. The result set I'm looking for would be something like: blog_id blog name blog path owner first name owner last name and return it all alphabetically, by blog name. The trouble I'm having is that the first and last name of t...

Getting wordpress to play nice with AJAX

Hey all, How do I use WP functions from AJAX calls. I've looked at the documentation for creating plugins that use ajax, but I couldn't figure out how to apply that to regular pages and posts. Is there an easy way to just load everything without using their API? I have my way I like to do ajax and would rather not use their stuff. Th...

Feedburner Subscribe box in wordpress blog

I want to display the same Subscribe box which is displayed on feedburner feeds: http://feeds.feedburner.com/michaelmartine/ymYs in my wordpress blog. Is there any plugin of wordpress which will do this for me. I googled but didn't found such plugin, please help! Thanks ...

How can I convince mod_rewrite to stay away from my Subversion repositories?

I have a site [hosted on DreamHost], using WordPress for the main content, but Subversion repositories in http://mysite/svn . My file layout is: webroot/ blog # wordrpress files .htaccess My SVN repositories lay outside the web root, but they are correctly mapped to /svn/repository URLs. When I put the WordPress permalink rewr...

PHP Paypal Checkout for 3 Pages

I just want to do this 3 pages: Page 1: User pick in radio button 2 prices Page 2: Fill out credit card form Page 3: Confirm and send to Paypal info Is there a module somewhere that is free to use with Paypal Website Payment Pro? Because I need it to process credit card information. I don't mind whether it is Joomla, Drupal or Wordpr...

How to make javascript/jquery code error proof ?

If jQuery is included in <head> and in <head> if we have some another jQuery code and that code has an id which is a id of an HTML element, so if jQuery library and jquery code in <head> is added globally And if any page doesn't have that html element which is used by jQuery code then browser gives JavaScript error. Can I make jQuery/J...

Git and WordPress (+ managing plugins and media)

I'd like to apply revision control - using git - to my WordPress-based website development. Based on my concerns below, how do I go about? Concern 1: Pushing "granular changes" In this specific case, it is hard to mimic the webserver environment locally. Therefore, I would like to push changes very often. Could I push changes on a "sub...

Is it possible to use Wordpress API to make posts on wordpress.com?

I'm aware that the wordpress API can be used to make posts to wordpress blogs hosted on your own server/website. However, is it possible to also make posts to blogs hosted on wordpress.com using the api? If so, where can I find the details such as the URLs to which to make the api requests, etc? Currently I'm only interested in adding n...

do not reload sidebar.php within single.php

In my Wordpress-powered website (http://onomadesign.com/wordpress/identity-design/usx-corporation/ for example) I want the sidebar.php, the thumbnail navigation on the right, NOT to reload when people click another project. So that they not get lost in navigation. Now, I have looked at iframes, jquery cookies, 'AHAH-method', php session...

How to get SVN to ignore a directory inside an externals definition

I'm using subversion to host my own repository for a WordPress installation. I've got it set up so that all of the core WordPress files are in their own directory (called wordpress) and set up to use svn:externals to link to the WordPress repository. I then have my own copy of the wp-content directory (located outside of the wordpress di...