Ecco a voi un utile metodo per accumulare più utenti registrati alla vostra IP Board.


Andiamo a modificare il seguente file:
/admin/applications/forums/modules_public/forums/topics.php

Cerchiamo questa riga:

Codice:
$template = $this->registry->output->getTemplate('topic')->topicViewTemplate( $this->forum, $this->topic, $post_data, $displayData );


E aggiungiamo sopra questo codice:

Codice:
if (!$this->memberData['member_id'])
                {
                    foreach($post_data as $k => $postData)
                        {
                            foreach($postData as $key => $post)
                                {
                                    $post_data[$k][$key]['post'] = preg_replace('#<pre class=\'prettyprint\'>(.*?)</pre>#', ' <font color=\'red\'><b>Please <a href=\'index.php?app=core&module=global&section=login\' style=\'text-decoration:none;\'>Login</a> or <a href=\'index.php?app=core&module=global&section=register\' style=\'text-decoration:none;\'>Signup</a> to see this Hidden Code</b></font> ', $post['post']);
                                }
                        }
                }
                
        if (!$this->memberData['member_id'])
                {
                    foreach($post_data as $k => $postData)
                        {
                            foreach($postData as $key => $post)
                                {
                                        $post_data[$k][$key]['post'] = preg_replace('#<a(.*?)rel=\'nofollow external\'(.*?)<(.*?)a>#', ' <font color=\'red\'><b>Please <a href=\'index.php?app=core&module=global&section=login\' style=\'text-decoration:none;\'>Login</a> or <a href=\'index.php?app=core&module=global&section=register\' style=\'text-decoration:none;\'>Signup</a> to see this Hidden Link</b></font> ', $post['post']);
                                }
                        }
                }


Questo è il risultato finale:

Please Login or Signup to see this Hidden Link!