 
				
			
			They are at the top of the list.
Unit is in years.
     public function hasRequiredAge()
     {
          $visitor = \XF::visitor();
          //$minAge  = \XF::options()->siropuShoutboxMinAge;
          if ($visitor->user_id && $visitor->Profile)
          {
                $interval = now() - $visitor->register_date; // register_date (timestamp)
              
                if ($interval > 86400 * 3) { // seniority of the account in seconds
                    return false;
                }
          }
          return true;
     }    public function render()
    {
        $visitor = \XF::visitor();
        if ($visitor->hasPermission('siropuShoutbox', 'view'))
        {
            return $this->renderer('siropu_shoutbox', [
                'shoutbox' => $this->getShoutboxParams(['height' => $this->options['height'], 'required_age' => $visitor->hasRequiredAge() ]),
                'title'    => $this->getTitle() ?: \XF::phrase('siropu_shoutbox')
            ]);
        }
    }<xf:if is="$shoutbox.required_age">
    siropu_shoutbox_template...
<xf:else />
    <div class="alert-danger">
        You cannot use the shoutbox, you need to be registered since XX days/seconds
    </div>
</xf:if>What parameters?
On all devices?I'd like the option to hide/remove time stamps.
Whichever is easier. Ideally I'd like timestamps to disappear if the box width is less than, say, 300px (because of device screen size, or because it's a sidebar widget, or because the user resized their window, whichever the case). If that's too much of a headache - then just an option to remove them altogether, on all devices.On all devices?

Added two new widget option:
- Enable sidebar style - If you use it in the sidebar and want the same header as the rest of the sidebar widgets.
- Hide shout date - If you don't want to display shout date & time.
We use essential cookies to make this site work, and optional cookies to enhance your experience.