Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
The FireBoard forum component development is still going on. In order to get better, FireBoard will be moved from the Best of Joomla website.
During this transition period, the forum in Best of Joomla will be closed to new posts.
Welcome, Guest
Please Login or Register.    Lost Password?
FireBoard Manual Latest release discussions Download FireBoard
Function "Register" don't works correctly with CB (1 viewing) (1) Guest
TOPIC: Function "Register" don't works correctly with CB
#34762
Function "Register" don't works correctly with CB 1 Year ago  
Hello,

When, in the forum, I click on "Register" I have "you are not authorized to view this page" error

I use community builder.

you can see the problem at
bauquier.free.fr/index.php?option=com_fireboard&Itemid=29

you can enter in joomla administration to see the parameters of fireboard and CB

administrator : admin
password : admin

I don't know if the problem is in fireboard or community builder.

please could you help me ?
kenowan (User)
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#34763
Re:Function "Register" don't works correctly with CB 1 Year ago  
Hi, just taken a look. Couldn't find it myself (all the French in backend). There is somewhere a PHP syntax error in a file says it. Post this error there are a lot of script addicts overhere
Parse error: syntax error, unexpected '"' in /mnt/125/sdb/f/8/bauquier/components/com_comprofiler/plugin/user/plug_cbmenu/cb.menu.php on line 544

lots of luck, Braakkie
braakkie (User)
Junior Boarder
Posts: 26
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Bovenkarspel,  Netherlands Birthdate: 1962-09-28
Logged Logged
 
Last Edit: 2007/12/17 12:28 By braakkie.
 
Birds can fly. I am human.
 
 
#34903
Re:Function "Register" don't works correctly with CB 1 Year ago  
Hello Braakkie.

All backend (configuration of CB and configuration of fireboard) is now in english

The link bauquier.free.fr/index.php?option=com_fireboard&Itemid=29 works now.

Could you check if the parameters of the backend configuration is ok for you?

if it is the case that means the pb is in CB

Thanks a lot
kenowan (User)
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#34964
Re:Function "Register" don't works correctly with CB 1 Year ago  
I have the same problem. I looked in the code for about 5 mins and saw what I think is an error in the template file "profilebox.php". Looking at the "class.fireboard.php" file:

//Community Builder
if ($fbConfig['cb_profile'] || $fbConfig['fb_profile'] == "cb" {
$database->setQuery("SELECT id FROM #__menu WHERE link = 'index.php?option=com_comprofiler' AND published=1";
$CB_Itemid = $database->loadResult();

define("FB_CB_ITEMID", (int)$CB_Itemid);
define("FB_CB_ITEMID_SUFFIX", "&Itemid=" . FB_CB_ITEMID);
}

The FB_CB_ITEMID_SUFFIX is referenced in the template file "profilebox.php":

$registerlink = sefRelToAbs('index.php?option=com_comprofiler&task=registers'.FB_CB_ITEMID_SUFFIX);

The logic in the code seems flawed because it's assuming that every Fireboard/CommBuilder integrator should have at least one published menu item open to the public corresponding to their communitybuilder "register" page.

For most of us, I would think, this would not be true. In fact, the only menu item I have for "com_profiler" is an item for the user to edit their profile, which only a registered user can do (which makes the point of using this link as a link to sign-up fruitless and causes the bug for me).

Anyhow, to "fix" this, I took out the appending of that suffix in this line and the "forgot password" one:

$registerlink = sefRelToAbs('index.php?option=com_comprofiler&task=registers';
$lostpasslink = sefRelToAbs('index.php?option=com_comprofiler&task=lostPassword';

Things seem to work for me this way. Perhaps this is a temporary fix. I suppose since this is in a template file people can fix this themselves in their respective templates. Maybe that's why the "login" link goes to the homepage, people can set this value themselves (I just removed it).

Hope this helps.

Robert
www.thomaspittman.com
robertpb (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2007/12/19 00:27 By robertpb.
 
 
#34994
Re:Function "Register" don't works correctly with CB 1 Year ago  
Sorry I don't completely understand - what file do I need to edit, and where can I find this file? I am having the same problem.

Thanks
cgermon (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#34997
Re:Function "Register" don't works correctly with CB 1 Year ago  
Sorry to be unclear.

File:
YOURROOTcomponentscom_fireboardtemplatedefaultpluginprofileboxprofilebox.php

Change these two lines:
$registerlink = sefRelToAbs('index.php?option=com_comprofiler&task=registers'.FB_CB_ITEMID_SUFFIX);
$lostpasslink = sefRelToAbs('index.php?option=com_comprofiler&task=lostPassword'.FB_CB_ITEMID_SUFFIX);

To these
$registerlink = sefRelToAbs('index.php?option=com_comprofiler&task=registers';
$lostpasslink = sefRelToAbs('index.php?option=com_comprofiler&task=lostPassword';

use at your own risk.

Robert
robertpb (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#35006
Re:Function "Register" don't works correctly with 1 Year ago  
Just saw this thread. I found the very same issue. This has been taken care of in the latest SVN and will be part of 1.0.4.

Hang in there (not much longer...)
fxstein (Moderator)
FB Core Team
starVmax
Moderator
Posts: 1213
graphgraph
User Offline Click here to see the profile of this user
Gender: Male fxstein starVmax Location: Silicon Valley, USA
Logged Logged
 
 
 
#35007
Re:Function 1 Year ago  
robertpb wrote:
Sorry to be unclear.

File:
YOURROOTcomponentscom_fireboardtemplatedefaultpluginprofileboxprofilebox.php

Change these two lines:
$registerlink = sefRelToAbs('index.php?option=com_comprofiler&task=registers'.FB_CB_ITEMID_SUFFIX);
$lostpasslink = sefRelToAbs('index.php?option=com_comprofiler&task=lostPassword'.FB_CB_ITEMID_SUFFIX);

To these
$registerlink = sefRelToAbs('index.php?option=com_comprofiler&task=registers';
$lostpasslink = sefRelToAbs('index.php?option=com_comprofiler&task=lostPassword';

use at your own risk.

Robert


You are right on the money. That is the fix that has been made permanent.
fxstein (Moderator)
FB Core Team
starVmax
Moderator
Posts: 1213
graphgraph
User Offline Click here to see the profile of this user
Gender: Male fxstein starVmax Location: Silicon Valley, USA
Logged Logged
 
 
 
#35012
Re:Function "Register" don't works correctly with 1 Year ago  
Lifesaver - thanks so much for this!
cgermon (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#35015
Re:Function "Register" don't works correctly with CB 1 Year ago  
Hello.

Great!!!!

That works perfectly.

I transfer the solution to the forum of fireboard and to the french forum

Thanks a lot Robert
kenowan (User)
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
Go to top