vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Members Choice voting hack - V2 with usergroup permissions (https://vborg.vbsupport.ru/showthread.php?t=74183)

MikaK 01-18-2005 04:48 AM

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

deta 01-18-2005 01:12 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

trafix 01-18-2005 08:59 PM

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 ;)

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

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

T3MEDIA 01-20-2005 12:07 AM

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.

MorrisMcD 01-20-2005 01:23 AM

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.. :confused:

trafix 01-21-2005 05:28 AM

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.. :confused:

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

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

Quote:

Originally Posted by MikaK
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

Quote:

Originally Posted by Deviant++
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

Quote:

Originally Posted by MikaK
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

Quote:

Originally Posted by trafix
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

Quote:

Originally Posted by MorrisMcD
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

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

MorrisMcD 01-25-2005 09:00 AM

Quote:

Originally Posted by trafix
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


Quote:

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

Quote:

Originally Posted by Vizionz
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
Code:

construct_nav_group("$vbphrase[mc_members_choice]", '<hr />');
change to
Code:

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

Quote:

Originally Posted by yoyoyoyo
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....ooth&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

Quote:

Originally Posted by Vizionz
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

Quote:

Originally Posted by Lizard King
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

Quote:

Originally Posted by docvader
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....ooth&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

Quote:

Originally Posted by trafix
hmmm ..... is anybody elses boothes not closing automaticly ... maybe i have missed something

My 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


All times are GMT. The time now is 10:51 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01568 seconds
  • Memory Usage 1,847KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_html_printable
  • (2)bbcode_php_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete