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)

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

kall 01-12-2005 09:29 PM

Quote:

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

Quote:

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

Quote:

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

Quote:

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

Quote:

Originally Posted by trafix
ok i found the error in the mc_nomination_email


PHP Code:

$bbuserinfo[usernamehas 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

Quote:

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

Quote:

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

Quote:

Originally Posted by mcyates
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.

kall 01-14-2005 07:19 PM

Quote:

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

Quote:

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

Quote:

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

Quote:

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

Code:

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

Quote:

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

Quote:

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

Quote:

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

Quote:

Originally Posted by rex_b
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....d=1&styleid=18

My members love this, but, none of us can figure out where to vote... Hysterical.


All times are GMT. The time now is 10:06 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.01748 seconds
  • Memory Usage 1,842KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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