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
  #212  
Old 02-18-2005, 03:36 PM
shadiguy1 shadiguy1 is offline
 
Join Date: Jul 2004
Location: Delco,Pa
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i keep getting this error when i try and install it right after it says it changed all my stykes and i click done i get thsi error ill post a pic
Reply With Quote
  #213  
Old 02-20-2005, 02:25 PM
shadiguy1 shadiguy1 is offline
 
Join Date: Jul 2004
Location: Delco,Pa
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bump
Reply With Quote
  #214  
Old 02-22-2005, 06:58 AM
MR-2ZZ MR-2ZZ is offline
 
Join Date: Nov 2004
Location: Belmont Shore, CA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I too get the same error
Reply With Quote
  #215  
Old 02-22-2005, 07:33 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In file install/hacks/Members Choice/2/queries.php change
PHP Code:
$query['new'][] = 'ALTER TABLE " . TABLE_PREFIX . "usergroup 
                ADD mcpollingbooth INT( 12 ) NOT NULL
)'

into (remove the closing ")"):
PHP Code:
$query['new'][] = 'ALTER TABLE " . TABLE_PREFIX . "usergroup 
                ADD mcpollingbooth INT( 12 ) NOT NULL
'

Reply With Quote
  #216  
Old 02-22-2005, 09:26 AM
MR-2ZZ MR-2ZZ is offline
 
Join Date: Nov 2004
Location: Belmont Shore, CA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great now I cant update any of my usergroups
Reply With Quote
  #217  
Old 02-22-2005, 09:29 AM
MR-2ZZ MR-2ZZ is offline
 
Join Date: Nov 2004
Location: Belmont Shore, CA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarcoH64
In file install/hacks/Members Choice/2/queries.php change
PHP Code:
$query['new'][] = 'ALTER TABLE " . TABLE_PREFIX . "usergroup 
                ADD mcpollingbooth INT( 12 ) NOT NULL
)'

into (remove the closing ")"):
PHP Code:
$query['new'][] = 'ALTER TABLE " . TABLE_PREFIX . "usergroup 
                ADD mcpollingbooth INT( 12 ) NOT NULL
'

same error occured
Reply With Quote
  #218  
Old 02-22-2005, 06:47 PM
MR-2ZZ MR-2ZZ is offline
 
Join Date: Nov 2004
Location: Belmont Shore, CA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok here is what I did, I removed from the queries the first 2 and the last query, and removed all mc_xxx from my db. Install went through, I then manually enterered this:

Code:
 ALTER TABLE `usergroup` ADD `mcpollingbooth` INT( 12 ) UNSIGNED NOT NULL ;
and now everything is back working on my site. I can give user group permissions and what not. I added a booth and it went fine, but nothing else seems to work. I am also going to have to figure out why there is no title for the drop down in the admincp.
Reply With Quote
  #219  
Old 02-22-2005, 09:27 PM
MR-2ZZ MR-2ZZ is offline
 
Join Date: Nov 2004
Location: Belmont Shore, CA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It appears that it is working as normal after I did the above.
Reply With Quote
  #220  
Old 02-23-2005, 08:10 PM
shadiguy1 shadiguy1 is offline
 
Join Date: Jul 2004
Location: Delco,Pa
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

trying everything damn thing will not install i keep getting the database error
Reply With Quote
  #221  
Old 02-23-2005, 08:47 PM
MR-2ZZ MR-2ZZ is offline
 
Join Date: Nov 2004
Location: Belmont Shore, CA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do This...

* Make necessary changes per Readme
* Go into your DB and drop all mc_ tables
* Find the /Members choice v2/upload/install/hacks/Members Choice/2/quieries.sql, and change it to the below form.

PHP Code:
<?php

$query
['new'][] = 'CREATE TABLE 'TABLE_PREFIX .'mc_nominee (
`mc_nomineeid` int(11) unsigned NOT NULL auto_increment,
`boothid` int( 11 ) NOT NULL default \'0\',
`userid` int( 11 ) NOT NULL default \'0\',
`username` varchar( 225 ) default \'0\',
`nominatorid` smallint( 5 ) default \'0\',
`nominatorname` varchar( 50 ) NOT NULL default \'\',
`votes` smallint( 6 ) default \'0\',
`nomreason` mediumtext NOT NULL ,
`acceptspeach` mediumtext NOT NULL ,
`datestamp` int( 10 ) NOT NULL default \'0\',
PRIMARY KEY ( `mc_nomineeid` ) 
) TYPE = MYISAM ;'
;

$query['new'][] = 'CREATE TABLE 'TABLE_PREFIX .'mc_pollbooth (
  `mc_pollboothid` int(11) unsigned NOT NULL auto_increment,
  `title` varchar(255) NOT NULL default \'\',
  `status` smallint(2) default \'0\',
  `statusreason` varchar(255) NOT NULL default \'\',
  `startdate` int(11) unsigned NOT NULL default \'0\',
  `enddate` int(11) unsigned NOT NULL default \'0\',
  `qty_nominees` smallint(3) default \'0\',
  `qty_votes` int(11) NOT NULL default \'0\',
  PRIMARY KEY  (`mc_pollboothid`))'
;

$query['new'][] = 'CREATE TABLE 'TABLE_PREFIX .'mc_whovoted (
  `mc_whovotedid` int(11) unsigned NOT NULL auto_increment,
  `boothid` int(11) NOT NULL default \'0\',
  `nomuserid` int(11) default \'0\',
  `nomusername` varchar(255) NOT NULL default \'\',
  `voteruserid` int(11) default \'0\',
  `votername` varchar(255) NOT NULL default \'\',
  `votereason` mediumtext NOT NULL,
  `votedate` int(10) unsigned NOT NULL default \'0\',
  PRIMARY KEY  (`mc_whovotedid`)
)'
;

?>
* Re-Run the Install script.
* Manuall enter this code into your DB

Code:
ALTER TABLE `usergroup` ADD `mcpollingbooth` INT( 12 ) UNSIGNED NOT NULL ;
* Next goto AdminCP, goto Languages and Phrases, select any phrase (edit) and save without changing anything.

* That should work now
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 03:32 PM.


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.09928 seconds
  • Memory Usage 2,324KB
  • 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_code
  • (5)bbcode_php
  • (1)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_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