vb.org Archive

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

Alphawolf83 08-14-2009 10:00 PM

Limit Links In Signature
 
1 Attachment(s)
This version is for 3.8.x only, if you'd like to use it with 3.6.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.5
Updated for 3.8.x

Sweeks 08-15-2009 02:31 PM

Installed, thank you for this :)

erel34 08-15-2009 04:56 PM

thanks

saltedm8 08-15-2009 05:09 PM

sweet, been waiting for this.. nice work, thank you

thewebhostingdi 09-19-2009 04:27 AM

Just to draw the attention of developer ... text written in USERGROUP option is having a spelling mistake "Maximal number of links in signature" ...

I came to know this ... When I was searching for "maximum" word in usergroup option after adding this plugin.

Please correct "Maximal" with "Maximum" so that people can find it easily ....

Prisim 09-19-2009 02:01 PM

Reserved Nice HAck

KID_1194 09-27-2009 10:19 AM

Thanks .. Alpha ..

But I couldn't find the option 'Allow Link BBCode' ...

could you be more specific !!

popowich 10-28-2009 10:45 PM

I don't see any new usergroup options after installing this product on 3.8.4 PL1.

-Raymond

greenflag 11-05-2009 05:03 PM

i added this. will it correct existing sigs with more than the allowed amount?

Adam H 01-18-2010 11:27 PM

What would the new template edits be to replace these to make it work with VB4

Code:

Search in Template modifysignature
--------------------------------------------------------------------------------
<div>$vbphrase[can_upload_ani_gif_sig_img] <strong><if condition="$show['cananimatesigpic']">$vbphrase[yes]<else />$vbphrase[no]</if></strong></div>
--------------------------------------------------------------------------------

Add below
--------------------------------------------------------------------------------
<div>$vbphrase[max_link_tags]: <strong>$max_link_tags</strong></div>
--------------------------------------------------------------------------------



All times are GMT. The time now is 03:12 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.01168 seconds
  • Memory Usage 1,739KB
  • 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_code_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