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

Quote:

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

Code:

  <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

Quote:

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

Quote:

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

Quote:

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

$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
PHP Code:

$leftavatar =""

and
PHP Code:

$rightavatar =""

to
PHP Code:

$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
PHP Code:

$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

Quote:

Originally Posted by trafix
hmmm, should have .... did you use the img tag
PHP Code:

$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:

Code:

$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

Quote:

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

Quote:

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

Quote:

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

Quote:

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

Quote:

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

deta 01-17-2005 03:36 PM

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

Quote:

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

Quote:

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


All times are GMT. The time now is 06:11 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.01680 seconds
  • Memory Usage 1,838KB
  • 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
  • (6)bbcode_php_printable
  • (12)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