my stuff is *very* sloppy right now, i'm just in the hack away and see if it works mood here goes:
<br />function checkaccess($cook, $db, $dbprefix){<br /> /* Get the visitor's GroupID */<br /> $gidf = 0;<br /> if ($cook<>"" && $usert['U_Number']>'0'){<br /> //pulled this shizzy out to use threads cookie, if U_Number is set, then they are registered ~ chillin<br /> //$cryptSessionID=md5($cook);<br /> //$queryg = "SELECT gid FROM ".$dbprefix."session WHERE session_ID='$cryptSessionID'";<br /> //$resultg = mysql_db_query($db, $queryg) or die("Did not execute query");<br /> //while ($rowg = mysql_fetch_object($resultg)){<br /> $gidf = '1';<br /> } else {<br /> $gidf = '0';<br /> }<br /> <br /> return $gidf;<br />}
as you can see, the access check would just see what group the person is in (0=unregistered 1=registered 3=special) so if the U_Number is set via authenticate() then we know they are registered so i set group id=1 else gid=0
the main other files i've modded to get things all tied in:
leftcomponent
userpage
usermenu
so now users can login via the mambo index.php or via the boards and all is normal
modules i have so far:
latest threads
a disfunctional pm inbox

photopost
events
i'm going to tweak the included weather module so folks can set their favorite location and auto change the weather to that location when they login, this is big for outdoor enthusiasts that visit my site. speaking of which, i need to get outside
i'm having some issues making this friendly for others to mod, so many of my ubb.t queries are customized for my site's table prefixes.. i'm afraid to share the mods since this is the case cuz it could really mess some folks up.
next on the docket:
adding buttons to editpost.php in threads so admin/mods can publish threads to news/events/articles