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

Joomlapolis Forums  


Itemid in end of registration link
Date: 2007/10/05 15:18 By: growerspro Status: User  
Karma: -1  
Fresh Joomlapolitan

Posts: 1
graphgraph
Is there a way to setup Community builder
in order to have an itemid at the end of the registration

at present when someone registers successfully, the message says "you may now login"

but the Url does not have any Itemid.


thus we can not define any modules to be shown at the end of the registration. (without confirmation link)

and if for some reasons we do not want to set the cb login module published setting to "all"

that page is pretty useless since there is no Itemid thus nothing appears on that page in terms of module.

thus users have to go back to the home page to find
the cb login module

is there a solution ?

PS: the requirement is to have the cb login module ONLY on specific page , thus the answer can not be "publish to all" . I need to be able to work with an Itemid


what file would i have to modify in order to return
the link with an Itemid in it ?

seems standard joomla but apparently not for cb.


Click here to see the profile of this user The administrator has disabled public write access.

Re:Itemid in end of registration link
Date: 2007/10/06 11:27 By: beat Status: Admin  
Karma: 239  
Admin

Posts: 3804
graphgraph
CB adds the appropriate ItemId when it can do so.

For that you need to have the CB Profile menu item created (README point 8) ), and set to public (even if the menu containing it is not visible or not of public access).
Beat - Developer on Community Builder core Team
- If you like CB and this forum, you will love Nick's CB 1.1 reference manual ! : Click here to Get it now
- Would like to help us move faster ? Get it, and/or help us spend more time coding by helping others in this forum, many thanks
Click here to see the profile of this user The administrator has disabled public write access.

Re:Itemid in end of registration link
Date: 2007/11/10 17:51 By: ffaabbss Status: User  
Karma: 5  
Gold Joomlapolitan

Posts: 290
graphgraph
it is actually very easy to achieve all you want with some tricks

as CB has the "Problem" that it does not add itemids to some pages I didi it like this. I want to display different module on the same position for the different CB pages. SO you need to set each of those modules to "all" and then in your template index.php you narrow it down with javascript whether the module should display:
You can use almost all parts of the url like "task", "option", "user"... Just look at the urls CB generates and choose the value you need.
all the values after the "REQUEST" in the following code are part of CB urls.

Code:

 <?php      if ( $_REQUEST['task'] == "usersList" ) {       mosLoadModules('your module position', -1);}     else if ( $_REQUEST['task'] == "userProfile" ) {       mosLoadModules('headerCB_P', -1);}     else if ( $_REQUEST['task'] == "userDetails" ) {       mosLoadModules('headerCB_D', -1);}     else if ( $_REQUEST['task'] == "manageConnections" ) {       mosLoadModules('headerCB_C', -1);}     else if ( $_REQUEST['option'] == "com_comprofiler_invite" ) {       mosLoadModules('headerCB_I', -1);}     else {       mosLoadModules('headerCB', -1);}   php ?>



I hope that helps.
Of course u do not need the else if values. you can also just create many if statements.

for register u need
Code:

  if ( $_REQUEST['task'] == "registers"



Fabs

Post edited by: ffaabbss, at: 2007/11/10 17:53
Click here to see the profile of this user The administrator has disabled public write access.

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