PDA

View Full Version : Show different code in Rotation


zoned
10-11-2008, 07:12 PM
Hi,

we need to be able to show different code each time a user changes from one page to another.

For example:

User A visits the site and we show them a picture under the Post Title within the thread.

They then go to a different thread on the site. We would like to show them some text with a link in place of the picture.

The next thread they visit would show the picture again and so on...

I have tried different rotators but they are all for just pictures.

Any help would be much appreciated,

regards

Zoned

Lynne
10-11-2008, 07:59 PM
Modify one of the modifications you have tried?

zoned
10-11-2008, 08:08 PM
Hi Lynne,

thanks for the reply.

I ma afraid I am not a programmer but I am very good at following directions.

I did see some code whereby one can specify a forum to show certain code in. I am thinking of using this but it seems very messy. I was hoping that someone might know of some neat piece of code to do what I need.

Once again, thanks,

regards

Zoned

King Kovifor
10-11-2008, 08:46 PM
Using an <if codition="$forum[forumid] == X"> your code </if> should do the trick.

zoned
10-11-2008, 08:52 PM
Thanks Jeremy,

thanks for the reply,

I have had a look at that code before but the problem I have is that I need say:

Code A to appear in Forum ID 1,3,5,7,9....
Code B to appear in Forum ID 2,4,6,8.....

I have a lot of forum IDs and thus the code will be extremly messy and cumbursome.

It would be nice to show the differnet code in different threads within the forum as the user may just stick with one forum ID for the duration of their stay.

Thanks again,

regards

Steve

King Kovifor
10-11-2008, 09:02 PM
Thanks Jeremy,

thanks for the reply,

I have had a look at that code before but the problem I have is that I need say:

Code A to appear in Forum ID 1,3,5,7,9....
Code B to appear in Forum ID 2,4,6,8.....

I have a lot of forum IDs and thus the code will be extremly messy and cumbursome.

It would be nice to show the differnet code in different threads within the forum as the user may just stick with one forum ID for the duration of their stay.

Thanks again,

regards

Steve

You will need to do things like:

<if condition="in_array($thread[forumid], '1,3,5,7,9'"> code 1 </if>

And repeat.

Videx
10-12-2008, 12:07 AM
I ma afraid I am not a programmer but I am very good at following directions.Then you better stick with published mods, and don't you dare try any of that stuff KK is talking about.

I'm unaware of a mod that will do this specifically, but like Lynne implied, most of the banner mods will allow HTML code, so they should do what you want. But you need a programmer to implement it.