ckitso
Forum Replies Created
-
It would appear that there was an error in my conditional logic.
This method seems to work in adding the correct make during the import :
Using the custom PHP function in my function.php listed below. Along with the [ae_make({make[1]}, {model[1]})] in my Makes Category field in Wp-All-Import.
// WP ALL IMPORT CONDTIONAL IMPORT function ae_make($Importmake, $Importmodel) { if (($Importmake == "ALFA ROMEO") or ($Importmake == "JEEP") or ($Importmake == "SUZUKI")): $x = $Importmake; elseif ($Importmake == "FIAT" && ($Importmodel == "FULLBACK" || $Importmodel == "FIORINO" || $Importmodel == "DOBLO CARGO" || $Importmodel == "DOBLO PANORAMA" || $Importmodel == "DUCATO")): $x = "Fiat-Pro"; elseif($Importmake == "FIAT"): $x = $Importmake;; else: $x = "Other-makes"; endif; return $x; }I’m still not sure if this is the best method though so if their is a better method please let me know.
Thanks
Forum: Plugins
In reply to: [Flamingo] is the only adminHi All just want to add another solution which may be a little safer then giving users edit_user capabilities. This is copied from the reply to the other thread.
Simply add the below function to your function.php
What it does it is it changes the default user capabilities of the Flamingo Plugin. So now any user role (like editor) that can edit a post or publish a post will be able to see the flamingo menu.This solution also works with the Adminimize plugin on WP 4.6.1.
Hope it helps
remove_filter( 'map_meta_cap', 'flamingo_map_meta_cap' ); add_filter( 'map_meta_cap', 'mycustom_flamingo_map_meta_cap', 9, 4 ); function mycustom_flamingo_map_meta_cap( $caps, $cap, $user_id, $args ) { $meta_caps = array( 'flamingo_edit_contacts' => 'edit_posts', 'flamingo_edit_contact' => 'edit_posts', 'flamingo_delete_contact' => 'edit_posts', 'flamingo_edit_inbound_messages' => 'publish_posts', 'flamingo_delete_inbound_message' => 'publish_posts', 'flamingo_delete_inbound_messages' => 'publish_posts', 'flamingo_spam_inbound_message' => 'publish_posts', 'flamingo_unspam_inbound_message' => 'publish_posts' ); $caps = array_diff( $caps, array_keys( $meta_caps ) ); if ( isset( $meta_caps[$cap] ) ) $caps[] = $meta_caps[$cap]; return $caps; }- This reply was modified 9 years, 8 months ago by ckitso.
Forum: Plugins
In reply to: [Flamingo] HOWTO: Provide Access to Flamingo for non-Admin usersHi All
To avoid the potential security vulnerability of allowing lower user roles to edit_users you could just add the below function to your function.php.What it does it is it changes the default user capabilities of the Flamingo Plugin. So now anyone that can edit a post or publish a post will be able to see the flamingo menu.
This solution also works with the Adminimize plugin on WP 4.6.1
remove_filter( 'map_meta_cap', 'flamingo_map_meta_cap' ); add_filter( 'map_meta_cap', 'mycustom_flamingo_map_meta_cap', 9, 4 ); function mycustom_flamingo_map_meta_cap( $caps, $cap, $user_id, $args ) { $meta_caps = array( 'flamingo_edit_contacts' => 'edit_posts', 'flamingo_edit_contact' => 'edit_posts', 'flamingo_delete_contact' => 'edit_posts', 'flamingo_edit_inbound_messages' => 'publish_posts', 'flamingo_delete_inbound_message' => 'publish_posts', 'flamingo_delete_inbound_messages' => 'publish_posts', 'flamingo_spam_inbound_message' => 'publish_posts', 'flamingo_unspam_inbound_message' => 'publish_posts' ); $caps = array_diff( $caps, array_keys( $meta_caps ) ); if ( isset( $meta_caps[$cap] ) ) $caps[] = $meta_caps[$cap]; return $caps; }- This reply was modified 9 years, 8 months ago by ckitso.
Forum: Plugins
In reply to: [Unique Headers] Custom Taxonomies and PostThanks for the fast response Ill give it a go and see if I come right. It isn’t that urgent so Ill keep your plugin on the live site for now as it does just about everything I need. Look forward to the updated plugin.
Once again thanks for an awesome plugin saved me a lot of hassle.
Forum: Plugins
In reply to: [WP-Filebase Download Manager] Feature request batch mode/quick editWow thanks for this,
It works perfectly, would be great to have multiple uploads in future but this is prefect.Thanks for the great support
Forum: Plugins
In reply to: [WP-Filebase Download Manager] Feature request batch mode/quick editHi I managed to get the flash uploader and drag and drop to work by replacing the 02925 plupload.php with the plupload.php from version 0.2.9.24.
So that file obviously has the problem however I’m not sure how this will affect rest of the plugin so it is not advisable to swap out the file.
One problem I did note with this method is that while you can now drag and drop files into the upload window. Mulitple file uploads are not possible as the uploader only uploads the last file not all of the files selected.
@fabi perhaps you can suggest a way around this and possible fix other than replacing the plupload.php file.
ThanksForum: Plugins
In reply to: [WP-Filebase Download Manager] Feature request batch mode/quick editThanks for the quick response.
I tested the flash uploader in firefox chrome and ie9. None work.
Basically it seems to not be loading the java script for drag and drop functionality as I don’t even see the drop files here dialogue and the script doesn’t show in firebug.I even did a clean install of latetest wp with twentyten theme to eliminate other plugins.
However when I revert back to version wp-filebase 0.2.9.24 the flash uploader works and the drag and drop console appears.
Is there a chance you may have forgotten to implement this feature in version 0.2.9.25.
I am currently seeing if I can reintroduce it by comparing the two versions code. I am not a programmer so chances are slim that I will find the problem but here is hoping.
If you have any advice please feel free to share it π
Thanks again
Hi thanks that did the trick!