Is there anyway to limit Sigs to only appearing once in a thread?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PcosKat
    Senior Member
    • May 2002
    • 640
    • 3.7.x

    [Forum] Is there anyway to limit Sigs to only appearing once in a thread?

    I know that people can uncheck their sig if they post a 2 or more times in a thread, but is there an admin function that I can enable that at least limits a person's sig to appear either:

    1) Once in a thread

    or

    2) Once per page in a thread
  • AusPhotography
    Senior Member
    • Nov 2007
    • 1552

    #2
    2)

    Make a plugin at hook 'postbit_display_start'

    Code:
    if (THIS_SCRIPT != 'private')
    {
        if ($this->post['signature'] && $this->cache['sig'][$this->post['userid']])
        {
            $this->post['signature']     = '';
            $this->post['showsignature'] = false;
        }
    }
    environment: Centos 6.9, Apache v2.4.25, PHP 5.6.30/xCache, MariaDB 10.22 -- vB5 Connect Licensed

    AusPhotography - Australia's Premier Photographic Forum vB4.2.3
    Rick (site owner) and Kym (site tech) sharing this account

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...