vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Administrative and Maintenance Tools - Limit Links In Signature (https://vborg.vbsupport.ru/showthread.php?t=163022)

Alphawolf83 11-17-2007 10:00 PM

Limit Links In Signature
 
This version is for 3.6.x only, if you'd like to use it with 3.8.x, click here!

DESCRIPTION

In short, this hack allows you to set a maximal number of allowed links in signatures for each user group. If the user is previewing or saving the signature with more links than allowed, it returns an error message with the current number of links and the allowed one.

Note that this hack does also have any effect when the user has a secondary (member) group. The permissions of users whose secondary (member) group is allowed to use more links than the primary group will be taken. So, if a user is in primary user group "Registered" with 2 links allowed and in secondary group "Verified" with 3 links allowed he is allowed to have 3 links in signature (if the user group option 'Allow Users to have Member Groups' is set to Yes).

The allowed number of links will be shown in the 'Signature Rules' box (if you do the template change).

STATISTICS

File Uploads: 2
File Changes: 0
Template Changes: 1
Products to Install: 1
Time to Install: ~ 2 minutes

FEATURES
  • Configuration Options per user group
    • Maximal number of links in signature (int)
Done. ;)

INSTALLATION

- Upload files from the upload folder
- Import the product via ACP > Manage Products > Import
- Do the template change (can be found within the ZIP file!)

CONFIGURATION

Note that by default (after installation) the values are set to 0, means all user groups do not have any limitations unless you edit the permissions!

To set/edit the allowed number of signature links go to "Manage Usergroups", edit the desired usergroup by scrolling down to the "Signature" box where you'll find the new permission setting. Enter 0 to not limit the number of links. If you do not want to allow links in general, set the option 'Allow Link BBCode' to No.

VERSION HISTORY

0.5.0
Initial Release of Limit Links In Signature

Alphawolf83 11-18-2007 01:01 PM

Reserved (moved screenshot to the first post).

PoetJA-1975 11-18-2007 01:55 PM

Looks good - question though - Say Registered Member group will have simply 1 link per siggy... If the Member already has 2 links - will the system notify Member to edit signature?

Anyway - thanx for the sharing ;)

Jacquii.

Alphawolf83 11-18-2007 02:11 PM

Hey PoetJA-1975,

unless the user isnt previewing or trying to save his signature, the script wont 'see' the amount of links in the user's signature.

FleaBag 11-18-2007 03:39 PM

Nice addition, and definitely worthy of default featurage!

Thanks. :)

PoetJA-1975 11-18-2007 10:49 PM

Quote:

Originally Posted by Alphawolf83 (Post 1384940)
Hey PoetJA-1975,

unless the user isnt previewing or trying to save his signature, the script wont 'see' the amount of links in the user's signature.

OK = Thanx for the share ;)

Jacquii.

Alphawolf83 11-19-2007 05:40 AM

Quote:

Originally Posted by PoetJA-1975 (Post 1385223)
OK = Thanx for the share ;)

Jacquii.

It's a nice idea though and is worth a thought for future releases. :)

projectego 11-19-2007 07:02 AM

Great idea. :)

[high]* projectego clicks install[/high]

PhoneiX 11-19-2007 07:11 AM

A suggestion: If we set permissions for per usergroup and/or by post counts, it would be great!

~Installed.

PoetJA-1975 11-19-2007 11:49 PM

Quote:

Originally Posted by Alphawolf83 (Post 1385346)
It's a nice idea though and is worth a thought for future releases. :)

Yes - I think so too
Again = Thanx for the share ;)

Jacquii.


All times are GMT. The time now is 03:51 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
  • Page Generation 0.01034 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete