Home arrow Joomla! Resources arrow Components arrow Community Builder User Redirection
Sunday, 01 August 2010

Login Form

Search

Subscribe

Subscribe to KeithsCode.com
 

Get Stuff

CafePress Store
 
Community Builder User Redirection
CB User Redirect BoxThere are a number of reasons why you would want to redirect a user upon login. Maybe you want to have a different starting page for different classes of members, or you have just updated your terms of service and you want all the users of the site to view them on their next login, or you have a special message for all moderators that needs to be read and confirmed on their next login. That's where the Community Builder User Redirection component comes into play, a custom Joomla! component that works with a Community Builder plugin to redirect users upon logging into the site.

The redirection takes place in a two part process:

  • First you setup links through the CB User Rediret component.
  • Then, the Community Builder plugin handles the redirection on the users' next login.

The redirection links are fully customizable. For each redirection you setup, you can define:

  • Which user groups are to be redirected.
  • The priority of the redirection in relation to other setup redirection links.
  • The expiration date of the redirection (or No Expiration)
  • Whether to redirect the user only one time or every time they login.

You can quickly and easily choose to redirect the user to:

  • A Content Section
  • A Content Category
  • A Static Content Item
  • A Contact
  • A Weblink Category
  • A Menu Item
  • A Content Article

Currently, only Joomla! Version 1.0.x is supported. A 1.5 implementation will be coming later this year. 

You can download the documentation by going to: CB User Redirect Documentation

You can download the CB User Redirect package containing the Joomla! component and the Community Builder Plugin by going to: Community Builder User Redirect.

Due to significant demand, a PHP4.x compatible package is available here: Community Builder Redirect (php4)

Feedback and Donations are always appreciated!

Comments
Search
Ryan Vickerman  - Version Compatibility     |2008-07-29 17:38:34
Any word on compatibility? I've tried it in 1.5.4 and I am getting a 500 error
when trying to add links
Keith Hatfield  - re: Version Compatibility   |2008-07-29 17:50:04
Currently it only works with Joomla 1.0.x. I don't have any sites running 1.5
yet, so I have not implemented it for 1.5. I hope to do that sometime before the
end of the year.
Ryan Vickerman   |2008-07-29 17:53:35
Awesome! I am looking forward to it...I've been waiting for this kind of
plugin/component for a long time!
byte bandit  - Parse Error using joomla 1.04 & cb1.1   |2008-08-14 23:56:06
when loading component in backend/admin.. i got this..

Parse error: parse
error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or
'}' in /home/content/XXXXXXX/html/administrator/component
s/com_cbredirect/admin.cbredirect.html.php on line 28
Keith Hatfield  - RE: Parse Error     |2008-08-07 17:07:00
That error is being generated because you are running PHP 4.x. The 'public'
keyword in PHP5 is not a recognized keyword in PHP4. This component was coded to
be used under PHP5.

You are welcome to modify the code to be compatible with
PHP4, but I have no intentions of doing so.

A better, more secure option
would be to upgrade your hosting to PHP5. It appears from the URL that you
provided in your error message that you are using GoDaddy Hoting. The PHP
version can be changed by going to the Hosting Control Center, Content Section
and choosing Languages or Add On Languages.

Hope this Helps!
byte bandit   |2008-08-15 00:02:53
that's too bad to hear.. as most of the cb-joomla sites i've known are still
with php 4..

is it really that complicated to recode this in php 4.x?

this
would have been a very useful component for cb powered sites, too bad i can't
test it with my site.
Keith Hatfield  - PHP4.x Compatibility     |2008-08-18 01:03:48
FYI ...

A PHP4.x compatible version is now available ...
Graham Travers   |2008-08-17 05:28:55
I too am using php 4.4.8 and I don't think I have the option of changing
this.
The component loads successfully but when I click on it I get a blank
screen.

Is it possible to edit the code to enable the component to run on php
4x?
Keith Hatfield  - PHP4 Compatibility     |2008-08-18 00:51:35
Alright ... here it is.

I have changed the CB User Redirection to be
compatible with PHP4.x ... but I'm not completely sure it works ... I
don't have a PHP4.x server to test it all on ... It should install and
work flawlessly, but you are all going to have to help me. If you find
any problems, please let me know.

Download the PHP4.x compatible
version HERE

I can almost guarantee that if you use GoDaddy Free hosting, it will not
work.

For the Record:
PHP4.x was End-Of-Life on 12/31/2007 and the FINAL security release was released on 8/8/2008. I plan on coding for the
current technology and not EOL technologies.
Kubbah k   |2008-08-25 18:52:33
hello

during the intalation of the componetn I have this error

Fatal error: require_once() [function.require]: Failed opening required
'' (include_path='.:/usr/local/lib/php')
in /home/goe4590/domains/goerasmusgo.eu/public_html/a dministrator/com
ponents/com_cbredirect/install.cbr edirect.php on line 4[/color]

in the
component page from the menu>componetns>cbredirect
I have
a message:
[color=red]Warning: Invalid argument supplied for foreach()
in /home/goe4590/domains/goerasmusgo.eu/public_html/a dministrator/com
ponents/com_cbredirect/templates/a dmin/view.php on line 18


plugin installation is OK

ad there is no possibility to add any
list..

any help please?

J1.5, last CB
Keith Hatfield  - Joomla 1.5 Compatibility     |2008-08-25 22:14:34
As stated above, This component will not work with Joomla 1.5. J1.5 uses a
completely different architecture and I have not yet coded the component for
1.5.

As stated in the article and in above posts, I plan on coding for 1.5
sometime by the end of the year.

Thanks!
Kubbah k   |2008-08-25 22:23:02
ok, so please notify here the development status
good work
mean machine   |2008-09-29 14:43:19
Hello. Just wondering if there are any news on that 1.5 version?
hariharan kumar  - reg:redirection   |2008-11-04 00:04:48
hi,

i have downloaded this component and did as per the instructions. When I
created new links for redirection for a particular group it doesnt worked. I
need to any thing other than what you specified?? I am using Joomla 1.0 only.
Help me please
h22turbo none  - Doesnt work?     |2008-12-10 07:43:44
I installed the component and CB plugin. I click on Components - CB User
Redirect - then Click on New. I setup groups, published, expires, one time only,
and choose an item from Destination Link drop down box. When I click on Save, I
get an error saying "Please correct the following before submitting the
form:
Missing Required Field: Destination Link."

There's no place to put
in a link for destination link?!?!?

What am I doing wrong?
Agatha Ryan  - missing field   |2009-01-04 21:01:32
I have the same problem as above: no matter which link type I choose, the
destination field is not there.

I'm using the php4 version.
Keith Hatfield  - Error ...   |2009-01-08 20:59:39
As of yet, I am unable to replicate this error.

Since PHP4 is EOL, I do not
have a place to test the PHP4 version.

I plan on going through the code some
this weekend to see if I can identify the error, but my main focus will be
writing a Joomla 1.5 compatible version.

It seems it may be a Javascript error
that is causing the problems. If either of you have FireFox with the Web
Developer Toolbar or FireBug, please send me more detailed information, if it is
available.

Thanks
Agatha Ryan   |2009-01-13 03:54:24
When I select any of the link types there is a Javascript error that says
'undefined'

Firebug shows this section, where the link is supposed to be,
as grayed out:


Destination Link



The display:none part looked suspicious but
removing it (from new_link.php) didn't help.
Agatha Ryan   |2009-01-13 03:55:59
{div id="link_display" class="fieldWrapper" style="display:
none;"}
{label class="fieldLabel" for="link"}Destination
Link{/label}
{input id="link" class="inputBox required"
type="text" value="" readonly="readonly"
name="link"/}
{/div}
Jason McAuley   |2009-01-21 00:50:53
Does this still work? I installed Community Builder and then the addon. I set up
the redirect on login, and it simply does not do the redirect despite the
linking being set up correctly.


I ensured that it was for published
materials, never expired, and was not for one time only.

But no luck. I'm kind
of in a rush with this, so I hope I can get some help soon!

Thanks
robert bar   |2009-01-25 18:07:21
Tried installing first time but the button NEW did not show in the config
screen. Tried to install a 2nd time but now got this message:

Upload
showPlugins - Failed
File /Applications/MAMP/htdocs/SFFC2/media/install_497c
b63d15549/cb_redirect.php does not exist!
Jay Starkey   |2009-02-18 05:30:21
I had the same issue with:
unexpected T_STRING, expecting T_OLD_FUNCTION or
T_FUNCTION or T_VAR

So I downloaded the php4 version.

But,



in
new_link.php is not working. I say that because if you change the value of the
related pulldown (Select Link Type ) nothing happens, no other field appears so
that you can select your redirection target and the loadType function apparently
doesn't do anything.

This is why all the other folks are having problems too.
Jay Starkey  - filtered out the code...   |2009-02-18 05:31:26
select class="inputBox" name="list_type"
onChange="if(this.value!=''){clearAll();loadTy pe(this.value,'');}"
Keith Hatfield  - Thanks ...   |2009-02-20 13:06:14
Thank you for pointing this out. As I stated before, I do not have a php4 test
area.

I'll try to get the issue with loadType fixed this weekend and upload a
new package.

Keith Hatfield
Ruth Cheesley  - Redirect to previous page?   |2009-10-18 17:27:33
Hi,

Just wondering if this is able to redirect to the page which the user was
previously browsing when they had to log in?

This is a key feature which I need
to implement but can't find a way of doing it so far!

Ruth
victor valenti   |2010-06-22 10:17:46
Hie Keith is the component for
1.5. out yet?
You must be logged in to leave a comment.
No Account?
Join Now!
(It's Free.)

3.25 Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."