News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Help! Getting a flag to display

Started by PopLife, January 07, 2006, 09:57:53 PM

Previous topic - Next topic

PopLife

Hey guys, I am trying to get a flag selection (in profile.template.php) to appear in my display.template, and I have tried this code, which doesn't show any change at all.

<img src="http://www.tennis-forums.com/forums/flags/';, $context['member']['options']['text_flag'], '.png"></img>';

Any ideas?

dont bump posts..

sorry!

1MileCrash

where is  $context['member']['options']['text_flag'] defined?
The only thing php can't do is tell you how much milk is left in the fridge.



PopLife


PopLife

I have also tried-

</tr><tr> <td><b>Flag: <img src="http://www.tennis-forums.com/forums/flags/', $context['member']['options']['text_flag'], '.png" alt="', $context['member']['options']['text_flag'], '" /> </b></td> <td>', isset($context['member']['options']['text_flag']) ? $context['member']['options']['text_flag'] : '', '</td>

Advertisement: