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
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...

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.