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

Reply
 
Thread Tools
Members Choice voting hack - V2 with usergroup permissions Details »»
Members Choice voting hack - V2 with usergroup permissions
Version: 2, by trafix trafix is offline
Developer Last Online: Jul 2008 Show Printable Version Email this Page

Version: 3.0.5 Rating:
Released: 01-10-2005 Last Update: 02-13-2005 Installs: 53
DB Changes
 
No support by the author.

I have eventually got around to porting and releasing this hack on vborg for vb 3.0.5

1 file edit
3 template edit
3 new db table

This hack uses and includes a copy of the [HIS] Hack Installer System (Build 3)
released by Link14716 and can be found here --> https://vborg.vbsupport.ru/showthread.php?t=71542


This is similar to the earlier version however i have mane some changes including the ability to run more that one polling booth at a time

The member who nominates another can give reason for nominating the person.
and then the nominee can add an acceptance speech.
Avatars are also displayed for both nominee and nominator.

A Tutorial for manual install can be found here https://vborg.vbsupport.ru/showthread.php?t=76050

UPDATE V1.1

missing phrases added
changed wrong phrase call in template
fixed db quirie to add the table prefix


UPDATE V1.2

Changed phrasegroup id due to conflict with another hack

Update V2
1. Booth auto close.
2. Add option for nominate to be able to vote for the person they nominated
3. Add option to deny admin from nomination.
4. Added usergroup permissions for
-- Who can vote
-- Who can nominate
-- who can remove nominees
-- who can see votes.
5) fixed some phrases
If you are upgrading please be sure to remove the "1" folder before starting the install of v2

Show Your Support

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

Comments
  #122  
Old 01-18-2005, 04:48 AM
MikaK's Avatar
MikaK MikaK is offline
 
Join Date: Nov 2004
Location: Helsinki, Finland
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by trafix
ALL nominations must be filled before anybody can vote

trafix
Hi trafix,

What if I set the control for
Voting
Does the voting start when all nomination positions have been filled?

to option "no".

Does it only block the voting from starting at all?

Two requests:
If your answer for the above is yes, would it be difficult to hack the mod so voting can start even if not all positions are filled?

The other one would it be difficult to hack this with different set of voting rules for each booth established?

Regs,
-Mika
Reply With Quote
  #123  
Old 01-18-2005, 01:12 PM
deta deta is offline
 
Join Date: Dec 2004
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,
does the possibility exist of letting indicate on vbindex the portal in a customerbox, the Nr.1 of the Vots?

Thus the user, who has most Vots?

exsample:
Best man Member of the Month
or
Best woman Member of the Month

Thus in a box, the name with the picture appears?

cu Deta
Reply With Quote
  #124  
Old 01-18-2005, 08:59 PM
trafix's Avatar
trafix trafix is offline
 
Join Date: Dec 2002
Location: Australia
Posts: 1,021
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by deta
Hello,
does the possibility exist of letting indicate on vbindex the portal in a customerbox, the Nr.1 of the Vots?

Thus the user, who has most Vots?

exsample:
Best man Member of the Month
or
Best woman Member of the Month

Thus in a box, the name with the picture appears?

cu Deta
I would dout that there is an intergration hack that will display the voting / nominations in portals .... however i suggest that you post that request in their support thread. and im sure someone will code it for you
Reply With Quote
  #125  
Old 01-19-2005, 11:15 PM
trafix's Avatar
trafix trafix is offline
 
Join Date: Dec 2002
Location: Australia
Posts: 1,021
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK ..... i found the bug that is causing the missing phrases in the email body... I will update the zip soon.

Here is the quick fix

If an email phrase varname has more than one underscore "_" it seems to have some sort of conflict .....

open mc_moninate.php and on 296 and find

PHP Code:
eval(fetch_email_phrases('mc_nomination_email')); 
change to
PHP Code:
eval(fetch_email_phrases('mc_nominationemail')); 
save and upload mc_moninate.php

search for phrase in both email body and email subject for

mc_nomination_email change to mc_nominationemail

That should fix the problem
Reply With Quote
  #126  
Old 01-20-2005, 12:07 AM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by trafix
I would dout that there is an intergration hack that will display the voting / nominations in portals .... however i suggest that you post that request in their support thread. and im sure someone will code it for you
Ha yeah right.
Reply With Quote
  #127  
Old 01-20-2005, 01:23 AM
MorrisMcD's Avatar
MorrisMcD MorrisMcD is offline
 
Join Date: Nov 2003
Location: Cincinnati, Ohio
Posts: 415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by trafix
hmm, when you search for the 'mc_nomination_email'.' phrases there should be 2 of them, 1 in the email body phrases and 1 in the email subject phrases .... if you are missing them i think i has quoted them in one of my posts on the 1st or 2nd page of this thread.

as for the admin navbar issue ... check that the phrase is in the control panel gloabal phrasegroup and that the varname and the script is the same spelling.

ALL nominations must be filled before anybody can vote

trafix
I am missing the mc_nomination_email in email subject phrases...

You quoted the body back on page 2 or 3, but not the subject.. Could you please??? :squareeyed:

As for 'filling' nominations, I am not even sure yet how many are needed... I have some awards where only one person was nominated, and they already have some votes... I also noticed that you can vote on as many of the candidates as you like.. Is this by design? I would prefer it keeps you from voting twice, but just curious if that is how you designed it or not.

Also, above all the nominations and whatnot on the members choice page, there is a box with 'Booth List' in the top left of that box.. Nothing else in that box..
Reply With Quote
  #128  
Old 01-21-2005, 05:28 AM
trafix's Avatar
trafix trafix is offline
 
Join Date: Dec 2002
Location: Australia
Posts: 1,021
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MorrisMcD
I am missing the mc_nomination_email in email subject phrases...

You quoted the body back on page 2 or 3, but not the subject.. Could you please??? :squareeyed:

As for 'filling' nominations, I am not even sure yet how many are needed... I have some awards where only one person was nominated, and they already have some votes... I also noticed that you can vote on as many of the candidates as you like.. Is this by design? I would prefer it keeps you from voting twice, but just curious if that is how you designed it or not.

Also, above all the nominations and whatnot on the members choice page, there is a box with 'Booth List' in the top left of that box.. Nothing else in that box..
OK the phrases are
mc_nomination_email in email subject
HTML Code:
$bbuserinfo[username] has nominated you for $booth[title].
mc_nomination_email in email subject
HTML Code:
$bbuserinfo[username] has nominated you for $booth[title]. 
         
        Please take the time to add your acceptance speech $bbuserinfo. 
         
        Click Here $vboptions[bburl]/mc_pollbooth.php?$session[sessionurl]do=showbooth&boothid=$boothid
as for your other issues check your settings in the vb options - members choice
Reply With Quote
  #129  
Old 01-21-2005, 09:18 AM
Deviant++'s Avatar
Deviant++ Deviant++ is offline
 
Join Date: Sep 2004
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In acp, the box where if I press expand and it shows

-Polling Booth Manager:



The box dosn't have a title. Could you direct me to where typo could be cause I'm sure I've missed it out somewhere..



also, when a nomination is relied to.. it says this.. but still completes the process with the reply... jus that error in the redirect page.. what could it be ?
Reply With Quote
  #130  
Old 01-21-2005, 09:56 AM
trafix's Avatar
trafix trafix is offline
 
Join Date: Dec 2002
Location: Australia
Posts: 1,021
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

its more like the phrases are missing for some reason

in the frontend re-direct phrases should be

varname - mc_nominated_and_accepted
text - You have been nominated and made your acceptance speech.

in members choice phrases should be

varname - mc_members_choice
text - Members Choice
Reply With Quote
  #131  
Old 01-21-2005, 10:46 AM
Deviant++'s Avatar
Deviant++ Deviant++ is offline
 
Join Date: Sep 2004
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Done, but what any suggestions for the admin cp blank box title ?
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 01:04 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.05280 seconds
  • Memory Usage 2,326KB
  • Queries Executed 25 (?)
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_html
  • (2)bbcode_php
  • (5)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
  • (2)pagenav_pagelinkrel
  • (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_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