vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Adding Image to Forum Description (https://vborg.vbsupport.ru/showthread.php?t=268632)

joeycannoli 08-16-2011 06:39 PM

Adding Image to Forum Description
 
Hey guys,

Need some help in the right direction here. I am trying to add vendor banners to the forum in which they are sponsoring on my website. I am looking to have the image placed beside the forum description within their sponsored forum, But NOT on the Forumdisplay (main forum page).

Here is a picture of what i am trying to replicate:

http://www.euroaddiction.net/help/banner.png

Are you can see the image is placed within the sponsor forum and not on the main forum page:

http://www.euroaddiction.net/help/forumdisplay.png

I went into forum manager and added code to add the image, but it shows up on both which is not what i am looking for.

Is this done with coding or is there a modification out there to handle what im looking to do?

I am on vB4.1.5

TIA

AustinP 08-17-2011 12:55 AM

Wrap the image tag in a conditional that only uses the forum(s) you wish for the image to be displayed in

joeycannoli 08-17-2011 12:37 PM

Do you happen to have an example of how to do that?

Much appreciated

Lynne 08-17-2011 01:38 PM

$foruminfo['forumid'] show be a valid variable in that template. So, just do something like:
HTML Code:

<vb:if condition="$foruminfo['forumid'] == x">
image to display in forum x
</vb:if>



All times are GMT. The time now is 04:16 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.01629 seconds
  • Memory Usage 1,712KB
  • 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
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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