Jump to content

Ads or image in the footer (PS 1.5.3)


bobwoo

Recommended Posts

Hi,

 

Can you help me plz ?

I have four colums in my footer and i wish add a picture (with a link) or an ads in the two last colums, how can i do that ?

 

Thank you for help !

 

Sincerely,

 

Bob

 

PS : PS 1.5.3

Link to comment
Share on other sites

Hi Bobwoo,

 

You can just override blockcontactinfos/blockcontactinfos.tpl

 

(HOW to override: check if the file:

/themes/<your theme folder>/modules/blockcontactinfos/blockcontactinfos.tpl

 

already exists, if not copy it to this place from /modules/blockcontactinfos/blockcontactinfos.tpl

 

Then you can add links, add pictures as you like. I gave a small example here (just add the red text in the file:

 

 

<!-- MODULE Block contact infos -->
<div id="block_contact_infos">
<p class="title_block">{l s='Contact us' mod='blockcontactinfos'}</p>
<ul>
{if $blockcontactinfos_company != ''}<li><strong>{$blockcontactinfos_company|escape:'htmlall':'UTF-8'}</strong></li>{/if}
{if $blockcontactinfos_address != ''}<li><pre>{$blockcontactinfos_address|escape:'htmlall':'UTF-8'}</pre></li>{/if}
{if $blockcontactinfos_phone != ''}<li>{l s='Tel:' mod='blockcontactinfos'} {$blockcontactinfos_phone|escape:'htmlall':'UTF-8'}</li>{/if}
{if $blockcontactinfos_email != ''}<li>{l s='Email:' mod='blockcontactinfos'} {mailto address=$blockcontactinfos_email|escape:'htmlall':'UTF-8' encode="hex"}</li>{/if}

<a href="http://www.PhelineOnline.com">'>http://www.PhelineOnline.com">

<img src="http://i1164.photobucket.com/albums/q561/Pascalvangeest/PhelineOnlineLogoSmall.gif" alt="http://www.PhelineOnline.com" width="131" height="31"></a>

</ul>
</div>
<!-- /MODULE Block contact infos -->

 

The same you can do with file themes/<your theme folder>/modules/blocksocial/blocksocial.tpl

(if this file doesn't exist, you need to override by copying in to this place from /modules/blocksocial/blocksocial.tpl )

 

 

 

<div id="social_block">
<p class="title_block">{l s='Follow us' mod='blocksocial'}</p>
<ul>
{if $facebook_url != ''}<li class="facebook"><a href="{$facebook_url|escape:html:'UTF-8'}">{l s='Facebook' mod='blocksocial'}</a></li>{/if}
{if $twitter_url != ''}<li class="twitter"><a href="{$twitter_url|escape:html:'UTF-8'}">{l s='Twitter' mod='blocksocial'}</a></li>{/if}
{if $googleplus_url != ''}<li class="googleplus"><a href="{$googleplus_url|escape:html:'UTF-8'}">{l s='Google+' mod='blocksocial'}</a></li>{/if}
{if $rss_url != ''}<li class="rss"><a href="{$rss_url|escape:html:'UTF-8'}">{l s='RSS' mod='blocksocial'}</a></li>{/if}

<a href="http://www.PhelineOnline.com">'>http://www.PhelineOnline.com">

<img src="http://i1164.photobucket.com/albums/q561/Pascalvangeest/PhelineOnlineLogoSmall.gif" alt="http://www.PhelineOnline.com" width="131" height="31"></a>

 




</ul>
</div>


Hope this helps,

Pascal.

 

(N.B. Don't forget to start your links with "http://..." otherwise it will be a 'relative link' that starts with your own website)

  • Like 1
Link to comment
Share on other sites

Thank you all !

 

@PascalVG : your solutions put image below blocks social or contactinfos. Its not exactly what i need : image on the right or on the left of a column occupied by social/contactinfos blocks ...

 

@Vekia : i will try

Link to comment
Share on other sites

Can you draw something to make it more visible for me? Do you want a new column, next to the 3rd or 4th? Or span the picture to the left or right of one or more items in the 3rd or 4th column?

 

Please elaborate a little...

Pascal

 

(Tomorrow more, it's 3.37 AM here...)

Link to comment
Share on other sites

Just thought about using <div>'s and then just position wherever you want it: (add red text in addition to previous sample)

 

 

<!-- MODULE Block contact infos -->

<div id="block_contact_infos" style="position:relative;">

<p class="title_block">{l s='Contact us' mod='blockcontactinfos'}</p>

<ul>

{if $blockcontactinfos_company != ''}<li><strong>{$blockcontactinfos_company|escape:'htmlall':'UTF-8'}</strong></li>{/if}

{if $blockcontactinfos_address != ''}<li><pre>{$blockcontactinfos_address|escape:'htmlall':'UTF-8'}</pre></li>{/if}

{if $blockcontactinfos_phone != ''}<li>{l s='Tel:' mod='blockcontactinfos'} {$blockcontactinfos_phone|escape:'htmlall':'UTF-8'}</li>{/if}

{if $blockcontactinfos_email != ''}<li>{l s='Email:' mod='blockcontactinfos'} {mailto address=$blockcontactinfos_email|escape:'htmlall':'UTF-8' encode="hex"}</li>{/if}

<div id="free_ad_block" style="position:absolute; top:10px; left:10px;">

<a href="http://www.PhelineOnline.com">'>http://www.PhelineOnline.com">

<img src="http://i1164.photobucket.com/albums/q561/Pascalvangeest/PhelineOnlineLogoSmall.gif" alt="http://www.PhelineOnline.com" width="131" height="31"></a>

</div>

</ul>

</div>

<!-- /MODULE Block contact infos -->

 

Top and left you can adjust as wished of course...

 

Hope this does the trick,

pascal

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...