vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Adding a background image into the reply boxes (https://vborg.vbsupport.ru/showthread.php?t=129962)

Ev!L ErN!E 10-25-2006 10:00 PM

Adding a background image into the reply boxes
 
**** THIS SHOULD (DID 4 ME) ADD A BACKGROUND IMAGE TO THE QUICK REPLY BOX AS WELL ****


This is NOT a hack, its just a very simple template edit, so theres nuthing to download or install, this only been tested on IE6:
Go to>

Admin CP -> Styles & Templates -> Style Manager -> Main CSS (in the menu)
Edit these two sections

- WYSIWYG Editor

- Input Fields

Add the line below in the Standard CSS Attributes side, in the "background" field

Code:

#2D2D2D url(images/yourimagehere) repeat-x center fixed
Replace the "green" text with your color code & the path/filename of your background image.

example:
images/replyboxbg.gif

Then

add this into the Extra CSS Attributes box:

Code:

background-repeat: no-repeat;
background-position: center center;

(see attachments)

Save CSS and your good to go....

Please Click INSTALL

Enjoy!

Stromba 10-25-2006 10:50 PM

Woow first post and a super cool hack, thanks to share it with use :nervous:

abramelin 10-25-2006 11:02 PM

ohh yes i was looking for that! thanks very much. one more question. how can we do this for quick reply box?

Stromba 10-25-2006 11:13 PM

Its made for your "quick reply box"

Ev!L ErN!E 10-25-2006 11:15 PM

Quote:

Originally Posted by abramelin
ohh yes i was looking for that! thanks very much. one more question. how can we do this for quick reply box?

If that didn't work.........

Try this:

Along with the changes above, do these edits to showthread_quickreply

Find:
Code:


 
<iframe id="htmlbox" style="width:600px; height:100px" tabindex="1"></iframe>

Change to:
Code:


<iframe id="htmlbox" style="background:#HEX url(path/to/file); width:600px; height:100px" tabindex="1"></iframe>

Find:
Code:


 
<textarea name="message" id="qr_message" class="bginput" style="width:600px; height:100px" cols="60" rows="5" tabindex="1"></textarea>

Change to:
Code:


<textarea name="message" id="qr_message" class="bginput" style="background:#HEX url(path/to/file); width:600px; height:100px" cols="60" rows="5" tabindex="1"></textarea>

Find:
Code:


 
<textarea name="message" id="qr_message" class="bginput" style="width:600px; height:100px;" rows="5" cols="60" tabindex="1"></textarea>

Change to:
Code:


<textarea name="message" id="qr_message" class="bginput" style="background:#HEX url(path/to/file); width:600px; height:100px;" cols="60" rows="5" tabindex="1"></textarea>

Remember to change the "green" text to your own values.

Let me know how it goes.

Ev!L ErN!E 10-25-2006 11:19 PM

Quote:

Originally Posted by Stromba
Its made for your "quick reply box"

its made for both "quick reply" & "post" boxes, if your using 3.6.2 it should work without the templete edits I just mentioned.

:devious:

lolo? 10-26-2006 03:28 AM

thanks fort this but does'nt work for me :s

Ntfu2 10-26-2006 05:03 AM

probably cause he is declaring things like 6 times :lol:

I removed everything from the extra CSS fields and made

Code:

#2D2D2D url(images/yourimagehere) repeat-x center fixed
to

Code:

#2D2D2D url(images/yourimagehere) repeat-x center
And all works well for me :D

lolo? 10-26-2006 05:18 AM

oki i found doesent work with standar editor

Ev!L ErN!E 10-26-2006 03:59 PM

Quote:

Originally Posted by Ntfu2
probably cause he is declaring things like 6 times :lol:

I removed everything from the extra CSS fields and made

Code:

#2D2D2D url(images/yourimagehere) repeat-x center fixed
to

Code:

#2D2D2D url(images/yourimagehere) repeat-x center
And all works well for me :D

what version of vB are you using? because when I first tried to do this, I also had nuthing in the extra CSS fields and did not include "fixed", but when I did it that way the background image kept repeating, the only way I could get it from not repeating was doing what I first posted.

Could this be a version conflict? or maybe a browser?
Like I mentioned, I have not used this with anything other then IE 6


All times are GMT. The time now is 10:20 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.01633 seconds
  • Memory Usage 1,744KB
  • 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
  • (12)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete