Customized Vote Thank you message

2 months 3 weeks ago #2330
Topic Author
Finance  Manager's Avatar
Posts: 3
Customized Vote Thank you message

Hello,

I required to customize the after voting thank you message. I am planning to set up a popup window including an image after click on the vote icon.
Is this possible? Could you please guide me?

Thanks

The topic has been locked.
2 months 3 weeks ago #2331
Dmitry's Avatar
Posts: 677
Customized Vote Thank you message

Hello!

After click or after receive of success message? The message is displayed using this code in file /media/js/competition-1.7.0.js:

Competition.popup('success', r.message);
Where r.message is the content being displayed to a user. But if you want to change it please note that you will need to restore this changes every time component is updated, because it is a core hack.

Best regards,
Dmitry


Like our extensions and support?
Add your voice to the JED listing with a 5-score review: bit.ly/2ciJBqC
Thanks!
The topic has been locked.
2 months 3 weeks ago #2332
Eugene's Avatar
Posts: 553
Customized Vote Thank you message

In addition to Dmitry's answer, I can suggest a way of overriding language constant.


COM_COMPETITION_VOTE_SUCCESS
Thank you for your vote

You can go to Extensions > Languages and override this constant and place HTML code with an image instead of the message.


Like our extensions and support?
Add your voice to the JED listing with a 5 score review:: bit.ly/2ciJBqC
Thanks!
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