Dealing with long signatures
Hi Folks,
I don't know if you consider SQL tips as hacks, but if so then please accept the following for vB 3.x. We have a problem on our forum with people putting in rediculously long signatures. Some of these look ok, though, as the occasional responsible people are using only a few carriage returns and make use of the [size] tag to make their signature text smaller. This SQL script is very simple but for people not accustomed to SQL, it might be useful. It doesn't deal with carriage returns (yet) but does deal with otherwise lengthy signatures by wrapping a size tag round them but ONLY if the user hasn't used a size tag already : PHP Code:
|
I think you haven't noticed the vb option "Maximum Length of Signature" in your admin cp? ;)
|
this doesnt help with people having large, or many images in signitures though :/ doesnt help me much, but thanks :)
|
Hmmm, so if I wanted to limit font size in signatures, I could use this query by changing 100 to 1? Would I run this query via the AdminCP?
|
Quote:
Quote:
I have never run queries in the admnicp since I use phpmyadmin but I guess you could. Definitely backup your usertextfield table first. |
I find this more useful, its what i use on my forums. Cuts long sigs out.
HTML Code:
<div style="width: 500px; height: 135px; overflow: hidden;"> |
Can you please indicate where you put this?
I tried it in postbit here : HTML Code:
<!-- sig --> |
In your postbit, or postbit_legacy find:
HTML Code:
<if condition="$post['signature']"> HTML Code:
|
I've been trying to get the div overflow method working for many months now ... both now that one of my forums is on vBulletin and before when it was on Invisionboard.
The problem I find is that it works with Mozilla/Firefox, but not with IE. If there were a way to get it working with both browsers, it would be great. Most users still stick with IE, so they are the ones you want to have it working for. And my mods keep moaning about signature problems, I don't even want anything complex to limit them, just something simple like that would be ideal. Abe Babe... |
Quote:
|
I finally got it working, I typed my post too soon ... but I tried again with your code and it worked fine. I compared it to the other code I had come across elsewhere and they were missing the px [just had the numeric value]. I guess Mozilla can recognize that and IE cannot. I should have picked that up myself, but I always get frustrated with CSS and miss the little things. Thanks for your help! :)
Abe Babe... |
Mmm... strictly speaking... this is not a hack at all. :)
|
Nope its a template mod. I posted this ay vBt a long time ago. Back in the vB2 days.
|
Thanks for the postbit mod Live Wire.Works a treat.
Is there anyway to apply this to the User CP and the profile page. Its a bit confusing for some of our members when their "oversized" sigs are displayed in full in their User CP,and profile pages,but are then chopped in the postbit. |
You would just edit the appropeaite template and add the same thing where you find the signature variable.
|
Another approach is to let the users decide what's too long and what's not
https://vborg.vbsupport.ru/showthread.php?t=69897 bejetta wrote the vb2 original hack and I transposed it to vb3. The vb3 install file includes the text of the original hack. |
Quote:
I tried it and decided not to keep it. What we need is a way to truncate the signature only if it's bigger than 500x50 or so pixels. |
Quote:
|
Quote:
|
Yes, I have introduced this on my forum. I guess as has been mentioned, the only problem is that say for instance, I have a max height of 500px, yet some members only have small sigs, there will be quite a bit of blank space underneath their sigs.
|
Quote:
:) limit from what they input would be better :) |
All times are GMT. The time now is 03:01 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 | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|