Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 36 total)

  • harihealthcare
    Participant

    @harihealthcare

    I think auto forward specified sender mail to WhatsApp is on developing. Meanwhile below link might help you to auto forward specified sender mail to SMS.

    LINK

    Regards


    harihealthcare
    Participant

    @harihealthcare

    Hi orientsee,

    Kindly use this free WordPress plugin for better customization.

    Regards


    harihealthcare
    Participant

    @harihealthcare

    Is there any updates ?


    harihealthcare
    Participant

    @harihealthcare

    Hi !

    Prashant,

    Thanks again.

    Sorry for delay in reply because I want experiments on your above article.

    I read the whole third part of your above link. But it’s for making a plugin. I tried direct the changes to a demo wordpress installation php files but it’s not works for me. I mashed up because I haven’t core developer.

    Can any other things or plugin solve my problem ?

    I found on net about the same problem’s solution. I got the plugin pie for the same.

    In this plugin I am able to add forgot password page template. Just go to pie register-> Notification -> Select tab User notification-> select template from dropdown “Password reset request”.

    But after user fill password reset form when they click …
    1) User got a link with token. I don’t want this ? I send just only token without link like otp.
    2) After clicking user must redirect to page where they can paste the key which they received.
    3) After pasting the key I have two options…
    A) Either user redirect to create a new password and confirm password page.
    B) OR user got a new password via mail which auto generated by site to their registered mail id.

    Thanks and Regards


    harihealthcare
    Participant

    @harihealthcare

    Hi !

    Prashant,

    Thanks to give your valuable time for my problem.

    but I glad to tell you that above plugin does not works for me.

    When I see the first time and read its description I thought this plugin doesn’t send a link to users but I don’t want it.

    So, Thanks again Prashant
    and
    Happy New Year to you and your family.


    harihealthcare
    Participant

    @harihealthcare

    Hi !

    Prashant,

    Thanks for your help.

    AND Sorry for that on my stupid behavior that I have already that answer but without thinking I have post a new topic. It means I have still not that type of logical thinking mind.

    Sorry for that again….

    By the way as per your last answer I really work hard to find where is that file where drop down code exist. I open and close so many files but I can’t find it.

    After frustrating on myself that there is no code exist on plugin’s any files. One thought coming on my mind that if I have that type of utility where I find the word on all php files from selected folder and as well as sub folders too. And I google and I find that this facility is in the software which I have already use Notepad++.

    Using the help of that utility I not find any files where the word “Bulk Actions” or “Add Star” etc…

    So, I tried after thinking little to try to search on Buddy Press plugin directory and I finally find that file.

    The file path is wp-content\plugins\buddypress\bp-messages\bp-messages-template.php

    I wrap the code as you earlier help me and you not believe in my first try I got the solution. I wrap as below…

    <?php if(current_user_can('manage_options')){?>
    		
    <option value="delete"><?php _e( 'Delete', 'buddypress' ); ?></option>
    	
    <?php }?>

    Yeappy !!!

    Thanks Prashant,
    Happy Diwali &
    Happy New Year in Advance.


    harihealthcare
    Participant

    @harihealthcare

    Ya you are right Prashant. I very confused. How someone write ditto word to word like my ticket even if on subject line also. I haven’t any another account. I think this is a security breech. Or may be loop whole or bug where someone or automated system stolen my data and create new username or account or post a new copied ticket to someone else account.

    I also visit https://buddypress.org/members/monirulbd/forums/ and there is also same as per mine https://buddypress.org/members/harihealthcare/forums/

    Even I completely remember that after I log in I create new topic.

    Really don’t get whats problem ?


    harihealthcare
    Participant

    @harihealthcare

    Hi !

    Prashant,

    I think you answered my question but I can’t see it. Because admin blocked your answer might be. He also remove my link.

    So, What can I do now ?

    Please help me


    harihealthcare
    Participant

    @harihealthcare

    Hi !

    I use the same bp and youzer but i only got a one mail.

    I also checked with new – fresh installation but it has the same only one email sent to admin

    Please contact youzer plugin support for the same.

    Regards


    harihealthcare
    Participant

    @harihealthcare

    Thanks Very much for your reply prashant on my new created thread or topic. I got the solution. I am doing the same but it’s wrapping isn’t working and after your post of both the codes it’s working very fine.

    I think I do a silly mistakes. Like closing tags or dot or < / ? or somethings like mistakes. Thanks you.

    By the way sorry for the misunderstanding of moderator shanebp. I also create a new thread or topic and give him proper answer. for his narrow minded thinking.

    AND sorry again for my side and for me you listen that shanebp told you to go elsewhere if you provide free support for premium plugin.

    I am really very very sorry for that.

    Thanks and Regards from my heart.


    harihealthcare
    Participant

    @harihealthcare

    Hi !

    Prashant,

    It’s not work. I paste into snippet and check run this code everywhere.

    Can it’s possible that I’ll give you a link of plugin and can you check so, you got better idea.

    Plugin link : removed

    Regards


    harihealthcare
    Participant

    @harihealthcare

    Hi !

    Prashant,

    First of all thank you very much for your reply here.

    Your first stanza’s answer is I always check twice with both the role’s admin and patient. But after wrapping the code both user’s after message creating page’s Delete button disappear.

    Your second stanza’s second line I can’t understand. What is ajax ? And how can I see or know that any ajax requests going on that creates the HTML there.

    Your third stanza’s last line confuse me. Please explain “not the user from which profile you are creating notifications.”

    Also I eagerly waiting for your css. Also tell me where exact can I paste that css.

    Thanks N Regards


    harihealthcare
    Participant

    @harihealthcare

    Hi !

    Prashant,

    Thanks for this fast answer.

    I wrap button code as per your instruction. But I think I am not a good developer so may be I am doing some mistake and output not came proper.

    I explain you what I do.

    First I open single.php file and went to the line no. 49 where “Delete” word. (Which line I was delete previous). I put your code and try to wrap but delete button goes from admin also and all other roles also. See my warping code below…

    Before Wrap Code (Here Delete Button Shows To All)

    			
    			<div class="highlight-button">
    			
    			<a class="button confirm" href="<?php bp_the_thread_delete_link(); ?>"><i class="fas fa-trash-alt"></i><?php _e( 'Delete', 'youzer' ); ?></a>
    			
    			</div>
    			

    After Wrap Code (Here Delete Button Goes from All User)

    
    			<div class="highlight-button">
    			<?php if(current_user_can(‘manage_options’)){?> 
    			
    			<a class="button confirm" href="<?php bp_the_thread_delete_link(); ?>"><i class="fas fa-trash-alt"></i><?php _e( 'Delete', 'youzer' ); ?></a>
    			
    			<?php }?> 
    			</div>
    			

    I also add warping before div class

    Before Wrap Code (Here Delete Button Shows To All)

    			
    			<div class="highlight-button">
    			
    			<a class="button confirm" href="<?php bp_the_thread_delete_link(); ?>"><i class="fas fa-trash-alt"></i><?php _e( 'Delete', 'youzer' ); ?></a>
    			
    			</div>
    			

    After Wrap Code (Here Delete Button Goes from All User)

    
    			<?php if(current_user_can(‘manage_options’)){?> 
    			<div class="highlight-button">
    			
    			
    			<a class="button confirm" href="<?php bp_the_thread_delete_link(); ?>"><i class="fas fa-trash-alt"></i><?php _e( 'Delete', 'youzer' ); ?></a>
    			
    			
    			</div>
    			<?php }?> 
    			

    So, Please tell me which silly mistake I am doing ?

    Before wrapping the button shows to all and after wrapping it’s hide for (gone from) all.
    Regards


    harihealthcare
    Participant

    @harihealthcare

    Hi !

    Prashant,

    It’s work perfectly !

    Thanks Man ! Heads off you !

    Regards


    harihealthcare
    Participant

    @harihealthcare

    Hi !

    On your above solution if admin want to message anyone he select the person from members page and click on message button and than compose screen has the name of the person shown and in the to button shows “support” in ready only mode which can not change by admin.

    So, If we want to give permission to change this read only “support” word.

    Is it possible ?

    Thanks


    harihealthcare
    Participant

    @harihealthcare

    Helloo !

    Prashant,

    Sorry for my last exciting reply,

    But after deleting those lines from those files admin also can not see the delete buttons.

    What should I do now ?

    Regards


    harihealthcare
    Participant

    @harihealthcare

    Hello !

    Prashant,

    Sorry for my last exciting reply,

    But after deleting those lines from those files admin also can not see the delete buttons.

    What should I do now ?

    Regards


    harihealthcare
    Participant

    @harihealthcare

    Hi !

    Prashant,

    Sorry for my last exciting reply,

    But after deleting those lines from those files admin also can not see the delete buttons.

    What should I do now ?

    Regards


    harihealthcare
    Participant

    @harihealthcare

    Hi !

    Prashant,

    Sorry for my above exciting reply.

    But I have one problem. After deleting those files those lines admin can also not seen the delete buttons.

    Now what should I do ?

    Regards


    harihealthcare
    Participant

    @harihealthcare

    Hello !

    Prashant,

    Thank for your brilliant idea.

    For your above answer strike my mind that If I delete a code lines from single.php file where word “Delete” and I do the same doing below steps.

  • 1. Open single.php file.
  • 2. Search “Delete” word.
  • 3. I found only one line.
  • 4. This line’s number is 49.
  • 5. I wrote same line here before.
  • 6. I delete the whole line which starts from a tag to end of a tag.
  • 7. Wow ! As you can see in the video’s 1:19 second’s red delete button goes.
  • 8. But single conversation delete button / dustbin icon delete button not gone.
  • 9. This dustbin icon button available in users sent,stared and inbox message list.
  • 10. I find “Delete” word in so many files.
  • 11. Finally, I found it on messages-loop.php file in the same directory.
  • 12. I delete the line no. 127 where delete word.
  • 13. The line is below…
  • <a class="delete" href="<?php bp_message_thread_delete_link( bp_displayed_user_id() ); ?>"><span class="dashicons dashicons-trash"></span></a>

  • 14. Finally, it’s gone from everywhere.
  • Thank You Very Much Prashant for your endless help

    Regards


harihealthcare
Participant

@harihealthcare

Hi !

Prashant,

As per your above suggestion, I find the above code but as I find it’s not exact as you wrote above. But I replace as per my poor coding knowledge but it’s not work.

Here is the code of single.php file from location
“wp-content\plugins\youzer\includes\public\templates\members\single\messages”

<?php
/**
 * BuddyPress - Members Single Message
 */

?>
<div id="message-thread">

	<?php

	/**
	 * Fires before the display of a single member message thread content.
	 *
	 * @since 1.1.0
	 */
	do_action( 'bp_before_message_thread_content' ); ?>

	<?php if ( bp_thread_has_messages() ) : ?>

		<div id="message-recipients">

			<div class="highlight-icon"><i class="far fa-comments"></i></div>
			
			<div class="highlight">

				<h2 id="message-subject"><?php bp_the_thread_subject(); ?></h2>
				
				<span class="highlight-meta">
					
				<?php if ( bp_get_thread_recipients_count() <= 1 ) : ?>

					<?php _e( 'You are alone in this conversation.', 'youzer' ); ?>

				<?php elseif ( bp_get_max_thread_recipients_to_list() <= bp_get_thread_recipients_count() ) : ?>

					<?php printf( __( 'Conversation between %s recipients.', 'youzer' ), number_format_i18n( bp_get_thread_recipients_count() ) ); ?>

				<?php else : ?>

					<?php printf( __( 'Conversation between %s.', 'youzer' ), bp_get_thread_recipients_list() ); ?>

				<?php endif; ?>

				</span>

			</div>
			<div class="highlight-button">
				
			<a class="button confirm" href="<?php bp_the_thread_delete_link(); ?>"><i class="fas fa-trash-alt"></i><?php _e( 'Delete', 'youzer' ); ?></a>

			</div>
			<?php

			/**
			 * Fires after the action links in the header of a single message thread.
			 *
			 * @since 2.5.0
			 */
			do_action( 'bp_after_message_thread_recipients' ); ?>
		</div>

		<?php

		/**
		 * Fires before the display of the message thread list.
		 *
		 * @since 1.1.0
		 */
		do_action( 'bp_before_message_thread_list' ); ?>

		<?php while ( bp_thread_messages() ) : bp_thread_the_message(); ?>
			<?php bp_get_template_part( 'members/single/messages/message' ); ?>
		<?php endwhile; ?>

		<?php

		/**
		 * Fires after the display of the message thread list.
		 *
		 * @since 1.1.0
		 */
		do_action( 'bp_after_message_thread_list' ); ?>

		<?php

		/**
		 * Fires before the display of the message thread reply form.
		 *
		 * @since 1.1.0
		 */
		do_action( 'bp_before_message_thread_reply' ); ?>

		<form id="send-reply" action="<?php bp_messages_form_action(); ?>" method="post" class="standard-form">

			<div class="message-reply-content">
				
				<?php bp_loggedin_user_avatar( 'type=thumb&height=50&width=50' ); ?>

				<?php

				/**
				 * Fires before the display of the message reply box.
				 *
				 * @since 1.1.0
				 */
				do_action( 'bp_before_message_reply_box' ); ?>

				<textarea name="content" id="message_content" rows="15" cols="40" placeholder="<?php _e( 'Write a reply ...', 'youzer' ); ?>"></textarea>

				<?php

				/**
				 * Fires after the display of the message reply box.
				 *
				 * @since 1.1.0
				 */
				do_action( 'bp_after_message_reply_box' ); ?>
			
			</div>

			<div class="submit">
				<button type="submit" name="send" id="send_reply_button"><i class="fas fa-paper-plane"></i><?php esc_attr_e( 'Send', 'youzer' ); ?></button>
			</div>

			<input type="hidden" id="thread_id" name="thread_id" value="<?php bp_the_thread_id(); ?>" />
			<input type="hidden" id="messages_order" name="messages_order" value="<?php bp_thread_messages_order(); ?>" />
			<?php wp_nonce_field( 'messages_send_message', 'send_message_nonce' ); ?>

		</form><!-- #send-reply -->

		<?php

		/**
		 * Fires after the display of the message thread reply form.
		 *
		 * @since 1.1.0
		 */
		do_action( 'bp_after_message_thread_reply' ); ?>

	<?php endif; ?>

	<?php

	/**
	 * Fires after the display of a single member message thread content.
	 *
	 * @since 1.1.0
	 */
	do_action( 'bp_after_message_thread_content' ); ?>

</div>

I replace the line no.49 which is

<a class="button confirm" href="<?php bp_the_thread_delete_link(); ?>"><i class="fas fa-trash-alt"></i><?php _e( 'Delete', 'youzer' ); ?></a>

with your code

<?php if(current_user_can('manage_options')){?>
<a>" title="<?php esc_attr_e( "Delete Message", "buddypress" ); ?>"><?php _e( 'Delete', 'buddypress' ); ?></a>
<?php }?>

But still not got the solution.

Regards


harihealthcare
Participant

@harihealthcare

Hi !

Prashant,

Today I see your profile and some how I go to this page where you post this plugin and I see that on WordPress plugin official page “https://wordpress.org/plugins/bp-custom-functionalities/&#8221; and here has the developer name is yours !

Congrats ! to you man for making this plugin. I installed and it’s very useful me. Specially it’s one feature “Private profile – that means one member can not see other members profile.”

Thanks man,

Keep it up !

Regards


harihealthcare
Participant

@harihealthcare

I am not using any buddy press template I use Youzer plugin. I think this plugin gives me this template. as you can see in the video path.

By the way …

1. I can’t understand your above answer.

2. What can I do wrong in the video ?

3. What can I do now for preventing users other than admin to delete the private conversation.

4. Can I put your above code in plugin’s directory’s path “\wp-content\plugins\youzer\includes\public\templates\members\single\messages” single.php file ?

5. Is any other way or plugin to prevent users other than admin to delete private message ?

Thanks


harihealthcare
Participant

@harihealthcare

Actually my mcafee antivirus shows me virus on screencast-o-matic’s downloaded file WebLaunchRecorder.exe that’s why I use camstudio freeware for screen recording. But anyway I turn off my antivirus and sent you the link. Below it is ….

As you can see in the below video. I logged already into my c penal and reached the path of index file as you guide me in your previous answer. I copy and paste your code and save the file. After saving I go to my site’s patient role logged in user’s buddy press message page and refresh the page but the delete button can’t go. It’s already shown by the user and it’s delete the message.

Video Link : LINK

Regards


harihealthcare
Participant

@harihealthcare

Hi !

As you can see in the below video. I logged already into my c penal and reached the path of index file as you guide me in your previous answer. I copy and paste your code and save the file. After saving I go to my site’s patient role logged in user’s buddy press message page and refresh the page but the delete button can’t go. It’s already shown by the user and it’s delete the message.

Link of recorded Video : LINK

Thanks

Viewing 25 replies - 1 through 25 (of 36 total)
Skip to toolbar