Novo

Forum kao aplikacija na telefonu

Dodajte forum na početni ekran i koristite ga kao aplikaciju, sa menijem na dnu ekrana.

  • 4 odgovora
  • 2.043 pregleda

Najnovija ↓

keyword i description u smf forumu 17.09.2010. u 10:22 · pre 196 meseci #1
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 '
Re: keyword i description u smf forumu 17.09.2010. u 14:08 · pre 196 meseci #2
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.
Potpis
rafforum.rs - Forum Računarskog Fakulteta
Prijavite se da biste odgovorili u ovoj temi.PrijavaRegistracija

Premeštanje teme