Friendly custom message on empty main page

3 weeks 3 days ago #2822
Topic Author
Supporter's Avatar
Posts: 34
Friendly custom message on empty main page

Hello Dmitry, Eugene,

At the moment if there is no active contest the page is empty (unless you change the state in the toolbar filter)
Sadly, this make it look like there is no activity at all on the site.

I thought it would be much more "friendly" if we could display a custom message instead.
This message would only display when filter state is on "Active" and there is no active contest.

The message could be either "standard" (with override Constant/Value) or Custom.

I really like how you handled the UIkit theme, maybe you can add a styling option to this custom message?
Also having the option to select the style (Card Default, Primary, Secondary, ,..) would be an awesome addition !

Wish you both a nice week-end !

3 weeks 1 day ago #2825
Dmitry's Avatar
Posts: 810
Friendly custom message on empty main page

Hi.

Do you mean we should style this message in competitions.php file:

<?php if (empty($this->items)) : ?>

	<div class="uk-margin-top">
		<p><?php echo JText::_('COM_COMPETITION_NO_COMPETITIONS'); ?></p>
	</div>

<?php else : ?>

Dmitry


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

3 weeks 13 hours ago #2835
Topic Author
Supporter's Avatar
Posts: 34
Friendly custom message on empty main page

Hello,

Yes that is the message I am talking about.
For the UIKit styling something like:

class="uk-alert-primary uk-padding"
or
class="uk-alert-primary uk-padding-small"

3 weeks 13 hours ago #2837
Dmitry's Avatar
Posts: 810
Friendly custom message on empty main page

Ok, got it. Meanwhile you can edit this by yourself :)


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

2 weeks 6 days ago #2839
Topic Author
Supporter's Avatar
Posts: 34
Friendly custom message on empty main page

I did it for the main language only.

But before adding a new custom override (code + new message) to the next 16 languages of the website I wanted to ask ...:whistle:
Creating and maintaining overrides can in specific website be the most challenging part ...

Having to only write the sentence/word without adding code is quicker and prevents error/oversight .

Thanks for your understanding

2 weeks 6 days ago #2840
Dmitry's Avatar
Posts: 810
Friendly custom message on empty main page

If you have an example of message that will be suitable for all users of NorrCompetition, please share.


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

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

Follow us in social media