AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

Filter by custom fields

Topic prefix

AI Assistant
Notifications
Clear all

[Closed] Show display notification " you must be logged to reply to this topic"

4 Posts
2 Users
1 Reactions
1,700 Views
Posts: 7
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@yesterday55555)
Active Member
Joined: 6 years ago
[#13217]

Hello everyone. How can I display notification " you must be logged to reply to this topic" like this?

 

 login

3 Replies
Sofy
Posts: 5774
 Sofy
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@sofy)
Support Team
Joined: 8 years ago

Hi @yesterday55555

You can customize the post.php file in the layout and add the text. Please read wpForo template files documentation and customization instruction:


2 Replies
(@yesterday55555)
Joined: 6 years ago

Active Member
Posts: 7
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@sofy

Sorry, because I do not understand much about code in wordpress. I will try to do it, but If there is any photo that help me step by step. that will be more great.

Anyway thank you so much.


Sofy
 Sofy
Admin
(@sofy)
Joined: 8 years ago

Support Team
Posts: 5774
Sofy
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@yesterday55555,

Please see the example below. In the example, we've added the text for the Extended layout. In the case of other layouts, you should put the code in the post.php file of the current layout.

Please attentively read this doc:

https://wpforo.com/docs/root/forum-themes/theme-files/#layouts%C2%A0-wpforo-wpf-themes-classic-layouts

The code you should use:

<?php if( !is_user_logged_in() ): ?>
<p> you must be <a href="Put here the login link">logged </a>to reply to this topic </p>
<?php endif; ?>

 

customization

Share: