Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Make poll preview a REAL preview Details »
Make poll preview a REAL preview
Mod Version: 1.00, by Lea Verou (Member) Lea Verou is offline
Developer Last Online: Jul 2012 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.7.2 Rating: (1 vote - 5.00 average) Installs: 11
Released: 12 Aug 2008 Last Update: 12 Aug 2008 Downloads: 29
Not Supported Template Edits Code Changes Re-usable Code Translations  

As I stated in my corresponding vB suggestion, the current poll preview feature sucks.

For those who can't wait till Jelsoft fixes this, here is a solution:

Warning: If you are allergic to file edits or to manual template changes, don't read further.

Template changes: 1
File edits: 1


In poll.php find (around lines 202-215 in an unmodified version of poll.php):

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and delete (or comment) them.

Then find (it should be right after the lines you just deleted/commented):

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and add below:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

In template newpoll find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and change it to:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Presto!
Enjoy your new REAL poll preview!

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	pollpreview.gif
Views:	625
Size:	73.3 KB
ID:	85357  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Forum Display Enhancements [AJAX] Ajax Poll Preview Alphawolf83 vBulletin 3.7 Add-ons 41 20 Mar 2010 08:39

Comments
  #2  
Old 12 Aug 2008, 07:00
db90 db90 is offline
 
Join Date: Jul 2008
Nice!
Reply With Quote
  #3  
Old 12 Aug 2008, 09:30
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Real name: Blue
doesnt look any different to me, from your screenshot
__________________

My Hacks [ click ] | Steve ~ Administrator for British Expats AustraliaBound.org/forum | Test our forum - user; don pass; pass123
Sports Tipping Mod - coming February 2010 ~ Show your Interest !
Reply With Quote
  #4  
Old 12 Aug 2008, 10:13
Spank Spank is offline
 
Join Date: Jan 2007
Real name: Mark
Same here except for maybe the little squares.
Reply With Quote
  #5  
Old 12 Aug 2008, 23:29
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Real name: Lea Verou
You are probably looking at a poll, not a poll PREVIEW.
Go to new poll, enter some options and hit "Preview poll".
Then you'll probably understand what I'm talking about.
Reply With Quote
  #6  
Old 13 Aug 2008, 00:39
Subah's Avatar
Subah Subah is offline
 
Join Date: Feb 2006
Originally Posted by Michelle View Post
You are probably looking at a poll, not a poll PREVIEW.
Go to new poll, enter some options and hit "Preview poll".
Then you'll probably understand what I'm talking about.
Please can we have screenshot of the poll preview ?
Reply With Quote
  #7  
Old 13 Aug 2008, 01:00
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Real name: Lea Verou
It is already attached as a screenshot!

What this hack does is that it makes the poll preview look like an actual poll, so that its a more realistic preview.
Reply With Quote
  #8  
Old 13 Aug 2008, 05:02
sockwater's Avatar
sockwater sockwater is offline
 
Join Date: Apr 2008
Maybe this will help...




BTW, I would consider this a bug, since there is hardcoded HTML in the PHP files.
Attached Images
File Type: png poll-preview.png (21.8 KB, 627 views)
Reply With Quote
  #9  
Old 13 Aug 2008, 05:14
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Real name: Lea Verou
Thanks sockwater, I hope your screenshot will help.

It isn't exactly a bug, its just a very bad decision from the vB devs...
Reply With Quote
  #10  
Old 13 Aug 2008, 05:36
sockwater's Avatar
sockwater sockwater is offline
 
Join Date: Apr 2008
Originally Posted by Michelle View Post
It isn't exactly a bug, its just a very bad decision from the vB devs...
I thought I read somewhere one of the developers said that any HTML that is not in templates, that is hardcoded in the php files should be reported to the bug tracker. But now I can't find it.
Reply With Quote
  #11  
Old 13 Aug 2008, 09:05
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Real name: Lea Verou
That's very nice of them

I don't think though that it's needed to duplicate it in the Bug Tracker since I opened a suggestion thread for it, do I? What's your opinion?
Reply With Quote
  #12  
Old 13 Aug 2008, 14:40
sockwater's Avatar
sockwater sockwater is offline
 
Join Date: Apr 2008
I don't know. You're probably right, since they read the suggestion threads as well.
Reply With Quote
  #13  
Old 13 Aug 2008, 14:43
Corndog235 Corndog235 is offline
 
Join Date: Dec 2007
Real name: Evan Riley
Thanks, havent ran into a problem yet
Reply With Quote
  #14  
Old 13 Aug 2008, 18:37
xorex's Avatar
xorex xorex is offline
 
Join Date: Jan 2008
Thanks !
__________________
В королевстве слепых и Урод король....
Reply With Quote
  #15  
Old 09 Nov 2009, 22:03
Taragon's Avatar
Taragon Taragon is offline
 
Join Date: Sep 2007
Real name: Cor
thanks working fine on v3.8.4
__________________
Turning Strigoi? Vampire Academy - Bta.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 16:49.

Layout Options | Width: Wide Color: