Winner's Name

1 year 4 months ago #802
Topic Author
Peter Sykes's Avatar
Posts: 11
Winner's Name

Is it possible to display the names of the image entrants after voting has finished?

By that I mean the person who entered the image into the competition.

All our competitions are closed to members.

Thank you

Peter

The topic has been locked.
1 year 4 months ago #803
Eugene's Avatar
Posts: 496
Winner's Name

Hi Peter,
I am not sure I understood your question correct due to specific terms used to describe the task.
Here are some terms used in the component:

Participant or App - it's component item.
Image (or video) - media element used in the App
Submitter - user who submitted the App

Do you want to display submitter's name under the image in the list of participants? Should it has a label (Submitter: Super Admin) and a value or just the value (Super admin)?
I am attaching a screenshot with example.



Is it what you was asking for?

Regards,
Eugene.


Like our extensions and support?
Add your voice to the JED listing with a 100 score review:: bit.ly/2ciJBqC
Thanks!
Attachments:
The topic has been locked.
1 year 4 months ago #805
Topic Author
Peter Sykes's Avatar
Posts: 11
Winner's Name

Yes that's sort of what I am after.

During the competition, the image and its title would be displayed, butnot the submitter.

Then after voting had finished display the image, title and the submitter's name.

Just realised what it needs -
On the image display page there needs to be a code line to ask "Is the competition cmplete", if so display submitter's name.

Can you please provide me with the line of code which would check the competition status.
I think I have found where to insert the line(s) - in "_participantfields.php" after line 36

Thank you

Peter

Last edit: 1 year 4 months ago by Peter Sykes.
The topic has been locked.
1 year 4 months ago #806
Dmitry's Avatar
Posts: 656
Winner's Name

Hello Peter!

If you want to hide submitter on the participant's page then here is the line of code:

<?php if ($params->get('participant_show_submitter', 0) && $this->item->competitionStatus == 0) : ?>

competitionStatus
0 - completed
1 - active

Best regards,
Dmitry


Like our extensions and support?
Add your voice to the JED listing with a 100-score review: bit.ly/2ciJBqC
Thanks!
Last edit: 1 year 4 months ago by Dmitry.
The topic has been locked.
1 year 4 months ago #807
Topic Author
Peter Sykes's Avatar
Posts: 11
Winner's Name

Ecellent.

Works just as I wanted.

Thank you
Peter

The topic has been locked.

You can get our help: Monday - Friday / 09:00 to 17:00 (GMT+2). but not limited. Our staff will be pleased to provide Premium support to every paid subscriber asap, but sometimes you should be ready to wait for our reply for up to 3 days. In case of free extensions we do the best to develop and maintain them either, but their support is not necessary.

Product Latest Update