Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] CBBlog: Is it posible to hide button Edit, Delete, Publish with some users?

  • haidinh
  • haidinh
  • OFFLINE
  • Posts: 94
  • Thanks: 8
  • Karma: 0
8 years 10 months ago #275473 by haidinh
Hi Krileon,

Thank you for your suggestion to use Joomla article submit function.

However I really like CBblog. I tried to create a trigger in CB auto-action with redirect type but it did not work yet.

I used trigger "Before Delete Blog, I set condition [username] equal to a user then action to redirect to a URL with notice type. But I can still delete the blog and it does not redirect.

Please help me to check if there is anything wrong as I left other settings like default.

Yours sincerely,

Hai
Attachments:

Please Log in or Create an account to join the conversation.

  • haidinh
  • haidinh
  • OFFLINE
  • Posts: 94
  • Thanks: 8
  • Karma: 0
8 years 10 months ago #275478 by haidinh
Hi Krileon,

The action works now. The last one did not work because I used a moderator account.

I think the redirect is useful for me in this case.

Thank you for your support.

Hai

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48464
  • Thanks: 8280
  • Karma: 1443
8 years 10 months ago #275490 by krileon
To go to home page use index.php instead of your domain. Based off the look of the triggers dropdown your CB Auto Actions and CB it self are out of date. Please be sure to update both when possible.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • haidinh
  • haidinh
  • OFFLINE
  • Posts: 94
  • Thanks: 8
  • Karma: 0
8 years 10 months ago #275614 by haidinh
Hi Krileon,

The redirect autoAction already works with condition: [username] equal to ...

However, I need it to work with an certain article, for example article id 800. So I set the condition: [article_id] equal to 800. But it does not work. The user can still delete the article. Can you help me to solve it?

Thank you and regards,

Hai

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48464
  • Thanks: 8280
  • Karma: 1443
8 years 10 months ago #275636 by krileon
You need to condition against the variable of that trigger. Depending on the variable it can be an object. In the case of cbblogs_onBeforeDeleteBlog var1 is the CB Blogs object and var2 is the Joomla article object. So you should be able to use [var1_id] or [var2_id] and condition it against 800.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • haidinh
  • haidinh
  • OFFLINE
  • Posts: 94
  • Thanks: 8
  • Karma: 0
8 years 10 months ago #275673 by haidinh
Thank you very much Krileon,

It works now.
The following user(s) said Thank You: krileon

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum