[ lukijanj @ 17.09.2010. 09:22 ] @
kako u smf forumu namestiti da svaka stranica foruma ima zaseban description i keyword po mogucnosti po nazivu te stranice tj teme???
nasao sam ovaj mod al ne znam kako da ispisem tu naredbu

FIND this
Code: [Select]
<meta name="description" content="', $context['page_title'], '" />
REPLACE with
Code: [Select]
';
echo (!empty($modSettings['meta_description'])) ? ' <meta name="description" content="'. $modSettings['meta_description'] .'" />' : '<meta name="description" content="'. $context['page_title'] .'" />
AND FIND this
Code: [Select]
, '
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
REPLACE with
Code: [Select]
;
echo (!empty($modSettings['meta_keywords'])) ? '
<meta name="keywords" content="'. $modSettings['meta_keywords'] .'" />' : '';
echo (!empty($modSettings['meta_copyright'])) ? '
<meta name="copyright" content="'. $modSettings['meta_copyright'] .'" />' : '';
echo (!empty($modSettings['meta_author'])) ? '
<meta name="author" content="'. $modSettings['meta_author'] .'" />' : '';
echo '
[ Aleksandar Ružičić @ 17.09.2010. 13:08 ] @
Uzmes neki malo napredniji editor, recimo Notepad++, otvoris fajl koji kazu i odes u Find & Replace opciju (obicno je Ctrl+H shortcut, al nisam siguran za pomenuti editor) sta ti kazu pod "FIND this" to kucas u "Find" polje, sta ti kazu pod "REPLACE with" to kucas u "Replace" polje i pritisnes "Replace" (ili slicno nazvano) dugme.

sve ovo mozes i sa obicnim notepad-om, ali je bolje da koristis neki editor koji ima syntax-highlighting za php.
[ lukijanj @ 17.09.2010. 14:53 ] @
sve sam probao ali nece forum onda uopse ne radi
[ DR83 @ 18.09.2010. 18:54 ] @
Nesto onda ne radis kako treba.