vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Show Thread Enhancements - Scrollbars for oversized signatures (https://vborg.vbsupport.ru/showthread.php?t=220843)

WordKeeper 08-13-2009 10:00 PM

Scrollbars for oversized signatures
 
1 Attachment(s)
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

In the POSTBIT template find:
Code:

                                $post[signature]
Replace with:
Code:

                              <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

Quote:

Originally Posted by baghdad4ever (Post 1871764)
thanks

Quote:

Originally Posted by lm3a.net (Post 1872597)
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

Quote:

Originally Posted by MAK-upl (Post 1876738)
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:

Code:

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

Demo: http://www.theybannedme.com/forums/s...8&postcount=27

Great hack!

Log on 09-28-2009 07:16 AM

Quote:

Originally Posted by theybannedme (Post 1890817)
This works for message too that are insanely long.

replace $post[message] with:

Code:

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

Demo: http://www.theybannedme.com/forums/s...8&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

Quote:

Originally Posted by theybannedme (Post 1890817)
This works for message too that are insanely long.

replace $post[message] with:

Code:

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

Demo: http://www.theybannedme.com/forums/s...8&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

Quote:

Originally Posted by Tettinntil (Post 2041621)
Can this be added for some usergroups only?

Put this line before the code above:
Code:

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

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


All times are GMT. The time now is 04:07 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01305 seconds
  • Memory Usage 1,777KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (32)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete