Mini-Plugin: Sistema i problemi con ... nei titoli
Questo plugin permette di correggere i titoli al volo che hanno più di 3 punti consecutivi e che non utilizzano la spaziatura corretta.
Dato che si tratta di un plugin così piccolo, non viene fornito un prodotto, ma semplicemente il codice:
Codice:
Prodotto: vBulletin
Versione: 3.7.x-4.x
Locazione Hook: newthread_post_start
Titolo: Fix ... issues
Codice:
if($subject = $vbulletin->GPC['subject'])
{
// Get rid of more than 3 dots
while(strpos($subject, '....') !== false)
{
$subject = str_replace('....', '...', $subject);
}
// Surround dots with spaces
$subject = str_replace('...', ' ... ', $subject);
// Get rid of double and external spaces
$subject = str_replace(' ', ' ', trim($subject));
$vbulletin->GPC['subject'] = $subject;
}