Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Dec 2004
    Posts
    4

    Default Only autocreate Urchin profiles for some plan types

    I can't seem to figure this one out. I need to only have certian plan types atuomatically get urchin stats.

    If urchin is installed, then ALL plans get setup with an Urchin profile. I have a very low cost plan, and I don't want that plan to have urchin stats.

    So, does anyone know where the process of adding urchin profiles for cpanel accounts happens, so I can try to make this change?

    Thanks,

    Peter

    http://www.hostingopensource.com

  2. #2
    Member
    Join Date
    Aug 2003
    Location
    Toronto, Canada
    Posts
    107

    Default

    I would like the answer to this as well.
    I prefer to manually add Urchin if the client requests it

  3. #3
    Registered User
    Join Date
    Dec 2004
    Posts
    4

    Default I pulled this off, but it's not easy and not too pretty

    I installed the "Stats Selector" add on to cpanel, which allows you to give some of your users access to a tool that lets them select which stats programs they run.

    In it you can select which programs run by default. I set Urchin NOT to run by default.

    Here's where it gets tricky. The link to it in cpanel is wrong, as it points to cpanelpro, so if you install it in a regular cpanel setup, the link will be broken in your user's cpanels.

    Also, it's got a gray background instead of a white one, which is a little odd.

    I have made several other changes to whm and cpanel, so I have a couple cron jobs that run and update files. I now have one that fixed the link in user's cpanels, so they can access stats select at a working url.

    Step 2 is to setup which users can change their stats. To do that, I wrote another cron script that logs into whm and gives permissions to the users that are on my plans that include urchin.

    Lastly, I change the stats display page in cpanel (again, through the cron job), and change the description of Urchin to say that it's only allowed on some accounts, and if you have an account that allows it, you must activate it using stats select. (I linked "stats select" in that text to the stats select page.)

    The good thing about this is that urchin profiles are not created by default, so accounts that don't use it don't waste a profile, not to mention that I can now limit urchin to only some accounts.

    I'm waiting to see if my users are confused by all this, as it probably would be better to go ahead and change the "stats select" link to say "Activate Urchin Stats", and I could change the background color to match at that same time.

    But, for now, I've spent too much time on it already.

    Hope this helps!!

    Peter

    http://www.hostingopensource.com
    Last edited by peeeeeter; 04-02-2005 at 10:51 AM.

Similar Threads & Tags
Similar threads

  1. Cpanel no longer uatomatically added urchin profiles..
    By secwrd in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-17-2007, 10:19 AM
  2. How to delete Urchin profiles?
    By BraveX in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 03-14-2006, 11:08 PM
  3. help: cpanel automatically re-adding urchin profiles
    By Jeff-C in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 12-20-2005, 07:24 PM
  4. Deleting / Removing old Urchin Profiles
    By Patiek in forum cPanel Developers
    Replies: 6
    Last Post: 09-12-2005, 06:35 PM
  5. Urchin Profiles Being Deleted Automatically
    By Brando in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-17-2005, 01:45 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube