Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] PunBB - passwords and administrator permissions
Sorry to bump this thread again. But I'm currently having this issue. I'm in the progress of migrating my punbb forum to mybb

1. I have punbb 1.2.21 with few members and few topics in 2 categories in local server.
2. installed mybb_1214
3. copy over mybb_merge_3682 convert folder to ./
4. manually copy loginconvert.php to ./inc/plugins
5. Using administrator, activated it.
6. Perform /convert
7. Everything's fine.
8. After conversion, my administrator id lost its privileges. No more access to admin cp.
9. Before that created another id called admin2 with administrator privileges, but no luck as well.

I believe I had read this thread more than 10x, but I'm still confused. I checked the my_strlen and it was correct.

Please help me if there is another way to fix this issue.

I've tried to go straight from 1.4.4 with svn converter, everything went fine till the 'thread section'. Please have a look at the screenshot.


I tried to compare the old rc3 with the svn and I wonder if this is the possible cause to the admin privilege lost, although I've no idea about the programming side.
Update: Since the little error, I managed to replace the current code in line 1219
$query = $this->old_db->simple_select("users", "id, username", "username = '".$db->escape_string($username)."'", array('limit' => 1));
$query = $this->old_db->simple_select("users", "id, username", "username = '{$username}'", array('limit' => 1));
from original code in merge_3682 line 1310
$query = $this->old_db->simple_select(PUNBB_TABLE_PREFIX."users", "id, username", "username = '{$username}'", array('limit' => 1));
notice I remove PUNBB_TABLE_PREFIX and "username = '".$db->escape_string($username)."'" which cause the error..

Everything turns out fine *so far.. my admin has the privilege to access admin CP and every topic and post turned out fine. But I just wanna be clarified before I go full conversion on my board.

Please give some enlightment?

Messages In This Thread
RE: [F] PunBB - passwords and administrator permissions - by leonuts - 2009-02-16, 03:29 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)