1
lapsa2000
Contact V 1.7 - insert image ?
  • 2011/5/23 19:03

  • lapsa2000

  • Quite a regular

  • Posts: 247

  • Since: 2006/10/27


how to insert an image in the contact module? contact V1.7


Here:


Resized Image


Thancks !

2
JCash
Re: Contact V 1.7 - insert image ?
  • 2011/5/23 21:06

  • JCash

  • Just popping in

  • Posts: 66

  • Since: 2011/2/22


A custom block on the top of the form ?

Or edit contact form tpl. I do not use Contact 1.7, so I can't tell you more.

But if you use xForms (old name : Liaise), you could easily transform it.

Example :
xforms_form.html
<{if $form_is_hidden != ""}><p><b><{$form_is_hidden}></b></p><{/if}>

<{
$form_output.javascript}>
<
h1><{$form_output.title}></h1>
<{if 
$form_intro != ""}><p><{$form_intro}></p><{/if}>
<
form name="<{$form_output.name}>" id="<{$form_output.name}>" action="<{$form_output.action}>" method="<{$form_output.method}>" class="xforms" <{$form_output.extra}>>
    <
table class="pad20">
        <{foreach 
item=element from=$form_output.elements}>
        <{if 
$element.hidden != true}>
        <
tr>
        <{if 
$element.body == "" }>
            <
td colspan="2" class="top bold">
                <
div class="caption-alone"><{$element.caption}></div>
            </
td>
        <{else}>
            <
td class="top bold" style="padding-left: 25px; width: 200px;"><{$element.caption}></td>
            <
td><{$element.body}></td>
        <{/if}>
        </
tr>
        <{/if}>
        <{/foreach}>
    </
table>
    <{foreach 
item=element from=$form_output.elements}>
    <{if 
$element.hidden == true}>
        <{
$element.body}>
    <{/if}>
    <{/foreach}>

</
form>


Main tip is : <{if $element.body == "" }> ...

Good luck

3
lapsa2000
Re: Contact V 1.7 - insert image ?
  • 2011/5/24 6:58

  • lapsa2000

  • Quite a regular

  • Posts: 247

  • Since: 2006/10/27


thanks JCash for your answer, but do not know where to look in this module (Contact V 1.7), maybe someone who has used this module can guide me?


Login

Who's Online

86 user(s) are online (63 user(s) are browsing Support Forums)


Members: 0


Guests: 86


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