Back to vBulletin 3.7 Add-ons

[AJAX] Ajax Poll Preview
Mod Version: 0.5.5, by Alphawolf83

This modification is in the archives.
vB Version: 3.7.x Rating: (3 votes - 4.67 average) Installs: 87
Released: 25 Dec 2007 Last Update: 27 Dec 2007 Downloads: 752
Not Supported Uses Plugins Template Edits Additional Files Translations  

WORKS WITH 3.6.x to 3.8.x!

DESCRIPTION

We're living in a world of AJAX (at least some say so ), so why not minimize traffic by using AJAX technology? That's why I made this little hack for vbulletin (upon a request of a fellow mod on another forum).

So what this hack does is to display the poll results by hovering the thread poll icon in FORUMDISPLAY view (see screenshot), so you dont have to view the entire thread (and all its graphics and stuff) when you're just wanting to view the current poll results, and with this save forum traffic (though, granted, it's not that much). The hack uses the great http://jquery.com/ javascript library and the modification http://codylindley.com/Javascript/264/jtip-a-jquery-tool-tip by Cody Lindley, which I've modified for proper vbulletin use (especially layout issues).

It uses every forum's custom style, so it'll look like it was made for your vbulletin.

The hack has been tested on 3.7.0B3 and 3.6.8, but should work on 3.5.x aswell.

STATISTICS

File Uploads: 5
File Changes: 0
Template Changes: 1
Products to Install: 1
Time to Install: ~ 2 minutes

FEATURES
  • Configuration Options in the AdminCP
    • Enable the Inline Poll Preview Plugin? (bool)
    • Tooltip Width (int)
  • Uses AJAX technology, so no extra query on any page
  • Uses vbulletin's permission system


INSTALLATION

- Upload files from the upload folder
- Import the product via ACP > Manage Products > Import
- Do the template change (can also be found within the ZIP file!)

In threadbit template replace
PHP Code:
<if condition="$show['threadicon']"><img src="$thread[threadiconpath]alt="$thread[threadicontitle]border="0" /><else />&nbsp;</if> 
with
PHP Code:
<if condition="$show['threadicon']">
    <if 
condition="($vboptions[enable_inlinepollpreview]==TRUE) AND $thread['pollid']">
        <
a href="pollinline.php?width=$vboptions[tipwidth_inlinepollpreview]&threadid=$thread[realthreadid]&rand={$pollprevrand}class="jTip" id="pollpreview$thread[realthreadid]name="$thread[threadtitle]onclick="return false;"><img src="$thread[threadiconpath]alt="$thread[threadicontitle]border="0" /></a>
    <else />
        <
img src="$thread[threadiconpath]alt="$thread[threadicontitle]border="0" />
    </if>
<else />
    &
nbsp;
</if> 

CONFIGURATION

Note that by default (after installation) the hack in disabled! Go to the options page to enable and configure it.

The (yet) few configuration options shouldnt be hard to understand so no further info here. If someone has any questions (or suggestions), the hack is supported by myself. Just reply here.

SCREENSHOTS

1.) The options panel.
2.) Poll Preview on another forum layout.
3.) Permission message when the user doesnt have the rights to view thread's contents.
4.) Poll Preview in FORUMDISPLAY view.

VERSION HISTORY

0.5.5
- Fixed issue on vb3.7.0B3 with unregistered users using Internet Explorer
- Added some additional template caching
- Fixed issue when users were able to click the poll icon link and got a white results page

0.5.0
- Initial Release of Ajax Poll Preview

Download

This modification is archived, downloads are still allowed.

File Type: %1$s os_inlinepollpreview_0_5_0.zip (139.8 KB, 114 downloads)
File Type: %1$s os_inlinepollpreview_0_5_5.zip (146.1 KB, 658 downloads)

Screenshots

Click image for larger version
Name:	screenshot01.jpg
Views:	1445
Size:	44.2 KB
ID:	73749   Click image for larger version
Name:	screenshot02.gif
Views:	1146
Size:	29.0 KB
ID:	73750   Click image for larger version
Name:	screenshot03.gif
Views:	1863
Size:	39.7 KB
ID:	73751   Click image for larger version
Name:	screenshot04.jpg
Views:	731
Size:	36.7 KB
ID:	73752  

Similar Mods

Forum Home Enhancements AJAX - Mouseover Profile Preview vBulletin 3.6 Add-ons
New Posting Features AJAX Preview For New Thread / Reply vBulletin 3.6 Add-ons
Show Thread Enhancements Ajax Thread (1stPost) Preview 1.5 Gold vBulletin 3.6 Add-ons

vblts.ru supports vBulletin®, 2022-2024