How to hide Stick a...
 
Notifications
Clear all

[Solved] How to hide Stick and Close buttons for guests?

25 Posts
2 Users
0 Reactions
4,082 Views
(@anonimniq)
Eminent Member
Joined: 5 years ago
Posts: 21
Topic starter  

I'm not sure why, but these buttons are visible for guest users... they have options to Stick or Close new comment, as well as comments for other users... not sure if this buttons actually work, but they are visible. How to remove them?


   
Quote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 7 years ago
Posts: 6146
 

Hi @anonimniq,

The 'Stick' and 'Close ' buttons are visible only for admins and moderators (high-level users). It's not available for regular users and guests. 

It also may be visible for the authors, who are the author of the current post. In other cases, it's never visible. I mean that if the current author is not the author of the current post the 'Stick' and 'Close ' buttons will not be visible.

Please leave some example URL to allow us to check the issue on your website. 


   
ReplyQuote
(@anonimniq)
Eminent Member
Joined: 5 years ago
Posts: 21

   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 7 years ago
Posts: 6146
 

Hi @anonimniq,

Please let us know:

  • Have you customized the wpDiscuz plugin? 
  • Do you have some cache plugins? 

   
ReplyQuote
(@anonimniq)
Eminent Member
Joined: 5 years ago
Posts: 21
Topic starter  

@astghik

I only use simple css for display it in full width and for rounded avatars. Make my custom language translation, that's all. No active cache plugin at the moment, only Cloudflare cache.


   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 7 years ago
Posts: 6146
 

ok @anonimniq,

It seems there is some other plugin caused the issue. Please deactivate the plugins one by one and check after each deactivation to find the problem maker one. Please let us know the result of the testing.

Please don't forget to press Ctrl+F5(twice) on frontend each time before checking to reload updated JS/CSS files. 

 


   
ReplyQuote
(@anonimniq)
Eminent Member
Joined: 5 years ago
Posts: 21
Topic starter  

I have around 50 active plugins, tried it to deactivate every single plugin 1 by 1, but nothing fix this issue. Maybe more than one plugin are conflicted... I don't know. Is it OK if I hide the buttons with CSS? Is this issue bad for security of my site?


   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 7 years ago
Posts: 6146
 

yes @anonimniq you can hide the buttons.

You can hide the buttons via the options mentioned in this doc: 

https://wpdiscuz.com/docs/wpdiscuz-documentation/settings/comment-form/#stick_comment

 Is this issue bad for security of my site?

We cannot say this for sure but we highly recommend you find the problem maker plugin. 


   
ReplyQuote
(@anonimniq)
Eminent Member
Joined: 5 years ago
Posts: 21
Topic starter  

These options are disabled in setting, I can't see these buttons as an administrator, but they are visible for guests so I need another way to hide them. 


   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 7 years ago
Posts: 6146
 

@anonimniq

ok then I think this is just a cache issue. Please clear your Cloudflare CDN cache and check again. 

Here is described how to clear or temporarily suspend your Cloudflare cache:

https://help.dreamhost.com/hc/en-us/articles/216477847-How-to-clear-or-temporarily-suspend-your-Cloudflare-cache

Don't forget to press Ctrl+F5 before checking.


   
ReplyQuote
(@anonimniq)
Eminent Member
Joined: 5 years ago
Posts: 21
Topic starter  

Still no luck.... I purge cloudflare cache, activate developer mode to disable it, delete my browser cache, reload the site many times but the issue is still there.


   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 7 years ago
Posts: 6146
 

@anonimniq

We've checked many times and don't find such an issue on all our test websites.  This is something specific on your website. Could you please send the admin login details to info[at]gvectors.com email address to allow us to check it? 


   
ReplyQuote
(@anonimniq)
Eminent Member
Joined: 5 years ago
Posts: 21
Topic starter  

@astghik

I send you an email.


   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 7 years ago
Posts: 6146
 

Thank you  @anonimniq,

Please wait a bit. I'll update this topic once I get news for you. 

 


   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 7 years ago
Posts: 6146
 

Hi @anonimniq,

Once we edit and update the current topic, the issue was resolved. Please check it. As I guess one of the active plugins has a hard cache system it caches the HTML. 


   
ReplyQuote
(@anonimniq)
Eminent Member
Joined: 5 years ago
Posts: 21
Topic starter  

@astghik

Is it OK for new created posts, because content is generated from guest users and will be hard to update all new posts everytime someone post something. Also don't want post to appear as created from the admin... if this is only for old posts it's fine.


   
ReplyQuote
(@anonimniq)
Eminent Member
Joined: 5 years ago
Posts: 21
Topic starter  

I just test it and the problem exist in every new post. I guess is somehow related to author permissions, because when post is edited and administrator is attached as an author problem is solved, but when posts are created from guests.... issue exist.


   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 7 years ago
Posts: 6146
 

@anonimniq,

Please let us know, how have you enabled the guest posting? Which plugin do you use? 


   
ReplyQuote
(@anonimniq)
Eminent Member
Joined: 5 years ago
Posts: 21
Topic starter  

I use Gravity Forms + Gravity Forms User Registration Add-On + Lastform for front end guest posting.


   
ReplyQuote
(@anonimniq)
Eminent Member
Joined: 5 years ago
Posts: 21
Topic starter  

Any solution for this? I can make function to assign an author with needed privileges to all posts but that's not a perfect solution.


   
ReplyQuote
Page 1 / 2
Share:
Scroll to top