lijitimit
Forum Replies Created
-
Forum: Plugins
In reply to: [MaxGalleria] Duplicate Images when added from earlier month?I too am experiencing a “duplicate image in library, one file on server” that appeared after a developer created a test site in a subfolder. Could be plugin related, database related, magic server elf related… you’re not alone! PS I’m not using this plugin, but going to follow this thread to see if there is a fix ??
Thanks for the reply, I added the feature request to github
Sorry, contact form still not working. screenshot
I just followed you on twitter (@lijitimit), so you can always follow me back and direct message me, or I can start a new thread. I hate hijacking someone else’s forum post ??Hi, I tried creating a ticket on your website but it kept hanging, not sure if my message went through. I’m having a similar problem, however I just purchased your extended widget options plugin. It appears to have the same issue described above. I tested your new widget options free version (from the link above) and it works, however the extended doesn’t seem to have that update?
Ahh ok I get it now! *tips hat
CheersAdding the ID did the trick! Code is working now. Thanks for having a look, can’t believe I missed that.
I’m still learning PHP, would you mind showing me quickly how to wrap it all into one function or point me in the right direction (what can I google?). I’m not sure what this process would be called to find a tutorial. Updated code doesn’t throw an error, but basically makes your entire plugin useless ?? i.e nothing shows up in the selector on the menu page.
I suspect I’m missing referencing/ tying together the initial $conditions and $conditions[1] etc.
add_filter( 'if_menu_conditions', 'my_new_menu_condition' ); function my_new_menu_condition( $conditions ) { $conditions[1] = array( 'id' => 'single-document', // unique ID for the condition 'name' => 'Single Document', // name of the condition 'condition' => function($item) { // callback - must return TRUE or FALSE return is_singular( 'documentation' ); }, 'group' => 'Page type' ); $conditions[2] = array( 'id' => 'is-3a-candidate', // unique ID for the condition 'name' => 'Is 3A Candidate', // name of the condition 'condition' => function($item) { // callback - must return TRUE or FALSE return wc_memberships_is_user_active_member( $user_id, '3a-candidate' ); }, 'group' => 'Memberships' ); $conditions[3] = array( 'id' => 'is-3a-member', // unique ID for the condition 'name' => 'Is 3A Member', // name of the condition 'condition' => function($item) { // callback - must return TRUE or FALSE return wc_memberships_is_user_active_member( $user_id, '3a-member' ); }, 'group' => 'Memberships' ); $conditions[4] = array( 'id' => 'is-3a-student', // unique ID for the condition 'name' => 'Is 3A Student', // name of the condition 'condition' => function($item) { // callback - must return TRUE or FALSE return wc_memberships_is_user_active_member( $user_id, '3a-student' ); }, 'group' => 'Memberships' ); $conditions[5] = array( 'id' => 'is-instructor', // unique ID for the condition 'name' => 'Is Instructor', // name of the condition 'condition' => function($item) { // callback - must return TRUE or FALSE return wc_memberships_is_user_active_member( $user_id, '3a-instructor' ); }, 'group' => 'Memberships' ); return $conditions[1] . $conditions[2] . $conditions[3] . $conditions[4] . $conditions[5]; }
- This reply was modified 7 years, 6 months ago by lijitimit.
Forum: Plugins
In reply to: [VS Knowledge Base] Adding “post count” to category headingWorks a treat! Thanks
Forum: Plugins
In reply to: [VS Knowledge Base] Adding “post count” to category headingThanks Guido. Happy to test it out too.
Forum: Fixing WordPress
In reply to: Show “dashboard” button on WP toolbar for logged out usersI created a plugin to modify the admin, but for this specific instance, I used pure CSS and an image to replace the “dashboard” dashicon, then clipped the text so it hid the site name.
I know it’s possible to hide/show nodes using “if” statements and user “logged-in/logged-out”, however I’m not sure where to start looking for this particular instance.
So basically, it’s a stock coded toolbar. I’m just trying to always display “#wp-admin-bar-site-name” so my cute lil logo shows up for all to see ??
Thanks!
Forum: Fixing WordPress
In reply to: Show “dashboard” button on WP toolbar for logged out users@w411 sorry for the delayed response, I must have missed checking the notify button.
Actually no, when I go to my site logged out (firefox / chrome) I cannot see the dashboard button (my logo). It appears only when logged in. I need it to always show, not just show for logged in users.Thanks for having a look
Forum: Plugins
In reply to: [Genesis Style Trump] Aspire Pro needs Priority setI think this may also be my issue on Atmosphere PRO. style-front.css (front page widget buttons lose their style and inherit regular widget button styles.)
Cheers!Forum: Plugins
In reply to: [SI CAPTCHA Anti-Spam] Captcha not showing on Lost-Password-PageThanks @mikechallis for developing and maintaining this plugin, and letting us know about the fix. My site serves China so I’m always happy to see WP integrations that don’t rely on 3rd parties (Google is blocked in China).
Forum: Plugins
In reply to: [SI CAPTCHA Anti-Spam] Captcha not showing on Lost-Password-PageSame issue. I think the issue has to do with the end point not loading the captcha, but the captcha is expecting an input on the “forgot password” link. I deleted the end-point from woocommerce > settings > account and I’m now being directed to the default wp admin forms. If there’s a true fix, I’d be interested to know!
Sorry, must have missed a line there. Thanks for the reply!