Uutiset:

Wondering if this will always be free?  See why free is better.

Main Menu
Advertisement:

scroll bar in mesages

Aloittaja Style™, marraskuu 25, 2004, 03:05:51 IP

« edellinen - seuraava »

Style™

I was wondering if there was away to turn off the scroll bar in messages.  It makes it rather hard to view a large picture [example below].

If there is, how?

Cheers.




Kirby

#1
The scrollbars are put to keep the table neat and not stretch 5000 miles away from your page. If you want to take it out, copy Display.template.php from Themes/default to Themes/<yourtheme> (or if you have no other theme, dont copy), open it; and look for:
<div style="overflow: auto; width: 100%;">', $message['body'], '</div>

Replace with:
<div style="width: 100%;">', $message['body'], '</div>

Style™

exactly which part do i remove?

oops.  i see now.

thanks for your help! :)

Kirby

<div style="overflow: auto; width: 100%;">', $message['body'], '</div>
You replace that with
<div style="width: 100%;">', $message['body'], '</div>
Pretend my earlier post didnt exist :P I just edited it to have the exact lines
EDIT: your welcome ^_^

Style™

eh - problem.  now it does not show the entire post [picture].  that just took away the scroll bars.

Kirby

Oh, oops.
Replace with:
<div style="overflow: visible; width: 100%;">', $message['body'], '</div>

Style™

for some reason, that's not working.  i have no clue why.

Kirby

#7
Ok, then look for:
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
Replace with:
<table width="100%" cellpadding="5" cellspacing="0">

Then replace
<div style="overflow: visible; width: 100%;">', $message['body'], '</div> (the one I just gave you)
with:
', $message['body'], '

Style™


Kirby

Odd... what theme are you using?

Style™

okay, i see your post now.

thank you SO MUCH! :)

Kirby


Style™

is there anyway we can restrict things so that the wide post is the one that is wide [with the pictures] and the following posts with comments are normal width?

that would be ideal for a few people, i'm sure.

cheers.

Kirby

#13
If the one with the picture is post #1, then yes.
Look for:
<table width="100%" cellpadding="5" cellspacing="0">

Replace with:
<table width="100%" cellpadding="5" cellspacing="0"', $message['id'] != $context['first_message'] ? 'style="table-layout: fixed;"' : '' ,'>

then..
Look for:
', $message['body'], '

Replace with:
', $message['id'] != $context['first_message'] ? '<div style="overflow: auto; width: 100%">' . $message['body'] . '</div>' : $message['body']  ,'

Style™

thanks!

look here to see my problem:

hxxp:americanuprise.com/index.php?topic=101.new#new [nonactive]


ArkServer

ive a problem with this, in some topics it works fine and in some it doesnt.

example:
http://arkserver.servehttp.com/index.php?topic=471.0 too large image?
look at this: http://arkserver.servehttp.com/index.php?topic=205.0 it works here.

login test // test  to see the larger image

can anyone fix my problem? thnx

Kirby

I got a 404 while trying to open the page.

ArkServer

#17
Lainaus käyttäjältä: ??? - elokuu 03, 2005, 11:17:26 IP
I got a 404 while trying to open the page.

works now, high bandwidth usage :(

edit/

try this  link instead of the other, you see that resizing works for the first post but not thereafter:
http://arkserver.servehttp.com/index.php?topic=96.0 several posts below you still see the scrol bar

Kirby

Er yeah, that's what happens when you use the one I gave here :P


Advertisement: