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)

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 06:47 AM.

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.01215 seconds
  • Memory Usage 1,744KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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