PDA

View Full Version : Show Thread Enhancements - Scrollbars for oversized signatures


WordKeeper
08-13-2009, 10:00 PM
I've seen image resize mods and stuff like that, but the scrollbar seems better in my experiences.

This requires just one template edit, no downloading or uploading. ... And it should work on any version of vB.

Live Demo (http://www.TheWordKeeper.com/christian_forums)

In the POSTBIT template find:
$post[signature]

Replace with:
<div style="max-width:900px; max-height:150px; overflow:auto;">
$post[signature]
</div>

EDIT: If you use LEGACY style (username and everything on the left, post on the right or vice versa on some themes) then you you should edit the postbit_legacy template instead.

Adjust what I have in red to your liking. ... some forums are wider than others.

http://img190.imageshack.us/img190/3116/sigscroll.png

Vital Signs
08-14-2009, 04:26 PM
This is just what I wanted! Thank you so much!!

WordKeeper
08-14-2009, 04:33 PM
I'm glad you like it. :)

letsjoy
08-16-2009, 08:33 PM
Simple yet amazing...
Bundle of Thanks :D

WordKeeper
08-17-2009, 03:18 AM
You're more than welcome. :D

RedeemedWarrior
08-17-2009, 12:54 PM
very nice kickman, very nice you'll be a Jedi master yet...

WordKeeper
08-18-2009, 12:46 AM
Well you have taught me, Master RW ...

baghdad4ever
08-21-2009, 05:55 PM
thanks

lm3a.net
08-23-2009, 09:49 AM
Cool,

thank u..

WordKeeper
08-24-2009, 01:34 AM
thanks

Cool,

thank u..

My pleasure... Glad you like it.

theybannedme
08-27-2009, 07:13 PM
well done

MAK-upl
08-30-2009, 09:39 AM
It doesn't work. Nothing's happening when i replace the code.

illkeyone
09-02-2009, 08:01 PM
Worked pretty good, thanks & kind regards ^_^

WordKeeper
09-02-2009, 08:14 PM
It doesn't work. Nothing's happening when i replace the code.
Sorry for the slow reply... school just started this week....

Could you show me the code you have?

Log on
09-03-2009, 07:42 AM
hey,

I made copy and paste for the cood ?!

but nothing changed

I have version 3.8.3

regards

WordKeeper
09-03-2009, 01:37 PM
If you copied and pasted correctly, the scrollbars are not showing because none of the signatures on your board go beyond the dimensions that are in the code; therefore, they are not needed.

If you still have signatures that are too big, then you probably did it wrong or you need to change the dimensions to better fit your theme.

It works perfect on my 3.8.3

I should've added this in the first post... If you use LEGACY style (username and everything on the left, post on the right or vice versa on some themes) then you you should edit the postbit_legacy template instead.

Log on
09-06-2009, 09:43 AM
I made a change in width an hieght in the code to 20pix for each :eek: also I change it in postbit_legacy... and still nothing happend

theybannedme
09-26-2009, 12:57 PM
This works for message too that are insanely long.

replace $post[message] with:

<div style="max-height:1000px; overflow:auto;">
$post[message]
</div>

Demo: http://www.theybannedme.com/forums/showpost.php?p=97198&postcount=27

Great hack!

Log on
09-28-2009, 07:16 AM
This works for message too that are insanely long.

replace $post[message] with:

<div style="max-height:1000px; overflow:auto;">
$post[message]
</div>

Demo: http://www.theybannedme.com/forums/showpost.php?p=97198&postcount=27

Great hack!

thank u

but this od fore the messagr

I need it for the signeture

regards

TheChaosFactor
09-28-2009, 08:17 AM
Sweeeeet.

Installed. Thanks. :)

vijayninel
11-09-2009, 09:25 AM
Cool..Installed :D

Iguana Goddess
02-05-2010, 09:43 PM
This works for message too that are insanely long.

replace $post[message] with:

<div style="max-height:1000px; overflow:auto;">
$post[message]
</div>

Demo: http://www.theybannedme.com/forums/showpost.php?p=97198&postcount=27

Great hack!

Thanks works great!

BirdOPrey5
05-17-2010, 02:58 PM
Installed but many users seem to dislike it... probably won't last long. :(

Can the width be set to a percentage instead of pixels?

Tettinntil
05-21-2010, 09:18 PM
Can this be added for some usergroups only?

BirdOPrey5
05-21-2010, 09:43 PM
Not as it is currently written but I think you could use vB conditionals (<if> statements) to limit it to specified usergroups.

Tettinntil
05-24-2010, 07:10 PM
Thanks - I guess I will have to wait for someone else then... ;)

BirdOPrey5
05-24-2010, 07:48 PM
Can this be added for some usergroups only?

Put this line before the code above:
<if condition="is_member_of($post, 2, 5, 6, 7 )">
and put this line after the code above:
</if>

Then change the numbers, 2,5,6,7 to whatever usergroup or usergroups you want to activate this for. The numbers I supplied pretty much activate this for anyone. registered users, mods, admins, and super-mods.

Iguana Goddess
04-03-2011, 11:45 PM
I would like to use this but I run 4.1.2, could some one update the coding on this please?

BirdOPrey5
04-04-2011, 12:53 AM
4.1.2 info here: https://vborg.vbsupport.ru/showthread.php?t=248702

Iguana Goddess
04-06-2011, 02:34 PM
Thanks very much :) BirdO

vBarsiv
06-07-2012, 10:40 AM
this nice :)

solarboy
10-08-2012, 12:20 AM
This is just awesome.