vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Show different code in Rotation (https://vborg.vbsupport.ru/showthread.php?t=193369)

zoned 10-11-2008 07:12 PM

Show different code in Rotation
 
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

Quote:

Originally Posted by zoned (Post 1642933)
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

Quote:

Originally Posted by zoned (Post 1642907)
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.


All times are GMT. The time now is 04:45 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01014 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete