MyBB Community Forums

Full Version: Error with public events on index mod
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Just installed this mod;
http://mods.mybboard.net/view/events-on-index-1.5.3

But it doesn't appear on my index page.

Any ideas why?
Anybody?Sad
You must to put in index template (in AdminCP --> Template --> Change (Your Template) --> index) after
{$whosonline}
this line
{$index_events}

And you must to add 2 lines in your index.lang.php
CracKter Wrote:1) Open inc/languages/english/index.lang.php

2) Add:

$l['events_on_index'] = "Upcoming events for the next {1} days";
$l['events_on_index_one'] = "Upcoming events for this day";

at the bottom of that file before ?>

3) Upload that file to inc/languages/english/index.lang.php
I've done that and mine still isn't showing up. Any ideas?
dastaten Wrote:I've done that and mine still isn't showing up. Any ideas?

Maybe CraKteR, author of this plugin, will help better because I don't used anymore.
Does it matter that I'm not using the default templates? I uploaded the plugin, activated it, and copied the new tags to the index language file, but it's not showing up. The {$index_events} tag is in place on the index template as well.
You probably need to change the hook too; change index_end into index_start
LeX- Wrote:You probably need to change the hook too; change index_end into index_start

Thanks, that helped. Now I've got the calendar link with an event under it on the index page. But the rest of the text (Upcoming events for the next {1} days) isn't showing up. Is there something else I need to change?

Also, it's only showing one event whereas there should be 4. I've already changed the date range in the settings to the next 30 days.

Thanks for your help.

It's live here if you don't mind taking a look at what it's doing...

http://baytownbb.com/index.php
Here is my events_on_index template if it helps.

<tr>
<td class="trow1" colspan="2"><strong>{$lang->events_on_index}</strong> [<a href="calendar.php">{$lang->toplinks_calendar}</a>]</td>
</tr>
<tr>
<td class="trow1"><center><img src="images/bgs/index-calendar.gif"></center><td class="trow1"><span class="smalltext">{$events}</span></td>
</tr>

Can I just hard code the number of days in eventsonindex.php?
mybbromania Wrote:And you must to add 2 lines in your index.lang.php
CracKter Wrote:1) Open inc/languages/english/index.lang.php

2) Add:

$l['events_on_index'] = "Upcoming events for the next {1} days";
$l['events_on_index_one'] = "Upcoming events for this day";

at the bottom of that file before ?>

3) Upload that file to inc/languages/english/index.lang.php

You did this too ? But don't edit with NotePad =P
Pages: 1 2