Welcome, Guest
Please Login or Register.    Lost Password?
Pre-RC Discussion
Go to bottomPage: 1
TOPIC: fireboard intigrationg bug?
#5962
fireboard intigrationg bug? 3 Years, 1 Month ago Karma: 0
the fireboard intergration plugin did not work for me .
the linke in group page is not exactly the forum address.
so I hack into the code of the plugin
file /com_comprofiler\plugin\user\plug_gjfireboard\fireboard.php
some code is wrong i think
sourc in line around 335
$query="INSERT INTO #__gj_jb (group_id, category_id) VALUES ('".$group['id']."', '".$lastid_sb."')";
this code can not work,
because , the group_id in not right.
according to the struct of mysql database.
the __gj_groups table , the field id is a auto_increment field ,
so $group['id'], can't work .
I change the code with this. and it worked.


$_CB_database->setQuery("SELECT id FROM #__gj_groups WHERE name='".$group['name']."'");
$groupnewid = $_CB_database->loadResult();

$query="INSERT INTO #__gj_jb (group_id, category_id) VALUES ('".$groupnewid."', '".$lastid_sb."')";
timeasia
Newbie
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: Braineater
RocketTheme Joomla Templates