Version: 2.1, by Badshah93
Developer Last Online: Nov 2023
Category: vBulletin Forum Sideblocks -
Version: 4.x.x
Rating:
Released: 07-07-2011
Last Update: 05-24-2012
Installs: 345
Uses Plugins Auto-Templates
Translations
No support by the author.
.::Show Poll In Forum Sideblock::.
-> Special Thanks To Paul M For allowing me to use one of the code from his one of the mod.
What is it?
=====================================
This mod will show the Poll in Forum Sideblock.
Features
=====================================
1. Enable/Disable the mod from admincp.
2. Get Latest Poll From Multiple Forum. New!
3. Get Poll From Particular Thread.
4. Fully Integrated with Vbulletin Forum Sideblock Manager
1. Upload The New xml from Product manager in Admincp. (Don't Forget to click on overwrite)
2. Enable the mod and enter threadid or forumid's for fetching the poll.
3. Run clear system cache under Maintenance
New Installation Instructions
=====================================
1. In the Product Manager in AdminCP, import the product XML file.
2. Open Settings -> Show Poll In Forum Sideblock
Enable the mod and enter threadid or forumid for fetching the poll.
3. Run clear system cache under Maintenance
Uninstalling:
=====================================
1. You can disable the mod from admincp OR Uninstall the product from the Product Manager in the AdminCP.
Mod History:
v1.0 : 08 Jul 2011 : First Release.
v2.0 : 10 Jul 2011 : With More Features And Integrated with Vbulletin Forum Sideblock Manager.
v2.1 : 28 Jul 2011 : Fix Table Prefix Issue and added multiple forums feature.
-> Click On Mark As Installed If You Have Installed This Mod. -> You Can Nominate it also for Mod Of The Month.
Been using it for a while and it works for a selected forumid in my case it's id4. The reason is because it's my website I initially had polls only for my threads. However, over the last 6 months, I've noticed that other members are creating posts with legitimate polls thus I've decided to show the poll results on forumid2...unfortunately it goes blank when I show forumid2 and yes there are a lot of polls in forumid2..
strangely when I have 2,4 (ie comma) it shows a blank...like edytwinky..any issue? in the worst case scenario ill just show poll results from my threads (forumid4) but would love it to show forumid2 (ie general members)
thanks
Same problem. I see you asked this back in June 2013, and it's April 2014 now, I assume that's not getting fixed.
ok, spent few minutes on this and just noticed that the PHP code in the mod doesn't get filled up when installed to the vb board. when you go to your sideblock in the forum blocks manager, you can edit the poll block and find no PHP code; it is empty. That's why it won't work. I grabed the code from the xml file so anyone can use it. place it in the PHP code area in the sideblock for poll and save it. it works fine.
PHP Code:
global $vbulletin, $vbphrase, $db; if ($vbulletin->options['poll_on_sideblock_vb4']) {
if (!empty($vbulletin->options['poll_on_sideblock_vb4_thread'])) { $getthread = $db->query_first("SELECT threadid, pollid, forumid, open, lastpost FROM ".TABLE_PREFIX."thread where threadid = ".$vbulletin->options['poll_on_sideblock_vb4_thread']."");
$getthread = $db->query_first("SELECT forum.forumid, thread.threadid, thread.pollid, thread.forumid, thread.open, thread.lastpost FROM ".TABLE_PREFIX."forum as forum LEFT join ".TABLE_PREFIX."thread as thread ON thread.forumid = forum.forumid where forum.forumid IN (".$vbulletin->options['poll_on_sideblock_vb4_forum'].") ORDER BY thread.pollid DESC LIMIT 1");
if (!$pollinfo['active'] OR !$getthread['open'] OR ($pollinfo['dateline'] + ($pollinfo['timeout'] * 86400) < TIMENOW AND $pollinfo['timeout'] != 0) OR $nopermission) { //thread/poll is closed, ie show results no matter what $showresults = 1; } else { //get userid, check if user already voted $voted = intval(fetch_bbarray_cookie('poll_voted', $pollid)); if ($voted) { $uservoted = 1; } }