vForums Support > Programming & Coding :: Code Requests & Support :: > Move UBBC and smilies above Quick Reply

Move UBBC and smilies above Quick Reply - Posted By Nick (nickb) on 14th Apr 10 at 4:36pm
Anyone mind making this?

All I want is a code that will move the UBBC and smilies above the quick reply, and possibly center it.

Thanks. {Smile}

Re: Move UBBC and smilies above Quick Reply - Posted By Nick (nickb) on 26th Apr 10 at 7:11pm
Bump?

Re: Move UBBC and smilies above Quick Reply - Posted By Michael (wrighty) on 26th Apr 10 at 10:34pm
Throw me a PM about this tomorrow (about 15 hours time), I'll then get this done for you! {Smile}

Re: Move UBBC and smilies above Quick Reply - Posted By Nick (nickb) on 27th Apr 10 at 12:21am
Alright. Will do.

Re: Move UBBC and smilies above Quick Reply - Posted By Michael (wrighty) on 27th Apr 10 at 4:24am
Got some spare time! {Cheesy}

Global Header:
<style type = 'text/css'>
#subscribe_topic {
     display: none;
}
#quick_reply_editor {
     float: none;
     text-align: center;
     margin: 0 auto !important;
}
#quick_reply_padding {
     padding-right: 0px !important;
}
</style>


Global Footer:
<script type = 'text/javascript'>
/* Quick Reply Remodel - Wrighty */
with(q = get('quick_reply_editor', 'id')){
     insertBefore(get('smilies', 'id'), q.firstChild);
     insertBefore(get('ubbc_buttons', 'id'), q.firstChild);
}
with(get('ubbc_buttons', 'id')){
     removeAttribute("style");
     style.paddingLeft = (get('table', 'tag')[0].width-312)/2 + "px";
}
</script>

Re: Move UBBC and smilies above Quick Reply - Posted By dog199200 (dog199200) on 27th Apr 10 at 5:48am
i'm going to jump the gun and ask would it be possible to cascade them so that the smiley's are on the left and the ubbc is on the right. I'm sure DM would agree with me that it looks to blocky the way it is {Wink}

Re: Move UBBC and smilies above Quick Reply - Posted By Nick (nickb) on 27th Apr 10 at 5:56am
It looks good. BUT would you be able to make it so that the UBBC is all on 1 line? and then have the smilies underneath it, all centered?

Re: Move UBBC and smilies above Quick Reply - Posted By Michael (wrighty) on 27th Apr 10 at 6:59pm
I'll have a go at both when I get back {Smile}

Re: Move UBBC and smilies above Quick Reply - Posted By Nick (nickb) on 27th Apr 10 at 7:52pm
K, no problem. {Smile}

Re: Move UBBC and smilies above Quick Reply - Posted By Michael (wrighty) on 27th Apr 10 at 10:56pm
 
It looks good. BUT would you be able to make it so that the UBBC is all on 1 line? and then have the smilies underneath it, all centered?


Change the footer JS code to:

<script type = 'text/javascript'>
with(q = get('quick_reply_editor', 'id')){
     insertBefore(get('smilies', 'id'), q.firstChild);
     insertBefore(get('ubbc_buttons', 'id'), q.firstChild);
}
with(get('ubbc_buttons', 'id')){
     removeAttribute("style");
     style.paddingLeft = (get('table', 'tag')[0].width-312*2)/2 + "px";
}
get('br', 'tag', get('ubbc_buttons', 'id'))[0].style.display = 'none';
</script>



Posted By dog199200 on 27th Apr 10 at 5:48am
 
i'm going to jump the gun and ask would it be possible to cascade them so that the smiley's are on the left and the ubbc is on the right. I'm sure DM would agree with me that it looks to blocky the way it is {Wink}


Would look too wide! :/

Re: Move UBBC and smilies above Quick Reply - Posted By Nick (nickb) on 28th Apr 10 at 12:02am
Thanks, that looks good! {Smile}

Re: Move UBBC and smilies above Quick Reply - Posted By Michael (wrighty) on 28th Apr 10 at 12:31am
{Smile}

Re: Move UBBC and smilies above Quick Reply - Posted By dog199200 (dog199200) on 28th Apr 10 at 1:06am
XD hmm maybe so, after cascading it out, though I don't think it would look weird having the UBBC on top and the smiles on the right side in a 4 by 4 (4 rows, 4 in each row). I think it would look good XD

Re: Move UBBC and smilies above Quick Reply - Posted By Michael (wrighty) on 28th Apr 10 at 2:38am
I could get them 4x4 I guess if ye want! {Tongue Out}

Re: Move UBBC and smilies above Quick Reply - Posted By Nick (nickb) on 28th Apr 10 at 2:52am
I like how it is, for what I want it as. {Smile}

Re: Move UBBC and smilies above Quick Reply - Posted By dog199200 (dog199200) on 28th Apr 10 at 7:56am
 
I like how it is, for what I want it as. {Smile}


{Tongue Out} doesn't mean I still don't want the code {Tongue Out} I do got a forum of my own there DM XD

but I think it look good like this:

Image

With the over all spacing being get to 98%, so that each area has its space and don't look crowded.


{Unsure} I really need to start learning JS again

Re: Move UBBC and smilies above Quick Reply - Posted By Nick (nickb) on 28th Apr 10 at 4:45pm
Yeah that does look good there Dwight.

Re: Move UBBC and smilies above Quick Reply - Posted By Michael (wrighty) on 29th Apr 10 at 1:38am
Wait what... We're changing what we want.

What am I coding up here then? 'cause so far there's been 4 layouts - 2 have been coded, 2 haven't.

Re: Move UBBC and smilies above Quick Reply - Posted By dog199200 (dog199200) on 29th Apr 10 at 3:22am
XD look at the images I posted, thats what i want for myself {Tongue Out} DM can then decide later on what looks best. I just figured since I am already in this discussion I might as well put my two sense in {Tongue Out}

P.S. looks like the image is gone {Unsure}

Image

Thats what I was talking bout doing the the 4x4 smileys and stuff. Which would look better then them being beside the UBBC. Thats what I want, nothing else, i promise {Smile} and if i want to adjust the tables width and stuff afterwards, i'm sure i can figure it out XD

Re: Move UBBC and smilies above Quick Reply - Posted By Nick (nickb) on 29th Apr 10 at 1:12pm
Haha, I said it looks good, doesn't mean I want it. {Tongue Out}

Re: Move UBBC and smilies above Quick Reply - Posted By dog199200 (dog199200) on 29th Apr 10 at 7:15pm
nope i do recall saying that I want it {Tongue Out}

Re: Move UBBC and smilies above Quick Reply - Posted By Nick (nickb) on 29th Apr 10 at 9:47pm
You should actually have the smilies rows of 3 as look:

Rows of 4:
{Smile} {Wink} {Grin} {Cool}
{Tongue Out} {Sad} {Cry} {Rolleyes}
{Unsure} {Confused} {Angry} {Shocked}
{Kiss} {Lips Sealed} {Embarassed}

Rows of 3:
{Smile} {Wink} {Grin}
{Cool} {Tongue Out} {Sad}
{Cry} {Rolleyes} {Unsure}
{Confused} {Angry} {Shocked}
{Kiss} {Lips Sealed} {Embarassed}



{Tongue Out}

Re: Move UBBC and smilies above Quick Reply - Posted By dog199200 (dog199200) on 30th Apr 10 at 12:40am
Yes i know it be one short, but I also planned on making an extra smiley {Tongue Out}

Re: Move UBBC and smilies above Quick Reply - Posted By Michael (wrighty) on 1st May 10 at 7:38am
Global Header:
<style type = 'text/css'>
#subscribe_topic {
     display: none;
}
#quick_reply_editor {
     float: none;
     text-align: center;
     margin: 0 auto !important;
}
#quick_reply_editor textarea {
     width: 80% !important;
     float: left;
}
#quick_reply_padding {
     padding-right: 0px !important;
}
</style>


Global Footer:
<script type = 'text/javascript'>
/* UBBC above - 4x4 smilies beside - Wrighty */
with(q = get('quick_reply_editor', 'id')){
     insertBefore(get('ubbc_buttons', 'id'), q.firstChild);
     appendChild(get('smilies', 'id'));
}
n = 0;
while(n <= get('a', 'tag', get('smilies', 'id')).length)
     if(++n % 4 == 0)
          get('smilies', 'id').insertBefore(document.createElement("br"), get('a', 'tag', get('smilies', 'id'))[n]);
with(get('ubbc_buttons', 'id')){
     removeAttribute("style");
     style.paddingLeft = (get('table', 'tag')[0].width-312*2)/2 + "px";
}
get('br', 'tag', get('ubbc_buttons', 'id'))[0].style.display = 'none';
</script>

Re: Move UBBC and smilies above Quick Reply - Posted By dog199200 (dog199200) on 1st May 10 at 7:57am
looks great, but think you can add a padding of about 2 between each smiley? and about 2 on top and the bottom of the ubbc. I edited what I could in regards to the CSS but everything is to pushed together {Tongue Out}

Re: Move UBBC and smilies above Quick Reply - Posted By Michael (wrighty) on 1st May 10 at 8:58am
You should be able to pad the smilies with CSS:
<style type = 'text/css'>
#smilies a {
     margin: 2px;
}
</style>

{Smile}


Re: Move UBBC and smilies above Quick Reply - Posted By dog199200 (dog199200) on 1st May 10 at 4:00pm
ok that spaces the smileys left are right, but not up and down XD though it looks better as is. How do you get the ubbc bar to be separated by two pixels above the text area instead of being right on it? i've tired using the #ubbc_buttons a id setting a margin to 2px, and it don't work.

Re: Move UBBC and smilies above Quick Reply - Posted By Michael (wrighty) on 2nd May 10 at 2:01am
<style type = 'text/css'>
#ubbc_buttons {
     margin: 10px;
}
</style>


Global Header. {Smile}

Re: Move UBBC and smilies above Quick Reply - Posted By dog199200 (dog199200) on 2nd May 10 at 5:10am
and thats the reason I will NEVER go into web-design XD I don't trust my own skills enough XD

Re: Move UBBC and smilies above Quick Reply - Posted By Michael (wrighty) on 2nd May 10 at 2:19pm
Haha .. Glad it's working! {Smile}

Re: Move UBBC and smilies above Quick Reply - Posted By dog199200 (dog199200) on 2nd May 10 at 4:42pm
yep yep, thanks