Thank you for your reply nerbert, and for trying to help me
I created an plugin like you said:
PHP Code:
if ($vbulletin->options['ecpl_Online'] == 1)
{
$mylink = $vbulletin->options['ecpl_link'];
$mylinktitle = $vbulletin->options['ecpl_link_title'];
if ($vbulletin->options['ecpl_unique_number'])
{
$usernumber = ''.$post[userid].'';
}
else
{
$usernumber = '';
}
$template_hook['postbit_userinfo_right_after_posts'] .= '<vb:if condition="$thread_count > 0"><div style="clear:both;" class="left"><a target="_blank" href="'.$mylink.''.$usernumber.'">'.$mylinktitle.'</a></div></vb:if>';
}
And changed this:
PHP Code:
$template_hook['postbit_userinfo_right_after_posts'] .= '<div style="clear:both;" class="left"><a target="_blank" href="'.$mylink.''.$usernumber.'">'.$mylinktitle.'</a></div>';
to this:
PHP Code:
$template_hook['postbit_userinfo_right_after_posts'] .= '<vb:if condition="$thread_count > 0"><div style="clear:both;" class="left"><a target="_blank" href="'.$mylink.''.$usernumber.'">'.$mylinktitle.'</a></div></vb:if>';
But when I try to see a topic, I get this error:
Quote:
Fatal error: Call to a member function register() on a non-object in /home/viciados/public_html/forum/showthread.php(1053) : eval()'d code on line 14
|
What I did wrong?
--------------- Added [DATE]1313332981[/DATE] at [TIME]1313332981[/TIME] ---------------
BirdOPrey5, thank you for keep helping me
I did what you said, but didnt work... the link disappeared in all users.
What I added:
PHP Code:
if ($vbulletin->options['ecpl_Online'] == 1 AND is_member_of($post->userinfo,27,17,13,18,14))
{
$mylink = $vbulletin->options['ecpl_link'];
$mylinktitle = $vbulletin->options['ecpl_link_title'];
if ($vbulletin->options['ecpl_unique_number'])
{
$usernumber = ''.$post[userid].'';
}
else
{
$usernumber = '';
}
$template_hook['postbit_userinfo_right_after_posts'] .= '<div style="clear:both;" class="left"><a target="_blank" href="'.$mylink.''.$usernumber.'">'.$mylinktitle.'</a></div>';
}
27,17,13,18,14 are the usergroupids that I want link appear.