2008-01-24, 08:13 PM
No, really! When I asked that question, I do not mean just a login and checking if user is logged in. What I mean is how easy can it be to add your existing customized code to this MyBB? I have tried it with SMF and phpBB3, and I haven't had much luck because of their complicated code and different method of communicating with the database. The normal query code like below will not work with SMF or phpBB3:
Instead, you have to use something like this:
The second query is more complicated and if my existing customized code is not uniformed as SMF or phpBB3 then I keep getting error message. I am just fed up with them and can hardly find somebody who can assist me in this.
So this is why I am asking! I would greatly appreciate your being straight with your answer. Thanks!
$query ="SELECT * FROM mpoints";
$result =mysql_query($query) or die(mysql_error());
while($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
$name = $row["id"];
$id = $row["value"];
$points[$name] = $id;
}
Instead, you have to use something like this:
$sql = 'SELECT points *
FROM ' . USERS_TABLE . ' u,
mpoints p
WHERE u.u.user_id = p.uid';
$result = $db->sql_query($sql);
$rows = $db->sql_fetchrowset($result);
$db->sql_freeresult($result);
The second query is more complicated and if my existing customized code is not uniformed as SMF or phpBB3 then I keep getting error message. I am just fed up with them and can hardly find somebody who can assist me in this.
So this is why I am asking! I would greatly appreciate your being straight with your answer. Thanks!