Jump to content

Help - how put images awards?


polirom

Recommended Posts

hello, how is the correct way to view the images in my airline awards, because I have added several images in my awards but only you can see letters, but the images do not appear.

I can not find the solution for any site

The image is well placed.

http://www.mundoairlines.org/webmaster/phpvms/lib/images/award/1000hours.jpg

this is the code I have put in profile_main.tpl

<img src="<?=php echo $award->image?>"/> alt="<?php echo $award->descrip?>" />

?>

<ul>

<?php foreach($allawards as $award){ ?>

<li><?php echo $award->name ?></li>

<?php } ?>

Link to comment
Share on other sites

I copied and pasted this line of poost and get this error

Parse error: syntax error, unexpected '<'in / home / Mundoo / public_html / webmaster / phpvms / lib / skins / ObsessBlue / profile_main.tpl on line 99

I do not know anything about php, if can tell me exactly how I have to do would be much appreciated

line 99 is:

<img src="<?=php echo $award->image?>" alt="<?php echo $award->descrip?>" />

Link to comment
Share on other sites

  • 3 weeks later...

STILL WITH THIS PROBLEM AND IF NOT I BE ABLE TO SETTLE

I do not understand programming and follow what is said in the forum as I can

		<p>
		<strong>Mis Medallas</strong><br />
		<?php
		if(!$allawards)
		{
			echo 'No awards yet';
		}
		else
		{	

			/* To show the image:
				<img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" />
			*/


		?>
		<ul>
			<?php foreach($allawards as $award){ ?>
			<li><?php echo $award->name ?></li>
			<?php } ?>


		</ul>	
		<?php
		}
		?>
	</p>

this is what I have in profile_main.tpl

if I delete "/ * To show the image," and "* /"

I get this error: Parse error: syntax error, unexpected '<' in /home/mundoair/public_html/webmaster/phpvms/lib/skins/ObsessBlue/profile_main.tpl on line 100

and the line 100 is: <img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" />

can help and tell me the steps?

Thanks

Link to comment
Share on other sites

Guest lorathon

Try This

<p>
		<strong>Mis Medallas</strong><br />
		<?php
		if(!$allawards)
		{
			echo 'No awards yet';
		}
		else
		{				

		?>
		<ul>
			<?php foreach($allawards as $award){ ?>
			<li><?php echo $award->name ?><img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" /></li>
			<?php } ?>


		</ul>	
		<?php
		}
		?>
	</p>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...