vaibhav125shukla
Forum Replies Created
-
Finally i got the solution.
The problem is in reset password link.
Closing ‘>’ is might becoming part of link parameter.
Go to plugin theme-my-login/includes/compat.php,
search for following line:
$message .= ‘<‘ . network_site_url( “wp-login.php?action=rp&key=$key&login=” . rawurlencode( $user->user_login ), ‘login’ ) . “>\r\n”;Modify it as:
$message .= network_site_url( “wp-login.php?action=rp&key=$key&login=” . rawurlencode( $user->user_login ), ‘login’ );
Then retest your lost password functionality.Now it is working on both mobile and web.- This reply was modified 6 years, 5 months ago by vaibhav125shukla.
Forum: Plugins
In reply to: [Theme My Login] Lost Password – All Password Reset Links Invalid@herold
May be the problem is in your link.Closing ‘>’ is might becoming part of link parameter.Go to plugin theme-my-login/includes/compat.php,
search for following line:
$message .= ‘<‘ . network_site_url( “wp-login.php?action=rp&key=$key&login=” . rawurlencode( $user->user_login ), ‘login’ ) . “>\r\n”;Modify it as:
$message .= network_site_url( “wp-login.php?action=rp&key=$key&login=” . rawurlencode( $user->user_login ), ‘login’ );
Then retest your lost password functionality.Cookies are enabled on mobile.I disabled all plugins,and changed theme.Manually replaced wordpress version with new one.Still no change.Any other thing to check?
Thanks for quick reply.
I have updated to TML 7.0.10 and for reset password, still same problem occurs.
In desktop,it redirects to reset password page.
When I click reset password link in email on mobile,it is redirecting to lost password page.Hi @wpmudev-support2,i have started new thread titled Buddypress activity plus-Keep original size or aspect ration of images intact.Please kindly go thru it.buddypress activity plus uploaded image size
Forum: Plugins
In reply to: Unable to create the vertical menu using WR Mega MenuOk.Sure.
Guys please have a look at one new problem posted by me.It is related to buddypress activity sharing.
Reshare buddypress activity to only me,friends or allYes why not.I m sharing the solution.
As per client suggestion,i have given field name for category as preference.
In my theme ‘boss’,under buddypress folder,i have activity post form post_form.php.
It contents are as follows:
post_form.php:<div id="whats-new-textarea"> <textarea class="bp-suggestions" name="whats-new" id="whats-new" cols="50" rows="10" <?php if ( bp_is_group() ) : ?>data-suggestions-group-id="<?php echo esc_attr( (int) bp_get_current_group_id() ); ?>" <?php endif; ?> ><?php if ( isset( $_GET['r'] ) ) : ?>@<?php echo esc_textarea( $_GET['r'] ); ?> <?php endif; ?></textarea> <select name="preference" id="preference"> <option value="">Select Preference</option> <?php foreach($pref_result as $pref):?> <option value="<?php echo $pref->ap_title;?>"><?php echo $pref->ap_title;?></option> <?php endfor</strong>each;?> </select> </div>
In bpfb_interface.js,i have variable preference,which stores selected preference.
bpfb_interface.js:var $preference; function init () { $form = $("#whats-new-form"); $text = $form.find('textarea[name="whats-new"]'); $textContainer = $form.find('#whats-new-textarea'); $preference=$form.find('select[name="preference"]'); createMarkup(); $('#bpfb_addPhotos').click(function () { if (_bpfbActiveHandler) _bpfbActiveHandler.destroy(); _bpfbActiveHandler = new BpfbPhotoHandler(); $("#bpfb_cancel_action").show(); return false; }); $('#bpfb_addLinks').click(function () { if (_bpfbActiveHandler) _bpfbActiveHandler.destroy(); _bpfbActiveHandler = new BpfbLinkHandler(); $("#bpfb_cancel_action").show(); return false; }); $('#bpfb_addVideos').click(function () { if (_bpfbActiveHandler) _bpfbActiveHandler.destroy(); _bpfbActiveHandler = new BpfbVideoHandler(); $("#bpfb_cancel_action").show(); return false; }); $('#bpfb_cancel_action').click(function () { $(".bpfb_toolbarItem.bpfb_active").removeClass("bpfb_active"); _bpfbActiveHandler.destroy(); $("#bpfb_cancel_action").hide(); return false; }); $(".bpfb_toolbarItem").click(function () { $(".bpfb_toolbarItem.bpfb_active").removeClass("bpfb_active"); $(this).addClass("bpfb_active"); }); $(document).on('click', '#bpfb_submit', function () { var params = _bpfbActiveHandler.get(); if($('#preference').val().length!=0){ var group_id = $('#whats-new-post-in').length ? $('#whats-new-post-in').val() : 0; $.post(ajaxurl, { "action": "bpfb_update_activity_contents", "data": params, "content": $text.val(), <strong> "preference": $('#preference').val(),</strong> "group_id": group_id }, function (data) { _bpfbActiveHandler.destroy(); $text.val(''); $('#activity-stream').prepend(data.activity); /** * Handle image scaling in previews. */ $(".bpfb_final_link img").each(function () { $(this).width($(this).parents('div').width()); }); }); }else{ alert('You must select preference.'); } }); $(document).on('click', '#bpfb_cancel', function () { $(".bpfb_toolbarItem.bpfb_active").removeClass("bpfb_active"); _bpfbActiveHandler.destroy(); }); }
In buddypress_activity_plus’ lib folder,inside class_bpfb_binder.php there is a function ajax_update_activity_contents.Its code is given below.
class_bpfb_binder.php:function ajax_update_activity_contents () { $bpfb_code = $activity = ''; $aid = 0; $codec = new BpfbCodec; if (!empty($_POST['data'])) { if (!empty($_POST['data']['bpfb_video_url'])) { $bpfb_code = $codec->create_video_tag($_POST['data']['bpfb_video_url']); } if (!empty($_POST['data']['bpfb_link_url'])) { $bpfb_code = $codec->create_link_tag( $_POST['data']['bpfb_link_url'], $_POST['data']['bpfb_link_title'], $_POST['data']['bpfb_link_body'], $_POST['data']['bpfb_link_image'] ); } if (!empty($_POST['data']['bpfb_photos'])) { $images = $this->move_images($_POST['data']['bpfb_photos']); $bpfb_code = $codec->create_images_tag($images); } } $bpfb_code = apply_filters('bpfb_code_before_save', $bpfb_code); // All done creating tags. Now, save the code $gid = !empty($_POST['group_id']) && is_numeric($_POST['group_id']) ? (int)$_POST['group_id'] : false ; if ($bpfb_code) { $content = !empty($_POST['content']) ? $_POST['content'] : ''; $content .= "\n{$bpfb_code}"; $content = apply_filters('bp_activity_post_update_content', $content); $preference = !empty($_POST['preference']) ? $_POST['preference'] : ''; $aid = $gid ? groups_post_update(array('content' => $content, 'group_id' => $gid)) : bp_activity_post_update(array('content' => $content,'preference'=>$preference)) ; global $blog_id; bp_activity_update_meta($aid, 'bpfb_blog_id', $blog_id); bp_activity_update_meta($aid, 'preference', $preference); } if ($aid) { ob_start(); if ( bp_has_activities ( 'include=' . $aid ) ) { while ( bp_activities() ) { bp_the_activity(); if (function_exists('bp_locate_template')) bp_locate_template( array( 'activity/entry.php' ), true ); else locate_template( array( 'activity/entry.php' ), true ); } } $activity = ob_get_clean(); } header('Content-type: application/json'); echo json_encode(array( 'code' => $bpfb_code, 'id' => $aid, 'activity' => $activity, )); exit(); }
If you get any problem,do notify me.Thank you guys.
Thanks Kasia.I already followed the same.I was able to add new field for image category into wp_bp_activity_meta.Thank you very much for your kind support.
Hey Kasia,thank u for your reply.I am following the same bpfb_interface.js which you mentioned.I will be able to add the category field along with the image being uploaded only if i get the data insertion flow.I find it difficult to figure out the data insertion flow of activity content and image upload into the database.Any further insight,direction from your side will help definitely me.See if you can.