View Full Version : Members Choice voting hack - V2 with usergroup permissions
trafix
01-10-2005, 10:00 PM
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 (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
Johnny
01-11-2005, 11:57 AM
This is one very interesting hack. I might use this one.
NuclioN
01-11-2005, 01:12 PM
Trafix can you provide a 'non HIS' install file for this? Tnx in advance.
MikaK
01-11-2005, 02:21 PM
Interesting. Does this work for 303?
=M=
shadiguy1
01-11-2005, 03:36 PM
yah id like a non his Version as well.
rinkrat
01-11-2005, 03:41 PM
Yeah I just want to install it without this other hack. Looks like a perfect "Player of the Month" hack for my site though. Please hook us up with the proper procedures for hacking without HIS.
docvader
01-11-2005, 03:52 PM
I think we've used this HIS system a few times before however, even though I prefer text files. i'm going to try it to see what happens.
yinyang
01-11-2005, 06:41 PM
ooh. i've been waiting for something like this for an organization. 1) a non-HIS installer instructions would be awesome!! if possible. 2) is there a way in the next generation to set the member choice via usergroups?
for example, i have a directors board that nominates and votes on the best members of the month. we don't have the members vote, so if you could restrict or allow only certain usergroups, that'd be great!
trafix
01-11-2005, 08:11 PM
ooh. i've been waiting for something like this for an organization. 1) a non-HIS installer instructions would be awesome!! if possible. 2) is there a way in the next generation to set the member choice via usergroups?
for example, i have a directors board that nominates and votes on the best members of the month. we don't have the members vote, so if you could restrict or allow only certain usergroups, that'd be great!
Yep, i will look at usergroups for you
Trafix can you provide a 'non HIS' install file for this? Tnx in advance.
I can ... but to do it manually will take a lot of time as there are a lot of phrases and templates
Interesting. Does this work for 303?
Yep it should work on 3.0.3 ... i actually coded it for 3.0.0 and i didnt have to change any code for 3.0.5
non his Version
Can i ask the problem with the HIS?
The way i see it the HIS is stable and dosnt require and file or template edits, all it needs is one new db table that is added the first time that you run the script .... is it realy that big of a deal?
Trafix
alkatraz
01-11-2005, 09:05 PM
Great idea for a hack!! Sorting through nominations and votes is such a pain in the ass.
Can i ask the problem with the HIS?
Nothing wrong with it, but a lot of peeps like to do things manualy "just in case" something could affect their heavily modded board.
trafix
01-11-2005, 09:44 PM
Great idea for a hack!! Sorting through nominations and votes is such a pain in the ass.
Nothing wrong with it, but a lot of peeps like to do things manualy "just in case" something could affect their heavily modded board.
Hmm manually ..... its not my idea of fun sitting there adding heaps of templates and phrases one at a time :(
vB trader manually .... i dont think so .... over 70 templates and like over 400 new phrases ...... manual is not going to happen .. lol
In the text file you mention installing vB Jukebox... :)
paulmjno
01-11-2005, 11:07 PM
This is confusing. I have installed the hack, but have no idea how to use it. Where can I add voting booths? And why does the install text have info about vB Jukebox in it?
trafix
01-12-2005, 02:19 AM
This is confusing. I have installed the hack, but have no idea how to use it. Where can I add voting booths? And why does the install text have info about vB Jukebox in it?
ooops ... i used the jukebox readme as a template for this readme .... mentally substatute ;)
MikaK
01-12-2005, 02:20 AM
2) is there a way in the next generation to set the member choice via usergroups?
Would be very cool:up:
trafix
01-12-2005, 02:23 AM
ummm you will find the settings in the vb options .... and to set up a polling booth .... setect the polling booth manager and click on "add"
MikaK
01-12-2005, 04:15 AM
Seems like very cool! and fun:D Definately finds the small, very deep hiding politician even in me!
I think I found a small bug creating a db error when clickin at the "Leader Board" link. In mc_pollbooth.php around line 333
$topresult = $DB_site->query("
SELECT * FROM mc_nominee
WHERE boothid = $boothid
ORDER BY votes
DESC
needs a TABLE_PREFIX, like in my case: scll as the tableprefix
$topresult = $DB_site->query("
SELECT * FROM scllmc_nominee
WHERE boothid = $boothid
ORDER BY votes
DESC
Further, I think it would be nice if bbcode and smilies were present available for the speeches.
Cheers,
-Mika
trafix
01-12-2005, 04:32 AM
Seems like very cool! and fun:D Definately finds the small, very deep hiding politician even in me!
I think I found a small bug creating a db error when clickin at the "Leader Board" link. In mc_pollbooth.php around line 333
$topresult = $DB_site->query("
SELECT * FROM mc_nominee
WHERE boothid = $boothid
ORDER BY votes
DESC
needs a TABLE_PREFIX, like in my case: scll as the tableprefix
$topresult = $DB_site->query("
SELECT * FROM scllmc_nominee
WHERE boothid = $boothid
ORDER BY votes
DESC
Further, I think it would be nice if bbcode and smilies were present available for the speeches.
Cheers,
-Mika
hmmm, i will take a look .... maybe i didnt add the "table prefix" bit
MikaK
01-12-2005, 04:41 AM
hmmm, i will take a look .... maybe i didnt add the "table prefix" bitThis might be dependent on my server mail options. When nominating my test member the test member receives a notification email with the message:
Could not find phrase 'mc_nomination_email'.
Regards,
-Mika
trafix
01-12-2005, 05:02 AM
This might be dependent on my server mail options. When nominating my test member the test member receives a notification email with the message:
Could not find phrase 'mc_nomination_email'.
Regards,
-Mika
hmmm ... i will check the phrases have been added to the phrases.php .... they should have
trafix
01-12-2005, 05:10 AM
Damn ... liiks like the email body phrases didnt import properly with the his ... so i will have to edit that a.s.a.p
but for now open your phraes manager goto email body pheases and add the following 2 phrases
mc_nomination_email
$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]
AND
mc_pollbooth_closed
Congrats goes to $winner[username] for winning $pollinfo[title].
We would like to thank everyone who nominated and voted in this Members Choice Award.
To see the full results
Click HERE ($vboptions[bburl]/mc_pollbooth.php?$session[sessionurl]do=showbooth&boothid=$list[mc_pollboothid])
let me know if it works :)
paulmjno
01-12-2005, 05:31 AM
ummm you will find the settings in the vb options .... and to set up a polling booth .... setect the polling booth manager and click on "add"
There is no link to the page where you add new booths...
trafix
01-12-2005, 05:52 AM
See attached image
There is no link to the page where you add new booths...
paulmjno
01-12-2005, 06:06 AM
See attached image
It is that page I am unable to get to. There is no link to it.
MikaK
01-12-2005, 06:06 AM
See attached imageI think "paulmjno" refers to the left side navlinks. I also had that "problem" untill I noticed I didn?t run the last stage of the installer:)
-Mika
paulmjno
01-12-2005, 06:24 AM
I think "paulmjno" refers to the left side navlinks. I also had that "problem" untill I noticed I didn?t run the last stage of the installer:)
OK, I tried to re-install the hack (using override) and at the last part, I received this error:
Warning: main(../upgrade_queries.php): failed to open stream: No such file or directory in /index.php on line 49
Fatal error: main(): Failed opening required '../upgrade_queries.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/username/public_html/board/install/hacks/Members Choice/1/index.php on line 49
Edit: The problem here is that there is no upgrade_queries.php file in the distribution. Also: you might wanna know that you've shipped your WS_FTP logs with the distro.
trafix
01-12-2005, 06:55 AM
the last stage of the installing is to di the file / template edits .... these are listed in the readme file
the last stage of the installing is to di the file / template edits .... these are listed in the readme file
The AdminCP option is blank for me, I see the "Polling Booth manager" but the bit that heads that is blank.
Also, for some reason in mc_BOOTH, the wrong phrase is getting called.
Find
$vbphrase[ms_rule_1_3]
Change to
$vbphrase[mc_rule_1_3]
*edit* But that phrase isn't there either. :(
trafix
01-12-2005, 07:46 AM
The AdminCP option is blank for me, I see the "Polling Booth manager" but the bit that heads that is blank.
Also, for some reason in mc_BOOTH, the wrong phrase is getting called.
Find
$vbphrase[ms_rule_1_3]
Change to
$vbphrase[mc_rule_1_3]
*edit* But that phrase isn't there either. :(
tnx for he bug reports ... i will upload v1.1 with fixes to date ... including missing phrases
trafix
01-12-2005, 07:59 AM
mc_rule_1_3
1) You may not vote or nominate yourself.<br />2) You may not vote for the person that you nominated.<br />3) You may not vote more than once for the same nominee.<br />
trafix
01-12-2005, 08:25 AM
Is there any problems that i havnt addressed yet?
Is there any problems that i havnt addressed yet?
Line 111 of mc_vote.php:
eval(print_standard_error('mc_cant_vote_you_nimina ted'));
Nominated?
trafix
01-12-2005, 08:58 AM
sorry ... i mis understood .... i will change it in the zip but it should be ok for you to leave it spelt that way as the phrase var name was spent the same way
up to you if you want to change them both in the script and the phrase manager
sorry ... i mis understood .... i will change it in the zip but it should be ok for you to leave it spelt that way as the phrase var name was spent the same way
up to you if you want to change them both in the script and the phrase manager
The AdminCP menu item is still showing blank for me.
trafix
01-12-2005, 09:36 AM
can you get a screenie of the admin menu pls
can you get a screenie of the admin menu pls
Here you go...
MikaK
01-12-2005, 11:53 AM
Here you go...
I reinstalled the updated 1.1 and have the same problem. This time the mc_nomination_email didn?t add properly so the email topic says "Could not find phrase 'mc_nomination_email'."
Otherwise all seems smooth.
Regs,
-Mika
trafix
01-12-2005, 12:19 PM
Hmmm.....interesting, I wonder why? At this stage I suggest entering them manually, via the phrase manager in your admin area.
I will try and work out why this is happening.
hmmm ... i will check the phrases have been added to the phrases.php .... they should have
I'm getting this as a nomination email:
nih has nominated you for Member of the Month - January 2005.
Please take the time to add your acceptance speechArray.
Click Here http://forums.nzboards.com/mc_pollbooth.php?do=showbooth&boothid=1]
trafix
01-12-2005, 08:28 PM
ok i found the error in the mc_nomination_email
$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
and for the admin the phrase should be there but check control panel global and
mc_ members_ choice
Members Choice
trafix
01-12-2005, 08:33 PM
By the way Kall ... nice forums :)
trafix
01-12-2005, 08:47 PM
If you notice in the vb options you will see an option for an automation pack .... this will be apart of the next version.
this will automaticly announce new polling booths in a nominated forum and automaticly announce a winner at the end of the voting period :)
Rick Sample
01-12-2005, 09:12 PM
This looks like a pretty nice hack! Anyone actually have it running on their sites so I can check this out???
trafix
01-12-2005, 09:14 PM
Yep Kall has it installed and is currently has an open polling booth
http://forums.nzboards.com/mc_pollbooth.php
By the way Kall ... nice forums :)
Why thank you! Praise for NZ boards...and it's from an Australian of all people! ;)
But seriously, I appreciate it...I put a lot of time into them. :)
As for the phrase, there was one by the same details in Members Choice Phrases, but nada in the Control Panel Global family. Put it in there and bob's your mothers brother..all good. :D
(For anyone wondering why they cannot see the 'Nominate Now' link in my postbit, it's located in the dropdown off the member's nick...I thought it was tidier that way.)
trafix
01-12-2005, 09:32 PM
Why thank you! Praise for NZ boards...and it's from an Australian of all people! ;)
But seriously, I appreciate it...I put a lot of time into them. :)
As for the phrase, there was one by the same details in Members Choice Phrases, but nada in the Control Panel Global family. Put it in there and bob's your mothers brother..all good. :D
(For anyone wondering why they cannot see the 'Nominate Now' link in my postbit, it's located in the dropdown off the member's nick...I thought it was tidier that way.)
great stuff :) ... your members seem to be enjoying it and thats the main thing :)
docvader
01-14-2005, 06:25 AM
great stuff :) ... your members seem to be enjoying it and thats the main thing :)
Installed on heavily hacked newly upgraded 3.05 board without any problem, except, the mc_members_choice phrase didn't work for the Admin CP area (despite edit and save). Not sure why. Bypassed it by hard coding the admincp/index.php file, so it didn't matter.
All seems to work, so far. Looking forward to more stuff trafix. Keep up the good work.
rich
http://x.russbo.com/index.php
trafix
01-14-2005, 08:19 AM
Installed on heavily hacked newly upgraded 3.05 board without any problem, except, the mc_members_choice phrase didn't work for the Admin CP area (despite edit and save). Not sure why. Bypassed it by hard coding the admincp/index.php file, so it didn't matter.
All seems to work, so far. Looking forward to more stuff trafix. Keep up the good work.
rich
http://x.russbo.com/index.php
:) glad to hear it .... i will look into that phrase issue
mcyates
01-14-2005, 04:01 PM
ok i found the error in the mc_nomination_email
$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
and for the admin the phrase should be there but check control panel global and
mc_ members_ choice
Members Choice
I had this problem, they were all under geekarticles instead of GLOBAL. I'm changing them all now. 1 by 1
mcyates
01-14-2005, 04:08 PM
they are not changing from Geekarticles to GLOBAL!!! How can i change these?
rex_b
01-14-2005, 04:19 PM
Do you have to use the HIS installer for this puppy?
docvader
01-14-2005, 04:24 PM
Do you have to use the HIS installer for this puppy?
Hey Trafix, still got that problem with the phrases, for some reason. It doesn't show in the ADMIN CP, and the email doesn't show the nomination phrase (both of which have been discussed in this thread before.
Otherwise, seems to be working fine. Happy to test things for you.
rich
mcyates
01-14-2005, 04:30 PM
All these phrases are in the wrong location. They are under "geekarticles" which is another hack that i have instaled.
================================
mc_ a_ member [Edit] [Delete]
mc_ acceptance_ speech [Edit] [Delete]
mc_ add_ new_ x [Edit] [Delete]
mc_ are_ you_ sure_ want_ to_ delete_ booth_ x [Edit] [Delete]
mc_ are_ you_ sure_ you_ want_ to_ remove [Edit] [Delete]
mc_ automatic_ closing_ polls [Edit] [Delete]
mc_ booth_ list [Edit] [Delete]
mc_ booth_ name [Edit] [Delete]
mc_ closing_ date [Edit] [Delete]
mc_ edit_ x_ y_ id_ z [Edit] [Delete]
mc_ is_ booth_ open [Edit] [Delete]
mc_ leader_ board [Edit] [Delete]
mc_ manual_ closing_ polls [Edit] [Delete]
mc_ may [Edit] [Delete]
mc_ may_ not [Edit] [Delete]
mc_ members_ choice [Edit] [Delete]
mc_ members_ choice_ polling_ booth [Edit] [Delete]
mc_ must_ be_ member_ to_ nom [Edit] [Delete]
mc_ new_ award_ called [Edit] [Delete]
mc_ no_ booths_ open [Edit] [Delete]
mc_ no_ nominations [Edit] [Delete]
mc_ no_ reason_ entered [Edit] [Delete]
mc_ nom_ only_ from_ posts [Edit] [Delete]
mc_ nominate [Edit] [Delete]
mc_ nominated_ and_ accepted [Edit] [Delete]
mc_ nomination_ status [Edit] [Delete]
mc_ nominees [Edit] [Delete]
mc_ not_ nominated [Edit] [Delete]
mc_ nothing_ to_ list [Edit] [Delete]
mc_ only_ x_ noms [Edit] [Delete]
mc_ please_ select_ booth [Edit] [Delete]
mc_ polling_ booth [Edit] [Delete]
mc_ polling_ booth_ closed [Edit] [Delete]
mc_ polling_ booth_ open [Edit] [Delete]
mc_ reason_ for_ nomination [Edit] [Delete]
mc_ remove_ nomination [Edit] [Delete]
mc_ rule_ 1_ 3 [Edit] [Delete]
mc_ rules [Edit] [Delete]
mc_ see_ who_ voted [Edit] [Delete]
mc_ vote_ now [Edit] [Delete]
mc_ vote_ when_ all_ nom [Edit] [Delete]
mc_ votes [Edit] [Delete]
mc_ voting [Edit] [Delete]
mc_ voting_ foyer [Edit] [Delete]
mc_ who_ do_ you_ nominate [Edit] [Delete]
mc_ you_ are_ nominating [Edit] [Delete]
mc_ you_ are_ voting_ for [Edit] [Delete]
mc_ you_ may_ vote [Edit] [Delete]
mc_ you_ x_ nom [Edit] [Delete]
mc_ you_ x_ vote [Edit] [Delete]
mc_ your_ nominated [Edit] [Delete]
mc_ your_ not_ nominated [Edit] [Delete]
==============================
I installed first but got a database error something to do with this query:
$query['new'][] = 'INSERT INTO '.TABLE_PREFIX.'phrasetype (phrasetypeid, fieldname, title, editrows) VALUES (153, \'members_choice\', \'Members Choice\', 3)';
Saying it was a duplicate:
I then removed the query from the queries.php along with:
$query['new'][] = 'ALTER TABLE '.TABLE_PREFIX.'language ADD `phrasegroup_members_choice` MEDIUMTEXT NOT NULL';
And it said it installed fine but all the phrases are in the wrong place. Well some are working but all the ones above do not. How can i move them all at once.
Another thing, I tried to install it but i got this error:
There is no record of Members Choice being installed. It cannot be uninstalled.
Even though i installed it!!!1
Arghhhhhh!!!
mcyates
01-14-2005, 04:32 PM
Do you have to use the HIS installer for this puppy?
I think you do, i prefer the notepad way personally as you know exactly what you are doing.
docvader
01-14-2005, 05:32 PM
I think you do, i prefer the notepad way personally as you know exactly what you are doing.
I'm having trouble with people not being able to vote. Registered members do not have the option. Is there a permission that has to be turned on in the User Groups menu?
mcyates
01-14-2005, 07:08 PM
Warning: main(./uninstall_queries.php): failed to open stream: No such file or directory in /index.php on line 103
Fatal error: main(): Failed opening required './uninstall_queries.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /usr/home/yates238/public_html/install/hacks/Members Choice/1/index.php on line 103
When trying to uninstall. This is ++++ing up my forum. Its logging everyone out. I'm uninstalling it, manually as its not letting me do it normally. This should be beta with all these problems.
Warning: main(./uninstall_queries.php): failed to open stream: No such file or directory in /index.php on line 103
Fatal error: main(): Failed opening required './uninstall_queries.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /usr/home/yates238/public_html/install/hacks/Members Choice/1/index.php on line 103
When trying to uninstall. This is ++++ing up my forum. Its logging everyone out. I'm uninstalling it, manually as its not letting me do it normally. This should be beta with all these problems.
http://forums.nzboards.com/mc_pollbooth.php
No problems whatsoever here.
How is the installation of this hack causing people to be logged out of your forums? The only php files that are altered is admincp/index.php ... do you have other hacks installed that may be conflicting? Like the loginlog hack?
trafix
01-14-2005, 09:13 PM
hmmm .... i warned vb org staff in a pvt forum that this this could happn but i was ignored :( ... i will now say it in a public thread...
what has happened here i predicted would happen a while ago ..... these two hacks are using the same phraseid numbers ..... bad news ..... as for a fix its not going to be that easy :( i will have to work on that
mcyates
01-14-2005, 09:27 PM
http://forums.nzboards.com/mc_pollbooth.php
No problems whatsoever here.
How is the installation of this hack causing people to be logged out of your forums? The only php files that are altered is admincp/index.php ... do you have other hacks installed that may be conflicting? Like the loginlog hack?
Its all ok now. I've removed this hack and the geekarticles.
trafix
01-14-2005, 09:39 PM
hmmm ok here is the fix ..... in the hack/members choice/1/ folder open quiries.php and change the phraseid number to something else say 887 in the first quirie
then open phrases.php and change all the phrases with phraseid 153 to 887 as well .... then you will be able to successufully install both hacks
trafix
Marco van Herwaarden
01-14-2005, 10:23 PM
Hmm with the number of hacks around nowadays, this with the phraseid's just must give problems. Only quick solution i see for this is when all people who want to release a hack here, first in 1 thread "registrate" the id's they are gonna use.
trafix
01-14-2005, 10:32 PM
comment here would be good please https://vborg.vbsupport.ru/showthread.php?t=74373
trafix
01-15-2005, 12:42 AM
I have decided to change the phrasegroup id for this hack ..... i have to go to work now so i cant do it until i get home ....
trafix
01-15-2005, 06:53 AM
Ok I have changed the phrase id that the members choice hack uses so there should not be any further conflict with the geekarticles hack ......
For existing users in the next update i will provide you with a small script that you well need to run before you do your update .... this will change the phrasidno to the new one .... however if you want to install the geekarticles hack in the mean time please let me know and i will do the script for you :)
trafix
trafix
01-15-2005, 08:24 AM
Its all ok now. I've removed this hack and the geekarticles.
got any update mcyates? .... did you manage to sort out the mess?
My appologies for your situation .... however it was bound to happen sooner or later when coders pluck numbers out of the sky for phraseid no's .
mcyates
01-15-2005, 10:17 AM
alright, erm well i unistalled this hack manually and i've removed the geekarticles manually. I will try to install it again later today. I'll let you know how i get on.
Thanks
Mellow
01-15-2005, 11:52 AM
Hey Trafix, still got that problem with the phrases, for some reason. It doesn't show in the ADMIN CP, and the email doesn't show the nomination phrase (both of which have been discussed in this thread before.
Otherwise, seems to be working fine. Happy to test things for you.
rich
I'm getting the same problem, I did edit/save a phrase as sometimes that clears up phrases not showing up... but, not in this case.
I love this mod by the way.
trafix
01-15-2005, 02:51 PM
hmm, i think i know where your comming from .... go to the phrase manager and select global control panel ... find one of the phrases for the members choice and select edit .... your dont need to edit any details but just click on save ... then check the admin for the other phrases, there could be some issue where the phrases arnt seen by the site and just by editing a phrase forces the vb software to re do them all
just a thought
mcyates
01-15-2005, 03:33 PM
when installing it comes up with this error:
Warning: main(../upgrade_queries.php): failed to open stream: No such file or directory in /index.php on line 49
Fatal error: main(): Failed opening required '../upgrade_queries.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /usr/home/yates238/public_html/install/hacks/Members Choice/1/index.php on line 49
Marco van Herwaarden
01-15-2005, 03:46 PM
@mcyates
This means it has already been installed before.
rex_b
01-15-2005, 03:48 PM
This phrase is not included:
control panel global
varname:
mc_members_choice
name:
members choice
rex_b
01-15-2005, 04:03 PM
Email error: Keep getting this: Could not find phrase 'mc_nomination_email'. and I checked it's there and I edited and saved but it still won't work/
rex_b
01-15-2005, 04:04 PM
And is there a way to make it a PM vs an email?
mcyates
01-15-2005, 06:26 PM
its all fixed now. EVERYTHING is working, thanks, this is a greate hack once the problems ahve been overcome.
Fantastic
trafix
01-15-2005, 06:29 PM
its all fixed now. EVERYTHING is working, thanks, this is a greate hack once the problems ahve been overcome.
Fantastic
Great to here .... im hoping that vb.org put a system together that will make sure that this sort of thing dosnt happen again :)
trafix
01-15-2005, 06:30 PM
Email error: Keep getting this: Could not find phrase 'mc_nomination_email'. and I checked it's there and I edited and saved but it still won't work/
is it in the right phrase group?
rex_b
01-15-2005, 07:06 PM
is it in the right phrase group?
Its in the Email Body Text phrases
rex_b
01-15-2005, 07:09 PM
Ok it needs to be in the Email Subject Text part. Must be something wrong with the install.
trafix
01-15-2005, 07:10 PM
Its in the Email Body Text phrases
there should be one in the email body and another with the same varname in the email subject .... do you get both of them when you search the phrases?
docvader
01-15-2005, 07:11 PM
Still got the missing email phrase, the missing ADMIN CP phrase, and, well, LOL, one other problem:
http://x.russbo.com/vb/mc_pollbooth.php?do=showbooth&boothid=1&styleid=18
My members love this, but, none of us can figure out where to vote... Hysterical.
trafix
01-15-2005, 07:16 PM
it will show up beside the "[See Who Voted]" when all the nominations have been filled ;)
afterall you dont wanna let the first nominee get a head start lol
rex_b
01-15-2005, 07:29 PM
Is there a way to show a default avatar if the user doesn't have one to show in that box?
trafix
01-15-2005, 07:32 PM
hmmm, interesting thought ...
is there a defult avatar hack?
rex_b
01-15-2005, 07:34 PM
hmmm, interesting thought ...
is there a defult avatar hack?
No but I have edited my post bit for the avatar look like this, notice the <else/> and everything after:
<if condition="$show['avatar']"><td rowspan="5" align="center" valign="middle"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td><else />
<td rowspan="5" align="center" valign="middle"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="images/professional/misc/noavatar.gif" alt="This is $post[username]'s avatar" border="0" /></td></if>
mcyates
01-15-2005, 07:36 PM
Rule Number 2 makes no sense:
2) You may not vote for the person that you nominated.
Basically this defeats the object of nominating that person. You are nominating the person so you can vote for them, aren't you?
trafix
01-15-2005, 07:38 PM
Rule Number 2 makes no sense:
2) You may not vote for the person that you nominated.
Basically this defeats the object of nominating that person. You are nominating the person so you can vote for them, aren't you?
it says that you can not vote for the person that you nominated
i think you can change that in the vb options
mcyates
01-15-2005, 07:43 PM
Yeah but just say vbulletin.org had this and i nominated you, "trafix" for the award, i would have nominated you simply because i want to vote for you. There isn't an option but i think there should be one!! Excellent hack though
trafix
01-15-2005, 07:44 PM
Yeah but just say vbulletin.org had this and i nominated you, "trafix" for the award, i would have nominated you simply because i want to vote for you. There isn't an option but i think there should be one!! Excellent hack though
ill look into it for you
mcyates
01-15-2005, 07:49 PM
thanks. Yeah i bough vB trader from you ages ago, i don't use it now though. you've come out with some very good hacks.
trafix
01-15-2005, 07:53 PM
thanks. Yeah i bough vB trader from you ages ago, i don't use it now though. you've come out with some very good hacks.
yes ... thanks ... i am putting a dev team to complete the trader :) let me know if you want to assist bug finding! and of course you are welcome to the completed version :)
rex_b
01-15-2005, 07:55 PM
Any idea on the default avatar, or something to stick in there if they don't have one?
mcyates
01-15-2005, 07:57 PM
thank you very much
trafix
01-15-2005, 08:02 PM
open mc_polling booth
find
$avatar1 = fetch_avatar_url($nomineeinfo['userid']);
if ($avatar1 == "")
{
$leftavatar ="";
}
else
{
$leftavatar ="<img src=\"$avatar1\" border=\"0\" style=\"float: left; margin-right: 5px;\" />";
}
$avatar2 = fetch_avatar_url($nomineeinfo['nominatorid']);
if ($avatar2 == "")
{
$rightavatar ="";
}
else
{
$rightavatar = "<img src=\"$avatar2\" border=\"0\" style=\"float: left; margin-right: 5px;\" />";
}
change
$leftavatar ="";
and
$rightavatar ="";
to
$xxxxxavatar ="path to defult avatar";
I THINK that should work :)
rex_b
01-15-2005, 08:07 PM
Nope no worky :(
trafix
01-15-2005, 08:11 PM
hmmm, should have .... did you use the img tag
$xxxxxavatar ="<img src=\"path to avatar\" border=\"0\" style=\"float: left; margin-right: 5px;\" />";
i should have put that in the lase post ....
rex_b
01-15-2005, 08:25 PM
hmmm, should have .... did you use the img tag
$xxxxxavatar ="<img src=\"path to avatar\" border=\"0\" style=\"float: left; margin-right: 5px;\" />";
i should have put that in the lase post ....
Am I doing something wrong. I get error when I do this:
$xxxxxavatar ="<img src=\"images/professional/misc/noavatar.gif" border=\"0\" style=\"float: left; margin-right: 5px;\" />";
trafix
01-15-2005, 08:32 PM
i put the "images/professional/misc/noavatar.gif" after your url (the one in your profile)
and there was no inage there
trafix
01-15-2005, 08:34 PM
i put the "images/professional/misc/noavatar.gif" after your url (the one in your profile)
and there was no inage there
also you need to change the xxxx in the string to "left" "right" in each case
rex_b
01-15-2005, 08:34 PM
OK i got it to work with no errors but it still doesn't show up.
rex_b
01-15-2005, 08:36 PM
also you need to change the xxxx in the string to "left" "right" in each case
Ahh success! Always something simple.. hehe
Marco van Herwaarden
01-15-2005, 08:38 PM
Rule Number 2 makes no sense:
2) You may not vote for the person that you nominated.
Basically this defeats the object of nominating that person. You are nominating the person so you can vote for them, aren't you?
I agree, it should be the other way round. If you nominate a person, that would also be an implicit vote on that same person. You can't vote on anybody else anymore, since you already automatic voted.
Just my view on this.
trafix
01-15-2005, 08:44 PM
hmmm i thought i added that option in the vb options ..... but i cant see it .... lol
rex_b
01-16-2005, 08:47 PM
Here is how I put it in my post bit :)
trafix
01-16-2005, 11:18 PM
Nice :)
Paul M
01-16-2005, 11:32 PM
What exactly does this hack do ?
trafix
01-16-2005, 11:41 PM
Members Choice voting hack .... you can set up polling booths for any reason you want eg member of the month.....
your forum members nominate ppl they think deserves to win the award ....
once all the nomination positions have been filled then the voting starts ....
all forum members can vote on the niminees and of course the person with the highest votes win :)
yinyang
01-17-2005, 12:20 AM
trafix - i know you've got a lot on your plate. any idea when you'd get to usergroups for this and the vbjukebox?
trafix
01-17-2005, 12:32 AM
i am working on the next juke update now .... as it is getting very popular ;)
MorrisMcD
01-17-2005, 03:28 AM
I dont know what I could have done wrong...
But in my admincp, I only see a section for the Member Choice and when I expand the menu, I have a blank field that I can click on and actually get to set up member choices.. But all the text is missing it seems.. Much like what the members see
http://forums.cincybengals.com/mc_pollbooth.php?
MorrisMcD
01-17-2005, 03:31 AM
To clarify...
When I 'add'
I get the first field.. Unknown what it is for because there is no text next to it to say...
A yes or no toggle.. again, unknown what for.. No txt next to it
The third line DOES say end date.. So that one is there and gives me drop downs for a date...
Any ideas?
MorrisMcD
01-17-2005, 03:36 AM
Also, I guess I should mention that after the install, I cannot view the Members Choice Installation Edits
trafix
01-17-2005, 04:57 AM
ok ... the edits are in the readme file
as for the phrases ... there seems to be a small bug in the his ... go to the phrase manager look for one of the custon phrases and select edit, then save without changing anything ..... all the phrases should work .... Enjoy!
MorrisMcD
01-17-2005, 12:52 PM
ok ... the edits are in the readme file
as for the phrases ... there seems to be a small bug in the his ... go to the phrase manager look for one of the custon phrases and select edit, then save without changing anything ..... all the phrases should work .... Enjoy!
Cool
I got all the edits in the txt.. Just making sure I wasnt missing out on any (if yer checking my site, I temp took out the navbar edit until this is working)
I edited a phrase and saved it.. Seemed to fix a lot.. http://forums.cincybengals.com/mc_pollbooth.php?
It definately is a step in the right direction...
BUT now when I nominate someone, it says this...
Could not find phrase 'mc_polling_booth_closed'.
I checked for that phrase and it does exist... Any ideas?
Thanks for your reply BTW
trafix
01-17-2005, 01:01 PM
hmmm, so you tryed to nominate on a closed poling booth .... i will test tomorrow in my site ... its 2 am here and bed time ;)
MorrisMcD
01-17-2005, 01:08 PM
hmmm, so you tryed to nominate on a closed poling booth .... i will test tomorrow in my site ... its 2 am here and bed time ;)
Ahh.. I didnt realize it was closed.. Sure, you should add something to come back and tell the user its closed rather than not finding a phrase...
BUT...
I tried it again on an open poll and it worked fine... THANKS!!!
FYI.. In admincp, I can now see 'Polling Booth Manager' when I expand the group it is in, but the group still is blank as KALL had back on page 3 of this thread...
Thanks for your help.. I should be good to at least readd it to the navbar and let users use it...
(If I wanted it to be above 'Who's online' where would I edit it in the navbar template?) <---This should be easy, I know, but I want to make sure I know.. I am a novice at all this...
Thanks again for your help.. Now go get some sleep!!! :)
*EDIT* - If you want members choice to be above who's online, just changing the instructions to add above it rather than below it works fine (in regards to the template mod of navbar.. I know most of you see this as obvious, but for novices like me, it may come in handy as whos online is VERY frequently used by everyone and having it at the bottom should probably remain so, since users are used to it
Hello,
on which homepage is chops installed,
in order to look at it times Live one?
cu Deta
yoyoyoyo
01-17-2005, 03:44 PM
FYI.. In admincp, I can now see 'Polling Booth Manager' when I expand the group it is in, but the group still is blank as KALL had back on page 3 of this thread...
same here. I searched for and saved every phrase I could think of related to the polling booth and members choice, too, and nothing helped. Everything else works fine- just a blank category in the control panel:
http://img144.exs.cx/img144/9636/missing9aw.jpg
MorrisMcD
01-17-2005, 05:21 PM
Someone nominated me for an award, and everything worked, but the email I received had this as the subject...
'Could not find phrase 'mc_nomination_email'.'
Also.. How many nominees do you need before the vote begins??
trafix
01-17-2005, 09:21 PM
Someone nominated me for an award, and everything worked, but the email I received had this as the subject...
'Could not find phrase 'mc_nomination_email'.'
Also.. How many nominees do you need before the vote begins??
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
newtsys
01-18-2005, 04:30 AM
excellent hack! will come in handy for member of the month votes/nominations:)
MikaK
01-18-2005, 04:48 AM
ALL nominations must be filled before anybody can vote
trafixHi 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
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
trafix
01-18-2005, 08:59 PM
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 ;)
trafix
01-19-2005, 11:15 PM
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
eval(fetch_email_phrases('mc_nomination_email'));
change to
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
T3MEDIA
01-20-2005, 12:07 AM
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.
MorrisMcD
01-20-2005, 01:23 AM
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.. :confused:
trafix
01-21-2005, 05:28 AM
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.. :confused:
OK the phrases are
mc_nomination_email in email subject
$bbuserinfo[username] has nominated you for $booth[title].
mc_nomination_email in email subject
$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
Deviant++
01-21-2005, 09:18 AM
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 ?
trafix
01-21-2005, 09:56 AM
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
Deviant++
01-21-2005, 10:46 AM
Done, :D but what any suggestions for the admin cp blank box title ?
MikaK
01-21-2005, 11:02 AM
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
Any solution for this?
=M=
trafix
01-21-2005, 03:51 PM
Done, :D but what any suggestions for the admin cp blank box title ?
the second phrase should have fixed that .... hmmm ... a screenie of your admincp please?
trafix
01-21-2005, 04:00 PM
Any solution for this?
=M=
if you set "Does the voting start when all nomination positions have been filled?" to option "no"...... the voting can start straight away without all the nominations being filled.
yes it would it be difficult to hack this with different set of voting rules for each booth established but i could look at that for the next release
Deviant++
01-21-2005, 04:03 PM
it's just the same, a blank box which I click and the menu drops down n shows pollboth options... the 2nd phrase is already there..
trafix
01-21-2005, 04:32 PM
check the spelling of the varname in the phrase manager and the code that you put in for the admin navigation
docvader
01-21-2005, 11:49 PM
I don't know if anyone played with this, after upgrading to 3.06, but it's not a happy puppy. I've upgraded, and lost this hack. Can't uninstall it (get "foreach" errors), can't reinstall templates, and don't have the templates anymore. Phrases are still there.
Will try reinstalling templates manually to see if this comes back.
Don't you just love upgrading these boards...
trafix
01-22-2005, 12:02 AM
hmm, i wonder y thats happened :(
you can take the templates out of the install files :) .. template.php
docvader
01-22-2005, 12:03 AM
OK, I think it all works again. I had to reinstall all the templates manually, after upgrading to 3.06. I'm not doing this upgrade stuff again for a while, LOL.
Trafix, for some reason, your templates get over ridden. And your installer will not function properly after the upgrade. The phrases are all there, and were not changed. The templates were wiped out. It's easy to fix, you just have to go into the installer files, open the template.php, and start copying and pasting.
trafix
01-22-2005, 12:40 AM
ok thanks .... i will investigate :)
trafix
01-24-2005, 10:35 PM
Anybody else having problems?
MorrisMcD
01-24-2005, 11:09 PM
Anybody else having problems?
Actually.. Yea.. Today I noticed I couldnt vote for someone because it said I nominated them.. Unfortunately, I didnt nominate them.. No members have complained about this yet, but it happened to me...
Very odd.. Wouldnt know where to begin investigating
trafix
01-25-2005, 04:32 AM
Actually.. Yea.. Today I noticed I couldnt vote for someone because it said I nominated them.. Unfortunately, I didnt nominate them.. No members have complained about this yet, but it happened to me...
Very odd.. Wouldnt know where to begin investigatingummmm, very strange indeed i havnt had any repots of that either from the clients site where i deved it and they have been using the hack for about 12 months now ...
yep thats right its been around for ages and i havnt released it till a couple of weeks ago ... lol
Ill look into it
MorrisMcD
01-25-2005, 09:00 AM
ummmm, very strange indeed i havnt had any repots of that either from the clients site where i deved it and they have been using the hack for about 12 months now ...
yep thats right its been around for ages and i havnt released it till a couple of weeks ago ... lol
Ill look into it
The 'see who's voted ' link on each poll just showed up for some booths now, but it wasnt before. Some are now missing the 'vote for' link, and some have the 'vote for' link and the 'see whos voted' link.
I may delete all the polls and readd them, and it may be fixed.. I am not sure..
very odd problems
Strangest part is these things started changing just recently without me changing anything. And the poll close date is the end of Feb
trafix
01-25-2005, 09:05 AM
these links are dependant on the settings in the vb options .... eg if the options are set for no voting until all nominations are filled ... then the vote link will not be there until all the nominations are filled ... and likewise they will disapear when the polling booth closes
Vizionz
01-28-2005, 02:44 AM
this looks like a very cool hack but unfortunely i cant even get to the second step
templates.php (Save This File)
<?php
// Templates
Warning: Invalid argument supplied for foreach() in /his_files/hack_creator_b2.php on line 160
?>
phrases.php (Save This File)
<?php
// Phrases
Warning: Invalid argument supplied for foreach() in /his_files/hack_creator_b2.php on line 202
?>
Warning: halt(./includes/functions_log_error.php) [function.halt]: failed to create stream: No such file or directory in /includes/db_mysql.php on line 389
Warning: halt() [function.halt]: Failed opening './includes/functions_log_error.php' for inclusion (include_path='') in /includes/db_mysql.php on line 389
Morgalis
01-28-2005, 04:19 AM
this looks like a very cool hack but unfortunely i cant even get to the second step
How to fix the Admincp Link
in index.php edit
construct_nav_group("$vbphrase[mc_members_choice]", '<hr />');
change to
construct_nav_group("Member's Choice", '<hr />');
There seems to be a few phrase issues?
trafix
01-28-2005, 10:33 AM
i have passed these issues onto the coder if the HIS, you can post your concerns there
yoyoyoyo
01-28-2005, 12:23 PM
It would be nice to have either an "opt-out" option in the UCP, or settings in the ACP to make certain usergroups ineligible from being nominated. As soon as I put it up I was nominated (as admin) and nobody else wanted to do any other nominations :)
trafix
01-30-2005, 03:18 AM
It would be nice to have either an "opt-out" option in the UCP, or settings in the ACP to make certain usergroups ineligible from being nominated. As soon as I put it up I was nominated (as admin) and nobody else wanted to do any other nominations :)
ok ... i will look at this idea :)
Vizionz
02-01-2005, 01:50 AM
give me a link to that hack i cant find it cause i cant install anything that uses that system i get errors with this mod the shoutbox and something else i forget what it was though
trafix
02-01-2005, 02:42 AM
link to what hack??
there is a link to the HIS in the first post.
Lizard King
02-01-2005, 04:11 PM
I have a question. My first booth ended yesterday but two members have the same vote numbers. What will happen ?
docvader
02-01-2005, 04:35 PM
My leader board doesn't work. Get a "javascript showwin mcpollbooth.php" comment in the browser window this happened after I upgraded to 3.06. Also, the polls don't close automatically after their close date.
Otherwise, I see templates, and it seems to function. The admincp/index.php file edit is correct. Not sure what to do here trafix. Any ideas?
You can play with it here: http://x.russbo.com/vb/mc_pollbooth.php?do=showbooth&boothid=1
Thanks. Hope all is well down there. Heading to your neck of the woods soon.
docvader
02-01-2005, 04:46 PM
I can't uninstall it (to reinstall it), as I get this error when attempting an uninstall:
Warning: main(./uninstall_queries.php): failed to open stream: No such file or directory in /index.php on line 103
And when I do an "override" install, I get this error after the style edits:
Warning: main(../upgrade_queries.php): failed to open stream: No such file or directory in /index.php on line 49
Help.
MauriceReed
02-01-2005, 05:42 PM
downloaded, installed, and apart from a few glitches, works a treat.
some of the phrases addressed earlier in the thread were missing after using the installer, but apart from that...its excellent!!
quality hack m8...really is.
Vizionz
02-01-2005, 06:06 PM
this looks like a very cool hack but unfortunely i cant even get to the second step
you responded saying something about the (His) hack
trafix
02-01-2005, 06:59 PM
I have a question. My first booth ended yesterday but two members have the same vote numbers. What will happen ?
you could have a vote off :) ... re open the booth and delete the other nominees ... you will also have to set in the vb options to change the nominees to 2 :)
trafix
02-01-2005, 07:01 PM
My leader board doesn't work. Get a "javascript showwin mcpollbooth.php" comment in the browser window this happened after I upgraded to 3.06. Also, the polls don't close automatically after their close date.
Otherwise, I see templates, and it seems to function. The admincp/index.php file edit is correct. Not sure what to do here trafix. Any ideas?
You can play with it here: http://x.russbo.com/vb/mc_pollbooth.php?do=showbooth&boothid=1
Thanks. Hope all is well down there. Heading to your neck of the woods soon.
hmmm ..... is anybody elses boothes not closing automaticly ... maybe i have missed something
yoyoyoyo
02-01-2005, 07:07 PM
hmmm ..... is anybody elses boothes not closing automaticly ... maybe i have missed somethingMy votes didn't close automatically either.
trafix
02-01-2005, 07:40 PM
ok .... i originally had this hack in 2 parts ..... i will have a look at what i have missed i think there is a cron script that i forgot to include in the zip
docvader
02-01-2005, 09:14 PM
trafix, what about those errors when I try to install. Should I not worry about them? And where do I look to see why the leaderboard is not coming up?
Let me know if you want me to test anything on my board, I have a few days before I leave for Asia.
Lizard King
02-01-2005, 09:46 PM
you could have a vote off :) ... re open the booth and delete the other nominees ... you will also have to set in the vb options to change the nominees to 2 :)
Which part of settings can I change the nominee numbers ???
I was wondering about that also...
MikaK
02-02-2005, 06:29 AM
ok .... i originally had this hack in 2 parts ..... i will have a look at what i have missed i think there is a cron script that i forgot to include in the zip
I seem to have the same problem of booths not closing automatically. One question: If set up like the voting only starts when all candidates have been placed, can reduce the amount of candidates included during the nomination period to get thew voting going if all too many slots for nominees are open?
trafix
02-02-2005, 06:47 AM
trafix, what about those errors when I try to install. Should I not worry about them? And where do I look to see why the leaderboard is not coming up?
Let me know if you want me to test anything on my board, I have a few days before I leave for Asia.
i will look into it for you ... if the hack works i wouldnt be too worried too much ...
yinyang
02-02-2005, 08:14 PM
i have the weirdest thing with HIS. it's happened everytime i've tried loading something with HIS, but this time, i can't get around it.
when i go to xxx/install/hack_install.php? and it asks for the login information. i login and it routes me back to the login screen. it's endless. i tried overwriting your HIS install files directly with Links, but that didn't work.
any ideas?
Lizard King
02-03-2005, 01:53 AM
So what can we do in order to close the booth ?
rex_b
02-06-2005, 01:21 PM
2 problems
1. Booth does not auto close
2. I tried to vote for a member for member of the month and was told I could not vote for someone I nominatted but I nominated that member last month not this month.
trafix
02-06-2005, 09:39 PM
ok, tnx for the report ... noted to fix :)
yinyang
02-07-2005, 02:03 AM
i have the weirdest thing with HIS. it's happened everytime i've tried loading something with HIS, but this time, i can't get around it.
when i go to xxx/install/hack_install.php? and it asks for the login information. i login and it routes me back to the login screen. it's endless. i tried overwriting your HIS install files directly with Links, but that didn't work.
any ideas?
anyone, any ideas?
Marco van Herwaarden
02-07-2005, 04:30 AM
My best guess would be a cookie problem, try clearing them.
trafix
02-08-2005, 02:59 AM
any other bugs here ..... i can start working on the next version
MustangLisa
02-08-2005, 04:14 PM
Nice, thanks!!
trafix
02-08-2005, 09:30 PM
Glad you like it, MustangLisa
Ok in about 5 hours i will start v2 :) ... so i know what im doing, lets recap
1. Non HIS installation
2. Booth does not auto close
3. I tried to vote for a member for member of the month and was told I could not vote for someone I nominatted but I nominated that member last month not this month.
4. check leaderbaord
5. add option for nominate to be able to vote for the person they nominated
anything else ???
rex_b
02-09-2005, 03:23 AM
Sounds like some good fixes to me :)
trafix
02-09-2005, 08:37 AM
ok better late than never .... is anybody else having issues with the leader board here ... please provide a link to your members choice
trafix
02-09-2005, 12:14 PM
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
trafix
02-09-2005, 09:15 PM
A Tutorial for manual install can be found here https://vborg.vbsupport.ru/showthread.php?t=76050
*sniffs*
Why is there an includes/init.php file in the upload? :(
trafix
02-09-2005, 09:42 PM
Thanks for the heads up ..... fixed
Thanks for the heads up ..... fixed
In vBulletin Options - Typos:
Can admin be nomonated?
Admin Olny.
When installing: parse error in templates.php
9) $vbphrase[view] <a href="javascript:showwin('mc_pollbooth.php?$session[sessionurl]do=leaders&boothid=$boothid', 'width=250,height=450')">$vbphrase[mc_leader_board]</a><br />
Should be:9) $vbphrase[view] <a href="javascript:showwin(\'mc_pollbooth.php?$session[sessionurl]do=leaders&boothid=$boothid\', \'width=250,height=450\')">$vbphrase[mc_leader_board]</a><br />
trafix
02-09-2005, 10:01 PM
In vBulletin Options - Typos:
Can admin be nomonated?
Admin Olny.
When installing: parse error in templates.php
9) $vbphrase[view] <a href="javascript:showwin('mc_pollbooth.php?$session[sessionurl]do=leaders&boothid=$boothid', 'width=250,height=450')">$vbphrase[mc_leader_board]</a><br />
Should be:9) $vbphrase[view] <a href="javascript:showwin(\'mc_pollbooth.php?$session[sessionurl]do=leaders&boothid=$boothid\', \'width=250,height=450\')">$vbphrase[mc_leader_board]</a><br />
hmmm, interesting .. these files where generated by the HIS ... lol
could you attach a copy of the edited template.php please, and i will replace in the zip
tnx
hmmm, interesting .. these files where generated by the HIS ... lol
could you attach a copy of the edited template.php please, and i will replace in the zip
tnx
Done.
trafix
02-09-2005, 10:58 PM
thanks :)
trafix
02-10-2005, 10:20 AM
Anyone having problems with the upgrade?
rex_b
02-10-2005, 09:12 PM
So to upgrade I just need to reinstall this whole puppy from the zip?
trafix
02-10-2005, 11:31 PM
1) upload the contence from the zip
2)delete the folder "1" in hack/members choice/
3) run the installer :)
rex_b
02-10-2005, 11:57 PM
1) upload the contence from the zip
2)delete the folder "1" in hack/members choice/
3) run the installer :)
I don't see the "1" just a "2"
:)
rex_b
02-11-2005, 12:01 AM
Oh you mean on the server.. silly me.
rex_b
02-11-2005, 12:05 AM
Ok wait. YOu want me to change out my admincp/usergroup.php for the one in the hack?
trafix
02-11-2005, 12:17 AM
yep, follow the instructions in the readme :) if you have not already done it
rex_b
02-11-2005, 12:23 AM
Sorry if I'm a little questionable. But wouldn't changing out the usergroup.php alter any other hacks I may have installed?
trafix
02-11-2005, 12:31 AM
oh .... did i leave a copy of that in the zip file ..... damn .... no just edit your file as per the readme ... sorry
lange
02-12-2005, 04:59 PM
¸Thanks. I"ll try it.
Deviant++
02-14-2005, 03:22 PM
I wish someone would install this for me cause I'm soo lazy
Admincp usergroup in the install !?
Can't overwrite my existing .. too many other hacks installed !
trafix
02-14-2005, 07:21 PM
Admincp usergroup in the install !?
Can't overwrite my existing .. too many other hacks installed !
yep, there are usergroup permissions to set for the hack :)
Deviant++ dont be so lazy .... just click install :)
yep, there are usergroup permissions to set for the hack :)
Deviant++ dont be so lazy .... just click install :)
I understand there are usergroup permissions to set, but if I overwrite the usergroup.php from the hack, all my existing usergroup hacks are lost.
Can you list the ammendments to be made to the usergroup.php to install the hack !?
trafix
02-14-2005, 08:36 PM
NO sorry just edit your file as per the readme instructions ...
i forgot to delete that file from the zip .. i will do it now
Whoops .. now what !?
Warning: halt(./includes/functions_log_error.php): failed to open stream: No such file or directory in /usr/home/thetechg/public_html/retreat/includes/db_mysql.php on line 405
Also now getting error message when I try and update any usergroup :
Database error in vBulletin 3.0.6:
Invalid SQL: UPDATE usergroup SET
### UPDATE QUERY GENERATED BY fetch_query_sql() ###
title = 'Super Moderators',
description = '',
usertitle = 'Super Moderator',
opentag = '<span style=\"color: gold;font-weight: bold;\">',
closetag = '</span>',
passwordexpires = '0',
passwordhistory = '0',
arcademinposts = '0',
arcademintime = '0',
attachlimit = '0',
avatarmaxwidth = '80',
avatarmaxheight = '80',
avatarmaxsize = '20000',
profilepicmaxwidth = '100',
profilepicmaxheight = '100',
profilepicmaxsize = '65535',
pmquota = '50',
pmsendmax = '0',
uttstore_discount = '0',
forumpermissions = '2490367',
pmpermissions = '0',
calendarpermissions = '31',
wolpermissions = '15',
adminpermissions = '1',
genericpermissions = '3104111',
genericoptions = '31',
journalpermissions = '2047',
shoutboxpermissions = '43',
vbugpermissions = '6',
mcpollingbooth = '0',
gallerypermissions = '6511731',
linkspermissions = '73663',
arcadepermissions = '31',
articlepermissions = '4093',
petzpermissions = '1',
downloadpermissions = '1'
WHERE usergroupid=5
mysql error: Unknown column 'mcpollingbooth' in 'field list'
mysql error number: 1054
trafix
02-14-2005, 10:09 PM
interesting ... it looks like the script hasnt added the field to teh usergroup table for some reason
ALTER TABLE `usergroup` ADD `mcpollingbooth` INT( 12 ) UNSIGNED NOT NULL ;
Thanks .. that solved the usergroup permissions update problem.
admincp shows "Members Choice" but no drop down options to edit !?
trafix
02-14-2005, 10:24 PM
Yep its all in the readme file, there is 1 option to add to the quick drop down list and a couple to the postbit templates
I think you misunderstand .. admincp shows "Members Choice", but nothing else and the usergroups now show 4 additional yes / no options with no explanation of what they are or what the yes / no options provide.
trafix
02-14-2005, 11:14 PM
ahh, ok find a phrase in the admincp phrasegroup ... search for "mc_" and select edit .... then save it without changing any of the data
That did the trick .. thanks for your help trafix.
Clicked install and all is now working well.
trafix
02-15-2005, 12:10 AM
Wootness .... ENJOY!
When someone clicks to vote for a nominee,box opens asking for 'Reason'.
Header of box shows "You are voting for" .. should the name of the nominee be shown alongside this header message ?
trafix
02-15-2005, 09:59 PM
yeah it should .... ill look at it
Vizionz
02-16-2005, 04:12 PM
i can never get this thing to work i get errors bigtime. when it gets to the stles. then if i skip that part and try to install the file edits errors maybe because i am using 3.06 but this system should of been made manually instead of with that hack installer or wrote your own because it aint bug free in anyway.
Database error in vBulletin 3.0.6:
Invalid SQL: ALTER TABLE " . TABLE_PREFIX . "usergroup
ADD mcpollingbooth INT( 12 ) NOT NULL
)
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '" . TABLE_PREFIX . "usergroup
ADD mcpollingbooth INT( 12 )
Warning: halt(): Unable to access ./includes/functions_log_error.php in includes/db_mysql.php on line 389
Warning: halt(./includes/functions_log_error.php): failed to open stream: No such file or directory in includes/db_mysql.php on line 389
Warning: halt(): Failed opening './includes/functions_log_error.php' for inclusion (include_path='.:/usr/lib/php/:/usr/share/pear/') in includes/db_mysql.php on line 389
shadiguy1
02-18-2005, 03:36 PM
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
shadiguy1
02-20-2005, 02:25 PM
Bump
MR-2ZZ
02-22-2005, 06:58 AM
I too get the same error
Marco van Herwaarden
02-22-2005, 07:33 AM
In file install/hacks/Members Choice/2/queries.php change
$query['new'][] = 'ALTER TABLE " . TABLE_PREFIX . "usergroup
ADD mcpollingbooth INT( 12 ) NOT NULL
)';
into (remove the closing ")"):$query['new'][] = 'ALTER TABLE " . TABLE_PREFIX . "usergroup
ADD mcpollingbooth INT( 12 ) NOT NULL
';
MR-2ZZ
02-22-2005, 09:26 AM
Great now I cant update any of my usergroups :(
MR-2ZZ
02-22-2005, 09:29 AM
In file install/hacks/Members Choice/2/queries.php change
$query['new'][] = 'ALTER TABLE " . TABLE_PREFIX . "usergroup
ADD mcpollingbooth INT( 12 ) NOT NULL
)';
into (remove the closing ")"):$query['new'][] = 'ALTER TABLE " . TABLE_PREFIX . "usergroup
ADD mcpollingbooth INT( 12 ) NOT NULL
';
same error occured
MR-2ZZ
02-22-2005, 06:47 PM
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:
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.
MR-2ZZ
02-22-2005, 09:27 PM
It appears that it is working as normal after I did the above.
shadiguy1
02-23-2005, 08:10 PM
trying everything damn thing will not install i keep getting the database error
MR-2ZZ
02-23-2005, 08:47 PM
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
$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
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
MR-2ZZ
02-23-2005, 08:48 PM
BTW: I am using 3.0.6 patched to 3.0.7
shadiguy1
02-23-2005, 11:26 PM
im runnin 3.0.3 patched to 3.0.7 hit me on aim shadiguy1 maybe we can work somethig out if you can get it working for me.
MR-2ZZ
02-24-2005, 03:18 AM
Okie I walked shadiguy1 through the same process I followed and it worked!
shadiguy1
02-24-2005, 04:00 AM
working greta now thanks.
MR-2ZZ
02-24-2005, 04:27 AM
No Problemo :)
shadiguy1
02-24-2005, 11:08 AM
change file Edit to This to fix problem with Button being blank for members choice in Admins Cp . Change file edit in adminCP/index.php to The Following
if (can_administer('canadminstyles'))
{
$printhr = true;
construct_nav_option($vbphrase['mc_polling_booth_manager'], 'vb_memberschoice_admin.php', '<br />');
construct_nav_group("Members Choice", '<hr />');
EDDIE!
02-26-2005, 08:12 PM
I've installed this hack already and it's working nice, but I'd like to make it possible to nominate Administrators. How is this possible?
SiFor
02-27-2005, 07:14 AM
I just upgraded to vb3.0.7 and now all my polls dont show. The data is still there in the adminCP but not in the polling station. How can I fix this?
i got an error @ install thos message
Updating style information for each style
Standard-Style ... (Templates) (Stylevariablen) (CSS) (Replacement Variables) (Einstellungen) Erledigt.
images ... (Templates) (Stylevariablen) (CSS) (Replacement Variables) (Einstellungen) Erledigt.
radio (expanded)-neu ... (Templates) (Stylevariablen) (CSS) (Replacement Variables) (Einstellungen) Erledigt.
images_red-neu ... (Templates) (Stylevariablen) (CSS) (Replacement Variables) (Einstellungen) Erledigt.
radio_dream (expanded)-neu ... (Templates) (Stylevariablen) (CSS) (Replacement Variables) (Einstellungen) Erledigt.
Blue-Life ... (Templates) (Stylevariablen) (CSS) (Replacement Variables) (Einstellungen) Erledigt.
radio (expanded) ... (Templates) (Stylevariablen) (CSS) (Replacement Variables) (Einstellungen) Erledigt.
radio_dream (expanded) ... (Templates) (Stylevariablen) (CSS) (Replacement Variables) (Einstellungen) Erledigt.
images_red ... (Templates) (Stylevariablen) (CSS) (Replacement Variables) (Einstellungen) Erledigt. then next page this :disappointed:
!--
Datenbankfehler in vBulletin 3.0.6:
Ungueltige SQL-Abfrage: ALTER TABLE vb3_language ADD `phrasegroup_members_choice` MEDIUMTEXT NOT NULL
mysql error: Duplicate column name 'phrasegroup_members_choice'
mysql error number: 1060
Datum: 27.02.2005 21:42:22
Skript: /install/hack_install.php?do=install&step=dodatabasequeries &hacks=Members%20Choice
Referer:
Benutzername: H75
IP-Adresse:
-->
Draddog
03-02-2005, 04:25 AM
I installed the latest version, but have a couple of questions.
How do I prevent admins from being nominated?
Also, have you given any thought for a custom module for vbAdvanced index page so that the results show up on the front page?
Lizard King
03-04-2005, 01:34 AM
Cron job is now working for me. I get the following error :
Warning: main(./includes/cron/mc_cron_autoendpollphp): failed to open stream: No such file or directory in /admincp/cronadmin.php on line 56
Fatal error: main(): Failed opening required './includes/cron/mc_cron_autoendpollphp' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/serenity/public_html/forum/admincp/cronadmin.php on line 56
Lionel
03-04-2005, 10:28 AM
hi, the hack is working fine, but for the acceptance email, i get
subject:Could not find phrase 'mc_nomination_email'. (it's in there in custom phrase
has nominated you for Best Poster ever.
Please take the time to add your acceptance speech Array.
Click Here
Lionel
03-04-2005, 10:50 AM
in template mc_vote_reason, why would $nominfo[username] return blank?
Protoman
03-04-2005, 02:01 PM
got it manually installed after the installer failed..
now I try to nominate a member and it takes me to the login screen.. saying no permission.. any ideas?
MR-2ZZ
03-04-2005, 10:08 PM
got it manually installed after the installer failed..
now I try to nominate a member and it takes me to the login screen.. saying no permission.. any ideas?
Follow the install guide I posted a page or two back, and it will solve everything.
Protoman
03-05-2005, 01:38 AM
fixed. maybe we should add something in the install that tells you to set up the permissions in the usergroup page. cause I just spent 3 hours tracing through my database and the code to find the problem and solution.. set the permissions :ermm:
Detomah
03-05-2005, 11:27 AM
*snipped*
* That should work now
Super job, works a treat for me after applying those changes, so thanks. :)
MR-2ZZ
03-05-2005, 04:25 PM
Awesome.
Scerina
03-06-2005, 09:29 PM
err...I think something is seriously wrong with mines...if someone who has experince with installing this, can you please contact me or post here to help me out???? thanx in advance
MR-2ZZ
03-06-2005, 11:28 PM
Whats wrong? Did you follow the instructions I posted 2 pages back?
Protoman
03-07-2005, 03:22 AM
I'm having a phrase issue. when it sends the email to somebody the message is correct but the title says missing mc_nomination_email.. thinking the phrase was placed in the wrong group and should be in 'Email Subject Text' instead. I'll try that... so.. now I have 2 mc_nomination_email phrases...
When someone clicks to vote for a nominee,box opens asking for 'Reason'.
Header of box shows "You are voting for" .. should the name of the nominee be shown alongside this header message ?
Any news on this small problem ?
And another :-
Cron job doesn't close polling booth, even if run manually !
Scerina
03-07-2005, 11:21 AM
I followed the instructions in the .zip file that had the actual hack in it...is there a different set of directions?
Scerina
03-07-2005, 11:29 AM
When I edit the Usergroup Pemissions for this hack...I get a mySQL Database error message...
Database error in vBulletin 3.0.3:
Invalid SQL: UPDATE vb3usergroup SET
### UPDATE QUERY GENERATED BY fetch_query_sql() ###
title = 'Elders',
description = 'Forum Head Leaders',
usertitle = '',
opentag = '<font color=\"red\"><b>',
closetag = '</font></b>',
passwordexpires = '180',
passwordhistory = '360',
attachlimit = '0',
avatarmaxwidth = '100',
avatarmaxheight = '100',
avatarmaxsize = '50000',
profilepicmaxwidth = '200',
profilepicmaxheight = '200',
profilepicmaxsize = '75535',
pmquota = '100',
pmsendmax = '5',
forumpermissions = '393215',
pmpermissions = '3',
calendarpermissions = '31',
wolpermissions = '31',
adminpermissions = '3',
genericpermissions = '523239423',
genericoptions = '23',
journalpermissions = '2047',
mcpollingbooth = '0'
WHERE usergroupid=6
mysql error: Unknown column 'mcpollingbooth' in 'field list'
mysql error number: 1054
Date: Monday 07th of March 2005 08:28:16 AM
Scerina
03-07-2005, 11:34 AM
can someone please reinstall this hack for me? I think I messed it up along the lines somewhere and I dunno where as am not a techie...I did follow the instructions in the original zip file for this hack posted on top...
Scerina
03-07-2005, 09:54 PM
I think I got it workin, I ran this query:
ALTER TABLE `usergroup` ADD `mcpollingbooth` INT( 12 ) UNSIGNED NOT NULL ;
Now everything seems to be working...
Now how do I nominate a member and vote? How does this work exactly?
MR-2ZZ
03-09-2005, 07:30 AM
Instructions on how to install this are on Page 15. I posted a new install.
Esposito
03-09-2005, 08:56 AM
Where can I nominate the rights assigned around user? Can someone help me?
Greets
EDDIE!
03-09-2005, 05:27 PM
the event to close all booths doesn't work. The closing date has passed by 4 days and the booth is still open. I have the task manager set to run it every day, but no dice. Please help!
Also, I'd like to have it so you can nominate more then 6 and so Administrators could be nominated as well.
Thanks to anyone who helps.
MR-2ZZ
03-09-2005, 06:55 PM
I am working on it guys.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.