112 thoughts on “Joomla! + Community Builder custom groups

  1. Guy Labbé

    L’article a été mis à jour après que Trish m’aie signalé une erreur dans
    les remplacements de lignes de code vers la fin du tutoriel. Il manquait un ;
    quelque part.
    The article was updated after that Trish noticed an error in
    code replacements, at the end of the tutorial. It missed a ; somewhere.

  2. Joshua Archer

    You are a lifesaver.
    Thank you Guy, for your most excellent tutorial and your personal attention to help me get this working. I have a project that needed exactly this solution, and you saved us.

  3. Mark W

    This is a hack that’s going to make patching hard
    This tutorial is about adding custom user groups and as part of the solution modifies both Joomla and Community Builder. Ask your self what happens when you have to patch both Joomla and Community Builder with security updates? Then you have to reapply all you “hacks” again. And it’s not even sure you can, because your a messing with the source code and new updates have every right to change everything in the code as long as the public interfaces are intact.

    The tutorial demonstrates a clear violatoin of the Open Closed Principle – leaving the code open for extension but closed for modification. However, I understand that its extremly anoying that Joomla does not come with custom user groups!

  4. Tony

    Guy, can you use the above method for the older Joomla v1.0. Or is it only for v1.5. I have a site with several v1.0 components that will not work on v1.5

  5. marcelo

    articles maintain same groups
    Hi Guy, Thank you for sharing your investigation. I did all you post and worked fine, but then I was supposed that when I need post an article now, it would be posible to match with some of the new groups, but id didn’t. My question is if it is possible to do or not?

    Thanks in advance,
    Marcelo Parra

  6. Guy Labbé

    I know Mark, that it isn’t going to work with any update. It’s only a short way to have this working with custom groups. I didn’t mean to give a perfect and updatable solution, I just expected to give at least a way to do it, even if it’s dirty.

  7. Jeff

    For some reason I can’t get the rebuild.php script to work. It keeps giving me this error:
    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/content1/public_html/geronet/rebuild.php on line 1

    Any ideas? Thanks!

  8. Guy Labbé

    Hi, look up your code, you probably forgot to put a quote somewhere. If you want, Paste your code here (or send it to me info@guylabbe.ca) we’ll help you out with this.

  9. dknight

    How can i display a Specific tab only for a different user group.

    EX: i want to show “messages” tab on community builder to my custom made user group”Paid members” & hide it from “Registered ” user group when a Registered user visit to a profile i want to show a tab called “Pay to contact this user”

    Help Appreciated.

  10. Guy Labbé

    Hi, you can set which user group has the “right” to see a tab. Click on the detail page of your tab in CB admin

  11. Guy Labbé

    I think this set of 3 user groups is a different concept than the level user groups we made custom.

    I think you will have to hack the content component + admin page… which is pretty dirty… if you have no choice, do it. But keep notes of what you’re doing, because, of course, you’ll have to do it again each time you upgrade your Joomla!; something you may already know. If you’re in need of some hack work such this one you can contact me at info at guylabbe.ca

  12. Euge

    I did everything right. It works, but I would like to show some articles just to the people of my “newgroup” and not to other registered users. Is that possible? I just see the options : public, registered and special. The plugin that you suggest does not work for me. Any other solution????

    Thanks a lot

  13. Herrie

    I use both CB and JUGA. (www.dioscouri.com)
    JUGA creates ‘groups’ inside the ‘registered’ users.
    Having applied your hack both nee groups act on the same level.
    This makes it impossible to use JUGA’s option to hide content A in an article to group B if group A and B both are children of Registered.
    Any workaround?

  14. Someone

    that nice patch and solved my many problems, only one thing remaining, how to show different fields during new user registration. working fine also in cb 1.2.1. i have created two usertype talent and employer your patch helps me to show different tabs on both usertypes profile. but it cant show same fields on registration form can anyone help me.

    thanks in advance

  15. Someone

    hi sir

    thats nice patch and helps me a lot. only one thing remaining it cant so diff. fields on registration acc. to usertype. my mean to say if i choose usertype A on registration i want those tab fields on which i had giveN access level to usertype A. and if i choose usertype B on registration i want those tab fields on which i had given access level to usertype B.


  16. Uzair

    I used Jquery to hide and pop back fields that were not needed. For fields that were needed in one usertype to fields that were needed in some other usertype and filled the hidden ones with garbage data. A lot of possibilities are available but it’s messy.


    P.S. I’ve made a demo on the homepage, check it out.

  17. Uzair

    Go to your phpmyadmin, if available and add the custom made groups into your ‘jos_groups’ table as well. It somewhat worked for me but you may need some other changes.


  18. Joe

    Thanks for the walk through… everything works perfectly except for one small problem.

    When I as an admin try to create users myself in the backend I get an error that reads the following:

    illegal attempt to set user at higher level than allowed !

    Warning: Invalid argument supplied for foreach() in /home/sdunited/public_html/recruit/administrator/components/com_comprofiler/comprofiler.class.php on line 3897

    Warning: Invalid argument supplied for foreach() in /home/sdunited/public_html/recruit/administrator/components/com_comprofiler/comprofiler.class.php on line 3502

    Any thoughts? Thanks

  19. Ultralord

    hello, i want to create custom access group like “public , registered , special ” thats i want..to make my new vip group member to have view access on my pages with specific access group like “vip” ..

  20. Guy Labbé

    sorry I couldn’t reply to you before, I’m glad to see you’ve found a workaround. I don’t know Juga so I think I weren’t able to help you

  21. Guy Labbé

    You must replace database connection informations by yours.
    NOM_DUTILISATEUR_BD = enter your username here
    MOT_DE_PASSE_BD = enter your password here
    NOM_DELA_BD = enter name of the database here

  22. tariq hamed

    Hello ,
    I did every thing exatlly as you said here!
    But while am running the php patch rebuild.php I always have this error :

    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/sifae/public_html/mbn/rebuild.php on line 11

    Please note my Joomla Ver = 1.5.14.

    Thanks for this great Idea,

    Best Regards,
    Tariq Hamed

  23. tariq hamed

    This is the code am using :

    < ?php mysql_connect("localhost", "NOM_DUTILISATEUR_BD", "MOT_DE_PASSE_BD") or die("Could not connect: " . mysql_error()); mysql_select_db("NOM_DELA_BD"); rebuild_tree ( 0 , 1); function rebuild_tree($parent_id, $left) { $right = $left+1; $result = mysql_query('SELECT id FROM jos_core_acl_aro_groups '. 'WHERE parent_id="'.$parent_id.'";'); while ($row = mysql_fetch_array($result)) { $right = rebuild_tree($row['id'], $right); } mysql_query('UPDATE jos_core_acl_aro_groups SET lft='.$left.', rgt='. $right.' WHERE id="'.$parent_id.'";'); return $right+1; } ?>

  24. tariq hamed

    Its great work 🙂 & its work with me now 😉

    Please … do you have similir solution to add more user Access goroups more then Public/Registers/Special ?

    Thanks again

    Best Regards

  25. marry

    Avec ses 55 millions de membres, force est de reconnaître que Facebook est une plateforme intéressante pour pousser son business. microsoft mcitp Intelligemment utilisé et pour les bons sujets, ce réseau social se révèle être une machine de guerre très efficace pour augmenter votre visibilité, voire vos ventes.

  26. nehogymar

    At first thanks for your great guide. Fortunatelly I’ve been operating a Job seeker site, to where this function mentioned absolutely useful. I’ve made 2 categories, namely: Employer, Job Seeker… I’ve checked in Joomla/User management and both of them exist, but if I registering as a employer the registration get in to the Employer section, if register a Job Seeker, the registered user get in to regular registered user section, not in the Job Seeker.

    How can solve it, is that means any difficulties on the further??

  27. Badrun Tralala

    I’ve followed the steps you provide. But stuck in the / administrator / components / com_comprofiler / comprofiler.class.php, because it turned out that the code you give is different from that available to me.

    in your code, I have to find (line 3036):
    . “\ n AND t.useraccessgroupid IN (“. getChildGIDS implode (‘,’, (userGID ($ _CB_framework-> myId () ))).”)”;

    in my file, only to find this (line 784):
    “t.useraccessgroupid IN (“. getChildGIDS implode (‘,’, (userGID ($ _CB_framework-> myId () ))).”)”;

    I tried to replace the existing line but error. Maybe core-CB that I use is different from what you wear. FYI, I use Joomla 1.5.15 and CB 1.2.2 version…

    thanks btw…

  28. Alan

    Took a LOT of work but got it going. JLS only installs through CB plugin management and not through Joomla’s install. Got stuck there for ages.

    Thanks a TON.

  29. SusieJoom

    First of all, thanks a lot for the great tutorial. I could add new groups to Joomla.
    What my problem is, if I set up a tab for Employee or Employer then the tabs do not display 🙁
    If I set them back as REGSITERED, then I can see the tabs again.

    Could you tell me any advice regarding the solution?

    Many thanks for your help in advance.

  30. SusieJoom

    Hi, it is me again. I tried to do the coding again, at this time I only paste the necessary code into the comprofiler.class.php, so I deleted the old rows.
    And it is working!

  31. Herrie

    Super solution.
    Wit this I can give mu usergroups a different ‘layout’ on my pages.
    Code snippet:
    < ?php $acl =& JFactory::getACL(); jimport('joomla.application.component.helper'); // include libraries/application/component/helper.php $usersParams = & JComponentHelper::getParams('com_users'); // load the Params // "generate" a new JUser Object $user = & JFactory::getUser(); $data = array($user); // array for all user settings $usertype = $usersParams->get($user->id);
    $user =& JFactory::getUser(); $usergid = $user->get('gid');
    //echo "Group ID = " . $usergid . ' ' ; //I know the groupID now

    switch ($usergid) {
    case 31:
    //echo 'Groep = ' .$usergid . ', Herlecollege';
    $template ='hc_bedlam';
    $css= 'hc';
    case 32:
    //echo 'Groep = '. $usergid . ', Vrienden';
    $template= 'web_bedlam';
    $css= 'web';
    case 33:
    //echo 'Groep = '. $usergid . ', Talen';
    $template= 'cur_bedlam';
    $css= 'cur';
    case 28:
    //echo 'Groep = '. $usergid . ', USERS';
    $template= 'base';
    $css= 'base';
    case 29:
    //echo 'Groep = ' .$usergid . ', Public Frontend';
    $template= 'base';
    $css = 'base';
    default: $usergid = 0;
    //echo 'Standaard Groep = '. $usergid. ', Geen groep Id';
    $template= 'base';
    $css = 'base';

    // End test (It works!!!!)
    // echo "The Template used = $template || css = $css ";
    // IE8 puts everything to the left without the empty echo,
    echo ""

    This, in combination with clever use of JUGA makes it look like there are diferens sites

  32. Someone


    is it possible to have different CB access levels for the user groups?

    For example:

    Group A and Group B. There should be a Tab which only appears in the profil of Group B. Group A should be able to see this tab in the profiles of Group B, but this tab should not appear in their own Group A.

    I hope someone can help me. Thanks.

  33. Thetford

    I just can’t make this work, when I run the sript in my browser I get: Could not connect: Access denied for user ‘XXXXXXXXXX’@’’ (using password: YES) (where XX is the database name. I’ve double checked username/passwords… they are correct.
    I’m using 1and1 server, php version 5.2.17, joomla 1.5.22 and It’s a clean install of joomla on a site I just started building, so there are no other plugins/modules that would conflict. Also worth noting, I have not yet installed CB……… any help appreciated

  34. lissabitgio.wordpress.com

    It has completely changed the way of computing and working out daily house hold and corporate processes.

    Entrepreneurs who have ideas on Games are earning good revenues by
    making the games in i – OS and Android platform.

    My blog free dragon city hack download (lissabitgio.wordpress.com)

  35. free hack for dragon city

    No one routes for the evil villan who’s run off with the hero’s beau, same applies to
    a site that’s been stuck in Google’s naughty corner.

    But unfortunately not every request will get approved. What Googlebot is looking to see in the Free
    Local Google Advertising Listings is quite another.

    Feel free to surf to my weblog free hack for dragon city

  36. deservingness

    Hey there! Someone in my Facebook group shared this site with us so I came to give it
    a look. I’m definitely enjoying the information. I’m bookmarking and will be tweeting this to
    my followers! Outstanding blog and brilliant style and design.

    Feel free to surf to my web-site … deservingness

  37. soup.io

    I do nott know whether it’s just me orr iif perhaps
    everybody else experiencing problems wikth yoyr website. It looks like some of
    the text oon your content are running ooff the screen. Caan somebody else please coomment and let me know if this is happening to
    them as well? Thiss could be a issue with my weeb
    browser because I’ve hhad this happen previously. Many thanks

    My webpage … mechanical apptitudde ttest (soup.io)

  38. Tanya

    It was hard to find your articles in google. I found
    it on 11 position, you should build some quality backlinks , it will help you
    to get more visitors. I know how to help you, just type in google – k2 seo tricks

  39. Daniel

    I read a lot of interesting content here. Probably you
    spend a lot of time writing, i know how to save you a lot of work, there is
    an online tool that creates readable, SEO friendly articles in minutes, just type in google
    – k2seotips unlimited content

  40. Cheap Oakley Straight Jacket

    nama saya.Mia…Mia Hafiza Binti Mohd Zafri.rupenye lelaki gile yang nak kat aku ni memey gile pun.Hakim? Nur Amana menolak pintu bilik lagi, “Di sana terlalu banyak fitnah, Zarif, “Mama, apa kabarnya Aan”“Emmm?? sambil mengembuskan napas dan dia berkata “Jadi saat ini Lily di rumah sakit ? Saya tak mahu awak terus-terusan dalam keadaan sedih dan bimbang.“Abang.bentak memecah rentak rintik air, jangan pedulilah! Sehingga pernah ada sekali aku meminta manambah nur pada pangkal namaku supaya aku tidak menjadi orang pertama lagi. Kira okey la.menghubungi mereka untuk mendapatkan khidmat kerja mereka.

  41. anti bacterial

    I was extremely pleased to uncover this website. I need to
    to thank you for your time for this fantastic
    read!! I definitely appreciated every part of it
    and I have you book-marked to check out new things in your site.

  42. Angelika

    It’s really a nice and helpful piece of information. I am satisfied
    that you just shared this helpful info with us. Please keep us
    up to date like this. Thanks for sharing.

  43. GP577R-TC41-24VP

    Does technology play such an ambitious role in other professions.
    Undertaking engaging; composition and lighting when obtaining photographs.
    It is possible to experience Passbook on your own by downloading
    sample passes on your i – OS6 i – Phone.

  44. kelab jutawan forex

    Without leverage, forex moves relatively little as opposed
    to other asset classes such as commodities or stocks.
    After making one or two more tries, you will be
    able to find a good forex signals service. For that is the only way
    to stay on the profitable side.

  45. Lq190e1lw52

    To make payments you must: first purchase the digital money (electronic currency) and move (introduce) them into
    your purse (fill it), and only then can pay for various orders.

    Undertaking engaging; composition and lighting when obtaining photographs.
    It is possible to experience Passbook on your own by
    downloading sample passes on your i – OS6 i – Phone.

  46. Brazilian hair bundles

    There are a few things you can try to counteract the negative effects caused by the positive
    ions in the Santa Ana winds. You’ll be so busy you won’t even blink an eye when the baby has
    cute clean clothes on and you have a spot on your sweater, you’ll just be grateful you found a sweater that fit.

    This is basically done to prevent hair loss from the tuft.

  47. dịch vụ du lịch thái lan

    I don’t know if it’s just me or if everyone else encountering issues with your blog.

    It seems like some of the written text on your posts
    are running off the screen. Can somebody else please provide feedback and let me
    know if this is happening to them too? This may be a problem with my internet browser
    because I’ve had this happen previously. Cheers

  48. http://www.pokretzapreporodhrvatskogduha.hr/

    Here are some articles to read first to get a little background:.
    With the prevailing uncertain economic conditions,
    many people are seeking ways to invest in gold as security against negative inflationary activity and as a safe,
    high-value investment portfolio haven. The President of
    the Professional Numismatists Guild (PNG) Jeffrey Bernberg advises that in case you are not very acquainted with your coins, it would be best to know a good coin dealer who can assist you in making responsible buying decisions.

  49. ogrodzenie plastykowe na ogrodzenie i bramę sztachetową, balaski z PCV, Dzisiejsze ogrodzenie, płoty z plastiku przy Gdańsku i w pobliżu, ogrodzenia Winylowe na ogrodzenie i furtę ze sztachet, balaski z PCV i bramy

    If you are putting your fencee about your garden or pool, possibilities aare you will not encounter
    a conflict with home lines.

    My blog: ogrodzenie plastykowe na ogrodzenie i bramę sztachetową, balaski z PCV, Dzisiejsze ogrodzenie, płoty z plastiku przy Gdańsku i w pobliżu, ogrodzenia Winylowe na ogrodzenie i furtę ze sztachet, balaski z PCV i bramy

  50. ex gf pics porn

    If he is leading, don’t wait for him to bring up an issue, do it yourself.
    “I have never done a nude shoot before,” Culpo told Treats July 29.
    Child pornography charges were filed against both the senders and the recipients.

  51. guide achat babycook

    Le critere de la rapidite de la preparation de delicieuses recettes babycook
    equilibrees pour les petits pots de bebe avec us babycook
    donc le meilleur disparity that is represente pour vous inciter a acheter un babycook pas cher et efficace des aujourd’hui.

  52. gio nam tuoi cuoi

    of course like your website however you have to
    test the spelling on several of your posts. A number of them are rife with spelling problems and I to find it very troublesome to tell
    the reality then again I’ll certainly come back again.

  53. http://Shirtdesignwebsites.com/

    Great items from you, man. I’ve take into
    accout your stuff previous to and you’re just extremely fantastic.

    I actually like what you have received here,
    really like what you are saying and the way in which wherein you say it.
    You are making it enjoyable and you continue to care for to stay
    it smart. I can’t wait to read much more from you. That is really
    a wonderful website.

  54. {Bandar QQ

    You are so interesting! I don’t think I’ve truly read anything like that before.
    So wonderful to discover someone with unique thoughts on this topic.
    Seriously.. thank you for starting this up.
    This web site is one thing that is required on the web, someone with a bit of originality!

  55. Canvas Print Startonight

    I went for a eҳclusiᴠe gift and uncߋvегᥱԁ
    thіѕ ρогtгаy thаt ⅼіǥɦtіng іnsіɗе of tҺᥱ ⅾaгкiѕh.

    Itѕ ѕоmeκind
    օf Ԁoսɑl-ѵіеᴡ ρaіnting.
    Ι cаn ⅼоߋҝ аt іt tɦгοuɡhоսt thе աοrқіng ԁɑy, ѕtіlⅼ Ꭼνᥱn tҺоսցһ іѕ dɑгк іnsіⅾᥱ thе Һⲟսsᥱ, tһе ⲣainting
    iѕ neνегtһеⅼеѕѕ

    ӏѕ thіѕ ѕοmᥱ fⲟгm ߋf
    alіеn tесɦnoloǥу/
    ߋг іѕ ѕіmрlʏ ϳսѕt ѕοmе οne
    оf ɑ кіnd ѡɑlⅼ artѡогқ?

    Ηoᴡᥱνᥱг, i
    гᥱѕօlѵеɗ іn ɗігеctiߋn оf gеt һоlɗ
    οf іt as а ǥіft,
    уеt tо Ьuу ѕօme for mуѕᥱⅼf aѕ ѡell :).

    Ι Ƅеⅼiеѵе thаt tһɑt іnsiɗᥱ maҝе a ɗіffᥱгᥱncе оf ρгеѕеntѕ,
    tɦіѕ աоᥙlɗ Ье tһе mоѕt іmρoгtant.
    ᗪо yοuг ѕеⅼf tгսlу fᥱеⅼ tһᥱ ᥱхact?


  56. acne-affected skin

    Hello, i feel that i saw you visited my blog thus i got here to return the
    desire?.I am trying to in finding issues to enhance my site!I guess its
    adequate to make use of some of your ideas!!

  57. Sam

    always i used to read smaller articles which also clear their motive, and that is also
    happening with this paragraph which I am reading at
    this time.

  58. Halden Zimmermann

    This design is wicked! You obviously know how to keep
    a reader amused. Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!)
    Fantastic job.I really loved what you had to say, and more than that, how you presented it.
    Too cool!

  59. Van

    It’s a shame you don’t have a donate button! I’d most certainly donate to this outstanding blog!

    I guess for now i’ll settle for bookmarking and adding your
    RSS feed to my Google account. I look forward to brand new updates
    and will talk about this website with my Facebook
    group. Talk soon!

  60. buy followers

    Get instalikes– Buy Instagram Likes

    At SocialShop we believe all pieces of the Instagram
    instalikes process should work together. Once
    a profile’s Instagram followers have been increased, it is
    important to simulate proper levels of activity. We complete our
    process by increasing your Instagram profile’s photo likes.
    Instagram pages with plenty of dynamic user likes build
    credibility in a way no other service can. Building a brand is time-consuming and challenging if
    you don’t have the right tools. Business owners often give up and
    ignore their social media channels. SocialShop will build your following and then build a strategic plan with you to
    buy Instagram likes. The entire process is fluid and customized.
    We target niche-specific Instagram likes that
    fit fashion editors to sportscasters. Regardless of company size,
    SocialShop will help our valued clients grow their audiences as they buy Instagram likes and socially engage their

    Why Would I Buy Instagram Likes?

    Instalikes is created when popularity is increased through the
    actions of other users. This concept was once considered word
    of mouth when one friend of neighbor would tell another friend or neighbor
    to purchase a product or use a service. In today’s social media culture, Instagram likes are the equivalent of work of mouth.

    An Instagram profile must be active or risk being ignored completely by
    Instagram users and lose all social proof. Users judge the quality of a photo post by the
    amount of social proof attached to it, otherwise known as likes.

    If you are a business owner or entrepreneur you would no doubt
    love to build an Instagram following through photographic skill or extensive
    networking skills but the reality is that you simply
    do not have the time. SocialShop will attach immediate likes to your new or
    existing posts and the results will speak for themselves:

    Your Instagram profile’s credibility will soar
    Prospective Instagram followers will see your popularity and follow you
    Organic traffic will naturally increase across your Instagram profile
    Potential customers and followers of your brand view your Instagram profile as a
    portal into a day in your company’s life. But, gaining followers is not as
    easy as putting together a profile and snapping mobile photos.
    Yes, great content is a must, but sometimes your profile needs a little nudge.
    Through SocialShop’s proven Instagram followers + Instagram likes method, your brand will gain the most simply and cost-effective
    boost on the market today. Our delivery is fast and reliable.
    Encourage visitors to convert to customers with one of
    our hot Instagram like packages. We offer great package benefits:

    Rock-bottom pricing
    No expensive subscription fees
    Zero passwords required
    24/7 email support
    Super fast delivery
    The more people that like your photos and videos will catch
    the attention of others. While SocialShop may give your Instagram profile the push
    it needs to get started, social media interaction with your posts will organically increase.
    The overall effect will make your Instagram social proof
    skyrocket. As a business owner or entrepreneur, you cannot risk watching
    the power of Instagram from the sidelines. Let SocialShop
    get your brand the recognition it deserves.
    Discover the Fast Lane to Online Fame!

Leave a Reply

Your email address will not be published. Required fields are marked *