| No account yet?   |
Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottom Post Reply Favoured: 0
TOPIC:
#32493
Re:>>>>phpBB2 to Fireboard - Yes IT 5 Months, 3 Weeks ago  
I just tested it again! IT works..LoL

Hmmz...i Have a feeling its got to be with the mods that we are running...
kangt7 (User)
Fresh Boarder
Posts: 17
graphgraph
User Offline Click here to see the profile of this user
 
Last Edit: 2007/11/28 03:08 By kangt7.
 
The administrator has disabled public write access.  
#32494
Re:>>>>phpBB2 to Fireboard - Yes IT 5 Months, 3 Weeks ago  
I haven't looked at the script yet, so I shouldn't comment about why it isn't working. The error message he quoted, however, looked like an example of a incorrectly written query. Maybe your guy just tried the same thing with two queries, one with id and one with group_id. Symbiot said that his stuff got moved over. I think he was asking about the pictures, how to move them, etc.

I should be done with a public version of my own script soon. I was following up to see about the pictures he mentioned. It might be something easy for me to add. Or maybe not.
xCav8r (User)
Junior Boarder
Posts: 26
graphgraph
User Offline Click here to see the profile of this user
Gender: Male xcav8r@hotmail.com Location: Minneapolis, Minnesota, USA
 
The administrator has disabled public write access.  
#32528
Re:>>>>phpBB2 to Fireboard - Yes IT 5 Months, 3 Weeks ago  
Ok all,

Here is the answer..

I installed FB yesterday and had the same problem as you. Then I read the code and found out why this is happening..

1st. This script will not work if you had phpbb already installed on a working joomla site if you used a phpbb_Bridge.

What happens is the phpbb dosnt share the same user id as the JOOMLA user ID.

To fix this error

*********************************************
SELECT id FROM jos_core_acl_aro_groups WHERE name='Registered' OR name='Administrator' ORDER BY name ASC

Unknown column 'id' in 'field list'
*********************************************

Go To about line 185

and find this
---------------------------------------------
// Get the group id for regular users and administrators in Mambo.
$query = "SELECT id FROM {$mosConfig_dbprefix}core_acl_aro_groups WHERE name='Registered' OR name='Administrator' ORDER BY name ASC";
$result = mysql_query($query) or die("Invalid query:$query" . mysql_error());
$admingid = mysql_result( $result, 0, 0 );
$usergid = mysql_result( $result, 1, 0 );
------------------------------------------------
And you want to do is change the line 1 in the $query

$query = "SELECT $query = "SELECT group_id FROM {$mosConfig_dbprefix}core_acl_aro_groups WHERE name='Registered' OR name='Administrator' ORDER BY name ASC";

Changing id to => group_id

--------------------------------------------------

This will populate your tables and transfer forums... HOWEVER..

As there will be more then likly errors with 2 user id's being the same "phpbb id" and "Joomla id" because this script is trying to merge two completely deffernt types of id's/

To fix this...
*****************************************************************************
//MySQL Database host - usually 'localhost'
$host='localhost';

//MySQL Database user
$user='you-database-username';

//MySQL Database password
$pass='users-password';

//MySQL Database name
$db='name-of-database';

// Mambo database prefix
$mosConfig_dbprefix = "jos_";

// phpBB2 database prefix
$phpbb_dbprefix = "phpbb_";

/* ---------------------------------------*/

ini_set("magic_quotes_gpc", "1";
set_magic_quotes_runtime ( 0 );

echo
Goodinhigh (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
 
The administrator has disabled public write access.  
#32529
Re:>>>>phpBB2 to Fireboard - Yes IT 5 Months, 3 Weeks ago  
hrm wont let me past complete code????
Goodinhigh (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
 
Last Edit: 2007/11/28 16:01 By Goodinhigh. Reason: wont show my code!
 
The administrator has disabled public write access.  
#32530
Re:>>>>phpBB2 to Fireboard - Yes IT 5 Months, 3 Weeks ago  
File Attachment:
File Name: jos_fb.rar
File Size: 1297
let me try this one last time!


This is the last time I type this out...

step one...

edit org. ver. by changing line 185 as posted above..

run the scrit. more then likly it will error out on the users as its trying to match phpbb ids to joomla ids and if you have the bridge it wont happen..

so if this happens run the .zip file above.. Fill out database info and run it..

It will populate your forum users table. Now if you follow these setps you will have all forums, post,users..

I have not yet fixed the part of the code that pulls the "Who posted the OLD post" as I must do some crazy stuff to pull ids from the joomla bridge and then push the info to the _fb_messages table.

I will work on thia part today... but the above will get you back to work...
Goodinhigh (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
 
The administrator has disabled public write access.  
#32538
Re:>>>>phpBB2 to Fireboard - Yes IT w 5 Months, 2 Weeks ago  
Hi, this is what I get

Connecting to Database... OK
Populating Categories... OK
Populating Messages Table...
Invalid query:
INSERT INTO `jos_fb_messages` (id, ip, phpbb_userid, userid, name, time, thread, subject, hits, catid, parent) VALUES ('5723', '71.134.156.203', '-1', '-1', 'it's cool', '1134163040', '949', 'buildings are fine', '1974', '3', '949'
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's cool', '1134163040', '949', 'buildings are fine', '1974', '3', '949'' at line 1


Any idea what could be going wrong? Thanks!
josgc (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
enveloop
 
The administrator has disabled public write access.  
#32548
Re:>>>>phpBB2 to Fireboard - Yes IT w 5 Months, 2 Weeks ago  
Like I tried to explain above that is trying to pull the user ids and place joomla ID into the phpbb user ID but they done match..

Follow next set and run my above zip file...

This will populate the users but that part of the fix not done yet.. I made one fix today and pull info and names but I didn't like the output..

Run zip file and it will give you your users but not the author of past post...

still trying
Goodinhigh (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
 
The administrator has disabled public write access.  
#32553
Re:>>>>phpBB2 to Fireboard - Yes IT 5 Months, 2 Weeks ago  
Hi, thanks for replying

I tried the steps you provided:

1.Changed line 185, then ran the script-->I got the same error as before.
2.Ran jos_fb-->got a message saying that it had connected to the database, nothing more.

By the way, my case is not what you described above: I imported a phpbb database into my joomla database, and then I ran phpbb2fb to convert it; I wasn´t previously using any bridge.

Thanks again!
josgc (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
enveloop
 
Last Edit: 2007/11/28 18:41 By josgc.
 
The administrator has disabled public write access.  
#32558
Re:>>>>phpBB2 to Fireboard - Yes IT 5 Months, 2 Weeks ago  
An update:

I changed the script as explained here.

Now I´m getting this error:

Connecting to Database... OK
Populating Categories... OK
Populating Messages Table... OK
Populating Messages_Text Table... OK
Populating Users Table... martinho: 64, DSmania: 65 - NEW
Invalid query:
INSERT INTO jos_core_acl_aro (id,section_value,value,order_value,name,hidden) VALUES ( 65, 'users', 65, 0, 'DSmania', 0 )
Unknown column 'id' in 'field list'


The script I´m using already has line 185 changed

Update: If I run the script multiple times it looks like I can add users, one by one. These users show up in the fireboard "users" menu, but not in the joomla users menu, or the community builder users menu...
josgc (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
enveloop
 
Last Edit: 2007/11/28 20:11 By josgc.
 
The administrator has disabled public write access.  
#32605
Re:>>>>phpBB2 to Fireboard - Yes IT w 5 Months, 2 Weeks ago  
josgc wrote:
Hi, this is what I get

Connecting to Database... OK
Populating Categories... OK
Populating Messages Table...
Invalid query:
INSERT INTO `jos_fb_messages` (id, ip, phpbb_userid, userid, name, time, thread, subject, hits, catid, parent) VALUES ('5723', '71.134.156.203', '-1', '-1', 'it's cool', '1134163040', '949', 'buildings are fine', '1974', '3', '949'
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's cool', '1134163040', '949', 'buildings are fine', '1974', '3', '949'' at line 1


Any idea what could be going wrong? Thanks!


The problem is a common mistake. It's the apostrophe used in the data being inserted. It's the same character that's used in SQL to delimit values. Anyway, just change "'it's cool'" to "'it/'s cool'" and it'll work.
xCav8r (User)
Junior Boarder
Posts: 26
graphgraph
User Offline Click here to see the profile of this user
Gender: Male xcav8r@hotmail.com Location: Minneapolis, Minnesota, USA
 
The administrator has disabled public write access.  
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop