vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Limiting sigs (https://vborg.vbsupport.ru/showthread.php?t=172568)

DivineMessenger 03-09-2008 10:17 PM

Limiting sigs
 
A guy gave me this advice on vbulletin.com

Quote:

Originally Posted by osayidan (Post 1515754)
If you're very strict about how large sigs get, you can set the limits in the admin options, but also make 100% sure the sigs use up a max amount of space by wrapping all sigs in a <div> tag with width and height defined to the max size you want sigs to be, and the "overflow: hidden" attribute, which will crop anything exceeding the width and height you dfine.

an example would be:

<div style="width: 500; height: 120; overflow: hidden;">
[users sig content here]
</div>

Now no matter what the user puts in their sig, be it a long line of text, or an img tag that goes larger than your div tag's defined size, it will be cropped. Keep in mind the content still loads, so if they put a large image on the img tag, the load time will be the same, but the forum layout doesn't get destroyed by it.

Can anyone tell me where I might put this code EXACTLY.

volitian 03-09-2008 10:25 PM

Im not sure that'll work in a vb template, I've not seen Divider and style tags in the template i've been looking at..

DivineMessenger 03-09-2008 10:26 PM

I have already seen many sites that use it like forums.ageofconan.com

Lynne 03-09-2008 10:45 PM

In postbit_legacy (and postbit maybe? You didn't say which you are using) you will find these lines:
HTML Code:

                <!-- sig -->
                        <div>
                                __________________<br />
                                $post[signature]
                        </div>
                <!-- / sig -->

And I think you are being directed to change them to:
HTML Code:

                <!-- sig -->
                        <div style="width: 500; height: 120; overflow: hidden;">
                                __________________<br />
                                $post[signature]
                        </div>
                <!-- / sig -->

Back up your templates first as I have no idea if that will work since I haven't tried it myself. Also, note that he was giving example dimensions (the 500 wide and 120 height). You will have to figure out what you want that set to yourself.

volitian 03-09-2008 10:56 PM

Quote:

Originally Posted by Lynne (Post 1461071)

Also, note that he was giving example dimensions (the 500 wide and 120 height). You will have to figure out what you want that set to yourself.

That would be the max sig size you want no? In design view in Dreamweaver I set all div's to the same size as the image im putting in.. otherwise you have to write margins or set alignment for image placement..

DivineMessenger 03-09-2008 10:59 PM

Thanx, i'll go try it and get back with you.

--------------- Added [DATE]1205107700[/DATE] at [TIME]1205107700[/TIME] ---------------

Nope, didn't work. He was telling me to edit the signature template I believe...

Lynne 03-09-2008 11:32 PM

You are talking about the signature that shows up in the showthread.php page, right? If so, there is no signature template, it is simply in the postbit. Did you edit both the postbit and the postbit_legacy template? And did you set the dimensions to the width/height that you want?

DivineMessenger 03-09-2008 11:42 PM

Quote:

Originally Posted by Lynne (Post 1461096)
You are talking about the signature that shows up in the showthread.php page, right? If so, there is no signature template, it is simply in the postbit. Did you edit both the postbit and the postbit_legacy template? And did you set the dimensions to the width/height that you want?

Yup, did all of the above.

--------------- Added [DATE]1205120661[/DATE] at [TIME]1205120661[/TIME] ---------------

could this part be wrong somehow?

<div style="width: 500; height: 120; overflow: hidden;">

todosbaneados 03-17-2008 11:00 AM

How can i restrict the size of the sigs?

thanks!

Dismounted 03-18-2008 05:38 AM

Have you read the thread before actually posting?


All times are GMT. The time now is 02:18 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.03482 seconds
  • Memory Usage 1,737KB
  • 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
  • (2)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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