vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Members Choice Voting Hack (https://vborg.vbsupport.ru/showthread.php?t=50819)

DPoole 03-26-2003 12:42 PM

$DB_site->query("INSERT INTO memberschoiceadmin VALUES (NULL,'1', 'Voting for the next award will start soon', '1', '10', 'Member of the Month', '1', '1')")

You have an error in your SQL syntax near '$DB_site->query("INSERT INTO memberschoiceadmin VALUES (NULL,'1', 'Voting for th' at line 1

trafix 03-26-2003 12:45 PM

partang2,

hmm interesting...the area where the textbox is should be the second alt colour ..... is it not doing that?
can you pm me a link to your board?

partang2 03-26-2003 12:49 PM

There is nothing in that template who shows to "second alt colour"....?

trafix 03-26-2003 12:58 PM

Quote:

Today at 12:42 AM DPoole said this in Post #41
$DB_site->query("INSERT INTO memberschoiceadmin VALUES (NULL,'1', 'Voting for the next award will start soon', '1', '10', 'Member of the Month', '1', '1')")

You have an error in your SQL syntax near '$DB_site->query("INSERT INTO memberschoiceadmin VALUES (NULL,'1', 'Voting for th' at line 1


You seen to be fairly capable with mysql...open your phpmyadmin
select memberschoiceadmin from the table list..then click on "insert row" you can manually enter the data ensuring that "event"=1

trafix 03-26-2003 12:59 PM

partang
here is the full template

partang2 03-26-2003 01:12 PM

Did you check your templates m8? Think there are some errors in them.... several .gif's linked from vbulletin doesent show up etc...

trafix 03-26-2003 01:20 PM

in the 21 templates there is only 6 .gif images apart from the avatars, all being at the start of the nav

<img src="{ imagesfolder }/vb_bullet.gif" alt="" border="0" align="absmiddle">

DPoole 03-26-2003 01:26 PM

ok i tired that trafix but it was already set at 1 as far as i could see so i thought id be smart and delete the tables from teh database now i get mysql errors just trying to run the mychoicequery.php

I thought dropping tables would allow me to re-add em running this but obviously it never.

No problem though i can just drop database and install again

Is the zip in first post updated to reflect all the database queries that are needed??

thanks for help as well

trafix 03-26-2003 01:28 PM

yep the zip is updated...for the doqurie php file to work you will need to drop all 3 tables

partang2 03-26-2003 01:35 PM

Quote:

Today at 03:20 PM trafix said this in Post #47
in the 21 templates there is only 6 .gif images apart from the avatars, all being at the start of the nav

<img src="{ imagesfolder }/vb_bullet.gif" alt="" border="0" align="absmiddle">

Nope, this is from memberschoice_bit:

<table cellpadding="10" cellspacing="0" border="1" width="100%" bgcolor="#336D95" background="https://vborg.vbsupport.ru/images/catagory_backing.gif"><tr><td>

trafix 03-26-2003 01:58 PM

Sorry, but i cant find that line in any of the templates

these 2 come from the memberschoice_bit

<table cellpadding="10" cellspacing="0" border="1" width="100%" bgcolor="{ categorybackcolor }"><tr><td>

and

<table cellpadding="10" cellspacing="0" border="0" width="100%"><tr>

If it is a backgroung image that is missing...check that the image is in the right folder and the spelling is correct

alkatraz 03-26-2003 02:08 PM

awesome idea!

trafix 03-26-2003 02:12 PM

Quote:

Today at 02:08 AM alkatraz said this in Post #52
awesome idea!

Have you installed?

DPoole 03-26-2003 02:45 PM

Works fine now

just got some template editing to do and its fine

partang2 03-26-2003 02:50 PM

Works here too!

*Clicks Install*

Thanks!

DPoole 03-26-2003 02:51 PM

one small query

u know on this screen where it shows

Who Voted Nominee No. 1 Vote Now

well when i press who voted nothing happens ? is this correct

also yellow writing on grey background is hard to read on that page.

Example this text is yellow to me

`test's Nomination
Acceptance Speech
`

but besides minor template probs the hacks works perfect

iggy123 03-26-2003 04:17 PM

Nice idea am installing now -- even though i am thick and can't read the dam instructions

DPoole 03-26-2003 04:31 PM

Quote:

Today at 06:17 PM iggy123 said this in Post #57
Nice idea am installing now -- even though i am thick and can't read the dam instructions

Besides few teething probs earlier on this hack is well easy to install and takes about 15mins all in all.The probs earlier on where only minor but they are sorted now so is worth downloading it now.

DPoole 03-26-2003 04:52 PM

also a quick suggestion if possible

how about a link on main page that shows who has the most votes so u can see at a glance who winning in the member of the month award

MODS can u delete most of my posts in this section besides the one 2 posts up as they not needed no more as the hack is sorted for installing now.

USODJA 03-26-2003 09:52 PM

Is it possible for a secret vote, where members don't (only admin) know who voted for who. Can a on off button be added for that..

trafix 03-26-2003 10:01 PM

Thank you for your suggestions and comments, I am glad that we seemed to have got over our early hurdles.
Give me a little time and I will add your suggestions.

DPoole 03-26-2003 11:15 PM

<a href="https://vborg.vbsupport.ru/showthread.php?postid=373628#post373628" target="_blank">just this small prob</a>

Java window dont pop up just gives me a java error

as for the yellow text i fixed that prob now.

LangTuDaTinh 03-26-2003 11:50 PM

Quote:

Today at 05:15 PM DPoole said this in Post #62
just this small prob

Java window dont pop up just gives me a java error

as for the yellow text i fixed that prob now.


missing a java script code for popup.

LangTuDaTinh 03-27-2003 12:03 AM

another suggestion, add page navigation . forexample, i have total 20 Nominees i want to display 10 of them one 1 page and other 10 on second page in random order.

trafix 03-27-2003 12:57 AM

Quote:

Today at 04:52 AM DPoole said this in Post #59
also a quick suggestion if possible

how about a link on main page that shows who has the most votes so u can see at a glance who winning in the member of the month award

MODS can u delete most of my posts in this section besides the one 2 posts up as they not needed no more as the hack is sorted for installing now.

Ok good to see that you got the colors sorted out.

with regard to the java bit...LangTuDaTinh can you attach a .txt file containing the correct memberschoice_bit so I can add it to the new upgrade zip, just so I dont stuff it up...lol

i am working in the additions that have been requested and hopt to get finished soon.

LangTuDaTinh 03-27-2003 01:43 AM

just replace memberschoice template /w this.

DPoole 03-27-2003 02:12 AM

perfect cheers m8

trafix 03-27-2003 07:10 AM

update v 2.0 is nearly ready

will include
1) leaderboard
2) limiting usergroups that can see "who Voted"

trafix 03-27-2003 10:47 AM

update v 2.0 is now available

This update includes the following new features:
1) Leader board link from main page as requested by DPoole .
2) Limiting the viewing of "Who Voted" to selected user groups as requested by USODJA.

partang2 03-27-2003 12:42 PM

Works great m8! Thanks!

bandersen 03-27-2003 12:47 PM

Installed - thank you!

Changed "leaber Board" spelling in the memberschoice.php...

bandersen 03-27-2003 01:00 PM

If you have more updates coming... could you include it so that a member gets an Email when nominated? Thank you!!!!

trafix 03-27-2003 01:19 PM

Quote:

Today at 01:00 AM bandersen said this in Post #72
If you have more updates coming... could you include it so that a member gets an Email when nominated? Thank you!!!!

ooooops...i didnt notice the spelling....lol...i will fix zip soon, i have to do a shut down before my pc crashes:(

re: email.....i have thought about adding a auto PM upon nomination.

Thanks for your comments, enjoy the hack

trafix 03-27-2003 01:53 PM

ok spelling error fix in zip

ps if you where waiting for any bugs to be ironed out of the "Links To Us" hack before installing it....

it now also is installing without a problem

NuclioN 03-27-2003 02:01 PM

Working fine so far trafix :) But when you vote on for example yourself, the vote is not counted but when you after this 'non legitimate' vote place your vote on another member you can not vote because you have made a (false) vote.

trafix 03-27-2003 02:11 PM

ok...i dont know why but i will look into it

LangTuDaTinh 03-27-2003 03:53 PM

there is one problem /w memberschoice_bit , so open it and remove this line

http://www.atmyparty.com/network


also, more suggestions

1. limit number of vote a user can have
2. number of posts require before a user can be vote or nominate a person
3. remove this "&name=$voters[nomname]" from memberschoice.php or use addslashes before do this (if usename have a ' , then the link will not work. )
4. allow guest to view but not vote (do not display the link when guest view memberchoice award.

it's just my suggestions...this is a great add-on.

thanks trafix

Langtudatinh
http://www.tvseriesfans.com/forums/memberschoice.php

USODJA 03-27-2003 06:18 PM

I run this but look what pops up in the database error:
http://www.com/forums/memberschoice.php?action=leaders
____________________________________________

Database error in vBulletin 2.3.0:

Invalid SQL: SELECT * FROM memberschoice ORDER BY votes DESC LIMIT
mysql error: You have an error in your SQL syntax near '' at line 1

mysql error number: 1064

Date: Thursday 27th of March 2003 01:11:19 PM
Script: http://www.com/forums/forums/members...action=leaders
Referer:
________________________________________________

Why is it doubling forums and even when you manually type in with one forum, it still 404s

(i took site name out or people could keep creating database error)

trafix 03-28-2003 02:09 AM

Please check your config settings.....make sure that there IS in all fields.....the quiry that is included to add and alter the database should set a defult in all admin config fields....if nothing there

"Drop" (delete) the three members choice tables from phpmyadmin and use the memberschoicequiry.pfp included in the v2.0 zip of this hack to re-install your tables

This should fix your problem.


Quote:

Today at 06:18 AM USODJA said this in Post #78
I run this but look what pops up in the database error:
http://www.com/forums/memberschoice.php?action=leaders
____________________________________________

Database error in vBulletin 2.3.0:

Invalid SQL: SELECT * FROM memberschoice ORDER BY votes DESC LIMIT
mysql error: You have an error in your SQL syntax near '' at line 1

mysql error number: 1064

Date: Thursday 27th of March 2003 01:11:19 PM
Script: http://www.com/forums/forums/members...action=leaders
Referer:
________________________________________________

Why is it doubling forums and even when you manually type in with one forum, it still 404s

(i took site name out or people could keep creating database error)


trafix 03-28-2003 02:32 AM

Quote:

Today at 03:53 AM LangTuDaTinh said this in Post #77
there is one problem /w memberschoice_bit , so open it and remove this line

http://www.atmyparty.com/network
**************this is fixed in the current zip file***********

also, more suggestions

1. limit number of vote a user can have
********next update*********

2. number of posts require before a user can be vote or nominate a person
********next update*********

3. remove this "&name=$voters[nomname]" from memberschoice.php or use addslashes before do this (if usename have a ' , then the link will not work. )
*******please tell me the line number(s) of the memberschoice.php where this occours********

it's just my suggestions...this is a great add-on.

thanks trafix

Langtudatinh
http://www.tvseriesfans.com/forums/memberschoice.php



4. allow guest to view but not vote (do not display the link when guest view memberchoice award.

find near top of memberschoice.php
PHP Code:

if ($bbuserinfo[userid]==0) {
    eval(
"standarderror(\"".gettemplate("error_nopermission_loggedout")."\");");
  } 

move it to under this
PHP Code:

// ##################### check if user exists or has been nominated ################
if ($action=="nominate") { 

This will allow guests to see the main nomination / voting screen but not be able to view "who voted" or cast a vote or nominate


All times are GMT. The time now is 03:17 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.01405 seconds
  • Memory Usage 1,831KB
  • 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_php_printable
  • (9)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