For the code guys now i have a question....
In the forum i have the ability to make my users choose how they wanna choose their postbit... so far i never had any problem with this but since i installed this addon a problem appears.
If i have from the vboptions in admincp the overal postbit to shown as legacy and any of my users dont change it in their usercp then the PM's are fine with no problem, but if a user put the non legacy version then when they click to read a pm the forum doesnt show it but shows them the box box to delete the post only..
Its total strange and i dont know what to do... for now i have disabled the ability for my users to choose their postbit preference and i have all the forum to legacy.
As i understood this addon likes what exists in AdminCP as matter the legacy on or off...
And here is some info cause maybe i do something wrong and its a better way to achieve user preference in postbit....atm i use this trick that i fount in vbulletin.com forum.
I created a userfield called postbit_userchoose in there you have 2 options yes or no... with yes you get the legacy postbit view and with no you use the default of the forum which in my case is the original horizontal postbit view..
I created after a plugin with this code
Quote:
if ($vbulletin->userinfo['fieldXX'] == 'Yes')
{
$vbulletin->options['legacypostbit'] = 1;
}
else
{
$vbulletin->options['legacypostbit'] = 0;
}
|
where XX is the number that my userfield has...
The hook location of the plugin is in global_start
And thats all... with this my users choose their postbit...
Anyone now knows why Cyb's Pm enhancement brakes with this plugin? my friend Cybernetec can you emulate it? cause the enhancement is great but not all my users like the legace view... and im in a dead end here.
Thx in advance
Chris