Skip to Content

Disclaimer in paginile de forum si blog

Am gasit in o metoda simpla de a introduce un disclaimer in paginile de blog si forum. Se introduce urmatoarea bucata de cod la inceputul "node.tpl.php"

if ($node->type == 'blog' || $node->type == 'forum') {
$disclaimer = "please don't use profanity";
else { $disclaimer = ""; }

...iar apoi, in pozitia dorita:

<?php print $disclaimer; ?>

Oameni practici, eu pentru o problema similara as fi setat cate o pagina "node-blog.tpl.php" si "node-forum.tpl.php" Smile


Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Textual smileys will be replaced with graphical ones.

More information about formatting options

Demonstreaza ca esti barbat si nu robot si raspunde la intrebarea de mai jos. :)
Fill in the blank

Smokers | articole