wWave
Forum Replies Created
-
Forum: Plugins
In reply to: [bbPress - Private Replies] private message is visibleHave the same issue,
I think the problem is that,$reply_author = bbp_get_reply_author_id( $reply_id ); //returns int(0) if left by an anonymous user
and
$current_user = wp_get_current_user(); //has ->ID int(0) if user is not logged in
So variable
$can_view
is set to true.Genius!! Now to find all the ‘too-big’ images to upload them again :S
Any ideas whats the max size allowed? Is it about image size (px) or file size (MB)?
I reduced the images to 1024px and they work now.Thanks again Richard!!
Hi,
I think we have a very similar issue, most of images show fine, but some other don’t, for example: https://goo.gl/s0Mmw is not showing any thumbnail tiles, but if you click on them it does load the carousel. Most of our galleries are on: https://goo.gl/qWp6u
Thank you!
I had the same issue with one of my themes. Have you tried taking the overflow attribute from html to body?
body{ overflow-y:scroll; }
That worked for me. Still have the same bug about the image over the scrollbar though.
Forum: Plugins
In reply to: Jetpack Contact From not Sending when in do_shortcodeHi indigobiker,
Did you find a solution? I have the same issue.
Here is where it stops.
$form = Grunion_Contact_Form::$last; if ( !$form || ( is_wp_error( $form->errors ) && $form->errors->get_error_codes() ) ) { return; } // Process the form $form->process_submission();
It does all the rest before, like validation of field, but it fails here where
$form
is returning nothing. So is never submitted.Forum: Alpha/Beta/RC
In reply to: Help Implementing new Media UploaderHi dicegame,
I’ve been trying to do the same, I’ve been trying to do the same and managed to do it on custom meta boxes as long as the already is a wp_editor in place.
The HTML
<input type="text" id="my_key" name="my_key" value=""><input id="file_button" data-update="Select File" data-choose="Choose a File" type="button" value="Select" class="button">
I’m calling the new Media Uploader using javascript:
jQuery(document).ready(function(){ var targetfield="my_key"; jQuery("#file_button").click( function( event ) { var jQueryel = jQuery(this); event.preventDefault(); // If the media frame already exists, reopen it. if ( typeof(custom_file_frame)!=="undefined" ) { custom_file_frame.open(); return; } // Create the media frame. custom_file_frame = wp.media.frames.customHeader = wp.media({ // Set the title of the modal. title: jQueryel.data("choose"), // Tell the modal to show only images. Ignore if want ALL library: { type: 'image' }, // Customize the submit button. button: { // Set the text of the button. text: jQueryel.data("update") } }); custom_file_frame.on( "select", function() { // Grab the selected attachment. var attachment = custom_file_frame.state().get("selection").first(); // Update value of the targetfield input with the attachment url. jQuery("#"+targetfield).val(attachment.attributes.url); }); custom_file_frame.open(); }); });
Hope this helps, I’m still trying to make it work when there is not a wp_editor in the page, but I’m getting errors of undefined elements.
Any help to improve it will be hugely appreciated!!
Thanks
[email protected]
!! I tried something similar but I had it hooked to the wrong action!It’s a good alternative Adam, in addition I’m adding a redirection to the profile page, only if by any chance the user ends up in the jetpack page (or tries to go to it).
function wave_hide_jetpack_menu() { if ( !current_user_can( 'administrator' ) ) { ?> <style type="text/css"> #toplevel_page_jetpack { display: none; } </style> <?php if($_GET['page']=='jetpack') { if (headers_sent()) { echo '<meta http-equiv="refresh" content="0;url='.admin_url('profile.php').'">'; echo '<script type="text/javascript">document.location.href="'.admin_url('profile.php').'"</script>'; } else { wp_redirect(admin_url('profile.php')); exit(); } } } }
Any ideas how to fix this? Perhaps adding custom code the functions file targeting the JetPack menu hook to check user capabilities?
Same behaviour with jetpack 2.0 and bbpress. Also jetpack menu button showing in the dashboard for all roles, even subscriber.