2008-05-26, 12:32 PM
Pages: 1 2
2008-05-26, 10:48 PM
Anybody?
2008-05-26, 10:59 PM
You must to put in index template (in AdminCP --> Template --> Change (Your Template) --> index) after
And you must to add 2 lines in your index.lang.php
{$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
2008-06-01, 02:09 AM
I've done that and mine still isn't showing up. Any ideas?
2008-06-02, 02:09 PM
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.
2008-06-02, 04:55 PM
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.
2008-06-02, 05:02 PM
You probably need to change the hook too; change index_end into index_start
2008-06-02, 05:13 PM
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
2008-06-02, 05:35 PM
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?
<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?
2008-06-02, 05:40 PM
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