What's new
Xen Factory

Register today to become a member! Once signed in, you'll be able to start purchasing our products, ask questions, request support and suggest new ideas!

  • This area is dedicated to the support of our xF1 add-ons. For xF2, please use the dedicated area: HERE.

Bug Fixed Default contest filtering

gturban

Member
I have selected option :
Screen Shot 2016-07-31 at 16.33.31.jpg

So members can see contests that are open for submission and vote. But if the contest only is open for submission or only open for vote it does not show up.

The only contests that show are the ones that are open for submission and vote simultaneously.

So it either needs to be fixed or add a option to show "all contests open for submission or vote"
This would include open for:
-submission
-vote
-simultaneous submission and vote
 
Thanks for report
I will look this when i will make an update on this
I think i will make a first update with bug fix (but i don't know when yet)
 
This is kind of a major problem, as it leaves the only usable option on contest to be overlapping vote/submission.
 
I think it's best if you log in and look at my contest as it might be a different bug than I thought..

Two competitions are open for submission but when I select:

Screen Shot 2016-07-31 at 16.43.50.jpg
they don't show up..

If I select "All contests" they show up:
Screen Shot 2016-07-31 at 16.44.30.jpg
 
I will add new option in next release But if you want user Filtering Vote AND Submission as OR you can edit this file
XFA/MediasContest/Model/Contest.php

Search :
PHP:
 $sqlConditions[] = "contest.open = 'mix'";

Replace by :
PHP:
 $sqlConditions[] = "contest.open = 'mix' OR contest.open = 'submission' OR contest.open = 'vote'";

This should work
 
In Library with FTP connection?

I think it is due to a different problem now, as they don't show up in "contest open for submission" view either.
 
Yes in Library folder sorry

It's normal they don't show up, because this filtering show contests who have status "mix" so contests are open for submissions AND votes
I need to add new filter to show all contests who have status "Open for Submissions AND votes" OR "Open for submissions" OR "Open for votes" (like you should have with this "trick" with filtering "Open for Submissions AND votes")
It's temporary i will add new option ;)
 
Contest open for submission still doesn't show up after edit in php.

I seems to be a problem with recognising contests that are open for submission, the one open for vote shows up.
 
You are here tomorrow ?
If yes catch me on skype, we will see this because i can't look this now
 
Sure!
The solution for now is I have set sort to ending soon and filter by submission and vote. Then all the open contests are showing.
 
Top