Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 10-13-2004, 02:35 PM
manguish manguish is offline
 
Join Date: Apr 2003
Location: UK
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Inserting an image into the top of a forum

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.
Attached Images
File Type: jpg now.jpg (35.9 KB, 0 views)
File Type: jpg want.jpg (39.7 KB, 0 views)
Reply With Quote
  #2  
Old 10-13-2004, 03:31 PM
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
Posts: 1,551
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 10-13-2004, 07:50 PM
manguish manguish is offline
 
Join Date: Apr 2003
Location: UK
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cheers bud - i was using the wrong variable
Reply With Quote
  #4  
Old 10-14-2004, 07:03 PM
manguish manguish is offline
 
Join Date: Apr 2003
Location: UK
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #5  
Old 10-14-2004, 07:20 PM
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
Posts: 1,551
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 10-14-2004, 08:08 PM
manguish manguish is offline
 
Join Date: Apr 2003
Location: UK
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cheers mate - i'll let you know
Reply With Quote
  #7  
Old 10-14-2004, 08:11 PM
manguish manguish is offline
 
Join Date: Apr 2003
Location: UK
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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">

?
Reply With Quote
  #8  
Old 10-14-2004, 08:15 PM
manguish manguish is offline
 
Join Date: Apr 2003
Location: UK
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #9  
Old 10-14-2004, 08:17 PM
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
Posts: 1,551
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, that would be a solution. Or you might be able to do something with the constant VB_AREA...
Reply With Quote
  #10  
Old 10-14-2004, 08:20 PM
manguish manguish is offline
 
Join Date: Apr 2003
Location: UK
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Put it into the fourmdisplay and all is well.

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

Cheers Colin
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 01:03 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04300 seconds
  • Memory Usage 2,267KB
  • Queries Executed 14 (?)
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_code
  • (1)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete