![]() |
|
Article Options |
Dealing with long signatures
by
![]() 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 :
This only changes signatures containing over 100 characters. Obviously you can change the 100 to any figure. Some of our members have signatures over 400 characters in size. At least if the text is small it doesn't take up a whole page. No members have liked this post.
Last edited by Spinball; 02 Aug 2004 at 21:52.. |
||||
Views: 4928
|
Comments |
#2
|
||||
|
||||
I think you haven't noticed the vb option "Maximum Length of Signature" in your admin cp?
![]()
__________________
Logician's Blog | WebTemplates for vb 4.x : VB Integrated Content Management System No members have liked this post.
|
#3
|
||||
|
||||
this doesnt help with people having large, or many images in signitures though :/ doesnt help me much, but thanks
![]() No members have liked this post.
|
#4
|
||||
|
||||
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?
No members have liked this post.
|
#5
|
||||
|
||||
Originally Posted by Logician
Well no, actually I had overlooked that. It was set to 500 and I've dropped it to 100. Still for existing users it's useful. And for people with forums where they want people to have lengthier sigs.
Originally Posted by drumsy
Well putting the size tag around all signatures will make them longer by 14 characters. So there's little point in doing it on sigs below, say, 30 characters.
I have never run queries in the admnicp since I use phpmyadmin but I guess you could. Definitely backup your usertextfield table first.
__________________
AVForums.com the UK's largest audio visual home consumer electronics forums. Now using Xenforo because vB5 is not suitable for large forums and vB3 and vB4 are no longer being developed. No members have liked this post.
Last edited by Spinball; 02 Aug 2004 at 22:27. |
#6
|
||||
|
||||
I find this more useful, its what i use on my forums. Cuts long sigs out.
__________________
Full Time PHP Developer Please feel free to contact me if you have any paid work to be done. No members have liked this post.
|
#7
|
||||
|
||||
Can you please indicate where you put this?
I tried it in postbit here :
and it didn't make the slightest bit of difference.
__________________
AVForums.com the UK's largest audio visual home consumer electronics forums. Now using Xenforo because vB5 is not suitable for large forums and vB3 and vB4 are no longer being developed. No members have liked this post.
Last edited by Spinball; 06 Feb 2005 at 11:57. |
#8
|
||||||||
|
||||||||
In your postbit, or postbit_legacy find:
And replace with:
Then test it. Change the width and height to your convience.
__________________
Full Time PHP Developer Please feel free to contact me if you have any paid work to be done. No members have liked this post.
|
#9
|
||||
|
||||
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...
__________________
~* Sephiroth / Final Fantasy / Oddworld / Cloverfield Fan *~
[Advent Children.net] [Dirge of Cerberus.net] [Compilation Network] [Oddworld-Web] [Oddworld Forums] No members have liked this post.
|
#10
|
|||
|
|||
Originally Posted by Abe Babe
I don't understand. whats the problem? I've been using this http://www.vbulletin.org/forum/showp...36&postcount=8 at www.vbhacks.us and it works on all browsers and with no problems.
__________________
Full Time PHP Developer Please feel free to contact me if you have any paid work to be done. No members have liked this post.
|
#11
|
||||
|
||||
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...
__________________
~* Sephiroth / Final Fantasy / Oddworld / Cloverfield Fan *~
[Advent Children.net] [Dirge of Cerberus.net] [Compilation Network] [Oddworld-Web] [Oddworld Forums] No members have liked this post.
Last edited by Abe Babe; 11 Oct 2004 at 10:35. |
#12
|
||||
|
||||
Mmm... strictly speaking... this is not a hack at all.
![]() No members have liked this post.
|
#13
|
|||
|
|||
Nope its a template mod. I posted this ay vBt a long time ago. Back in the vB2 days.
__________________
Full Time PHP Developer Please feel free to contact me if you have any paid work to be done. No members have liked this post.
|
#14
|
|||
|
|||
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. No members have liked this post.
|
#15
|
|||
|
|||
You would just edit the appropeaite template and add the same thing where you find the signature variable.
__________________
Full Time PHP Developer Please feel free to contact me if you have any paid work to be done. No members have liked this post.
|
![]() |
«
Previous Article
|
Next Article
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Article Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 02:41.