inherit
152799
0
Feb 20, 2013 19:10:47 GMT -8
Next Level Gaming
38
March 2010
bigtimegaming
|
Post by Next Level Gaming on Aug 6, 2010 10:44:04 GMT -8
Ok, so I've seen it on Socal's coding forum and I'm sure it's in other places as well so I was wondering if someone could tell me the code to have a background image in the quick-reply text area box. Not in a reply post but in the box where you're making your post before it's posted. Thanks
|
|
inherit
*this CT deserves an achievement*
136400
0
Jun 25, 2021 18:23:00 GMT -8
Trill
hola
6,232
January 2009
ghbraingle
|
Post by Trill on Aug 6, 2010 10:49:08 GMT -8
Ok, so I've seen it on Socal's coding forum and I'm sure it's in other places as well so I was wondering if someone could tell me the code to have a background image in the quick-reply text area box. Not in a reply post but in the box where you're making your post before it's posted. Thanks Hi, The SoCal forum has the background image for all textareas (ie, quick reply, reply, headers/footers, account/user notes, etc. Basically, all the forms that are longer than one line. A simple CSS code could be written that adds the background image to all textareas like the SoCal forum. Or are you looking just something to impact only the quick reply area?
|
|
inherit
152799
0
Feb 20, 2013 19:10:47 GMT -8
Next Level Gaming
38
March 2010
bigtimegaming
|
Post by Next Level Gaming on Aug 6, 2010 21:07:23 GMT -8
Preferably something for all of them would be sweet, but I'd be happy with just the quick-reply.
So to answer that: all of them please.
|
|
inherit
*this CT deserves an achievement*
136400
0
Jun 25, 2021 18:23:00 GMT -8
Trill
hola
6,232
January 2009
ghbraingle
|
Post by Trill on Aug 7, 2010 11:44:12 GMT -8
Preferably something for all of them would be sweet, but I'd be happy with just the quick-reply. So to answer that: all of them please. Try this in your global header: <style type="text/css"> textarea { border: 1px solid #999999; // the type of border of the textarea and the border colorbackground-color:#363636; // background color of the textarea, shown if your image doesn't cover it fullycolor: #999999; // the text color, if you'd like it to change in textareasbackground-image: url( background image URL); background-repeat: no-repeat; background-position: center center;min-height: 165px;} </style> The orange directions are pretty self-explanatory. You can remove the code associated with the orange text if you'd like it to revert to the default. Feel free to remove the orange comments if you're familiar with the CSS. Replace the red text with the image URL you'd like to use as the background for all textareas. The blue area is how you can customize your background image. Do you want it displayed once in the center of the textarea? Leave it as is. If you want it to repeat or display on a side/corner, you can customize it. The purple part of the code tells all textareas on your forum that they have to be a certain minimum height. This part of the code will not impact large textareas like the headers/footers pages, but it WILL make all textareas smaller than the specified height, enlarge to that height. This is effective to make sure your full background image is shown in all the textareas, but is not mandatory. If you want to keep the height of all the textareas the same, remove the purple. Let me know how it goes.
|
|
inherit
152799
0
Feb 20, 2013 19:10:47 GMT -8
Next Level Gaming
38
March 2010
bigtimegaming
|
Post by Next Level Gaming on Aug 7, 2010 20:52:23 GMT -8
I tried it and nothing changed. Not in the quick-reply or full reply area.
I mostly just want for the reply areas (quick-reply, and full reply) The others aren't a big deal really for me.
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Aug 7, 2010 21:04:19 GMT -8
His code works for me. Would you, perhaps, have some other css in your headers that is over-riding it?
|
|
inherit
152799
0
Feb 20, 2013 19:10:47 GMT -8
Next Level Gaming
38
March 2010
bigtimegaming
|
Post by Next Level Gaming on Aug 8, 2010 2:44:32 GMT -8
I'll look into my header but I don't believe so.
EDIT: The only other CSS I have in my global header is to have a cursor for the forum. and it's only like two lines of coding or so and shouldn't affect it.
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Aug 8, 2010 8:18:27 GMT -8
Did you edit it, prior to seeing if it worked. Could be you edited it wrong. And you put it in your global headers, correct?
Although I doubt this is the case you may want to clear your cache via tools on your browser. With the code in place do a hard refresh. (F5)
You are probably going to have to provide a link to your site with the code in place because that code does work If you want to keep your site private say so and I'm sure a mod will see this and allow you to pm them.
|
|
inherit
152799
0
Feb 20, 2013 19:10:47 GMT -8
Next Level Gaming
38
March 2010
bigtimegaming
|
Post by Next Level Gaming on Aug 8, 2010 19:35:46 GMT -8
This is what I put in it. Tell me if I did something wrong. I took out the purple like was said I could. <style type="text/css"> textarea { border: 1px solid #FFFFFF; // the type of border of the textarea and the border color background-color:#49494b; // background color of the textarea, shown if your image doesn't cover it fully color: #FFFFFF; // the text color, if you'd like it to change in textareas background-image: url(http://i694./vv307/DJZebra/btg-textbg.png); background-repeat: no-repeat; background-position: center center; } </style> I don't have a problem giving a link but registration is limited for members of the group but I can approve an account for helping me out for the time being. www.bigtimegaming.proboards.com
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,322
January 2004
todge
|
Post by Todge on Aug 9, 2010 9:08:19 GMT -8
<style type="text/css"> textarea { border: 1px solid #FFFFFF; background-color: #49494b; color: #FFFFFF; background-image: url(http://i694./vv307/DJZebra/btg-textbg.png); background-repeat: no-repeat; background-position: center center; } </style>
You can't have comments like that in a style sheet..
|
|
inherit
152799
0
Feb 20, 2013 19:10:47 GMT -8
Next Level Gaming
38
March 2010
bigtimegaming
|
Post by Next Level Gaming on Aug 10, 2010 1:01:30 GMT -8
That's what the problem was. Thanks so much Todge. Also thanks to trill for the coding.
Now that I think about it, I have another request. Can something be added to this code to make the text box in the center of the forum instead of to the left like normal?
|
|
inherit
152799
0
Feb 20, 2013 19:10:47 GMT -8
Next Level Gaming
38
March 2010
bigtimegaming
|
Post by Next Level Gaming on Aug 17, 2010 16:23:33 GMT -8
bump
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,322
January 2004
todge
|
Post by Todge on Aug 18, 2010 8:26:17 GMT -8
Like this?
<script type="text/javascript"> <!-- // Center Quick Reply..
document.getElementsByTagName('textarea')[0].parentNode.parentNode.parentNode.align = 'center'; // --> </script>
Put it in your Global Footer..
|
|
inherit
152799
0
Feb 20, 2013 19:10:47 GMT -8
Next Level Gaming
38
March 2010
bigtimegaming
|
Post by Next Level Gaming on Aug 19, 2010 23:01:50 GMT -8
PERFECT. Thanks Todge.
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,322
January 2004
todge
|
Post by Todge on Aug 20, 2010 11:30:24 GMT -8
No worries..
|
|