[#3307] Assigning user group based on CB field value

12 years 2 months ago #192732 by krileon
Ok, thank you; I appreciate the test. Will be reviewing further for next release. Will need to write further checks to ensure a non-logged in users session isn't changed. You can also comment out $session->set( 'user', new JUser( $user->id ) ); entirely and that should stop it from updating the user session so it won't log them in. Change isn't good if you intended to use it after login though as it won't update their current session.


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.
The topic has been locked.
12 years 2 months ago #192840 by timberlineevents
Replied by timberlineevents on topic Re: Assigning user group based on CB field value
How can I give specific access to post a new blog?
I have several types of users and I want to restrict some of the to have the blog tab shown in the profile and/or restrict the possibility to click on “new blog”??
Let me know if I should open a new post for this
Tks
The topic has been locked.
12 years 2 months ago #192846 by krileon
Only way to do that is set CB Blogs plugin to a different usergroup for example, but then only that usegroup can see and use the blog plugin; this includes seeing its tab on profile, which I suppose isn't a big deal if you let CB Articles display the blogs on profile.


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.
The topic has been locked.
12 years 2 months ago - 12 years 2 months ago #192859 by timberlineevents
Replied by timberlineevents on topic Re: Assigning user group based on CB field value
So in other words, if one can post and article, everyone can???
What about conditionals, I quick looked and saw them there??

Three more: (sorry, but i almost done whith it)

Where do I find the text (to edit) of the admin emails.

Mean the ones that shows up as “ACTION REQUIRED! New User Registration Pending Approval‏”



and

Is there any way I can style these fields titles marked in red to show up in 1 row??
the div has a width:49% that i don´t know where is coming from. Is not css, is in the code somewhere...





and

I found out (the hard way) that cbblogs is not sending admin emails when blogs are posted
Am I right?

Then I found a post with same issue and this:

forge.joomlapolis.com/issues/3264

Is there any update to this or some way to cheat it with an auto action or something?




Tks a lot!!
Attachments:
The topic has been locked.
12 years 2 months ago - 12 years 2 months ago #192898 by krileon

So in other words, if one can post and article, everyone can???

It's a blog, it's meant to be used by those registered; it's not a substitute for article management, promote users to Authors and such for that. You can change CB Blogs access though by adjusting its access in CB > Plugin Management (click its access to cycle through accesses), but this will also determine access and visibility of CB Blogs tab so if you set to Author then Registered users can't use or see CB Blogs.

What about conditionals, I quick looked and saw them there??

You can condition the display of the tab, but that doesn't stop them from using the CB Blogs page to add blogs.

Where do I find the text (to edit) of the admin emails.

CB language files, please see your CB documentation regarding CB language usage.

Is there any way I can style these fields titles marked in red to show up in 1 row??

Field labels are styled by CB. For example the below CSS is from CBs default template, but you'll want to use Firebug for Firefox to inspect the label to see where its CSS is exactly and adjust as necessary.

IN: components/com_comprofiler/plugin/templates/default/template.css
ON: Line 109
.cbformdiv .cb_form_line label, form.cb_form .cb_form_line label, .cb_tab_content .cb_form_line label {
    display: block;
    float: left;
    font-weight: bold;
    vertical-align: top;
    width: 28%;
}

I found out (the hard way) that cbblogs is not sending admin emails when blogs are posted
Am I right?

It doesn't send anything if blog approval isn't enabled, but currently notifications are bugged.

Is there any update to this or some way to cheat it with an auto action or something?

If there's an update on the ticket I'll post the update to the ticket. No, CB Blogs doesn't have triggers; yet (planned). For now the notifications are broken. Will be fixed with next release of course.


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.
The topic has been locked.
12 years 2 months ago #192905 by timberlineevents
Replied by timberlineevents on topic Re: Assigning user group based on CB field value

If there's an update on the ticket I'll post the update to the ticket. No, CB Blogs doesn't have triggers; yet (planned). For now the notifications are broken. Will be fixed with next release of course.


Do you have at list an idea of when is it going to be released??
The topic has been locked.
Moderators: beatnantkrileon
Time to create page: 0.230 seconds

Facebook Twitter LinkedIn