WordPress: nastavite knjigo gostov - kako deluje
V WordPressu lahko nastavite tudi knjigo gostov brez vtičnikov. Pokazali vam bomo, kako.
Vstavite knjigo gostov na domačo stran Wordpress brez vtičnikov - to morate storiti
- Prijavite se na strežnik prek FTP (npr. WinSCP) in preklopite v WordPress imenik.
- Kopirajte datoteko "comments.php" in jo preimenujte v "guestbook_comments.php".
- Kopirajte datoteko "page.php" in jo preimenujte v "Knjiga gostov.php".
- Odprite "guestbook.php" in na vrhu vstavite naslednjo kodo:
- S tem dodelite WordPressu, da je predloga.
- V isti datoteki morate spremeniti vrstico "" v "". Tako boste lahko vpoklicali tudi svojo knjigo gostov.
- Zdaj odprite datoteko "guestbook_comments.php" in spremenite kodo "
Fatal error: Uncaught Error: Call to undefined function _n() in /var/www/html/!php-gen-lang/v1-core/macros.php(82) : eval()'d code:65 Stack trace: #0 /var/www/html/!php-gen-lang/v1-core/macros.php(82): eval() #1 /var/www/html/!php-gen-lang/v1-core/index-global.php(222): Macros->macros_parse() #2 /var/www/html/hackzl.com/sl.hackzl.com/index.php(7): require_once('/var/www/html/!...') #3 {main} thrown in /var/www/html/!php-gen-lang/v1-core/macros.php(82) : eval()'d code on line 65