Home Private Messages Search
CPG Dragonfly™ CMS Dedicated Server & Bandwidth Sponsored by DedicatedNOW
Toggle Content
 
Forums ⇒ DragonflyCMS ⇒ Explain Please ⇒ Signature limit 255 characters


Signature limit 255 characters
Ask questions and read explanations on how to use things/settings or why "X" is on page "Y."
Post new topic    Reply to topic    Printer Friendly Page     Forum Index ⇒  Explain Please

View previous topic :: View next topic  
Author Message
critter
Newbie
Newbie

Offline Offline
Joined: Jun 16, 2005
Posts: 8
Location: Australia
PostPosted: Thu Jul 15, 2010 6:17 am
Post subject: Signature limit 255 characters

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
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Thu Jul 15, 2010 9:15 am
Post subject: Re: Signature limit 255 characters

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! ::.

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


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

Offline Offline
Joined: Jun 16, 2005
Posts: 8
Location: Australia
PostPosted: Thu Jul 15, 2010 10:04 am
Post subject: Re: Signature limit 255 characters

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
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Thu Jul 15, 2010 3:00 pm
Post subject: Re: Signature limit 255 characters

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! ::.

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


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

Offline Offline
Joined: Aug 11, 2005
Posts: 489
Location: CO
PostPosted: Thu Jul 15, 2010 4:13 pm
Post subject: Re: Signature limit 255 characters

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
Newbie

Offline Offline
Joined: Jun 16, 2005
Posts: 8
Location: Australia
PostPosted: Thu Jul 15, 2010 8:30 pm
Post subject: Re: Signature limit 255 characters

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
Newbie

Offline Offline
Joined: Jun 16, 2005
Posts: 8
Location: Australia
PostPosted: Tue Jul 27, 2010 8:47 pm
Post subject: Re: Signature limit 255 characters

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
Forum Admin

Offline Offline
Joined: Apr 19, 2004
Posts: 1040

PostPosted: Tue Jul 27, 2010 9:10 pm
Post subject: Re: Signature limit 255 characters

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 Photo Gallery
critter
Newbie
Newbie

Offline Offline
Joined: Jun 16, 2005
Posts: 8
Location: Australia
PostPosted: Wed Jul 28, 2010 12:39 am
Post subject: Re: Signature limit 255 characters

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
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Wed Jul 28, 2010 12:08 pm
Post subject: Re: Signature limit 255 characters

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! ::.

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


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

Offline Offline
Joined: Jun 16, 2005
Posts: 8
Location: Australia
PostPosted: Wed Jul 28, 2010 8:19 pm
Post subject: Re: Signature limit 255 characters

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
Forum Admin

Offline Offline
Joined: Apr 19, 2004
Posts: 1040

PostPosted: Wed Jul 28, 2010 9:10 pm
Post subject: Re: Signature limit 255 characters

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 Photo Gallery
critter
Newbie
Newbie

Offline Offline
Joined: Jun 16, 2005
Posts: 8
Location: Australia
PostPosted: Thu Jul 29, 2010 6:11 am
Post subject: Re: Signature limit 255 characters

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 Index ⇒  Explain Please
Page 1 of 1
All times are GMT



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


 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.
· Removed index.php depency.
· v9 fixed menu hoverings on touch screens.
· Fixed menu hoverings on touch screens.
· Fixed empty $Module object

Детальніше...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
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

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
Interactive software released under GNU GPL, Code Credits, Privacy Policy