paraddictednet
Forum Replies Created
-
Forum: Plugins
In reply to: [Polylang] Set language for global items?Well… No.
If I switch language (eg through the home page) and come back to the page (lets say its a custom post type archive, like [domain]/custom_type/), the language is set just fine.
So all I need is a way to set the language manually on calling a non-language-specific page.
Forum: Plugins
In reply to: [Polylang] Language won't change outside the loopI am sorry, a firewall did some caching – nothing to do with the excellent plugin.
Forum: Plugins
In reply to: [Alchemist Ajax Upload] Store images with post?Solved.
For anyone who wants to do this too (useful if you include a gallery with all the post’s images in your template), replace the function handle_file with the following code:function handle_file($upload_data) { $slug = ''; $slug = basename($_SERVER['HTTP_REFERER']); global $wpdb; $id = $wpdb->get_var("SELECT ID FROM $wpdb->posts WHERE post_name = '$slug'"); $return = false; $uploaded_file = wp_handle_upload($upload_data, array('test_form' => false)); if (isset($uploaded_file['file'])) { $file_loc = $uploaded_file['file']; $file_name = basename($upload_data['name']); $file_type = wp_check_filetype($file_name); $attachment = array( 'post_mime_type' => $file_type['type'], 'post_title' => preg_replace('/\.[^.]+$/', '', basename($file_name)), 'post_content' => '', 'post_status' => 'inherit', 'post_parent' => $id ); $attach_id = wp_insert_attachment($attachment, $file_loc, $id); $attach_data = wp_generate_attachment_metadata($attach_id, $file_loc); wp_update_attachment_metadata($attach_id, $attach_data); $return = array('data' => $attach_data, 'id' => $attach_id); return $return; } return $return; }IMPORTANT: your permalinks must end with the post’s slug to make this work.
I agree that it is not a good idea to make people use JP – I would vote for having an alternative to any built-in lightbox by using the JP lightbox (optionally).
But maybe I will look into integrating that myself.
ad 7.
actually, this seems to be an issue with your plugin. the mails telling the user that someone has commented a picture also link to a 404 page, because it links to a status update (…/p/1234) instead of linking to the media.GREAT work that you constantly keep updating the plugin.
1. Lightbox
– Thanks. I’d love to see more options here. Most (professional) themes already use some lightbox, e.g. prettyphoto – it would be nice to add a “add rel=” option.
– I agree.
– …
– I had to lose the old images, since i am still in closed test phase. Never mind.2. Well… Translation improved a LOT.
– “All Albums” should translate to “Alle Alben”, but says “Alle Albums”
– Same with “Alle Photos”, should be “Alle Fotos”
– “Sorry, keine photos gefunden.” should be “Sorry, keine Fotos gefunden”
– and so on, you’ll get the pattern here. I assume you use something like echo $type here – since the types dont change, they are not translated.
– “Upload” is not translatable
– Please also provide the .po files so one can refine the translation.3. Quick fix. Thanks.
4. Activity
– Never mind i purged it using CSS
– I understand. Commenting the post “xyz has posted a new update” with the image does not comment the image. Same with other actions… I understand that FB handles that the same way (liking a post is different from liking an image), so maybe it would confuse the user.5. I’ll do that eventually.
NEW findings:
6. BP user menu (top right in buddybar)
– The BP user menu always show all media types, regardless of en-/disabled
– The Media entry in the menu should not be the first one… confusing.7. Activity
– I use the BP-Like plugin. It works throughout the site, but liking an image leads to an activity post “user xyz likes a post from a few seconds ago”. The “from” user name is missing, and clicking on “post” does link to a status that does not exist… Not sure if this is a BP-Like issue though.Keep up the great work!
same as my other post – gone with 256M memory.
no, neither. i am just about to set up the site. the theme uses a lot of JS though, and i am running BP 1.7 beta2.
good thing to have my own server. 256M “solves” the problems.
Holy shit. Increasing to 256M solved the problem – but… are you sure there is no memory leak?
Debug tells me there is a memory problem… Already increased to 128M, so I don’t think this is the problem.
Safari says: Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://[…%5D/wp-admin/admin-ajax.php
Actually, it also breaks the AJAX on the frontend, e.g. editing tickets is not possible.
Inside an album.
On “All Photos” it works…Beta2 now.
Thanks, great plugin – really the only usable one for photo/album management in BP.
Regards
HannesThis seems to be happening again with the current version.
Disabled all other plugins and switched to standard theme – no change.However, I should note that I run BP 1.7 beta.