Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Members Choice Voting Hack Details »»
Members Choice Voting Hack
Version: 1.00, by trafix trafix is offline
Developer Last Online: Jul 2008 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-25-2003 Last Update: Never Installs: 32
 
No support by the author.

I built this hack at the request of one of my members before reading many requests for it on vb.org.
I have not added an auto award sequence as I have Lesane's awars/medals/card hack. However you can use this as a stand alone addition, I have a forum called "Spotlight" where I announce a member, product and service of the month.
This hack also makes use of my Links To Us hack if you have it installed.

The member who nominates another can give reason for nominating the person.
Each nominee will see a red "You have been nominated." on their home page, they then go to the members choice area to add a nomination acceptance speech.
Avatars are also displayed for both nominee and nominator, (Defult included)

As a member is nominated he is added to the nominee list.
For each nominee, members can:
1) See who voted for each.
2) Vote for a nominee if permitted, they can also add a reason for their vote
3) Read the nomination reasons and acceptance speeches etc
4) view their forum stats, this includes: amount of new posts, amount of new threads, amount of member votes, amount of new member refferals and if you have my "Links To Us" hack it will also display the amount of people that have clicked on their website banner. These stats start from the time of nomination.

Nomination and voting rules:
1) You may not vote or nominate yourself.
2) You may not vote for the person that you nominated.
3) You may not vote more than once for the same nominee.
4) Only X nominations will be accepted. (can change from admin)
5) You may nominate more than one member. (can change to one only from admin)
6) You may vote for more than one nominee. (can change to one only from admin)
7) You may only nominate members from their posts.

DEMO: www.atmyparty.com

SCREENSHOT: Next posts

REQUIREMENTS:

6 X php file alteration
1 X database query
23 X new templates
1 X template modifications

INSTALATION TIME: aprox. 20 min

Includes a php file to do database changes.

Please click "Install" if you use it.

This update includes the following new features:
1) Leader board link from main page as requested by DPoole .
2) Limiting the viewing of "Who Voted" to selected user groups as requested by USODJA.

~ This hack is Copyright ~
Please note that I reserve the right to code and release this hack for VB3, I have not and will not grant permission for anyone else to code this hack for VB3.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #72  
Old 03-27-2003, 12:47 PM
bandersen's Avatar
bandersen bandersen is offline
 
Join Date: Feb 2002
Location: Oslo
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed - thank you!

Changed "leaber Board" spelling in the memberschoice.php...
Reply With Quote
  #73  
Old 03-27-2003, 01:00 PM
bandersen's Avatar
bandersen bandersen is offline
 
Join Date: Feb 2002
Location: Oslo
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you have more updates coming... could you include it so that a member gets an Email when nominated? Thank you!!!!
Reply With Quote
  #74  
Old 03-27-2003, 01:19 PM
trafix's Avatar
trafix trafix is offline
 
Join Date: Dec 2002
Location: Australia
Posts: 1,021
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 01:00 AM bandersen said this in Post #72
If you have more updates coming... could you include it so that a member gets an Email when nominated? Thank you!!!!

ooooops...i didnt notice the spelling....lol...i will fix zip soon, i have to do a shut down before my pc crashes

re: email.....i have thought about adding a auto PM upon nomination.

Thanks for your comments, enjoy the hack
Reply With Quote
  #75  
Old 03-27-2003, 01:53 PM
trafix's Avatar
trafix trafix is offline
 
Join Date: Dec 2002
Location: Australia
Posts: 1,021
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok spelling error fix in zip

ps if you where waiting for any bugs to be ironed out of the "Links To Us" hack before installing it....

it now also is installing without a problem
Reply With Quote
  #76  
Old 03-27-2003, 02:01 PM
NuclioN's Avatar
NuclioN NuclioN is offline
 
Join Date: Aug 2002
Posts: 955
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Working fine so far trafix But when you vote on for example yourself, the vote is not counted but when you after this 'non legitimate' vote place your vote on another member you can not vote because you have made a (false) vote.
Reply With Quote
  #77  
Old 03-27-2003, 02:11 PM
trafix's Avatar
trafix trafix is offline
 
Join Date: Dec 2002
Location: Australia
Posts: 1,021
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok...i dont know why but i will look into it
Reply With Quote
  #78  
Old 03-27-2003, 03:53 PM
LangTuDaTinh LangTuDaTinh is offline
 
Join Date: Dec 2001
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

there is one problem /w memberschoice_bit , so open it and remove this line

http://www.atmyparty.com/network


also, more suggestions

1. limit number of vote a user can have
2. number of posts require before a user can be vote or nominate a person
3. remove this "&name=$voters[nomname]" from memberschoice.php or use addslashes before do this (if usename have a ' , then the link will not work. )
4. allow guest to view but not vote (do not display the link when guest view memberchoice award.

it's just my suggestions...this is a great add-on.

thanks trafix

Langtudatinh
http://www.tvseriesfans.com/forums/memberschoice.php
Reply With Quote
  #79  
Old 03-27-2003, 06:18 PM
USODJA's Avatar
USODJA USODJA is offline
 
Join Date: Dec 2002
Location: Arnprior, Ontario, Canada
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I run this but look what pops up in the database error:
http://www.com/forums/memberschoice.php?action=leaders
____________________________________________

Database error in vBulletin 2.3.0:

Invalid SQL: SELECT * FROM memberschoice ORDER BY votes DESC LIMIT
mysql error: You have an error in your SQL syntax near '' at line 1

mysql error number: 1064

Date: Thursday 27th of March 2003 01:11:19 PM
Script: http://www.com/forums/forums/members...action=leaders
Referer:
________________________________________________

Why is it doubling forums and even when you manually type in with one forum, it still 404s

(i took site name out or people could keep creating database error)
Reply With Quote
  #80  
Old 03-28-2003, 02:09 AM
trafix's Avatar
trafix trafix is offline
 
Join Date: Dec 2002
Location: Australia
Posts: 1,021
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please check your config settings.....make sure that there IS in all fields.....the quiry that is included to add and alter the database should set a defult in all admin config fields....if nothing there

"Drop" (delete) the three members choice tables from phpmyadmin and use the memberschoicequiry.pfp included in the v2.0 zip of this hack to re-install your tables

This should fix your problem.


Quote:
Today at 06:18 AM USODJA said this in Post #78
I run this but look what pops up in the database error:
http://www.com/forums/memberschoice.php?action=leaders
____________________________________________

Database error in vBulletin 2.3.0:

Invalid SQL: SELECT * FROM memberschoice ORDER BY votes DESC LIMIT
mysql error: You have an error in your SQL syntax near '' at line 1

mysql error number: 1064

Date: Thursday 27th of March 2003 01:11:19 PM
Script: http://www.com/forums/forums/members...action=leaders
Referer:
________________________________________________

Why is it doubling forums and even when you manually type in with one forum, it still 404s

(i took site name out or people could keep creating database error)
Reply With Quote
  #81  
Old 03-28-2003, 02:32 AM
trafix's Avatar
trafix trafix is offline
 
Join Date: Dec 2002
Location: Australia
Posts: 1,021
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 03:53 AM LangTuDaTinh said this in Post #77
there is one problem /w memberschoice_bit , so open it and remove this line

http://www.atmyparty.com/network
**************this is fixed in the current zip file***********

also, more suggestions

1. limit number of vote a user can have
********next update*********

2. number of posts require before a user can be vote or nominate a person
********next update*********

3. remove this "&name=$voters[nomname]" from memberschoice.php or use addslashes before do this (if usename have a ' , then the link will not work. )
*******please tell me the line number(s) of the memberschoice.php where this occours********

it's just my suggestions...this is a great add-on.

thanks trafix

Langtudatinh
http://www.tvseriesfans.com/forums/memberschoice.php


4. allow guest to view but not vote (do not display the link when guest view memberchoice award.

find near top of memberschoice.php
PHP Code:
if ($bbuserinfo[userid]==0) {
    eval(
"standarderror(\"".gettemplate("error_nopermission_loggedout")."\");");
  } 
move it to under this
PHP Code:
// ##################### check if user exists or has been nominated ################
if ($action=="nominate") { 
This will allow guests to see the main nomination / voting screen but not be able to view "who voted" or cast a vote or nominate
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 08:19 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08503 seconds
  • Memory Usage 2,326KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete