Session is useful only if it's for different forums from the same site. It will avoid double login and keep who's online synchronized.
In the example above, I remembered that I had to do those 2 changes also (version 3.60) since they appeared to be independent from class_core
Quote:
In adminfunctions.php print_delete_confirmation you also need to specify the below (insert it somewhere) or it will switch to default and you will not be able to delete any usergroups. (I don't use prefixes so I have " . ")
case 'usergroup':
$item = $vbulletin->db->query_first("
SELECT usergroupid, title
FROM " . "usergroup
WHERE usergroupid = '" . $vbulletin->db->escape_string($itemid) . "'
");
break;
also in functions.php copy function fetch_query_sql into function fetch_query_sql2 . alter that copy by replacing the 2 instances of " . TABLE_PREFIX . to reflect your master prefix.
Then in usergroup.php call that fetch_query_sql2 instead of fetch_query_sql (many instances)
|