Submit step 2 image link

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 03-08-2008, 08:29 PM
Casual Pligger
Pligg Version: 9.9
Pligg Template: default
 
Join Date: Jan 2008
Posts: 46
In my .tpl file there is a code as it posted below


Quote:
<img src="{$link_field1}" height="100px" alt="Resim Yok" style="float:left; padding-right:10px;padding-top:0px;"/>
What this does is that when the user inserts a image url when making a post then the image is showed on the page, but if the user does not enter a image url then the image location has "X" no image icon.

I would like to need help with the coding that when there is No image url submitted then the image location should be empty instead of "x"

I should write a code smilar to this

Quote:
{if $link_field1 eq notnull}
<img src="{$link_field1}" height="100px" alt="Resim Yok" style="float:left; padding-right:10px;padding-top:0px;"/>
{else}
leave it empty
{/if}
Reply With Quote
  #2 (permalink)  
Old 03-08-2008, 08:47 PM
Casual Pligger
Pligg Version: 9.9
Pligg Template: default
 
Join Date: Jan 2008
Posts: 46
This solved my problem
Quote:
{if $link_field1}
<img src="{$link_field1}" height="100px" alt="Resim Yok" style="float:left; padding-right:10px;padding-top:0px;"/>
{else}
{/if}
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Upload Module (File and Image Attachment) Yankidank Free Modules 268 02-03-2012 12:19 PM
Auto submit story on submit step 3 for god only gnalkit Questions and Comments 3 03-30-2011 01:09 AM
duplicate news items and lost data in submit step 2 malexs Questions and Comments 3 05-05-2009 05:32 PM
Problem in step 3 for submit story with image. jitu Questions and Comments 0 08-20-2007 09:40 AM
submit a new link, step 2 of 3 is error??!! pop Questions and Comments 2 06-22-2006 08:07 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development