Np, @RavanH, glad my contribution turned out so helpful!
Np, @RavanH, glad my contribution turned out so helpful!
Np, @RavanH, glad my contribution turned out so helpful!
On a hunch, I instead opted to change Upload Url Path (of the main site) to point to where Fileupload Url already was pointing, and lo and behold, now the uploads get url’s with a /files/ base (which I feel is best).
Funnily, despite this same setting on the testing site, the url’s there have the wp-content/uploads base (like I mentioned in the previous comment), as if Upload Url Path didn’t have an effect. There doesn’t seem to be a Fileupload Url setting there — perhaps it’s deprecated? (The testing site runs trunk, whereas the main site runs latest stable.)
(Usually it’s the other way round: something that works in testing won’t work on the production site.)
I’m chiming in with my experience just in case more reproducers are of any help. I’ve encountered the issue @RavanH described in the initial post on my multisite install: files uploaded onto the root blog get url’s with blogs.dir while subsites (in subdirectories) get url’s without it.
I was running WPMU just prior to it getting integrated into WP proper, but unfortunately I can’t say for sure whether I did a clean reinstall or an upgrade to WP (non-MU) at that point.
I’m only running a single network with none of the plugins mentioned in this thread thus far. Well, no, actually I do run another multisite for testing purposes, completely separate from the first, and there this issue doesn’t manifest.
The upload-related variables for the main site are as follows:
`Upload Url Path:
Upload Path: wp-content/blogs.dir/1/files
Fileupload Url: http://mummila.net/files`
I suspect the Upload Path is what’s causing this; further evidence is that on the testing site Upload Path: wp-content/uploads results in url’s withoutblogs.dir.
I’m thinking of changing Upload Path, but I’m unsure where it ultimately shouldpoint to. If wp-content/uploads results in corresponding url’s, is that the default for the root blog? If so, is there a reason why it deviates from what the sub-sites have, which is sitepath/files? I’d expect the root site to have /files/ as attachment url base.
Wrapping strings in the plugin code with appropriate gettext functions would allow me to use it in my native language, so that for example ”Flattr this!” could become ”Flattroi tätä!” for my Finnish readers.
I’d supplement saibot’s answer by saying that, instead of a raw <script>...</script> block, you should use wp_enqueue_script() also when including the plugin script:
<?php wp_enqueue_script("jquery-cookie", get_bloginfo('template_url').'/jquery.cookie.js', array(), '0'); ?>
Hi,
I’ve successfully configured the test suite repository, but was wondering if there’s a GPG key associated with it somewhere on the site?
In templates/default/layout.html there are elements named ”loading” and ”close”. I don’t know if these names are dictated by Lightbox, but unless they are, I’d suggest renaming them with something more closely tied to their use by Simple Lightbox (such as ”slb_loading” and ”slb_close”, as other elements in the template are). The reason is that I just spent a significant amount of time trying to debug a weird problem with my theme, which was actually caused by ”loading” being an id used by Simple Lightbox and styled in its CSS. It was obviously easy for me to fix this by changing my element’s id, but finding out the cause was time I could have spent with more useful matters.
Thanks for the great plugin, though.
Wait, so post formats are different from post types, the defaults of which are always available? Oh so confusing.
I can reproduce the ”post formats” selection box not showing in both 3.1 and 3.2 RC 2. In fact I wasn’t aware of such feature, as it only shows when posting on the root site (which I very seldom do on my multisite).
I tried disabling all plugins with no effect.
”Jokainen valikoi sivustoille itsestään parhaat puolet:”
Se on ihan kiva, että vanhakin media noteeraa sosiaalisen median ilmiöitä, mutta sitä tuntuu kerta toisensa jälkeen vaivaavan tämä ”minun kaveripiirini” = ”kaikkien kaveripiiri” -yleistäminen.
Esimerkiksi minun uutisvirrassani on valittamista, mokia, vihaa yms., mutten silti väitä, että ”jokainen valittaa ja paljastaa noloja juttuja ja suoltaa vihaa Facebookissa”. Kyse on ihmisistä ja ihmiset tekevät sitä mitä ihmiset tekevät, myös Facebookissa (ja Internetissä yleensä), joten ”kaikki sitä” tai ”kaikki tätä” -yleistykset menevät vääjäämättä ohi kohteen.
Kaikin mokomin, kertokaa juttuja omasta kaveripiiristänne. Mutta älkää yleistäkö niitä.