Ukrycie treści CODE w widoku profilu
Otwórz plik: sources/components_public/profile/topics.php
Znajdź:
//-----------------------------------------
// Return content..
//-----------------------------------------
Dodaj powyżej:
# Hide Code Content for Guests
if (!$this->ipsclass->member['id'])
{
$postlink = $content;
$post_info = preg_split('/(<!--ec1-->.*?<!--c2-->)/', $postlink, 65535, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
for ($moo=0; $moo<=count($post_info); $moo++) {
if(strstr($post_info[$moo],'<!--ec1-->'))
$postlink=str_replace($post_info[$moo],
"<div class='errorwrap'><h4>By zobaczyć treść musisz się <a href='{$this->ipsclass->vars['board_url']}/index.php?act=Login&CODE=00'>zalogować</a>. Nie masz konta? <a href='{$this->ipsclass->vars['board_url']}/index.php?act=Reg&CODE=00'>Zarejestruj</a> się już teraz!</h4></div>", $postlink);
}
$content = $postlink;
}
Zapisz i wyślij.
Otwórz plik: sources/components_public/profile/posts.php
Znajdź:
//-----------------------------------------
// Return content..
//-----------------------------------------
Dodaj powyżej:
# Hide Code Content for Guests
if (!$this->ipsclass->member['id'])
{
$postlink = $content;
$post_info = preg_split('/(<!--ec1-->.*?<!--c2-->)/', $postlink, 65535, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
for ($moo=0; $moo<=count($post_info); $moo++) {
if(strstr($post_info[$moo],'<!--ec1-->'))
$postlink=str_replace($post_info[$moo],
"<div class='errorwrap'><h4>By zobaczyć treść musisz się <a href='{$this->ipsclass->vars['board_url']}/index.php?act=Login&CODE=00'>zalogować</a>. Nie masz konta? <a href='{$this->ipsclass->vars['board_url']}/index.php?act=Reg&CODE=00'>Zarejestruj</a> się już teraz!</h4></div>", $postlink);
}
$content = $postlink;
}
Zapisz i wyślij.