Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-07-07 13:13:05

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Creating a sidebar with image ads

Have a form which currently contains a list of links like so:

<a href=“http://www.example.com” target=”_blank”><img src=“http://example.com/images/ads/myimage.gif” width=“125” height=“170” border=“0”></a>

Trying to think of a way that I can automatise the process of displaying ads (all of which are images, most of which should open in a new window) using a plugin or a TXP tag.

I have created a new image category called “sidebar-image-ads” and place all images in that category. Trouble is, I have a block figuring out a great and simple way to pull them all into my form, to be outputted in the page…!

Offline

#2 2007-07-07 14:59:57

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: Creating a sidebar with image ads

havent tried this plugin but maybe something like this?

Last edited by iblastoff (2007-07-07 15:00:15)

Offline

#3 2007-07-07 17:49:55

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Creating a sidebar with image ads

Yes tried that plugin – smd_random_banner – but it outputs only a random image, not a sequence of images from a category. I was thinking of wet_for_each_image, but not sure its right for this, as I need a series of external links for the banners.

Offline

#4 2007-07-20 09:02:46

cdtavijit
Member
From: Malaysia
Registered: 2007-07-20
Posts: 14
Website

Re: Creating a sidebar with image ads

Hi Lamda,
I think you can use that and get what you want. I have done something similar. What I did was, I put this in my form :

<txp:smd_random_banner category=“advertisement” link_in=“caption” referer=”“ limit=“6” imgclass=“randomBanner”/>

And in my main css I added this:

.randomBanner {
margin: 4px 2px 4px 2px;
}

Once my site is up I can probably show you an example. But in summary, you can use this plugin. Its very good.

Offline

Board footer

Powered by FluxBB