Quote:
Originally Posted by SkyCatcher
No problem.
In THREADBIT Template find:
Code:
<if condition="!is_member_of($vbulletin->userinfo, $postpreviewusergroups) && $vbulletin->options[ajaxpostpreview_enable] == 1 && (!(in_array($forumid, array($vbulletin->options['ajaxpostpreview_forums']))))">
<td class="alt2"><a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" onmouseover="showIbox('showthread_ajax.php?$session[sessionurl]t=$thread[threadid]',this, true);return false"><img src="$stylevar[imgdir_misc]/menu_open.gif" border="0"></td>
</if>
and REPLACE with:
Code:
<if condition="!is_member_of($vbulletin->userinfo, $postpreviewusergroups) && $vbulletin->options[ajaxpostpreview_enable] == 1 && (!(in_array($forumid, array($vbulletin->options['ajaxpostpreview_forums']))))">
<td class="alt2"><a href="#" onclick="showIbox('showthread_ajax.php?$session[sessionurl]t=$thread[threadid]',this, true);return false"><img src="$stylevar[imgdir_misc]/menu_open.gif" border="0"></a></td>
</if>
|
FYI.
SkyCatcher, you should edit the above in the post per your PM to me because the little alteration seems to have worked great. If you instead replace with:
Code:
<if condition="!is_member_of($vbulletin->userinfo, $postpreviewusergroups) && $vbulletin->options[ajaxpostpreview_enable] == 1 && (!(in_array($forumid, array($vbulletin->options['ajaxpostpreview_forums']))))">
<td class="alt2"><a href="#nbsp;" onclick="showIbox('showthread_ajax.php?$session[sessionurl]t=$thread[threadid]',this, true);return false"><img src="$stylevar[imgdir_misc]/menu_open.gif" border="0"></a></td>
</if>
It will open the preview with a mouse click on the icon rather than a mouseover and it seems to maintain it's current window position.
My last issue that I can see is secondary usergroups. I plan to use this as a feature for only staff and a vip usergroup. The vip group's users maintain registered (ID: 2) as their primary group and when they subscribe, the vip group is added as a secondary group. If I do NOT place the vip group as being excluded they still cannot view the preview since their primary group (registered: 2) is still blocking them. I am hoping there is a workaround like perhaps adding a ACP field of groups to ALLOW that will override the excluded if it is a secondary group or whatever...or something along those lines.