Règles du forum

Si vous rencontrez un bug lié à FSB2, merci de le poster dans le forum des rapports de bugs.
Nouveau sujet Répondre Imprimer Syndication RSS 2.0

CSS IE 6 problem big code massiv

Nouvelle étincelle
Avatar de viprus
  • Age : 25 ans
  • Messages : 6
  • Inscrit : 04 Mai 2008
  Lien vers ce message 28 Mai 2008, 20:35
CSS(?) IE 6 problem with big code volume,
when try use code=php

Please help :fsb2_goutte:
Example code:

 {include file='header.tpl'}



{* JAVASCRIPT FOR ROLLOVERS *}

{literal}

<script language="JavaScript">

<!-- 

  Rollimage0 = new Array()

  Rollimage1 = new Array()

  Rollimage0['join']= new Image(204,36);

  Rollimage0['join'].src = "./images/home_join.gif";

  Rollimage1['join'] = new Image(204,36);

  Rollimage1['join'].src = "./images/home_join2.gif";



  function SwapOut(imgname, imgsrc) {

    imgname.src = Rollimage1[imgsrc].src;

    return true;

  }

  function SwapBack(imgname, imgsrc) {

    imgname.src = Rollimage0[imgsrc].src; 

    return true;

  }

//-->

</script>

{/literal}



<table cellpadding='0' cellspacing='0' width='100%'>

<tr>

<td valign='top'>

  <img src='./images/world.png' border='0'>

</td>

<td class='portal_text'>

  <b>{$home1}</b> {$home2}

  <br><br>

  <a href='signup.php'><img src='./images/home_join.gif' border='0' onMouseOver="SwapOut(this, 'join')" onMouseOut="SwapBack(this, 'join')" name='join'></a>

</td>

</tr>

</table>



<br>



<table cellpadding='0' cellspacing='0' width='100%'>

<tr>

<td valign='top' width='190'>

{* BEGIN LEFT COLUMN CONTENT *}



  {* SHOW LOGIN FORM IF USER IS NOT LOGGED IN *}

  {if $user->user_exists == 0}

    <table cellpadding='0' cellspacing='0' class='portal_table' width='100%'>

    <tr><td class='header'>{$home3}</td></tr>

    <tr>

    <td class='portal_box'>

      <form action='login.php' method='post'>

      <table cellpadding='0' cellspacing='0' align='center'>

      <tr><td>{$home4}<br><input type='text' class='text' name='email' size='25' maxlength='100' value='{$prev_email}'></td></tr>

      <tr><td style='padding-top: 6px;'>{$home5}<br><input type='password' class='text' name='password' size='25' maxlength='100'></td></tr>

      <tr><td style='padding-top: 6px;'><input type='checkbox' class='checkbox' name='persistent' value='1' id='rememberme'> <label for='rememberme'>{$home14}</label></td></tr>

      <tr>

        <td style='padding-top: 6px;'>

          <table cellpadding='0' cellspacing='0'>

          <tr>

          <td>

            <input type='submit' class='button' value='{$home6}'>&nbsp;

            <NOSCRIPT><input type='hidden' name='javascript_disabled' value='1'></NOSCRIPT>

            <input type='hidden' name='task' value='dologin'>

            <input type='hidden' name='ip' value='{$ip}'>

            </form>

          </td>

          <td>

            <form action='signup.php' method='post'>

            <input type='submit' class='button' value='{$home7}'>

            </form>

          </td>

          </tr>

          </table>

        </td>

      </tr>

      </table>

    </td>

    </tr>

    </table>



  {* SHOW HELLO MESSAGE IF USER IS LOGGED IN *}

  {else}

    <table cellpadding='0' cellspacing='0' class='portal_table' width='100%'>

    <tr>

    <td class='portal_login'>

      <a href='{$url->url_create('profile',$user->user_info.user_username)}'><img src='{$user->user_photo("./images/nophoto.gif")}' width='{$misc->photo_size($user->user_photo("./images/nophoto.gif"),'90','90','w')}' border='0' class='photo' alt="{$user->user_info.user_username}{$home8}"></a>

      <br>{$home9} {$user->user_info.user_username}!

      <br>[ <a href='user_logout.php'>{$home10}</a> ]

    </td>

    </tr>

    </table>

  {/if}

{* CHAT LIST *}

<table cellpadding='0' cellspacing='0' class='portal_table' width='100%'>

<tr><td class='header'>In the Chat</td></tr>

<tr>

<td class='portal_box'>

{section name=chatusers_loop loop=$chatusers}

{$chatusers[chatusers_loop].chatuser_user_username}

{if $smarty.section.chatusers_loop.last != true}, {/if}

{sectionelse}

No users chatting right now

{/section}

</td>

</tr>

</table>

{* SHOW ONLINE USERS IF MORE THAN ZERO *}

{if $online_users|@count > 0 || $total_visitors > 0}

<table cellpadding='0' cellspacing='0' class='portal_table' align='center' width='100%'>

<tr><td class='header'>{math equation='x+y' x=$online_users|@count y=$total_visitors} active users</td></tr>

<tr>

<td class='portal_box'>

{section name=online_users_loop loop=$online_users max=20}

{if $smarty.section.online_users_loop.rownum != 1}, {/if}

<a href='{$url->url_create('profile',$online_users[online_users_loop])}'>{$online_users[online_users_loop]}</a>

{/section}

{if $total_visitors != 0}{if $online_users|@count != 0}, and {/if}{$total_visitors} guests{/if}

</td>

</tr>

</table>

{/if}

  {* SHOW NETWORK STATISTICS *}

  <table cellpadding='0' cellspacing='0' class='portal_table' width='100%'>

  <tr><td class='header'>{$home11}</td></tr>

  <tr>

  <td class='portal_box'>

    &#149; {$home12} {$total_members} {$home13}

    {if $setting.setting_connection_allow != 0}<br>&#149; {$home18} {$total_friends} {$home19}{/if}

    <br>&#149; {$home24} {$total_comments} {$home25}

  </td>

  </tr>

  </table>



</td>

<td valign='top' style='padding-left: 10px;'>

{* BEGIN RIGHT COLUMN CONTENT *}



  {* SHOW RECENT NEWS ANNOUNCEMENTS IF MORE THAN ZERO *}  

  {if $news_total > 0}

    <table cellpadding='0' cellspacing='0' class='portal_table' width='100%'>

    <tr><td class='header'>{$home26}</td></tr>

    <tr>

    <td class='portal_box'>

      {section name=news_loop loop=$news max=5}

        <table cellpadding='0' cellspacing='0'>

        <tr>

        <td valign='top'><img src='./images/icons/news16.gif' border='0' class='icon'></td>

        <td valign='top'><b>{$news[news_loop].item_subject}</b><br>{$news[news_loop].item_date}<br>{$news[news_loop].item_body}</td>

        </tr>

        </table>

        {if $smarty.section.news_loop.last == false}<br>{/if}

      {/section}

    </td>

    </tr>

    </table>

  {/if}



<table cellpadding='0' cellspacing='0' class='portal_table' width='100%' align='center'>

<tr><td class='header'>Upcoming Events</td></tr>

<tr>

<td class='portal_box'>

{section name=event_loop loop=$events max=5}

<table cellpadding='0' cellspacing='0'>

<tr>

<td valign='top' style='padding-right: 7px;'>

<a href='event.php?event_id={$events[event_loop].event->event_info.event_id}'>

<img src='{$events[event_loop].event->event_photo('./images/nophoto.gif')}' class='photo' width='{$misc->photo_size($events[event_loop].event->event_photo('./images/nophoto.gif'),'100','100','w')}' border='0'>

</a>

</td>

<td valign='top'>

<div><font class='big'>

<img src='./images/icons/event16.gif' border='0' class='icon'>

<a href='event.php?event_id={$events[event_loop].event->event_info.event_id}'>

{$events[event_loop].event->event_info.event_title}

</a></font></div>

<table cellpadding='0' cellspacing='0'>

{assign var=event_date_start value=$datetime->timezone($events[event_loop].event->event_info.event_date_start, $global_timezone)}

{assign var=event_date_end value=$datetime->timezone($events[event_loop].event->event_info.event_date_end, $global_timezone)}

{if $datetime->cdate("F j, Y", $event_date_start) == $datetime->cdate("F j, Y", $event_date_end)}

{assign var=start_dateformat value="`$setting.setting_dateformat` from `$setting.setting_timeformat`"}

{assign var=end_dateformat value=$setting.setting_timeformat}

{else}

{assign var=start_dateformat value="`$setting.setting_dateformat`, `$setting.setting_timeformat`"}

{assign var=end_dateformat value="`$setting.setting_dateformat`, `$setting.setting_timeformat`"}

{/if}

<tr><td>When: </td><td>{$datetime->cdate("`$start_dateformat`", $event_date_start)} until {$datetime->cdate("`$end_dateformat`", $event_date_end)}</td></tr>

{if $events[event_loop].event->event_info.event_host != ""}<tr><td>Host: </td><td>{$events[event_loop].event->event_info.event_host}</td></tr>{/if}

</table>

<div style='padding-top: 5px;'>{$events[event_loop].event->event_info.event_desc|replace:'<br>':' '|truncate:300:"..."}</div>

</td>

</tr>

</table>

{if not $smarty.section.event_loop.last}<br>{/if}

{sectionelse}

There are no upcoming events.

{/section}

</td>

</tr>

</table>



  {* SHOW LAST SIGNUPS *}

  <table cellpadding='0' cellspacing='0' class='portal_table' align='center' width='100%'>

  <tr><td class='header'>{$home33}</td></tr>

  <tr>

  <td class='portal_box'>

    {if $signups|@count > 0}

      {section name=signups_loop loop=$signups max=5}

        {* START NEW ROW *}

        {cycle name="startrow" values="<table cellpadding='0' cellspacing='0' align='center'><tr>,,,,"}

       <td class='portal_member'><a href='{$url->url_create('profile',$signups[signups_loop]->user_info.user_username)}'>{$signups[signups_loop]->user_info.user_username|truncate:15:"...":true}<br><img src='{$signups[signups_loop]->user_photo('./images/nophoto.gif')}' class='photo' width='{$misc->photo_size($signups[signups_loop]->user_photo('./images/nophoto.gif'),'90','90','w')}' border='0'></a></td>

        {* END ROW AFTER 5 RESULTS *}

        {if $smarty.section.signups_loop.last == true}

          </tr></table>

        {else}

          {cycle name="endrow" values=",,,,</tr></table>"}

        {/if}

      {/section}

    {else}

      {$home34}

    {/if}

  </td>

  </tr>

  </table>





{* SHOW MOST POPULAR USERS (MOST FRIENDS) *}

{if $setting.setting_connection_allow != 0}

  <table cellpadding='0' cellspacing='0' class='portal_table' align='center' width='100%'>

  <tr><td class='header'>{$home35}</td></tr>

  <tr>

  <td class='portal_box'>

  {if $friends|@count > 0}

    {section name=friends_loop loop=$friends max=5}

      {* START NEW ROW *}

      {cycle name="startrow2" values="<table cellpadding='0' cellspacing='0' align='center'><tr>,,,,"}

      <td class='portal_member'><a href='{$url->url_create('profile',$friends[friends_loop].friend->user_info.user_username)}'>{$friends[friends_loop].friend->user_info.user_username|truncate:15}<br><img src='{$friends[friends_loop].friend->user_photo('./images/nophoto.gif')}' class='photo' width='{$misc->photo_size($friends[friends_loop].friend->user_photo('./images/nophoto.gif'),'90','90','w')}' border='0'></a><br>{$friends[friends_loop].total_friends} {$home36}</td>

      {* END ROW AFTER 5 RESULTS *}

      {if $smarty.section.friends_loop.last == true}

        </tr></table>

      {else}

        {cycle name="endrow2" values=",,,,</tr></table>"}

      {/if}

    {/section}

  {else}

    {$home37}

  {/if}

  </td>

  </tr>

  </table>

{/if}



{* SHOW LAST LOGINS *}

<table cellpadding='0' cellspacing='0' class='portal_table' align='center' width='100%'>

<tr><td class='header'>{$home38}</td></tr>

<tr>

<td class='portal_box'>

{if $logins|@count > 0}

  {section name=login_loop loop=$logins max=5}

    {* START NEW ROW *}

    {cycle name="startrow3" values="<table cellpadding='0' cellspacing='0' align='center'><tr>,,,,"}

    <td class='portal_member'><a href='{$url->url_create('profile',$logins[login_loop]->user_info.user_username)}'>{$logins[login_loop]->user_info.user_username}<br><img src='{$logins[login_loop]->user_photo('./images/nophoto.gif')}' class='photo' width='{$misc->photo_size($logins[login_loop]->user_photo('./images/nophoto.gif'),'90','90','w')}' border='0'></a></td>

    {* END ROW AFTER 5 RESULTS *}

    {if $smarty.section.login_loop.last == true}

      </tr></table>

    {else}

      {cycle name="endrow3" values=",,,,</tr></table>"}

    {/if}

  {/section}

{else}

  {$home39}

{/if}

</td>

</tr>

</table>



{* END RIGHT COLUMN *}

</td>

</tr>

</table>



{include file='footer.tpl'}
 
Volcan
Avatar de Spark
  • Messages : 1846
  • Inscrit : 24 Juin 2006
  Lien vers ce message 28 Mai 2008, 21:25
Hi,

This problem will not be corrected in futur, IE6 is obsolete. Tests with a big picture, the problem is the same one (it's large).


Mon site de jeux en réseau Hamachi :
http://www.jeux-reseau.fr
Le forum :
http://forum.jeux-reseau.fr
 
Equipe des MODS
Avatar de Grummfy
  • Age : 23 ans
  • Messages : 5348
  • Inscrit : 16 Septembre 2004
  Lien vers ce message 28 Mai 2008, 21:27
Hello,
your code are not from FSB's forum

This is the support for the script call fire soft board (fsb).

sorry


"La gravité est le bonheur des imbéciles" Charles de Montesquieu > "T'as raison, L'apesanteur c'est plus rigolo" Hébus de Phalompe (Troll de Troy)
http://www.grummfy.com/download/crea/smileys/fsb2.gif Mods fsb1 - Mods fsb2 - Mon forum - Grummfy's project
 
Volcan
Avatar de Spark
  • Messages : 1846
  • Inscrit : 24 Juin 2006
  Lien vers ce message 28 Mai 2008, 21:29
Tien on a pas compris la même chose :p


Mon site de jeux en réseau Hamachi :
http://www.jeux-reseau.fr
Le forum :
http://forum.jeux-reseau.fr
 
Etoile
Avatar de BlackJowy
  • Age : 22 ans
  • Messages : 3281
  • Inscrit : 01 Mars 2007
  Lien vers ce message 28 Mai 2008, 23:24
@Grummfy: Check before blamming him :lol: He just posted this code to show the bug, very ugly and looooong under IE6 :D


"It's backup day today so I'm pissed off. Being the BOFH, however, does have it's advantages. I reassign null to be the tape device — it's so much more economical on my time as I don't have to keep getting up to change tapes every 5 minutes. And it speeds up backups too, so it can't be all bad can it? Of course not." S.Travaglia

 
Equipe de support
Avatar de B.Moncef
  • Age : 17 ans
  • Messages : 1859
  • Inscrit : 10 Septembre 2005
  Lien vers ce message 29 Mai 2008, 2:38
BJ > But this problem is not related to FSB, is it ? So it shouldn't be posted in the "Support général pour FSB2" forum.
 
Etoile
Avatar de BlackJowy
  • Age : 22 ans
  • Messages : 3281
  • Inscrit : 01 Mars 2007
  Lien vers ce message 29 Mai 2008, 8:51
Bah c'est toujours la faute des navigateurs hein :p Mais reste que ça bu sous IE6, si on part du principe que les bugs dûs aux navigateurs ne sont pas des bugs FSB et donc pas des bugs à corriger, faudra m'expliquer beaucoup de chose sur le code source de FSB qui étrangement prévoyent IE6, IE7, Safari etc ...

Après si effectivement Genova a décidé de ne plus se faire chier pour IE6 en dehors de ce qui est déjà présent, c'est une autre histoire :D


"It's backup day today so I'm pissed off. Being the BOFH, however, does have it's advantages. I reassign null to be the tape device — it's so much more economical on my time as I don't have to keep getting up to change tapes every 5 minutes. And it speeds up backups too, so it can't be all bad can it? Of course not." S.Travaglia

 
Volcan
Avatar de Spark
  • Messages : 1846
  • Inscrit : 24 Juin 2006
  Lien vers ce message 29 Mai 2008, 14:29
Non mais même IPB2 qui est payant à le même bug.


Mon site de jeux en réseau Hamachi :
http://www.jeux-reseau.fr
Le forum :
http://forum.jeux-reseau.fr
 
Nouvelle étincelle
Avatar de viprus
  • Age : 25 ans
  • Messages : 6
  • Inscrit : 04 Mai 2008
  Lien vers ce message 31 Mai 2008, 8:03
@Grummfy: Check before blamming him :lol: He just posted this code to show the bug, very ugly and looooong under IE6 :D


yeeeah!!! code is just example :lol:
thanks friends for you attention, i understand! My users will use Opera, it vews correct ;-)
 
Etoile
Avatar de BlackJowy
  • Age : 22 ans
  • Messages : 3281
  • Inscrit : 01 Mars 2007
  Lien vers ce message 01 Juin 2008, 17:41
Opera, Firefox, Safari or just IE7 :D


"It's backup day today so I'm pissed off. Being the BOFH, however, does have it's advantages. I reassign null to be the tape device — it's so much more economical on my time as I don't have to keep getting up to change tapes every 5 minutes. And it speeds up backups too, so it can't be all bad can it? Of course not." S.Travaglia

 
Répondre


.