The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Ajax Thread (1stPost) Preview 1.5 Gold Details »» | |||||||||||||||||||||||||||
Ajax Thread (1stPost) Preview 1.5 Gold
Developer Last Online: Mar 2013
I have abandoned this modification as I find myself lacking time to do any additional modifications to get it 100% stable.
I would highly recommend that you check out this hack by magnus, as this one seems to be 100% AND looks great. I fell in love with it so I am using it myself The only thing it doesn't do is give you a preview of the attachments, so you're welcome to keep the attachments part of this hack and use it in conjunction with magnus' hack. I may just rewrite the attachments part of this hack and re-release it as a standalone. Here is the link to his modification: Collapsable First Post using AJAX (or Last Post!) https://vborg.vbsupport.ru/showthread.php?t=145187 -Sky- Supporters / CoAuthors Show Your Support
|
Comments |
#102
|
|||
|
|||
Overall the most frequent feedback I am getting is people rather click the image in the left column than have it involked with the mouseover. They are getting lots of accidental activations.
|
#103
|
||||
|
||||
Quote:
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> 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> |
#104
|
||||
|
||||
v1.32 released. Just a minor update to fix the column span issues.
Announcements will still be 1 column short and I'll come up with something soon, but since there's no hook to intercept it it may take a while. Simply follow the steps in the upgrade.txt file to upgrade. It's 1 template edit an re-installing the product with overwrite: yes to include another plugin. |
#105
|
|||
|
|||
Quote:
I am still getting the same display with soft deleted threads. Thanks for the edit to have the preview invoked with a click. The only problem with that is when I click the image it does open the preview but also moves the main page to the top. It is not real intuitive to be scrolled half way down a thread listing, click the button and have to scroll back down and find your place after closing the preview. Any way to get it to only open the preview while maintaining screen position in the main page/window with a mouse click? |
#106
|
||||
|
||||
Quote:
It's 4 am so I won't be able to take a look right now but changing the mouseover to click isn't going to have an affect on that. Usually it's when you edit something in the JS file that's not really supposed to be removed or changed in that way. PM me your JS file and I'll check it out when I wake up |
#107
|
|||
|
|||
Quote:
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> 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. |
#108
|
||||
|
||||
Quote:
i.e. Exclude: 18,19,20 User's Primary usergroupid is 2 Users Secondary usergroupid is 19 = User cannot access the preview. and vice-versa. I'll do some digging. |
#109
|
|||
|
|||
That's why it may be better and more effective to have the ACP setting be groups that CAN use the hack.
It's just that I imagine the majority of boards run their user account upgrades this way so it could be a problem for many. Quote:
|
#110
|
|||
|
|||
To solve the issue with soft deleted threads, just do the same tempalte edit that you have in threadbit in threadbit_deleted.
|
#111
|
|||
|
|||
And as a temporary fix for announcements in template threadbit_announcement
After the first <tr> I added: Code:
<!-- THREAD PREVIEW --> <if condition="!is_member_of($vbulletin->userinfo, $postpreviewusergroups) && $vbulletin->options[ajaxpostpreview_enable] == 1 && (!(in_array($forumid, array($vbulletin->options['ajaxpostpreview_forums']))))"> <td class="alt2"> </td> </if> <!-- / THREAD PREVIEW --> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|