Quote:
Originally Posted by Phalynx
Disable Activities ("Use the activities?").
Cannot confirm that as I'm appending to the "profile_tabs" / "profile_tabs_last" hooks. Other hacks using the same mechanics have no problem running with vBExperience, like for example iTrader.
Also, I cannot test this for my own as I cannot download a free version available for vBulletin 4.
|
Phalynx,
In an effort to help my customer I downloaded vBExperience and determined the source of the issue he was experiencing. In the member profile vBulletin automatically provides a userinfo structure for the user who's member profile you are viewing. In your xperience/hooks/member_build_blocks_start.php you start the file with the following code:
PHP Code:
$userinfo_q = $vbulletin->db->query_read("SELECT * FROM
" . TABLE_PREFIX . "user
WHERE userid=".$vbulletin->GPC['userid']."
LIMIT 0,1");
if ($vbulletin->db->num_rows($userinfo_q) > 0)
{
$userinfo = $vbulletin->db->fetch_array($userinfo_q);
}
This effectively overwrites the provided vBulletin userinfo structure and removes some of the information needed for our product to determine whether or not a tab should be displayed for the user. For now I'm working around this by calling:
PHP Code:
$userinfo = fetch_userinfo($userinfo['userid']);
in our code to rebuild the userinfo structure so that it contains what we need to display.
Hopefully this will provide some insight in the event other add-ons which provide their own profile tabs have issues in conjunction with vBExperience.
Best regards,
Mark Ferguson
Drive Thru Online