Rucno instaliranje moda Napomena: Vazno je znati da modovi koji se nalaze na zvanicnom sajtu SMF-a su pravljeni i testirani na default temi. Sta to znaci? Pa znaci da vecinu modova necete moci da instalirate na Vas forum ili taj mod nece raditi jer se kodovi tema razlikuju. Ukoliko i fajlovi tema nisu isti postoji jos veca mogucnost da instaliranje moda bude uzaludan posao. Ipak pokusajte jer neke od tema koriste resurse default teme...
Vazno:
1. Pre bilo kakvog modovanja na forumu - obavezno uradite backup fajlova i baze.
2. Pre nego sto se odlucite za rucno instaliranje moda obratite paznju na fajlove koji nisu mogli da budu izmenjeni pri automatskom instaliranju.
Postupak rucnog instaliranja:Korak 1 - Download-ujte zipovan mod u Vas racunar.
Korak 2 - Unzip-ujte downloadovani paket u poseban folder.
Korak 3 - U folderu u kom ste raspakovali mod, nadjite fajl sa ekstenzijom (.xml), (.mod), (.modname), (.modification)
Korak 4 - Otvorite sada taj fajl (uputstvo) u nekom text editoru (jer Vam on daje instrukcije sta da modifikujete) nadjite
[edit file]...[/edit file]Ovo Vam pokazuje koji fajl (predlozak) je potrebno da modifikujete (index.template.php, display.template.php, message.template.php...). Otvorite taj fajl sa Vaseg foruma u nekom text editoru.
Korak 5 - Sada u otvoreni fajl iz moda nadjite
[search for]...[/search for]Ovo Vam pokazuje koji deo koda treba da nadjete u fajlu sa Vaseg foruma.
Korak 6 - Nakon tog koda nalazi se nesto od ovoga:
[add after]...[/add after] dodati posle
[add before]...[/add before] dodati pre...
[replace]...[/replace] zameniti sa...
Kako to izgleda u praksi?[edit file]
Themes/default/Display.template.php
[/edit file]
[search]
// Show the anchor for the top and for the first message. If the first message is new, say so.
[/search]
[replace]
global $bar_exps, $bar_posts;
// Show the anchor for the top and for the first message. If the first message is new, say so.
[/replace]Ili
[file name="$themedir/Display.template.php"]
[operation]
[search position="replace"][![CDATA[
// Show the anchor for the top and for the first message. If the first message is new, say so.
]]][/search]
[add][![CDATA[
global $bar_exps, $bar_posts;
// Show the anchor for the top and for the first message. If the first message is new, say so.
]]][/add]
[/operation]
[/file]Znaci modifikujemo display.template.php
U njemu trazimo:
// Show the anchor for the top and for the first message. If the first message is new, say so.Znaci taj deo menjamo sa
global $bar_exps, $bar_posts;
// Show the anchor for the top and for the first message. If the first message is new, say so.Sve u svemu nema neke velike filozofije, potrebna je samo dobra koncetracija. Jer visak ili manjak jednog apostrofa ili znaka Vam moze napraviti velike probleme
Pitanja postavljate samo ako imate opste nedoumice u vezi rucnog instaliranja, za pojedinacne modove otvorite novu temu. Hvala!