Hiho Coderfreunde,
Ich hab da son kleines Problem, be dem ich ums Verrecken nciht weiterkommt, vllt kann mir ja wer von Euch helfen?!?!?!
Es geht um folgendes:
Ich habe ein WBB-Forum, und dieses besitzt eine Navi... in der Navigation existiert ein Button, der von Sonntags bis Freitags auf einen bestimmten Link verweisen soll, was ja soweit kein Problem ist... allerdings muss dieser Button Samstags von 6 - 23h auf einen anderen Link verseisen...
Ich hab da schonmal was probiert, im header.tpl zu ändern, aber wenn ich es so mache, Taucht folgender fehler auf:
Der Header-TPL sieht nach meiner Änderung wie folg aus:
Alles anzeigen
Es handelt sich um den IndexLink, der sich ändern soll und das, was da so einzeln zwischend en ganzen Navi-Links steht ist der kleine Zusatz, den ich eingefügt habe... aber wie gesagt, der Fehler kommt, also wird iwas wohl falsch sein...
Kann mir vllt jemand helfen???
Besten Dank im Vorraus schon einmal
Ich hab da son kleines Problem, be dem ich ums Verrecken nciht weiterkommt, vllt kann mir ja wer von Euch helfen?!?!?!
Es geht um folgendes:
Ich habe ein WBB-Forum, und dieses besitzt eine Navi... in der Navigation existiert ein Button, der von Sonntags bis Freitags auf einen bestimmten Link verweisen soll, was ja soweit kein Problem ist... allerdings muss dieser Button Samstags von 6 - 23h auf einen anderen Link verseisen...
Ich hab da schonmal was probiert, im header.tpl zu ändern, aber wenn ich es so mache, Taucht folgender fehler auf:
Der Header-TPL sieht nach meiner Änderung wie folg aus:
PHP-Quellcode
- <table style="width:{$style['tableoutwidth']}" cellpadding="{$style['tableoutcellpadding']}" cellspacing="{$style['tableoutcellspacing']}" align="center" border="{$style['tableoutborder']}" class="tableoutborder">
- <tr>
- <td class="mainpage" align="center">
- <table style="width:100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td class="logobackground" align="center"><if($style['logoimage']!="")><then><a href="index.php{$SID_ARG_1ST}"><img src="{$style['logoimage']}" border="0" alt="$master_board_name" title="$master_board_name" /></a></then></if></td>
- </tr>
- <tr>
- <td align="center"><span class="smallfont"><if($wbbuserdata['userid'])><then><a href="usercp.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_usercp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_USERCP']}" title="{$lang->items['LANG_GLOBAL_USERCP']}" /></a>
- <a href="pms.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_pms.gif" border="0" alt="{$lang->items['LANG_GLOBAL_PMS']}" title="{$lang->items['LANG_GLOBAL_PMS']}" /></a></then>
- <else><a href="register.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_register.gif" border="0" alt="{$lang->items['LANG_GLOBAL_REGISTER']}" title="{$lang->items['LANG_GLOBAL_REGISTER']}" /></a></else></if>
- <a href="calendar.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_calendar.gif" border="0" alt="{$lang->items['LANG_GLOBAL_CALENDAR']}" title="{$lang->items['LANG_GLOBAL_CALENDAR']}" /></a>
- <a href="memberslist.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_members.gif" border="0" alt="{$lang->items['LANG_GLOBAL_MEMBERSLIST']}" title="{$lang->items['LANG_GLOBAL_MEMBERSLIST']}" /></a>
- <a href="team.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_team.gif" border="0" alt="{$lang->items['LANG_GLOBAL_TEAM']}" title="{$lang->items['LANG_GLOBAL_TEAM']}" /></a>
- <a href="search.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_search.gif" border="0" alt="{$lang->items['LANG_GLOBAL_SEARCH']}" title="{$lang->items['LANG_GLOBAL_SEARCH']}" /></a>
- <a href="misc.php?action=faq{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/top_faq.gif" border="0" alt="{$lang->items['LANG_GLOBAL_FAQ']}" title="{$lang->items['LANG_GLOBAL_FAQ']}" /></a>
- <if($wbbuserdata['a_can_use_acp']==1 && $wbbuserdata['a_acp_or_mcp']==1)><then><a href="acp/index.php" target="_blank"><img src="{$style['imagefolder']}/top_acp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_ACP']}" title="{$lang->items['LANG_GLOBAL_ACP']}" /></a></then></if>
- <if($wbbuserdata['a_can_use_acp']==1 && $wbbuserdata['a_acp_or_mcp']==0)><then><a href="acp/index.php" target="_blank"><img src="{$style['imagefolder']}/top_modcp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_MODCP']}" title="{$lang->items['LANG_GLOBAL_MODCP']}" /></a></then></if>
- <?php
- $datum = getdate(time());
- $link = 'index.php';
- if($datum['weekday'] == 'Saturday')
- {
- if($datum['hours'] >= 9 and ($datum['hours'] <= 23))
- {
- $link = 'hmportal.php';
- }
- }
- ?>
- <a href="index.php"><img src="{$style['imagefolder']}/top_start.gif" border="0" alt="{$lang->items['LANG_GLOBAL_TOINDEX']}" title="{$lang->items['LANG_GLOBAL_TOINDEX']}" /></a></span></td>
- </tr>
- <table colspan="10" align="center"><span class="smallfont">
- <if($stylescount!=1)><then><br><select onchange="window.location=('index.php?action=style&styleid='+this.options[this.selectedIndex].value)+'{$SID_ARG_2ND}'" name="styleid">
- <option value="0" selected="selected">{$lang->items['LANG_PERS_STYLEWAHL']}</option>
- <option value="0">--------------------</option>
- $stylesname
- </select><br /></then></if><br>
- </table><br />
Es handelt sich um den IndexLink, der sich ändern soll und das, was da so einzeln zwischend en ganzen Navi-Links steht ist der kleine Zusatz, den ich eingefügt habe... aber wie gesagt, der Fehler kommt, also wird iwas wohl falsch sein...
Kann mir vllt jemand helfen???
Besten Dank im Vorraus schon einmal
