Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-09-2008, 10:17 PM
DivineMessenger DivineMessenger is offline
 
Join Date: Feb 2008
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Limiting sigs

A guy gave me this advice on vbulletin.com

Quote:
Originally Posted by osayidan View Post
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.
Reply With Quote
  #2  
Old 03-09-2008, 10:25 PM
volitian volitian is offline
 
Join Date: Mar 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
  #3  
Old 03-09-2008, 10:26 PM
DivineMessenger DivineMessenger is offline
 
Join Date: Feb 2008
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have already seen many sites that use it like forums.ageofconan.com
Reply With Quote
  #4  
Old 03-09-2008, 10:45 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 03-09-2008, 10:56 PM
volitian volitian is offline
 
Join Date: Mar 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post

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..
Reply With Quote
  #6  
Old 03-09-2008, 10:59 PM
DivineMessenger DivineMessenger is offline
 
Join Date: Feb 2008
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #7  
Old 03-09-2008, 11:32 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #8  
Old 03-09-2008, 11:42 PM
DivineMessenger DivineMessenger is offline
 
Join Date: Feb 2008
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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;">
Reply With Quote
  #9  
Old 03-17-2008, 11:00 AM
todosbaneados todosbaneados is offline
 
Join Date: Feb 2008
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can i restrict the size of the sigs?

thanks!
Reply With Quote
  #10  
Old 03-18-2008, 05:38 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you read the thread before actually posting?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:16 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.07920 seconds
  • Memory Usage 2,249KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete