wordpress-mu

Get the WPMU default blog domain

I have a network of blogs that link to each other. The problem is when I want to get the primary blog's domain. I need it for things like the the target of the logo when clicked. I can't seem to find a function in WPMU the retrieves this. I can see the value I want in the wp_site table. I could easily get it with $wpdb, but its a bit ov...

Load Spikes on a Apache MySQL Server with Wordpress MU

Hi there, I am trying to investigate the reasons for some mysterious load spikes on a Linux Apache server (2.2.14) running PHP 5.2.9 on a dedicated server with enough processing power and memory. My primary web application is a Wordpress MU (2.9.2) installation. I have investigated and ruled out DOS attack, MySQL or Apache configuratio...

Wordpress: Use PHP Function based on Blog URL & Adding To MU-Plugins

I am developing a plugin for an MU site. The MU site has about a few hundred blogs, but there are three types of blogs and they are named as: blogname/sportstype1 blogname/sportstype2 blogname/sportstype3 blogname/celebritytype1 blogname/celebritytype2 etc. I need to make two functions, one for type1, and the other function for the res...

functions file, plugin, and theme scoping in wordpress mu

I've got a plugin that is declared and hooked following best practices described in this related question: http://stackoverflow.com/questions/1615118/wordpress-accessing-a-plugins-function-from-a-theme So it looks (platonically) like this: if ( !class_exists( 'Foo' ) ) { class Foo { ... public function do_stuff() { //...

WordPress MU: get the user ID of the blog's owner

Hi, I'd like to find some way to get the owner id of the blog's owner. I want to display some data from the owner, like: avatar, bio and link for his/her profile. I'm running WordPress MU + BP. Thanks, Mueen ...

Creating a Dynamic Horizontal Menu

I'm trying to create a horizontal menu in WordPress that can be changed on the fly by non-technical users without editing the theme directly. i.e. The graphics department :). I'm a .net developer and the way I would do this in .net is to create a database with the attributes of the link, and make a user friendly back-end to display the c...

What is the Wordpress Add Video icon supposed to do?

I love Wordpress, and for the most part it is self-explanitory and easy to use. However, the "Add Video" icon on the edit post page seems to be almost completely useless. Here's what I did: Press the "Add Video" button Uploaded a video file from my local machine called ballon.mpg Pressed the "Insert into post" button The result i...

Use the value instead of displaying it

I'm trying to use bp_group_name() in if (bp_group_name()!='General') { //code } Instead of using the value of bp_group_name() in the IF, it displays the value on the page. Sorry if the way I described this was a bit off... ...

How to fix Wordpress MU/Network image linking giving {#advlink_dlg.general_props}

When you ad a link to an image on my Wordpress 3.0.1 Network the labels appear with code as so; {#advlink_dlg.general_props} Take a look; Does anyone else have this issue/know a fix. Luckily function is not effected. Ben ...

Wordpress multisite, domain mapping www issue

Hey there, I have installed wordpress multisite and domain mapping plugin. The problem is with the www...if i setup the multisite without www and i access the site without www everything works fine But if i access it without www, it reddirects to the main site. Any ideea why? Ty ...

separate WordPress sites vs using multisite feature of WP3.0

I will be using WordPress 3.0 to build numerous sites, roughly 300+. these sites have the following qualities content may or may not be related to each other. Each have the same set of admin users - a person who has an admin account in website A has the same account in website B. each are top level domains. no subdomains. each site n...

Wordpress MU new blog images inside 'blogs.dir/3/files' folder not showing

Hey All, I have a created blog that doesn't show images inside the 'blogs.dir/3/files' folder. Any images inside that folder doesn't show. But on my other blogs it displays the images. http://www.domain3.com/files/image.jpg -> does not work http://www.domain2.com/files/image.jpg -> works http://www.domain1.com/files/image.jpg -> works ...

Multi Site Wordpress rewrite rules in Nginx

I'm trying to run a multi domain blog installation with Wordpress and Nginx. The last step is to configure some rewrite rules in .htaccess (apache only) for the webserver. How so I translate this into Nginx rewrite rules. RewriteEngine On RewriteBase / RewriteRule ^index.php$ - [L] # uploaded files RewriteRule ^files/(.+) wp-include...

How to get number of users and blogs from Wordpress MU

I am currently maintaining some Wordpress MU installations ( v2.9.x ) I want to create a report ( outside of wordpress ) to count the number of users that I have, and the number of blogs that I have. Each blog gets it's own tables. I have 4 questions: First question, do you know of a plugin that does this already? I couldn't find o...

Links with WWW in Wordpress redirect to home page

I've recently updated a website I work on to Wordpress 3.0. Something strange has started happening, where now the www. has dissapeared from the URLs, and if you add the www. to the URL (a good portion of the existing hardcoded links have it) then it redirects you to the home page URL. Any ideas what could be causing this? My .htaccess...

Why Wordpress Multisite created new Table?

Hi, I want to have the expert opinion about the Wordpress Multisite Feature, the question is Whenever Wordpress create a Network site it creates new table for the Network Site. Why it does this? Why it does not sotre the data in the already created tables? Thanks ...

3 WordPress Instances - is there a solution?

A website I work on is currently running three different instances of Wordpress blogs, all with their own set of users & permissions, plugins and themes. Unforauntely, I don't think Wordpress Network is a viable option due to the restrictions around where sub-blogs can be in terms of urls. Here are the url structures of each blog: ...

Wordpress Theme Gallery Previewing W/ Individual Content

Many wordpress developer sites offer theme previews. Some just use a standard plugin that lets you toggle between themes, using the same content on each. But other, more professional sites like rockettheme.com, elegentthemes.com etc etc, actually have true previews with individual posts and settings specific for that theme. Is this ju...

Getting list of categories available in wordpress NETWORK sites.

In my plugin, I am trying to get the list of categories available in all the available network website. Is it possible without writing SQL query? ...

jQuery.load gives me a 404 Not Found in WPMU

I've developed a plugin that works fine on a single site WP. But when testing it on WPMU with subdomain, I get a 404 Not Found error. The strange thing is that the content is loaded even though I get the error message - but the content is never displayed. You can see a screenshot here: http://www.stiengenterprises.com/download/tmp/jQue...