Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 10-11-2008, 07:12 PM
zoned zoned is offline
 
Join Date: Sep 2006
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 10-11-2008, 07:59 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Modify one of the modifications you have tried?
Reply With Quote
  #3  
Old 10-11-2008, 08:08 PM
zoned zoned is offline
 
Join Date: Sep 2006
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 10-11-2008, 08:46 PM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Using an <if codition="$forum[forumid] == X"> your code </if> should do the trick.
Reply With Quote
  #5  
Old 10-11-2008, 08:52 PM
zoned zoned is offline
 
Join Date: Sep 2006
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 10-11-2008, 09:02 PM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by zoned View Post
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.
Reply With Quote
  #7  
Old 10-12-2008, 12:07 AM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by zoned View Post
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:39 AM.


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.03583 seconds
  • Memory Usage 2,207KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete