vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Background Image in (https://vborg.vbsupport.ru/showthread.php?t=48209)

attroll 01-27-2003 04:13 PM

Background Image in
 
I can not find the answer to this question. I have looked everywhere.

I want to have a background image show up in the background of posted messages. What template do I go into and what what coade will go in it?

Is there also a way to have a different background image for different categorys?

Xanthine 01-27-2003 04:38 PM

You have to edit the postbit template.

attroll 01-28-2003 01:57 PM

OK I have gone into my postbit template and tried putting in the following line in several places when the first place I thought it should have gone did not work.

background="{ imagesfolder}/bgimage.gif"

could someone tell me where the correct line is to put this.

Dean C 01-28-2003 04:26 PM

In your 'postbit' template find:

PHP Code:

<td bgcolor="$post[backcolor]width="100%" valign="top"

Change it to:

PHP Code:

<td bgcolor="$post[backcolor]background="{ imagesfolder}/bgimage.gif" width="100%" valign="top"

Make sure you remove the gap between the { and imagesfolder though :)

- miSt

WetWired 01-31-2003 01:20 PM

You, know you could avoid confusion when explaining these things by simply typing "{imagesfolder}" instead of "{ imagesfolder}" then telling them to remove the space.

Just remember that inserting in the middle of a tag or replacement will prevent its proper parsing. I use this trick all the time when explaining vB codes to people.

Dean C 01-31-2003 04:04 PM

No because when {imagesfolder} is typed on its own it parses.

Let me try that second tip tho:

PHP Code:

<td background="[b]{imagesfolder}[/b]/tablebg.gif"


Dean C 01-31-2003 04:04 PM

I rest my case :)

- miSt

WetWired 01-31-2003 07:49 PM

You failed to understand.
Type this:
{[b][/b]imagesfolder}
to get this:
{imagesfolder}
or this:
[[b][/b]img]http://www.vbulletin.org/layout/header.gif[[b][/b]/img]
to get this:
http://www.vbulletin.org/layout/header.gif

it should have been obvious it could be made to work by the fact that it worked in my post ;)

BTW, clicking quote would have shown you how I did it.

Dean C 01-31-2003 08:19 PM

I can't see it in your post :)

It parses when put in a html tag...

Let me try again:

PHP Code:

<td background="{[b][/b]imagesfolder}/tablebg.gif"

- miSt

Dean C 01-31-2003 08:24 PM

Thankyou for that - i'll use that when helping from now on (makes life so much easier)

- miSt


All times are GMT. The time now is 09:58 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.01580 seconds
  • Memory Usage 1,729KB
  • 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
  • (4)bbcode_php_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