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:
|
All times are GMT. The time now is 01:11 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:
|