Competitions for XenForo [Deleted]

Nice update Chris. Took your advice and I have been using Competitions with the user upgrade to exclude the lurkers from just sitting and waiting for the next comp. If members don't maintain a certain number of posts per month they drop out of the Comp group - working a treat! ;)
 
Purchased the add-on @Chris D , and it's awsome! Good job!

But for me as having a non-english site, I have now spent about 2 hours translating all the phrases to my own language! It was a crap job! So question is, if I upgrade Xenforo or update my language pack will all these phrases be overwritten? Or will they stay translated?
 
I cant see who entered, I am trying to host a top poster compeition. However, I do not want an automatic winner. Is this possible?
 
I'm not sure this add-on would be suitable for that.

A competition requires a question to be answered to be eligible to win, and the only option is for winners to be picked automatically when the competition closes.
 
The date format seems to be still in English after translation.
@Chris D is this something that can be phrased in future versions? That would be nice and easy for many others. Maybe it can use the forum standard?

We use this add-on at a foreign language site and we found it fully phrased and easy to translate.

However the date format and language cannot be changed without editing the code. Currently it shows all dates in british english format (like "Sunday 14th December, 2014"). This is incompatible with almost all other languages and unfortunately dates are very common in this add-on.

But it is an very easy code change, I can help you with that if you like.

@HWS can you tell me where i can change this?

I've translated this to Dutch and will be sharing the translation soon.
 
The date format seems to be still in English after translation.

Which version of this add-on are you using?

In the most recent version the language depends on the localisation of your browser (if set to english, the date will be in english, this may be different for each visitor). If you want to make sure no word is used in dates, it is possible to change the date format to number only formats (like "5.3.2015, 10:15") in the ACP.

@HWS can you tell me where i can change this?

This was a statement only valid for a former version of the add-on. Now (most recent version) the date format can be set in the options by the admin.
 
Thanks HWS (y)

I changed the date format to make sure no words are used.

If anyone else need it

Change Date Format to
Code:
%d-%m-%Y
And then you get
Thank you for submitting your entry on 04-03-2015.
The winners will be announced here after the closing date on 11-03-2015.
 
Since the last version update i get server errors sometimes about duplicate stuff, today, 2 generated by the same user:
Code:
Error Info
Zend_Db_Statement_Mysqli_Exception: Mysqli statement execute error : Duplicate entry '18-5174' for key 'competition_id_user_id' - library/Zend/Db/Statement/Mysqli.php:214
Generated By: GrandpaPotato, Yesterday at 2:23 AM
Stack Trace
#0 /var/www/html/library/Zend/Db/Statement.php(297): Zend_Db_Statement_Mysqli->_execute(Array)
#1 /var/www/html/library/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#2 /var/www/html/library/Zend/Db/Adapter/Abstract.php(574): Zend_Db_Adapter_Abstract->query('INSERT INTO `xf...', Array)
#3 /var/www/html/library/XenForo/DataWriter.php(1624): Zend_Db_Adapter_Abstract->insert('xf_avforums_com...', Array)
#4 /var/www/html/library/XenForo/DataWriter.php(1613): XenForo_DataWriter->_insert()
#5 /var/www/html/library/XenForo/DataWriter.php(1405): XenForo_DataWriter->_save()
#6 /var/www/html/library/AVForums/Competitions/ControllerPublic/Competition.php(720): XenForo_DataWriter->save()
#7 /var/www/html/library/XenForo/FrontController.php(347): AVForums_Competitions_ControllerPublic_Competition->actionEntry()
#8 /var/www/html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#9 /var/www/html/index.php(13): XenForo_FrontController->run()
#10 {main}
Request State
array(3) {
  ["url"] => string(71) "http://----.com/competitions/giveaway-hitman-absolution.18/entry"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(6) {
    ["given_answer"] => string(1) "1"
    ["_xfConfirm"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(44) "/competitions/giveaway-hitman-absolution.18/"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
Possible to allow there to be no question asked? Also I would love to see any of the following added:
-Purchasing of a ticket or some sort of check to see if user has donated in the current month.
-Show who has entered the competition.
 
Yeah different ways to enter a competition is what's missing, i feel i'm making random questions with no point sometimes trying to find something interesting to do with it. :p
I certainly agree!

This addon is proving to be very valuable in generating interest and membership on my site and if it could be expanded on to include a few more ways of competition entry, I have no doubt it would become a must have for forums.

Great effort so far though but just a few more features and it will be awesome :)
 
When I link to an external competition it still states.
This competition is only open to registered members who are over the age of 18.

That's the right phrase for the internal competitions, but not for the external because guests can also click on the link. It's also open to guests.

Maybe you can change this in the next version? Or just leave that phrase away because it's an external competition where they have there own rules.
 
That message displays because you have a minimum age set:

upload_2015-4-1_14-38-39.webp

If you don't want a minimum age restriction, remove the minimum age restriction...
 
@Chris D will competitions that are complete disappear from the competition site after a while?

Should see:

1) open competitons - ok for me
2) competitions that are done - disappeared?
3) unpublished ones - ok for me

Thanks

/edit: noob mistake! had to extend days to show them ;)
 
Hey Chriss First ever troubles with your add-on. Probably not with the add-on but with all that happened around it. I had a server burn up during a OS upgrade. Yes it literately burned. Something with the raid controller. Anyway, I had to rebuild my site. I had the complete database so figured all was good.

Unfortunately I am getting errors. When I click on the archive link I get an error page.

Code:
ErrorException: Undefined offset: 3394 - library/AVForums/Competitions/Model/Competition.php:557
Generated By: Jump, 4 minutes ago
Stack Trace

#0 /home/mysite/public_html/library/AVForums/Competitions/Model/Competition.php(557): XenForo_Application::handlePhpError(8, 'Undefined offse...', '/home/mysite...', 557, Array)
#1 /home/mysite/public_html/library/AVForums/Competitions/Model/Competition.php(635): AVForums_Competitions_Model_Competition->prepareCompetition(Array, Array)
#2 /home/mysite/public_html/library/AVForums/Competitions/ControllerPublic/Competition.php(117): AVForums_Competitions_Model_Competition->prepareCompetitions(Array, true)
#3 /home/mysite/public_html/library/XenForo/FrontController.php(347): AVForums_Competitions_ControllerPublic_Competition->actionArchive()
#4 /home/mysite/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#5 /home/mysite/public_html/index.php(13): XenForo_FrontController->run()
#6 {main}

Request State

array(3) {
  ["url"] => string(44) "http://mysite.com/contests/archive"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}


And when I click on a thread link for an old Competition I get this.

Code:
ErrorException: Undefined offset: 618 - library/AVForums/Competitions/Model/Competition.php:557
Generated By: Unknown Account, 23 minutes ago
Stack Trace

#0 /home/mysite/public_html/library/AVForums/Competitions/Model/Competition.php(557): XenForo_Application::handlePhpError(8, 'Undefined offse...', '/home/mysite...', 557, Array)
#1 /home/mysite/public_html/library/AVForums/Competitions/ControllerPublic/Thread.php(24): AVForums_Competitions_Model_Competition->prepareCompetition(Array)
#2 /home/mysite/public_html/library/Andy/SimilarThreads/ControllerPublic/Thread.php(12): AVForums_Competitions_ControllerPublic_Thread->actionIndex()
#3 /home/mysite/public_html/library/XenForo/FrontController.php(347): Andy_SimilarThreads_ControllerPublic_Thread->actionIndex()
#4 /home/mysite/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#5 /home/mysite/public_html/index.php(13): XenForo_FrontController->run()
#6 {main}

Request State

array(3) {
  ["url"] => string(89) "http://mysite.com/threads/win-a-free-hull-skin-for-your-star-citizen-ship.6097/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Back
Top Bottom