Problem z modyfikacją - [Problem]Beermod
Alan007 - 09-05-2008, 19:32 Temat postu: [Problem]Beermod Witam.Wgrałem sobie modyfikacje beermod i mam takie coś jak wbijam na forum:
Kod: | Warning: include(./includes/functions_beermod.php) [function.include]: failed to open stream: No such file or directory in /home/accounts_a/alan007/public_html/common.php on line 397
Warning: include() [function.include]: Failed opening './includes/functions_beermod.php' for inclusion (include_path='.:/usr/share/pear') in /home/accounts_a/alan007/public_html/common.php on line 397
Fatal error: Call to a member function init() on a non-object in /home/accounts_a/alan007/public_html/index.php on line 80
|
Bardzo prosze o pomoc.
warna - 09-05-2008, 19:54
Wgrałeś dołączone pliki do BeerModa? Chodzi o /includes/functions_beermod.php wyświetlony w komunikacie.
Alan007 - 09-05-2008, 20:30
człowiek głupi byl i głupi będzie(ja) .Zapomniałem tego wgrać,bo robiłem na szybko,ale teraz jest jeszcze 1 problem,a mianowicie:
Jak wchodze np. w jaki kolwiek topic lub w oglądanie profilu jakiegoś usera itp. to odrazu wywala mi to:
Kod: | Parse error: syntax error, unexpected T_VARIABLE in /home/accounts_a/alan007/public_html/includes/usercp_viewprofile.php on line 781
|
koziolek - 09-05-2008, 20:38
pokaż linijki od 776 do 786 z pliku includes/usercp_viewprofile.php
Alan007 - 09-05-2008, 20:41
Proszę bardzo
Kod: | 'EXP' => $level_exp,
'EXP_WIDTH' => $level_exp_percent,
'EXP_EMPTY' => ( 100 - $level_exp_percent ),
'LEVEL' => $level_level,
'S_PROFILE_ACTION' => append_sid("profile.$phpEx"))// beer mod
$beermod->viewprofile($profiledata);
);
if ( $profiledata['user_from'] )
{
$template->assign_block_vars('location', array()); |
warna - 09-05-2008, 20:53
Zamień ten kawałek na poniższy
Kod: | 'EXP' => $level_exp,
'EXP_WIDTH' => $level_exp_percent,
'EXP_EMPTY' => ( 100 - $level_exp_percent ),
'LEVEL' => $level_level,
'S_PROFILE_ACTION' => append_sid("profile.$phpEx"))
);
// beer mod
$beermod->viewprofile($profiledata);
if ( $profiledata['user_from'] )
{
$template->assign_block_vars('location', array()); |
I uważaj co jest napisane w instrukcji.
koziolek - 09-05-2008, 20:53
powinno być chyba tak
Kod: | 'EXP' => $level_exp,
'EXP_WIDTH' => $level_exp_percent,
'EXP_EMPTY' => ( 100 - $level_exp_percent ),
'LEVEL' => $level_level,
'S_PROFILE_ACTION' => append_sid("profile.$phpEx"))
);
// beer mod
$beermod->viewprofile($profiledata);
if ( $profiledata['user_from'] )
{
$template->assign_block_vars('location', array()); |
edit: no nieeee.... Warna znowu szybszy
ale tym razem mniej
[ Komentarz dodany przez: warna: 09-05-2008, 21:55 ]
Alan007 - 09-05-2008, 21:13
Dobra macie "pomógł",ale mam jeszcze takie cos:
Kod: |
Parse error: syntax error, unexpected T_VARIABLE in /home/accounts_a/alan007/public_html/viewtopic.php on line 2615 |
Linijki od: 2615 do 2617:
Kod: | session_pagestart($user_ip, $forum_id);// beer mod
$beermod->init(__FILE__);
init_userprefs($userdata); |
Kod: | Parse error: syntax error, unexpected T_VARIABLE in /home/accounts_a/alan007/public_html/includes/usercp_viewprofile.php on line 781 |
Linijki od 777 do 782
Kod: | 'EXP_WIDTH' => $level_exp_percent,
'EXP_EMPTY' => ( 100 - $level_exp_percent ),
'LEVEL' => $level_level,
'S_PROFILE_ACTION' => append_sid("profile.$phpEx"))// beer mod
$beermod->viewprofile($profiledata);
); |
warna - 09-05-2008, 21:22
ad1) Daj trochę przed tą linią.
ad2) Znowu ten sam bład, co poprzednio. kod masz dodać po fragmencie
Kod: | 'S_PROFILE_ACTION' => append_sid("profile.$phpEx"))
); |
A nie w środku...
karol152 - 09-05-2008, 21:51
A jak zrobić by link odkrywał się po postawieniu piwa, a nie po odpisaniu na temat.
koziolek - 10-05-2008, 08:52
Alan007 napisał/a: | Linijki od: 2615 do 2617: | tylko, że błąd najczęściej występuj linijkę przed niż podaje w komunikacie, więc podaj od 2610
loool, pisze odpowiedź a nie zauważyłem posta Warny
karol152 napisał/a: | jak zrobić by link odkrywał się po postawieniu piwa, a nie po odpisaniu na temat. | do tego chyba musisz zainstalować BBCode Managera
|
|
|