Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


<< Start < Prev 1 2 3 Next > End >>
Re:Register new user as Author
Date: 2006/03/23 04:51 By: bzn Status: User  
Karma: 2  
Senior Joomlapolitan

Posts: 68
graphgraph
i would like to differentiate between two user groups: "registered" and "author". i would like to modify the login module to point to a second comprofiler.php (comprofiler2.php). i want the comprofiler2.php to use the author registration routine ($row->gid = $acl->get_group_id('Author','ARO'); )

but now my question is: what do i need to change in the login module to let it point to the comprofiler2.php ?

i think the definition for call for the registration is:
$loginPost = sefRelToAbs("index.php?option=com_comprofiler&task=registers");

obviously the component is called, but how can i then manage to call comprofiler2.php ?

thx for your ideas!
________________________________________
I'm running Joomla v1.5.5 and CB v1.1
Click here to see the profile of this user The topic has been locked.

Re:Register new user as Author
Date: 2006/03/28 01:27 By: bzn Status: User  
Karma: 2  
Senior Joomlapolitan

Posts: 68
graphgraph
is it possible to call the CB component with a direkt link?
for example: is there another way to call the user list with another url than: /index.php?option=com_comprofiler&task=usersList&Itemid=XYZ

??
________________________________________
I'm running Joomla v1.5.5 and CB v1.1
Click here to see the profile of this user The topic has been locked.

Re:Register new user as Author
Date: 2006/03/28 04:22 By: mikko Status: User  
Karma: 107  
Platinum Joomlapolitan

Posts: 2230
graphgraph
You need to install opensef or some other url rewriting component to get custom urls.

Having two comprofilers is not supported option. If you want to register users as authors, the best way is to write a plugin. This is propably the fastest way also.

-Mikko
My FREE plugins: List Tab, Conditions, Extended Selects, ReadPDF, Consolidated Tab, Privacy Policy, CB Tab Wrapper Module, CB List Wrapper Module, Simple Sort, Filter Columns, Super Search, Advanced Search, Template Switcher. More info and downloads.

Check out a demo of super search and sortable lists.

My commercial plugins: Advanced Profile Control (1.0.6 stable released)

Click here to see the profile of this user The topic has been locked.

Re:Register new user as Author
Date: 2006/04/30 03:24 By: natsirtm Status: Visitor  
 
thanks for pointing this out.

i added some checking to help monitor new registrations. right now it just looks for 'spam' anywhere in the name, username or email fields.

Code:

  /* START OF USER REGISTRATION CHANGES Altering some new user registration defaults */ // check vs. details for suspicious registration // check 1 if (          // change the if statement to vary your check.         preg_match ("/spam/i"$_POST['email']) || preg_match ("/spam/i"$_POST['username']) || preg_match ("/spam/i"$_POST['name'])  ) {             // apply registered user group.         $row->gid $acl->get_group_id('Registered','ARO');          /* UNCOMMENT THIS BLOCK TO ADD IF/ELSE // check 1+ } ifelse (         // add if/else statements to use multiple checks.          ) {     // apply registered user group.     $row->gid = $acl->get_group_id('Registered','ARO'); } */                  } else {     // otherwise apply author user group.     $row->gid $acl->get_group_id('Author','ARO');     } /* applies user default group.   $row->gid = $acl->get_group_id('Registered','ARO'); END OF USER REGISTRATION CHANGES */

The topic has been locked.

Re:Register new user as Author
Date: 2006/05/18 21:06 By: ericfoster3 Status: User  
Karma: 122  
Senior Joomlapolitan

Posts: 84
graphgraph
petjez wrote:
Change tho following file:
/components/com_profiler/comprofiler.php

Look for the line:
$row->gid = $acl->get_group_id('Registered','ARO');

Change Registered in Author


What does this code change do exactly?
CB 3rd Party Developer: DatsoTab | KarmaTab
Joomla! 1.0.10
Community Builder 1.0
joomlaboard 1.1.2
Click here to see the profile of this user The topic has been locked.

Re:Register new user as Author
Date: 2006/09/15 01:50 By: mattpist Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 19
graphgraph
it appears that it sets the user group of new users to "author" instead of "Registered". i just tried this on my site, and it works wonderfully! i made a test user (testuser2000) and checked the group in the backend, and yep, the new user defaulted to the "author" group. i even logged in as the test user and tried to post an article, and all went well.

i really think this should be included in the docs, or posted as a "how-to" as lots of people want to be able to do this, but this thread is kinda buried in within everything else.

also, "Change Registered in Author" should be "Change Registered to Author" to avoid any confusion. also, this code is located on line 1749 if anyone is curious
Click here to see the profile of this user The topic has been locked.

<< Start < Prev 1 2 3 Next > End >>

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC2)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC3, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers at this time.

CB Login