Einbau der Shoutbox von XundY
#5
Ja klar hie bitte schön, erstmal die index, so wie sie im moment ist:

Code:
<?xml version="1.0" encoding="{$lang->items['LANG_GLOBAL_ENCODING']}"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{$lang->items['LANG_GLOBAL_DIRECTION']}" lang="{$lang->items['LANG_GLOBAL_LANGCODE']}" xml:lang="{$lang->items['LANG_GLOBAL_LANGCODE']}">
<head>
<title>$master_board_name | {$lang->items['LANG_START_TITLE']}</title>
$headinclude
</head>

<body>
$header
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
<if($wbbuserdata['userid']==0)>
  <then>
   <tr>
    <td class="tablea" align="left"><span class="normalfont"><b>{$lang->items['LANG_START_WELCOME_TITLE']}</b></span></td>
   </tr>
   <tr>
    <td class="tableb" align="left" style="text-align: justify"><span class="smallfont">{$lang->items['LANG_START_WELCOME']}</span></td>
   </tr>
  </then>

  <else>
   <tr>
    <td class="tablea"><table style="width:100%" cellspacing="0" cellpadding="0" border="0">
     <tr class="tablea_fc">
      <td align="left"><span class="smallfont">{$lang->items['LANG_START_WELCOMEBACK']} <b>$usercbar_username</b> <a href="logout.php{$SID_ARG_1ST}">{$lang->items['LANG_START_LOGOUT']}</a><br /><b><a href="search.php?action=new{$SID_ARG_2ND}">{$lang->items['LANG_START_NEWPOSTS']} $lastvisitdate <span class="time">$lastvisittime</span>.</span></td>
      <td align="right"><span class="smallfont">{$lang->items['LANG_START_CURRENTTIME']} <span class="time">$currenttime</span>.<br />{$lang->items['LANG_START_TIMEZONE']}</span></td>
     </tr>
    </table></td>
   </tr>
  </else>
</if>

</table><br />

$shoutbox
<p>

<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
<tr>
  <td class="tabletitle"><span class="smallfont">&nbsp;</span></td>
  <td class="tabletitle" style="width:<if($hide_modcell==0)><then>80</then><else>100</else></if>%" align="left"><span class="smallfont"><b>{$lang->items['LANG_START_BOARDS']}</b></span></td>
  <td class="tabletitle" align="center"><span class="smallfont"><b>{$lang->items['LANG_START_POSTS']}</b></span></td>
  <td class="tabletitle" align="center"><span class="smallfont"><b>{$lang->items['LANG_START_THREADS']}</b></span></td>
  <td class="tabletitle" align="center" nowrap="nowrap"><span class="smallfont"><b>{$lang->items['LANG_START_LASTPOST']}</b></span></td>
  <if($hide_modcell==0)><then><td class="tabletitle" style="width:20%" align="center"><span class="smallfont"><b>{$lang->items['LANG_START_MODERATORS']}</b></span></td></then></if>
</tr>

$boardbit

<if($showuseronline==1)>
  <then>
  
   <tr>
    <td class="tabletitle" colspan="<if($hide_modcell==0)><then>6</then><else>5</else></if>" align="left"><span class="smallfont"><b><a href="wiw.php{$SID_ARG_1ST}">{$lang->items['LANG_START_SHOWUSERONLINE']}</a></b></span></td>
   </tr>
   <tr>
    <td rowspan="2" class="tableb" align="center"><img src="{$style['imagefolder']}/online.gif" alt="" title="" /></td>
    <td colspan="<if($hide_modcell==0)><then>5</then><else>4</else></if>" class="tablea" align="left"><span class="smallfont">{$lang->items['LANG_START_USERONLINE']}</span></td>
   </tr>
   <tr>
    <td class="tablea" colspan="<if($hide_modcell==0)><then>5</then><else>4</else></if>" align="left"><span class="smallfont"><if($useronline=="")><then>&nbsp;</then></if>$useronline</span></td>
   </tr>    
  
  </then>
</if>

<!-- Wer War Da Anfang -->
<if($showuservisited==1)><then>
<tr><td class="tabletitle" colspan="<if($hide_modcell==0)><then>6</then><else>5</else></if>" align="left"><span class="smallfont"><b>{$lang->items['LANG_START_SHOWUSERVISITED']}</b></span></td></tr>
<tr><td rowspan="2" class="tableb" align="center"><img src="{$style['imagefolder']}/online.gif" alt="" title="" /></td><td colspan="<if($hide_modcell==0)><then>5</then><else>4</else></if>" class="tablea" align="left"><span class="smallfont">{$lang->items['LANG_START_USERVISITED']}</span></td></tr>
<tr><td class="tablea" colspan="<if($hide_modcell==0)><then>5</then><else>4</else></if>" align="left"><span class="smallfont"><if($uservisited=="")><then>&nbsp;</then></if>$uservisited</span></td></tr>    
</then></if>
<!-- Wer War Da Ende -->

<if($showpmonindex==1 && $wbbuserdata['userid']!=0 && $wbbuserdata['can_use_pms']==1 && $wbbuserdata['receivepm']==1)>
  <then>
   <tr>
    <td class="tabletitle" align="left" colspan="<if($hide_modcell==0)><then>6</then><else>5</else></if>"><span class="smallfont"><b>{$lang->items['LANG_START_PM']}</b></span></td>
   </tr>
   <tr>
    <td align="center" class="tableb"><if($countnew>0)>
     <then><img src="{$style['imagefolder']}/on.gif" alt="{$lang->items['LANG_START_NEWPM']}" title="{$lang->items['LANG_START_NEWPM']}" /></then>
     <else><img src="{$style['imagefolder']}/off.gif" alt="{$lang->items['LANG_START_NONEWPM']}" title="{$lang->items['LANG_START_NONEWPM']}" /></else>
    </if></td>
    <td align="left" colspan="<if($hide_modcell==0)><then>5</then><else>4</else></if>" class="tablea"><span class="smallfont"><b><a href="pms.php{$SID_ARG_1ST}">{$lang->items['LANG_START_PMIN']}</a></b><br />{$lang->items['LANG_START_PMS']}</span></td>
   </tr>  
  
  </then>
</if>

<if(isset($birthdaybit) || isset($eventbit))>
  <then>
   <tr>
    <td class="tabletitle" align="left" colspan="<if($hide_modcell==0)><then>6</then><else>5</else></if>"><span class="smallfont"><b>{$lang->items['LANG_START_SHOWEVENTS']}</b></span></td>
   </tr>
  
   <if(isset($birthdaybit))>
    <then>
     <tr>
      <td class="tableb" align="center"><img src="{$style['imagefolder']}/birthday.gif" alt="" title="" border="0" /></td>
      <td class="tablea" colspan="<if($hide_modcell==0)><then>5</then><else>4</else></if>" align="left"><span class="smallfont"><b>{$lang->items['LANG_START_BIRTHDAY']}</b><br />$birthdaybit</span></td>
     </tr>
    </then>
   </if>
  
   <if(isset($eventbit))>
    <then>
     <tr>
      <td class="tableb" align="center"><img src="{$style['imagefolder']}/events.gif" alt="" title="" border="0" /></td>
      <td class="tablea" colspan="<if($hide_modcell==0)><then>5</then><else>4</else></if>" align="left"><span class="smallfont"><b>{$lang->items['LANG_START_TODAYEVENT']}</b><br />$eventbit</span></td>
     </tr>
    </then>
   </if>
  </then>
</if>

<if($showstats==1)>
  <then>
   <tr>
    <td class="tabletitle" align="left" colspan="<if($hide_modcell==0)><then>6</then><else>5</else></if>"><span class="smallfont"><b>{$lang->items['LANG_START_STATISTIC']}</b></span></td>
   </tr>
   <tr>
    <td class="tableb" align="center"><img src="{$style['imagefolder']}/stats.gif" alt="" border="0" /></td>
    <td colspan="<if($hide_modcell==0)><then>5</then><else>4</else></if>" class="tablea" align="left"><span class="smallfont">{$lang->items['LANG_START_STATISTIC_MEMBERS']} $stats[usercount] | {$lang->items['LANG_START_STATISTIC_THREADS']} $stats[threadcount] | {$lang->items['LANG_START_STATISTIC_POSTS']} $stats[postcount] ({$lang->items['LANG_START_STATISTIC_AVERAGE']} $postperday {$lang->items['LANG_START_STATISTIC_POSTPERDAY']})<br />
    {$lang->items['LANG_START_STATISTIC_NEWESTMEMBER']} <a href="profile.php?userid=$stats[lastuserid]{$SID_ARG_2ND}">$stats[username]</a>.</span></td>
   </tr>
  </then>
</if>
  
</table>

<if($wbbuserdata['userid']==0)>
<then>
  <br /><a name="login" id="login"></a>
  <if($allowloginencryption==1)><then>
  <script type="text/javascript" src="js/sha1.js"></script>
  <script type="text/javascript" src="js/crypt.js"></script>
  </then></if>
  <form method="post" action="login.php" name="loginform"<if($allowloginencryption==1)><then> onsubmit="return encryptlogin(this);"</then></if>>
  <input type="hidden" name="send" value="send" />
  <input type="hidden" name="sid" value="$session[hash]" />
  <if($allowloginencryption==1)><then>
  <input type="hidden" name="authentificationcode" value="$session[authentificationcode]" />
  <input type="hidden" name="crypted" value="false" /></then></if>
  <table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
   <tr>
    <td class="tabletitle" align="left"><span class="smallfont"><b>{$lang->items['LANG_START_LOGIN']}</b></span></td>
   </tr>
   <tr>
    <td class="tableb"><table cellpadding="0" cellspacing="5" align="center" class="tableb_fc">
     <tr>
      <td><span class="smallfont">{$lang->items['LANG_START_USERNAME']}</span></td>
      <td><span class="smallfont"><input type="text" name="l_username" maxlength="50" size="20" class="input" tabindex="1" />&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
      <td><span class="smallfont">{$lang->items['LANG_START_PASSWORD']} (<a href="forgotpw.php{$SID_ARG_1ST}">{$lang->items['LANG_START_LOSTPW']}</a>):</span></td>
      <td><span class="smallfont"><input type="password" name="l_password" maxlength="30" size="20" class="input" tabindex="2" />&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
      <if($allowloginencryption==1)><then>
      <td><span class="smallfont"><label for="checkbox1">{$lang->items['LANG_GLOBAL_ENCRYPT_TRANSFER']}</label></span></td>
      <td><span class="smallfont"><input type="checkbox" id="checkbox1" name="activateencryption" onclick="activate_loginencryption(document.loginform);" />&nbsp;&nbsp;&nbsp;&nbsp;</span></td></then></if>
      <td><input type="submit" value="{$lang->items['LANG_START_LOGIN']}" class="input" tabindex="3" /></td>
     </tr>
    </table></td>
   </tr>
  </table></form>
  <if($allowloginencryption==1)><then>
  <script type="text/javascript">
   <!--
    activate_loginencryption(document.loginform);
   //-->
  </script></then></if>
</then>
</if>

<table style="width:{$style['tableinwidth']}">
<tr>
  <td align="right"><span class="smallfont"><a href="search.php?action=24h{$SID_ARG_2ND}">{$lang->items['LANG_START_CURRENT_THREADS']}</a> | <a href="search.php?action=polls{$SID_ARG_2ND}">{$lang->items['LANG_START_CURRENT_POLLS']}</a> | <a href="markread.php{$SID_ARG_1ST}">{$lang->items['LANG_START_MARKREAD_ALL']}</a><if($show_archive == 1)><then> | <b><a href="archive/index.html">{$lang->items['LANG_START_ARCHIVE']}</a></b></then></if></span></td>
</tr>
</table><br />
<table>
<tr align="center">
  <td><img src="{$style['imagefolder']}/on.gif" alt="{$lang->items['LANG_START_NEW_POSTS']}" title="{$lang->items['LANG_START_NEW_POSTS']}" border="0" /></td>
  <td><span class="smallfont">{$lang->items['LANG_START_NEW_POSTS']}&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
  <td><img src="{$style['imagefolder']}/off.gif" alt="{$lang->items['LANG_START_NONEW_POSTS']}" title="{$lang->items['LANG_START_NONEW_POSTS']}" border="0" /></td>
  <td><span class="smallfont">{$lang->items['LANG_START_NONEW_POSTS']}&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
  <td><img src="{$style['imagefolder']}/offclosed.gif" alt="{$lang->items['LANG_START_BOARD_CLOSED']}" title="{$lang->items['LANG_START_BOARD_CLOSED']}" border="0" /></td>
  <td><span class="smallfont">{$lang->items['LANG_START_BOARD_CLOSED']}&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
  <td><img src="{$style['imagefolder']}/link.gif" alt="{$lang->items['LANG_START_BOARD_LINK']}" title="{$lang->items['LANG_START_BOARD_LINK']}" border="0" /></td>
  <td><span class="smallfont">{$lang->items['LANG_START_BOARD_LINK']}</span></td>
</tr>
</table>

$footer
</body>
</html>


UND HIER DIE SHOUTBOX:
(wie gesagt, normalerweise ist da noch ein </table><br /> tag, aber ich musste den rausmachen, sonst wäre im moment alles verschoben: http://forum.liquid-nitro.net )

Code:
<script type="text/javascript" src="./js/bbcode.js"></script>

<script type="text/javascript">
function clear() {

    document.bbform.message.value='';

}
</script>

<script language="JavaScript" type="text/javascript">
<!--
function mboxshow(id) {
if(document.getElementById)
   document.getElementById(id).style.display = "inline";
}
function mboxhide(id) {
if(document.getElementById)
   document.getElementById(id).style.display = "none";
}
//-->
</script>

<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
  <tr >
    $mboxsmiliesleft
   <td class="tableb"style="width:97%" align="center">
<table style="width:100%;">

<tr><td style="padding:3px;text-align:center;" colspan="2">
    <if($wbbuserdata['xy_can_shoutbox_admin'])>
     <then>
      <form  name="kill" action="xy_megashoutbox.php" method="post" target="chat">
       <input type="hidden" name="shouts" value="kill" >
       <input type="hidden" name="sid" value="$session[hash]" />
       <input type="submit" value="{$lang->items['LANG_XY_MEGASHOUTBOX_KILLALLFORM']}" style="vertical-align:center" />
      </form>
     </then>
     <else>
      <br />
     </else>
     </if>
     <iframe name="chat" src="xy_megashoutbox.php?page_shout=chat&amp;setting=$setting&amp;comment=$comment{$SID_ARG_2ND}" style="width:100%" height="150"></iframe>
</td></tr>
<tr>
  <td>
    <form name="bbform" action="xy_megashoutbox.php" method="post" target="chat" onsubmit="setTimeout('clear()',100)">
     <input type="hidden" name="setting" value="save" />
     <input type="hidden" name="sid" value="$session[hash]" />
     <input type="hidden" name="page_shout" value="chat" />
     <input type="button" value="{$lang->items['LANG_XY_MEGASHOUTBOX_SPECIALFORM']}" onclick="javascript:mboxshow('mboxspecial');"  class="input" ondblclick="javascript:mboxhide('mboxspecial');" />
     $mbox_specialmenu    
</td>
<td nowrap="nowrap">&nbsp;<a href="xy_megashoutbox.php?page_shout=chat{$SID_ARG_2ND}" target="chat"><img src="./sbox_img/refresh1.gif" id="mboxrefresh" border="0" style="vertical-align:middle" alt="{$lang->items['LANG_XY_MEGASHOUTBOX_REFRESH']}" title="{$lang->items['LANG_XY_MEGASHOUTBOX_REFRESH']}"  onmouseover="document.images.mboxrefresh.src='sbox_img/refresh.gif';" onmouseout="document.images.mboxrefresh.src='sbox_img/refresh1.gif';" /></a>&nbsp;<input type="text"  name="message" size="65" maxlength="$xy_megaboxinputlength" />&nbsp;<input type="submit" class="input" value="{$lang->items['LANG_XY_MEGASHOUTBOX_SHOUTFORM']}" />
</form>
</td>
</tr>
</table>

<div style="text-align:center"><span class="smallfont"><a href="http://www.xundy.com" target="_blank" style="text-decoration:none"><b>XundY Megashoutbox</b>&copy; V1.2</a></span></div>
</td>
$mboxsmiliesright
</tr>
</table>
  Zitieren


Nachrichten in diesem Thema
Einbau der Shoutbox von XundY - von [Shiek] - 24.05.2006, 07:14
[Kein Betreff] - von pattex - 24.05.2006, 13:04
[Kein Betreff] - von [Shiek] - 24.05.2006, 14:03
[Kein Betreff] - von pattex - 26.05.2006, 01:51
[Kein Betreff] - von [Shiek] - 26.05.2006, 07:33
[Kein Betreff] - von pattex - 26.05.2006, 08:26
[Kein Betreff] - von [Shiek] - 26.05.2006, 09:51
[Kein Betreff] - von [Shiek] - 26.05.2006, 10:09
[Kein Betreff] - von pattex - 26.05.2006, 13:21
[Kein Betreff] - von [Shiek] - 27.05.2006, 13:29

Gehe zu:


Benutzer, die gerade dieses Thema anschauen: 2 Gast/Gäste