vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Limiting the size of the user signature (https://vborg.vbsupport.ru/showthread.php?t=54904)

Importhookup 07-01-2003 04:12 AM

Limiting the size of the user signature
 
Sorry about the last post, I actually have Version 2.3.0 and I'm wondering if there's anything I can do to limit the size of the user's signatures. Any help would be great, thanks.

Xenon 07-01-2003 07:02 AM

there are some hacks around which will help you with this issue.

I'm sure you'll find em with the Searchfunction

Zzed 07-01-2003 07:42 AM

I recently created an unpublished hack where I limit the users' signatures to 10 lines and 2000 characters max. My forums have very high traffic and I could not afford to make this a real time hack. Instead I added a shadow signature field to the user table and put a copy of the possibly truncated signature in the shadow at the time when the user edits his/her signature. The shadow signature is the one that I display in the threads.

The reason for the shadow is to prevent the users from losing data in the sig by doing a merciless truncation.

Let me know if this hack is of use to anyone and I will release it.

Xenon 07-01-2003 07:48 AM

hmm Zzed, why don't you do it like i did here on vb.org.
Whenever someone submists an invalid sig, within the usercp, he get's an errormessage containing the sig rules.

that way he doesn't loose any data, and also you don't have to change the db structure

Zzed 07-01-2003 07:52 AM

Quote:

Today at 01:48 AM Xenon said this in Post #4
hmm Zzed, why don't you do it like i did here on vb.org.
Whenever someone submists an invalid sig, within the usercp, he get's an errormessage containing the sig rules.

that way he doesn't loose any data, and also you don't have to change the db structure

I assume that is an unpublished hack. :)

But my other reason for doing it the way I did stems from my laziness. I didn't want to code any intermediate error screens to enforce the sig guidelines. :)

Xenon 07-01-2003 09:26 AM

Yes, it's unpublished ;)

hehe, that's the advantage of several admins, erwin made some good bbcodes which i used within the error msg to display.


All times are GMT. The time now is 10:03 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00968 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete