vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Inserting an image into the top of a forum (https://vborg.vbsupport.ru/showthread.php?t=70527)

manguish 10-13-2004 02:35 PM

Inserting an image into the top of a forum
 
1 Attachment(s)
The two images below show what i am describing here.

The NOW.jpg image is my forum as it is at the moment. I have a link to another forum which links to a homemade page (WANT.jpg)www.minimotoclub.co.uk/vb/MiniMotoMap.php

This works fine except the newbies don't realise it's there and all the usual, seen it before questions appear.

So, what i would like to know is it possible to place the image in WANT.jpg where the forum link is at the moment, thereby removing the forum link and having the image above the threads? I know i could place it below the navbar code, but this would show on every page. I only want this image shown in this one forum.

How do i go about this?

Many thanks.

Colin F 10-13-2004 03:31 PM

add it below the navbar and enclose it with

HTML Code:

<if condition="$forumid == XX"> foo </if>
where xx is the forumid of the forum you want it to show, and foo is the code for the image.

manguish 10-13-2004 07:50 PM

Cheers bud - i was using the wrong variable ;)

manguish 10-14-2004 07:03 PM

I now have :

Code:

<if condition="$forumid == 13"> CODE FOR IMAGEMAP </if>
In my navbar template - works great - where the forum i want the image in is 13.

However.

In my search.php - new posts - when i click new posts, and there are threads from my forumid 13 forum - the image shows in the search page?! Even though this doesn't have the forumid = 13?

Or does the fact the threads from forumid = 13 are there in the new posts page count as making the conditional true?

Is there any way to stop this?

Colin F 10-14-2004 07:20 PM

Quote:

Originally Posted by manguish
I now have :

Code:

<if condition="$forumid == 13"> CODE FOR IMAGEMAP </if>
In my navbar template - works great - where the forum i want the image in is 13.

However.

In my search.php - new posts - when i click new posts, and there are threads from my forumid 13 forum - the image shows in the search page?! Even though this doesn't have the forumid = 13?

Or does the fact the threads from forumid = 13 are there in the new posts page count as making the conditional true?

Is there any way to stop this?


wow, never had that before :)

Try using <if condition="$forum[forumid] == 13">bla</if> instead... it's just a guess though.

manguish 10-14-2004 08:08 PM

Cheers mate - i'll let you know ;)

manguish 10-14-2004 08:11 PM

Nope - doesn't work :(

Tried ' ' with the 13 too...... Hmm....

I was thinking is there no :

<if condition="$forumid == 13" & "something along the not search.php page">

?

manguish 10-14-2004 08:15 PM

In fact looking at the way i've done it, it appears in every instance inside forumid = 13...

So thats - newthread, showthread, forumdisplay.....

The ONLY one i want it in is forumdisplay..... Would this code not be better off out of the navbar, and into the forum display template?

Colin F 10-14-2004 08:17 PM

Yes, that would be a solution. Or you might be able to do something with the constant VB_AREA...

manguish 10-14-2004 08:20 PM

Put it into the fourmdisplay and all is well.

Let's hope it doesn't creep up into the search again lol.....

Cheers Colin ;)


All times are GMT. The time now is 08:07 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.01068 seconds
  • Memory Usage 1,734KB
  • 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_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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