Quote:
Originally Posted by Audentio
Its adding an extra </a> to each username on the forums...any idea for a fix?
|
I can confirm that the code for building the awards and attaching them to the musername leave the html structure invalid.
Here is a quick fix that I coded up that will fix the problem but it will also make the awards linked with the name for now. I chose to fix it in this method instead of just fixing the link building part of it because fixing it would leave us with a blank <a href="#"></a> tag or something similar.
Open plugin: vBExperience (username) in the fetch_musername hook
Replace its contents with
PHP Code:
//Corrected plugin to fix invalid html tag structure caused by the original plugin. (Fixed by: Ideal Web Tech)
if ($vbulletin->options['xperience_use_awards'])
{
if ($vbulletin->options['xperience_musername']==1 OR $vbulletin->options['xperience_musername']==2)
{
require_once(DIR . '/includes/functions_xperience.php');
$awards = GetAwards($user['xperience_awards']);
}
//Added a check here so we don't do any processing when their is no awards for the user.
if ($awards!='')
{
if ($vbulletin->options['xperience_musername']==1)
{
$user['musername'].= $awards;
}
if ($vbulletin->options['xperience_musername']==2)
{
$user['musername']=$awards.$user['musername'];
}
}
}