vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Competitions (https://vborg.vbsupport.ru/showthread.php?t=100150)

husain 11-19-2005 05:04 PM

Quote:

Originally Posted by mrahul
oki mate.. I got one more member now with more than one entry

one member has 5 entries , now the new guy has 2 entries while for the rest itz perfect.

Ok I am stumped here. I can't find anything wrong with my code -- since I wrote it I don't know where I may have made a mistake. Perhaps someone else on these forums can audit it for me.

cbr929rrerion 11-20-2005 12:28 AM

** installed **

also the mutliple box idea would be nice..

I want to have contests where I give stuff away just for posting in the thread or now just by entering this way.. is there a way to number the entries in the view entries page, ie.. 1, 2, 3, so I can pick a random number for a winner and see who it is..

If it numbers them then I can pick a number between 1 and whatever, go to that entry # and they win.. other wise I will have to count them ...

cbr929rrerion 11-20-2005 01:10 AM

How can we have it redirect you back to the forum home page after they enter...

another words after they submit it, it takes them to the forum home page

puertoblack2003 11-20-2005 01:17 AM

nice one **INSTALLED ** no problems

MThornback 11-20-2005 05:28 PM

Ok, maybe i'm missing something...

I installed it, edited permissions etc...but its still giving me the no permission errors on 3.5.1

any thoughts?

MThornback 11-21-2005 01:56 PM

its working now...but only because the profile conditions were removed...

fiber_cut 11-21-2005 06:15 PM

Where did you edit the permissions?

When I try to access competitions.php I get -

Code:

fiber_cut, you do not have permission to access this page. This could be due to one of several reasons:

Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.


fiber_cut 11-21-2005 06:18 PM

Ahh never mind this post I was jsut an idiot like always..

MThornback 11-22-2005 03:24 PM

Quote:

Originally Posted by fiber_cut
Ahh never mind this post I was jsut an idiot like always..

Someone entered my competiton...and it tottally FUBAR'd my whole language table, Ihad to drop and add it...and I checked...and the submission happened today...and so did the crash...and this is the only product I use that uses that table....thought you'd like to know

EasyTarget 11-30-2005 09:46 AM

I think it'd be nice to expand this past just a Question/Answer type thing and include events or something as well. Let the administrator choose what the competition is, say like first person to X amount of posts or whatever.

Mastar 12-02-2005 09:36 PM

I'm getting problems when selecting Multiple-Line Text Box in Competions.

When I enter a date and save it, it saves it as: 01-01-1970 08:00 AM

lazyseller 12-07-2005 02:32 PM

has anyone had any problems with this ?

havefun 12-08-2005 12:08 PM

very nice. THX
[high]* havefun clicked install :)[/high]

D|ver 12-16-2005 12:08 PM

Quote:

Originally Posted by tidy_boy
husain you are awesome been wanting something like this :D

Just one thing is there away you can make a module for my cmps to show open competitions please

Here is my site www.harddanceaddict.net

Thanks

yeah a cmps mpodule would be so great :) :)

tidy_boy 12-16-2005 08:54 PM

yeah can anyone make a cmps module for this hack please

4number8 12-17-2005 10:45 AM

I was needing something similar to this, but for my questions the answer would be unknown untill the event was over, can I still use this and add the event date a day later, than update the answer? would doing it this way still work correctly with the PM's? I have installed it and been playing around with it, but it always states that the event end date has ended... like this: End Date: 1 Minute Ago 06:00 PM
anyone have idea's why this is doing this? thanks for a great hack btw

husain 12-17-2005 12:32 PM

If you don't know the correct answer or if your question doesn't have a correct answer you can leave that field blank. You must however specify a valid end date.

Not specifying the correct answer will not affect the competition in any way. The only thing that will not work is the automatic picking of a winner -- you will have to manually select winners and feed their user IDs into the system.

4number8 12-17-2005 04:57 PM

Is there anyway to get the time to work with detailed in the Datestamp Display Option, that is what is causing it to show up as already ended, if i swith to normal, or today/yesterday it will work. Thanks

MSheraz86 12-21-2005 06:15 PM

A great mod!! Works perfectly :D thanks!

Though, How can I edit the message in the PM that is autmatically sent??

Hoffi 12-22-2005 05:22 AM

That is stored in the Phrases hkc_pm_conform_message and hkc_pm_conform_subject and hkc_winner_congratulate_message and hkc_winner_congratulate_subject.

MSheraz86 12-22-2005 12:02 PM

Thanks a lot :D

FROGGYJ 12-23-2005 07:06 PM

1)when I start a new competition I have to set the date 1 day ahead to actually end on the day I want. So for example if I want to end the competition on Dec 23...I have to set the date to Dec 24th. Weird thing is if I go to edit the competition after setting it up it shows Dec 23.....???

2)how can we change what time the competition ends? Currently they all end at 5pm on the given day. Is there somewhere we can change the time?

3)also I often do giveaways and members simply have to reply to a thread. This would be more useful though...but not sure how to configure properly. I can setup a radio button and check it as default so its their only option....but will that work so at the end of the competition time I just hit select winner and it will randomly select someone from all the entries even though there is no "correct answer"....guess I can test this.

4)even though read receipt is selected I never get a receipt back from a user who does hit send read receipt.

husain 12-24-2005 10:24 AM

Quote:

Originally Posted by FROGGYJ
1)when I start a new competition I have to set the date 1 day ahead to actually end on the day I want. So for example if I want to end the competition on Dec 23...I have to set the date to Dec 24th. Weird thing is if I go to edit the competition after setting it up it shows Dec 23.....???

2)how can we change what time the competition ends? Currently they all end at 5pm on the given day. Is there somewhere we can change the time?

I am aware of this and have been trying to study how vBulletin handles dates. What the hack is doing right now is that it is ending competitions depending on the GMT setting. So if you competiton ends on 31st Dec and your timezone is set to GMT+5, it will end the competition on 31st Dec at 5am.

I know this is not a desired effect and I am working on it.

Quote:

Originally Posted by FROGGYJ
3)also I often do giveaways and members simply have to reply to a thread. This would be more useful though...but not sure how to configure properly. I can setup a radio button and check it as default so its their only option....but will that work so at the end of the competition time I just hit select winner and it will randomly select someone from all the entries even though there is no "correct answer"....guess I can test this.

If you want to use the "select winner" feature you will have to set the correct answer.

This is what I had done for one competition. My sponsors were giving a way a Westlife album but they wanted everyone to be able to enter without answering a question (because some may answer incorrectly and they didn't want that). So I created a competition without specifying a question and said "to enter, simply type WESTLIFE in the field below and hit submit". The text box also had the default value of WESTLIFE. The correct answer field was also set to WESTLIFE. In that way, everyone entered, everyone got the correct answer and I was able to select a winner using Get Winner. There was also no need to create a thread for people to reply (and increase their postcount for no reason).

FROGGYJ 12-29-2005 04:50 PM

thanks husain! There is only 1 more feature which would really make this perfect and that is usergroup permissions. I often have giveaways only for site supporters and hence why I have a giveaway forum in which only site supporters can post. If you could build in some sort of permissions settings for this app....that would be awesome.

husain 12-29-2005 05:03 PM

The hack already has built-in usergroup permissions that you can use for this. So if you want to restrict a particular usergroup from participating in the competition, you can edit the permissions of that usergroup.

FROGGYJ 12-29-2005 05:20 PM

haha nevermind, I had actually already edited them correctly...just forgot. Thanks for the quick response!

ChrisBaktis 12-30-2005 03:01 AM

i have looked and looked but cannot seem to find the admincp option to delete an entry....any help?

husain 12-30-2005 06:36 AM

There is no option to delete an entry at the moment. It will be added in a future release of the hack.

ChrisBaktis 12-31-2005 06:30 PM

oh ok - there was another post that said you could delete entries via admincp - looking forward to that feature being added.

FOZ13 12-31-2005 10:21 PM

I have ongoing monthly competitions, based on 1 usergroup which is for the financial members only.

Has anyone created a hack that will draw a random winner from a specific user group?

tris 01-16-2006 12:33 PM

I have made a hack which includes more information about the winners in the PM to the competition admin. (e.g. Name, Surname, Street, City etc.)

You only need to modify the custom profile fields to your needs.

E.g. if your customprofile field9 contains the user surname, field10 contains the lastname etc.

Just replace the competitionmanager.php with the attached and modify the customfields on line 590 and 592.

kadafi_alive 01-17-2006 07:55 AM

Any update on the more-than-1-question development?

husain 01-18-2006 06:24 AM

Quote:

Originally Posted by kadafi_alive
Any update on the more-than-1-question development?

Nope. Multiple-question feature will essentially take this hack back to the drawing board stage as it requires a huge database and code change. While I am working on this, I am not making any commitments to deliver it.

husain 01-18-2006 06:32 AM

I have updated the hack to add some new features that were requested here.
  • Ability to schedule competitions. You can now set a starting date for competitions. This feature was contributed by Hoffi so all credit goes to him.
  • You can now delete entries.
  • Competitions can be disabled. This is useful if you want to preserve the competition information and entries but do not want it to appear on the live website.
  • Some other minor changes.
As always suggestions, criticism, and feedback is welcome.

tris 01-18-2006 12:22 PM

Many thanks for the update.

I have already integrated the "Include profilefields in Winnerlist PM"

You must edit line 656 and line 658 to include your profile field numbers.

$userinfo .= "Username: {$row['username']}\nEmail: {$row['email']}\n {$userfields['field9']} {$userfields['field10']} {$userfields['field11']} {$userfields['field12']}\n";

unset($row['username'], $row['email'], $userfields['field9'], $userfields['field10'], $userfields['field11'], $userfields['field12']);

kadafi_alive 01-18-2006 12:48 PM

Quote:

Originally Posted by husain
Nope. Multiple-question feature will essentially take this hack back to the drawing board stage as it requires a huge database and code change. While I am working on this, I am not making any commitments to deliver it.

Alright.

Can you also tell me why End Date says:
1 Minute Ago 12:00 AM

instead of showing the actual end date?

Thanks

husain 01-18-2006 03:33 PM

Quote:

Originally Posted by kadafi_alive
Alright.

Can you also tell me why End Date says:
1 Minute Ago 12:00 AM

instead of showing the actual end date?

Thanks

I haven't been able to reproduce this error on my installation. Does it show you for any competition you create?

kadafi_alive 01-18-2006 06:11 PM

Quote:

Originally Posted by husain
I haven't been able to reproduce this error on my installation. Does it show you for any competition you create?

Yes and it stays at that. It doesn't change at all.

In fact, 4number8 has also the same problem:
Quote:


I was needing something similar to this, but for my questions the answer would be unknown untill the event was over, can I still use this and add the event date a day later, than update the answer? would doing it this way still work correctly with the PM's? I have installed it and been playing around with it, but it always states that the event end date has ended... like this: End Date: 1 Minute Ago 06:00 PM
anyone have idea's why this is doing this? thanks for a great hack btw


Hoffi 01-19-2006 05:54 AM

Quote:

Originally Posted by kadafi_alive
Can you also tell me why End Date says:
1 Minute Ago 12:00 AM

This depends onb your local Settings. You display the detailed Versin for the Date. This also happens to this Hack.

kadafi_alive 01-19-2006 06:16 AM

Quote:

Originally Posted by Hoffi
This depends onb your local Settings. You display the detailed Versin for the Date. This also happens to this Hack.

Yes, I use the detailed time on my forum. Are you saying that it's not compatible with the detailed time function?


All times are GMT. The time now is 01:34 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.01360 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
  • (1)bbcode_code_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