Quote:
Originally Posted by JD210
It was just brought to my attention that when someone clicks on a username, they are getting the following error:
If they are logged in, there is no problem, they are taken right to the user profile, but if they are not logged in, then they get the above error message.
Edit: The more I think about it, the less use I can find for this modification on my board. How do I go about uninstalling it?
|
This is simple to fix I just fixed it on my site.
do the following
Find in member.php
PHP Code:
$bbteam = $DB_site->query_first("
SELECT *
FROM " . TABLE_PREFIX . "teams
WHERE teamid = $bbuserinfo[teamid]
");
Replace with
PHP Code:
$bbteam = $DB_site->query_first("
SELECT *
FROM " . TABLE_PREFIX . "teams
WHERE teamid = $userinfo[teamid]
");
Miz if you want I can release all the changes I did to my files to your for your next version so that you have a load optimized version. My sites url is
http://www.extremechatforums.com/forums/index.php I cleaned up the code on forumdisplay using left joins. I cleaned up the code for showthread (required changes to showthread and functions_showthread) I also cleaned up the not in team list which now runs at 11 (4 of which are from some stats tracking code im using on my site so its really 7 queries) queries on my site no matter how many users as displayed.