Strange error

Display what gems jewelcrafters can make

Moderator: titan99

Strange error

Postby Krisan » Fri May 18, 2007 1:35 am

Hi
My Gems Disply addon looks like this:
Image
some one have a solution to the problem?

And this is the Html source code:
Code: Select all
<h1>Gems</h1><br><table cellspacing="0" cellpadding="0" border="0">
   <tr>
      <td class="simplebordertopleft sgraybordertopleft"></td>
      <td class="simplebordertop sgraybordertop"></td>
      <td class="simplebordertopright sgraybordertopright"></td>
   </tr>

   <tr>
      <td class="simplebordercenterleft sgraybordercenterleft"></td>
      <th class="simpleborderheader sgrayborderheader" align="center" valign="top">
         <?=$Gem_info[$roster_conf['roster_lang']]['Gem_title']?> : <span style="color:<?=$keyColor[$color]?>;"><?=ucfirst($couleur)?></span>
      </th>
      <td class="simplebordercenterright sgraybordercenterright"></td>
   </tr>
   <tr>

      <td class="simplebordercenterleft sgraybordercenterleft"></td>
      <td class="simplebordercenter">
         <table width="100%" class="bodyline" cellspacing="0" id="table_0">
            <tr>
               <th class="membersHeader"><?=$Gem_info[$roster_conf['roster_lang']]['Objet']?></th>
               <th class="membersHeader"><?=$Gem_info[$roster_conf['roster_lang']]['Name']?></th>
               <th class="membersHeader"><?=$Gem_info[$roster_conf['roster_lang']]['compo']?></th>
               <th class="membersHeader"><?=$Gem_info[$roster_conf['roster_lang']]['crafter']?></th>
            </tr>

         </table>
      </td>
      <td class="simplebordercenterright sgraybordercenterright"></td>
   </tr>
   <tr>
      <td class="simpleborderbotleft sgrayborderbotleft"></td>
      <td class="simpleborderbot sgrayborderbot"></td>
      <td class="simpleborderbotright sgrayborderbotright"></td>
   </tr>

</table>
<br>


And the PHP code from the index.php file:
Code: Select all


Thx In advance
Krisan
P.s Sorry for my Bad English
Last edited by Krisan on Fri May 18, 2007 1:41 am, edited 1 time in total.
Krisan
WR.net Apprentice
WR.net Apprentice
 
Posts: 2
Joined: Fri Mar 30, 2007 3:53 am

Strange error

Postby zanix » Fri May 18, 2007 9:20 am

You have errors because this is coded with php short tags
Code: Select all
<?=

For compatibility for all server, it should be
Code: Select all
<?php echo


It even says in our addon sdk to not use short tags
http://www.wowroster.net/wiki/index.php ... f_an_addon
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Strange error

Postby Krisan » Sat May 19, 2007 12:42 am

Thx everythig works fine now :thumright:
Krisan
WR.net Apprentice
WR.net Apprentice
 
Posts: 2
Joined: Fri Mar 30, 2007 3:53 am


Return to Gems Display

Who is online

Users browsing this forum: No registered users and 0 guests

cron