Signature limit 255 characters
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexExplain Please
Author Message
critter
Newbie


Joined: Jun 16, 2005
Posts: 8
Location: Australia

PostPost subject: Signature limit 255 characters
Posted: Thu Jul 15, 2010 6:17 am
Reply with quote

Hi, firstly, i can't believe my username still works, last time i logged in was five years ago Shocked (still been using the script all that time though)

anyways...

I was wondering if it's possible to alter the signature charactor limit. It's set at 255 and i'd like to be able to reduce it.

As far as i can see, the only option is to turn it ON or OFF.

cheers!
Big grin

PS. Also, is it possible to not allow [ img ] tags in the signatures?


critter's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux / 2.2.15 / 5.0.90 / 5.2.9 / 9.2.1
Back to top
View user's profile
NanoCaiordo
Developer


Joined: Jun 29, 2004
Posts: 3677
Location: Melbourne, AU

PostPost subject: Re: Signature limit 255 characters
Posted: Thu Jul 15, 2010 9:15 am
Reply with quote

WELCOME critter, I take it as your websites still runs smoothly.
If that is the case (better it is ahaha) then it is best compliment our team could ever get.

[img] tags are allowed but if you use this tag you will really need 255 chars.

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
MySQL 5.1 / PHP 5.3 / NextGen()
Back to top
View user's profile Visit poster's website
critter
Newbie


Joined: Jun 16, 2005
Posts: 8
Location: Australia

PostPost subject: Re: Signature limit 255 characters
Posted: Thu Jul 15, 2010 10:04 am
Reply with quote

Hi NanoCaiordo, yes the site is still running smoothly and is pretty popular Big grin I have other websites using other scripts/CMS but i still like Dragonfly. I have still visited this Dragonfly forum over those years to search for information but have not logged in.

I was just wondering if it was possible to change the character limit because we get a few people putting big images or lots of text in their signatures and it can be annoying. It's not really that important but it'd be good to have control over what they can put in their signatures.


critter's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux / 2.2.15 / 5.0.90 / 5.2.9 / 9.2.1
Back to top
View user's profile
NanoCaiordo
Developer


Joined: Jun 29, 2004
Posts: 3677
Location: Melbourne, AU

PostPost subject: Re: Signature limit 255 characters
Posted: Thu Jul 15, 2010 3:00 pm
Reply with quote

Even if you limit the number of character users can still use huge images.
Limiting the signature wont fix the problem, you should apply strict forums rules instead.

If you want to limit the number of characters you will have to use phpMyAdmin or similar and force prefix_users -> user_sig length to whatever number you prefer.
This will truncate all users' signature exceeding the value you just set, thus creating issues to some.

Forum rules is the fix, forcing a shorter length is a workaround and users can easily go around it.

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
MySQL 5.1 / PHP 5.3 / NextGen()
Back to top
View user's profile Visit poster's website
greenday2k
Forum Admin


Joined: Aug 11, 2005
Posts: 484
Location: CO

PostPost subject: Re: Signature limit 255 characters
Posted: Thu Jul 15, 2010 4:13 pm
Reply with quote

Check this
dragonflycms.org/Forum...85/#152185

It works well on my forum centred site.

_________________
www.greenday2k.net



greenday2k's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
critter
Newbie


Joined: Jun 16, 2005
Posts: 8
Location: Australia

PostPost subject: Re: Signature limit 255 characters
Posted: Thu Jul 15, 2010 8:30 pm
Reply with quote

Thanks NanoCaiordo, yes we do have some rules but we try to have a pretty relaxed forum. If people have the option to do something they will do it and then we have to do work to tell them not to do it, so that creates work for us Laughing

So i find it easier to not give them the option and if it's not there they wont miss it Laughing

Thanks for that suggestion with the user_sig, i have never looked in there before, and there's some interesting things. I should explore the database more really but i never like to touch it too much incase i break it.


critter's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux / 2.2.15 / 5.0.90 / 5.2.9 / 9.2.1
Back to top
View user's profile
critter
Newbie


Joined: Jun 16, 2005
Posts: 8
Location: Australia

PostPost subject: Re: Signature limit 255 characters
Posted: Tue Jul 27, 2010 8:47 pm
Reply with quote

yeah, i think you can see how that could get annoying to forum members having a big signature written under each persons post, and then multiply that by a thread full of annoying signatures is pretty ugly, but if each person only had a short signature it'd be nicer Very Happy

critter's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux / 2.2.15 / 5.0.90 / 5.2.9 / 9.2.1
Back to top
View user's profile
layingback
Forum Admin


Joined: Apr 19, 2004
Posts: 953

PostPost subject: Re: Signature limit 255 characters
Posted: Tue Jul 27, 2010 9:10 pm
Reply with quote

Haven't looked at the code, but it's likely that any change you make to the length will only affect NEW signatures being created. To change current ones, you'd either have to edit the db yourself (awkward), or rig up some code to force users to update their signatures (and fall under the shorter limit if that indeed works for new/edited sigs.).
_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website
critter
Newbie


Joined: Jun 16, 2005
Posts: 8
Location: Australia

PostPost subject: Re: Signature limit 255 characters
Posted: Wed Jul 28, 2010 12:39 am
Reply with quote

yeah when i changed it to 100 i cancelled my signature and entered a new one and it didn't seem to have any effect.

and like the sginature lengths here in mine, i think there's more than 255 charactors in it anyway Laughing


critter's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux / 2.2.15 / 5.0.90 / 5.2.9 / 9.2.1
Back to top
View user's profile
NanoCaiordo
Developer


Joined: Jun 29, 2004
Posts: 3677
Location: Melbourne, AU

PostPost subject: Re: Signature limit 255 characters
Posted: Wed Jul 28, 2010 12:08 pm
Reply with quote

Ok just noticed that users->user_sig is type of TEXT.

Sometime 4 years ago, I presume around version 9.0.8, the field type was changed from VARCHAR to TEXT.

You need to change the users->user_sig from TEXT to VARCHAR, specify the length, say 50, and then update users_fields->user_sig | length to 50 too.

This WILL cut off currents signatures as well, however next upgrade it will go back to TEXT.

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
MySQL 5.1 / PHP 5.3 / NextGen()
Back to top
View user's profile Visit poster's website
critter
Newbie


Joined: Jun 16, 2005
Posts: 8
Location: Australia

PostPost subject: Re: Signature limit 255 characters
Posted: Wed Jul 28, 2010 8:19 pm
Reply with quote

Thanks for the help NanoCaiordo, i fixed my server specs up.

I went through each drop down box menu and can't see any TEXT or VARCHAR. I think i'm looking in the right location?

I've attached an image of what i am looking at.


critter's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux / 2.2.15 / 5.0.90 / 5.2.9 / 9.2.1
Back to top
View user's profile
layingback
Forum Admin


Joined: Apr 19, 2004
Posts: 953

PostPost subject: Re: Signature limit 255 characters
Posted: Wed Jul 28, 2010 9:10 pm
Reply with quote

Try db file {cms}.users (not {cms}.users.fields)
_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website
critter
Newbie


Joined: Jun 16, 2005
Posts: 8
Location: Australia

PostPost subject: Re: Signature limit 255 characters
Posted: Thu Jul 29, 2010 6:11 am
Reply with quote

layingback wrote:
Try db file {cms}.users (not {cms}.users.fields)


Excellent!! Thanks, i found the right spot! There's so many ways to look at the same thing isn't there.

I also shortened the Location to 20 characters. Some people write whole stories in there sometimes Rolling Eyes

Thanks again... hah i'm still laughing because some people are going to freak out that their signatures have been choppped off Laughing


critter's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux / 2.2.15 / 5.0.90 / 5.2.9 / 9.2.1
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexExplain Please All times are GMT
Page 1 of 1


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

stopsoftwarepatents.eu petition banner
User Info [x]

Welcome Anonymous

Nickname
Password
(Register)

Last CVS commits [x]

Languages [x]

Community [x]

Support for DragonflyCMS in a other languages:

Deutsch
Español

X-links [x]
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

Preview theme [x]
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.


You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
This page generated in 0.8765 seconds with 16 DB Queries in 0.2002 seconds
Memory Usage: 2.99 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy