1
burfodus
using language constants
  • 2009/3/24 5:48

  • burfodus

  • Just popping in

  • Posts: 94

  • Since: 2008/9/2 1


im just getting a little stuck on somethign simple.

i have set 6 language constants, and they work with this code

echo '<table width="100" border="0">
<tr>
<td bgcolor="#99CC99">'
.TT_NAME.'</td>
<td bgcolor="#66CC99">'
.TT_EMAIL.'</td>
</tr>'
;
echo 
'</table>';


but it doesnt when I put simply

echo '.TT_NAME.';


or several variations of this syntax.

can someone please give me a quick pointer as to why this is?

thanks heaps
steve.
XOOPS Version - XOOPS 2.3.2
PHP Version - 5.2.6
MySQL Version - 5.0.67-community
Server API Version - apache2handler
OS Version - WINNT

2
Catzwolf
Re: using language constants
  • 2009/3/24 5:57

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


Quote:

burfodus wrote:
im just getting a little stuck on somethign simple.

i have set 6 language constants, and they work with this code

echo '<table width="100" border="0">
<tr>
<td bgcolor="#99CC99">'
.TT_NAME.'</td>
<td bgcolor="#66CC99">'
.TT_EMAIL.'</td>
</tr>'
;
echo 
'</table>';


but it doesnt when I put simply

echo '.TT_NAME.';


or several variations of this syntax.

can someone please give me a quick pointer as to why this is?

thanks heaps
steve.


Try this instead:

echo TT_NAME;


Catz

3
burfodus
Re: using language constants
  • 2009/3/24 6:07

  • burfodus

  • Just popping in

  • Posts: 94

  • Since: 2008/9/2 1


OMG lol.

tried every combination of ' " . etc..lol

thanks.
steve
XOOPS Version - XOOPS 2.3.2
PHP Version - 5.2.6
MySQL Version - 5.0.67-community
Server API Version - apache2handler
OS Version - WINNT

4
burfodus
Re: using language constants
  • 2009/3/24 6:10

  • burfodus

  • Just popping in

  • Posts: 94

  • Since: 2008/9/2 1


ok so how do i write it in a line of text

echo 'iwant my text to go before TT_NAME and after it';


??
thanks
steve
XOOPS Version - XOOPS 2.3.2
PHP Version - 5.2.6
MySQL Version - 5.0.67-community
Server API Version - apache2handler
OS Version - WINNT

5
burfodus
Re: using language constants
  • 2009/3/24 6:23

  • burfodus

  • Just popping in

  • Posts: 94

  • Since: 2008/9/2 1


is ok, sorted it out

echo "this is a test ".CUE_ADPLAYERS." and another test";


through trial an error lol.

thanks for your help.
steve.
XOOPS Version - XOOPS 2.3.2
PHP Version - 5.2.6
MySQL Version - 5.0.67-community
Server API Version - apache2handler
OS Version - WINNT

Login

Who's Online

144 user(s) are online (101 user(s) are browsing Support Forums)


Members: 0


Guests: 144


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits