| Post |
|
New Member | garyh357 posts 3 9:32 am September 6, 2009
| |
|
|
Please replace the ??? with your data!
[desc]: I have cforms installed in wpmu in the standard plugins folder. I can turn it on or off for individual blogs. I have set it up on http://songofalifetime.net and it works with ajax. I set it up exactly the same way, triple checked settings, and ajax does not work on http://philcrosschoral.com. The contact pages on both sites have their forms setup identically. Everything is a straight copy and paste. Obviously, they're both using the same plugin files, and their paths are exactly the same except for the root domain being different.
If I look at their settings via phpmyadmin, song of a lifetime is a little different from phil cross choral. In the second line of option_value for song of a lifetime, it has the subdomain.domain.com/path to cforms as the path, while the same line for phil cross choral is set to just domain.com/path to cforms. I don't know why that would be different, but regardless, either way should still find the plugin files and therefore the ajax files.
Any thoughts why one site would work and one not and how to fix it?
_
|
|
|
Admin
| Oliver Munich, Germany posts 6237 9:44 pm September 8, 2009
| |
|
|
i'm not a WPMU specialist, but typically, the error lies either in a malconfigured abspath.php file (and path therein) or cforms.js. check both files.
|
|
|
|
|
New Member | garyh357 posts 3 7:04 am September 12, 2009
| |
|
|
Found it. In cforms.js, the path is set to the domain name for songofalifetime, which is the blog I setup first. Makes sense. However, for this to work in a wpmu environment, that should not be hard coded to the domain name. It should be dynamically built, which I don't know how to do in js. In php, it would use get_bloginfo(url). Or it could be relative. I removed http://songofalifetime.net and kept the following /. So now the path starts with a slash, which (as I understand it) tells it to start at the domain, which works for all blogs in wpmu. This would also work in regular wordpress if the rest of the path is correct. You might consider changing the way that works when cforms installs, then you'll be one step closer to complete wpmu compatability.
Thanks for the tip on where to look.
|
|
|
Admin
| Oliver Munich, Germany posts 6237 6:31 am September 14, 2009
| |
|
|
garyh357 said:
Found it. In cforms.js, the path is set to the domain name for songofalifetime, which is the blog I setup first. Makes sense. However, for this to work in a wpmu environment, that should not be hard coded to the domain name. It should be dynamically built, which I don't know how to do in js. In php, it would use get_bloginfo(url). Or it could be relative. I removed http://songofalifetime.net and kept the following /.
that's the way it should be by default.
So now the path starts with a slash, which (as I understand it) tells it to start at the domain, which works for all blogs in wpmu. This would also work in regular wordpress if the rest of the path is correct. You might consider changing the way that works when cforms installs, then you'll be one step closer to complete wpmu compatability.
it'll only change in case cforms detects an non standard WP installation (URL/prefix)
|
|
|
|