Jump to content

phpBB code box stretching my forum, HELP


HaLo2FrEeEk

Recommended Posts

I want to add horizontal scrollbars to any code or quote box that someone posts on my forum, but I have no idea how to do this, I've tried messing with the css file and a few of the php files, but I can't figure it out.  If anyone can help, I would be very appreciative.  I want the max width to be 400px, so if the person posts anything that exceeds 400px, it will put horizontal scrollbars on the bottom, but if it is not more than 400, they will not be there.

 

Thank you.

Link to comment
https://forums.phpfreaks.com/topic/56993-phpbb-code-box-stretching-my-forum-help/
Share on other sites

hmm...

I've never seen this done before so I cant really picture

the final outcome, but I have a suggestion,

now my idea isnt tested since I just thought of it right now,

but you can try going into the php file that produces the posts,

and enter some div tags around it,

and the div tag could look something like

 

<div style="overflow:auto;">
<?php 
PHP CODE
?>
</div>

 

The only thing is that I dont know how to add a max size to

the overflow...

I tried that, and it works, but the div tags would go inside a table already created, I'm working on it now.  The only problem with this is each template would have to have it's bbcode.tpl file modified, I guess this is ok since I won't be adding any new templates to the forum, but it's still a hassle.  Thanks for helping out.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.