-
Author
-
December 2, 2015 at 09:21 #90503Loyal_CustomerParticipant
Doe this theme contain “<?php do_action( ‘template_notices’ ); ?>” ?
If so, in which template file can I find this code?
Thank you.
December 3, 2015 at 21:28 #91010LauraModeratorHello, will assign the ticket to a higher support level who can help and advise you in your query.
Thanks! 🙂Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
December 6, 2015 at 09:01 #91460Loyal_CustomerParticipantHello,
I have not heard back from anyone regarding this question.
I need to know if the theme contains “<?php do_action( ‘template_notices’ ); ?>”
…and if it does, which file is it located in?December 7, 2015 at 16:02 #91645RaduModeratorHi,
template_notices is part of buddypress
read this : https://buddypress.org/support/topic/modifying-output-of-template_notices/
The action is present in many files of our theme
COPY CODETargets Occurrences of 'template_notices' in Directory \KLEO 3.1.1\kleo Found Occurrences (17 usages found) Usage in string constants (17 usages found) kleo (17 usages found) bbpress (4 usages found) content-single-user.php (1 usage found) (14: 24) <?php do_action( 'bbp_template_notices' ); ?> form-forum.php (1 usage found) (60: 27) <?php do_action( 'bbp_template_notices' ); ?> form-reply.php (1 usage found) (49: 27) <?php do_action( 'bbp_template_notices' ); ?> form-topic.php (1 usage found) (66: 27) <?php do_action( 'bbp_template_notices' ); ?> buddypress\activity (1 usage found) index.php (1 usage found) (13: 20) <?php do_action( 'template_notices' ); ?> buddypress\activity\single (1 usage found) home.php (1 usage found) (2: 20) <?php do_action( 'template_notices' ); ?> buddypress\blogs (1 usage found) create.php (1 usage found) (4: 19) <?php do_action( 'template_notices' ); ?> buddypress\forums (1 usage found) index.php (1 usage found) (84: 24) <?php do_action( 'template_notices' ); ?> buddypress\groups (2 usages found) create.php (1 usage found) (19: 21) <?php do_action( 'template_notices' ); ?> index.php (1 usage found) (15: 21) <?php do_action( 'template_notices' ); ?> buddypress\groups\single (1 usage found) group-header.php (1 usage found) (74: 13) do_action( 'template_notices' ); buddypress\members (4 usages found) activate.php (1 usage found) (7: 21) <?php do_action( 'template_notices' ); ?> register.php (3 usages found) (10: 22) <?php do_action( 'template_notices' ); ?> (20: 22) <?php do_action( 'template_notices' ); ?> (186: 22) <?php do_action( 'template_notices' ); ?> buddypress\members\single (1 usage found) member-header.php (1 usage found) (66: 19) <?php do_action( 'template_notices' ); ?> kleo-framework\lib (1 usage found) function-facebook-login.php (1 usage found) (353: 14) add_action( 'template_notices', 'kleo_fb_register_message' );
Cheers
RAdu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 14, 2015 at 13:14 #93116Loyal_CustomerParticipantHi,
Thank you for your response. For some reason, the template notices are no longer working on my Sweetdate theme.
For example, the plugin “BP Force Profile Photo” usually shows a red notification bar with a message on the user’s profile if a he or she does not upload a photo (please see attached image). The red bar is not showing up anymore. In addition, I don’t think any notification bars are showing in other areas to notify users of anything throughout the theme when a notification needs to be shown.Could you please let me know what might be causing this issue, and what can be done to solve it so that the bars start working again?
Thank you.
Attachments:
You must be logged in to view attached files.December 14, 2015 at 19:03 #93192RaduModeratorHi,
I suggest you to make a backup of sweetdate and sweetdate-child then reupload again the parent theme and the child.
Reproduce your action to see if the notices appear. And also make sure that you don’t hide the notifications with display:none via CSS.
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 15, 2015 at 00:56 #93282Loyal_CustomerParticipantHello,
I have re-uploaded the parent and child theme, as instructed. I have also deleted all the CCS from Quick CCS to make sure that no notifications are hiddend with display:none, but the red notification bar is still not showing up.
Will I be able to fix it by placing the following line in some files?
<?php do_action( ‘template_notices’ ); ?>
If so, please where should I put it?
Thank you.
December 15, 2015 at 17:48 #93405RaduModeratorHi,
Do you have tried to contact plugin author ?
https://wordpress.org/plugins/bp-force-profile/
On the plugin page it says “This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.”
So, the plugin can have some compatibility issue.
Try to contact plugin author
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 16, 2015 at 12:17 #93583Loyal_CustomerParticipantHi,
That is not the plugin that I am referring to. I am talking about the plugin called “Force Photo” not “Force Profile.” BP Force Profile was just updated 4 days ago.
I have already contacted the plugin author and downloaded the most recent update. The plugin author asked if the theme I am using (Sweetdate) contains <?php do_action( ‘template_notices’ ); ?>
He said that <?php do_action( ‘template_notices’ ); ?> needs to be in all the pages in order to have the red notification bar appear. According to him, it is only in the “User/group/forums” pages of the Sweetdate template.
The red notification bar is supposed to appear somewhere in the header, right under the gray avatar box. The problem is I don’t know where to put it the <?php do_action( ‘template_notices’ ); ?> line in the Sweetdate theme to make the plugin start working again. So, I am hoping you could please advice me on where to put it, since you are familiar with the Sweetdate files?
Thank you for your help.
December 16, 2015 at 19:06 #93679RaduModeratorHi,
We don’t make any modifications to the template_notices action and it seems to be a problem from plugin that you use.
See the attached screenshot.
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAttachments:
You must be logged in to view attached files. -
AuthorPosts
You must be logged in to reply to this topic.