The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Message Area Width
I'm having a few problems creating a customised "Message Area Width" for a page I'm creating.
I've tried the following method but the width of the form is restricted by the style i'm using, yet I don't want to change the style as this will mess up the rest of the site, I only want it on this particular form PHP Code:
so is it possible to use the code above to make the message area resize to the size of the table that I want to display it in? Please help |
#2
|
||||
|
||||
Try...
Code:
$textareacols = fetch_textarea_width(); |
#3
|
|||
|
|||
I'm not quite sure how that would apply when I'm using just $messageares within my template?
I've found your post on the subject regarding the Quick Reply editor which does go full width, but without all the editing options which I want to keep. Do you know how to make this work on the full editor? --------------- Added 16 Oct 2007 at 17:47 --------------- discovered that I can alter the message width by using the following: $stylevar['messagewidth'] = '750px'; which is fine if I want a fixed width, but have tried various methods with % but nothing seems to work... $stylevar['messagewidth'] = '100%'; //doesn't do anything $stylevar['messagewidth'] = 100%; //brings up error $stylevar['messagewidth'] = 'auto'; //doesn't do anything $stylevar['messagewidth'] = auto; //doesn't do anything Surely there must be a way? |
#4
|
||||
|
||||
<font color="darkgreen">Changing the style var will change the messagearea width for all your areas with a messagearea on it. Yes, I have had issues with setting the width as I would get different widths in different browsers and such. I was albel to get it right without using the built in text editor but thats not what I wanted.
Did you make the plugin for it too to hook the hook?</font> |
#5
|
|||
|
|||
Quote:
It's mainly the width of the editor that is holding me back now, My style is not fixed width so I want the message area to reflect that.... I can change the "message width" style for each form that I wish to display, but can only make it a fixed width, not dynamic with percentages....and I don't want to edit the main template style as you mentioned, it will change all forms to change. I can change it for each form to a fixed width using the code below. PHP Code:
|
#6
|
||||
|
||||
Not sure if you have seen this?
https://vborg.vbsupport.ru/showthread.php?t=135708 |
#7
|
|||
|
|||
Quote:
Thanks for your help, its' appreciated. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|