vBulletin Modifications

Scrolling codebox

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > General vBulletin Support

Reply
 
LinkBack Thread Tools
Old 05-28-2006, 04:51 AM   #1
vB User
dobberman's Avatar
Join Date: May 2006
dobberman is on a distinguished road

Default [solved]Scrolling codebox

Hi !
I'm using VB v3.5.4.
I have a problem, sometimes members at my site has difficulty "copy and paste" with stuff in the codebox when it scrolls.
Now, i know if I remove that "overflow:auto" from the "bbcode_code" template bit, it won't scroll.
However, if the content is long (without breaks) it stretches out the box
and the page looks un-tidy.
I was wondering, is there a way for the pasted content to instead of scrolling or stretching out, to be somehow "autofitted" within a set parameter ?
(downwards then offcourse)
If I remember right, that is how it works on the IPB board, thanks

Last edited by dobberman; 06-02-2006 at 05:30 AM. Reason: solved




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 05-28-2006, 09:53 AM   #2
vBulletin Guru
Arnoud's Avatar
Join Date: Nov 2004
Real Name: Arnoud Kuipers
Location: Europe, Flanders
Arnoud is on a distinguished road

Default

There's a piece of code which allows you to copy the content of a code/php/quote/etc box by the click of a button, but it only works for IE and maybe Opera.

If you want I can dig that up for you.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-29-2006, 01:54 AM   #3
vB User
dobberman's Avatar
Join Date: May 2006
dobberman is on a distinguished road

Default

Thanks for the tip, I think i've seen that on some phpbb board earlier.
It's good if you want to copy the whole content, but not for those one liners..
I guess what i'm looking for is a simple setting in the html that won't allow
for the box to stretch, but instead pushes the pasted content down wards.
(back to html school for me :p )




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-29-2006, 01:30 PM   #4
vBulletin Guru
Arnoud's Avatar
Join Date: Nov 2004
Real Name: Arnoud Kuipers
Location: Europe, Flanders
Arnoud is on a distinguished road

Default

So, you basicly want the height to adjust to the content without using scrollbars?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-29-2006, 02:03 PM   #5
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

also i have this error where quote,code,html,php and anything else which i havn't added but uses boxes:
[IMG][/IMG]

ane known way to adjust it?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-30-2006, 01:07 AM   #6
vB User
dobberman's Avatar
Join Date: May 2006
dobberman is on a distinguished road

Default

Quote:
Originally Posted by Arnoud
So, you basicly want the height to adjust to the content without using scrollbars?
Exactly.
Normally if you have a long "one liner", it would activate the horizontal
scrollbar.
But what I want instead, is to the one line to be cut after X amount of characters and the leftover to be transferred to the next line, and so on.
Thus, horizontal scrollbar eliminated.

If the content is long, offcourse the vertical scrollbar would be activated.
The good thing is, that can be controlled from the admin panel's
bbcode settings.(default 30 lines)




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-30-2006, 01:04 PM   #7
vBulletin Guru
Arnoud's Avatar
Join Date: Nov 2004
Real Name: Arnoud Kuipers
Location: Europe, Flanders
Arnoud is on a distinguished road

Default

Ah right, I thought you were talking about the vertical line.

You can simply edit it in the style manager. Go to All Style Options and search for Code Block Width (pixels). Set that to something like 600px (640px is the default).




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-31-2006, 02:15 AM   #8
vB User
dobberman's Avatar
Join Date: May 2006
dobberman is on a distinguished road

Default

I'm sorry but changing that setting only affects the with before a scrollbar is
inserted.
setting it to 600px cuts the line even shorter, and then horizontal scrollbar.

Horizontal scrollbar is this right: <...................>


And this would be vertical:
^
:
\/




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-31-2006, 09:39 AM   #9
vBulletin Guru
Arnoud's Avatar
Join Date: Nov 2004
Real Name: Arnoud Kuipers
Location: Europe, Flanders
Arnoud is on a distinguished road

Default

Well, from what I understood from the instructions is that it doesn't insert a bar if you set it to the default value (640px). I'm not quite sure myself though.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-01-2006, 02:14 AM   #10
vB User
dobberman's Avatar
Join Date: May 2006
dobberman is on a distinguished road

Default

It will insert a horizontal scrollbar if the pasted content is longer than 640px.
It's this in the (bbcode_code) that does it:
You must first be a registered member to view any code.
Full code is:
You must first be a registered member to view any code.
I think the simplest thing to do is to simply set the "640px" setting to auto.
The box will be stretched out, but that's not a big problem.
Thanks for helping everyone !




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
scrolling news in forum home hadi20020 vBulletin Modification Requests 4 11-13-2005 01:00 PM
Scrolling News cunder vBulletin Modification Requests 0 10-09-2005 08:45 AM
Marqueeeing or scrolling info/news hack. Wookie vBulletin Modification Requests 8 09-30-2004 08:12 PM
[FIXED] Slow Scrolling Oblivion Knight Site Feedback 11 09-16-2004 09:22 PM


All times are GMT -3. The time now is 03:38 PM.


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)