phpBB2 by Przemo
Support forów phpBB2 modified by Przemo

FAQFAQ - PIERWSZA POMOC!!  regulaminREGULAMIN  SzukajSZUKAJ  UżytkownicyUżytkownicy  GrupyGrupy  StatystykiStatystyki
RejestracjaRejestracja  ZalogujZaloguj  DownloadDownload  katalog Forów DyskusyjnychKatalog Forów   FAQ Video tutoriale

Poprzedni temat «» Następny temat
Tell a Friend MAIL is NOT containing the LINK
Autor Wiadomość
bitboy0

Posty: 17
Wysłany: 12-05-2004, 22:45   Tell a Friend MAIL is NOT containing the LINK

Hi Przemo,

Thanks for your work. I like this Forum and the way it is moded!

I have some questions anyway...

1. The number of Queries seems a litle high, doesn't it?
2. The "TellaFriend"-Mod doesn't work right. The email is ok, but there is NOT a link in it...

because I'm from Germany I'll provide German Files the next week I guess.

I found the forum because the little (end of vote) is mine ;)

regards Sven
 
     
Gadatliwa Kasia 

   
Przemo



Pomógł: 210 razy
Posty: 3148
Wysłany: 12-05-2004, 23:51   

It has been a little error in this mod, I have fixed it, now you can download it from this attachment.
Do you intend to translate all language files?

tellafriend.zip
Pobierz Plik ściągnięto 685 raz(y) 2,04 KB

 
     
bitboy0

Posty: 17
Wysłany: 13-05-2004, 12:16   

Yes I do... It's lots of work but I already have translated 50% of the lang_main.php ... this is the biggest one!

Thanks for the Patch ... I'll try asap

One more Problem occured:
Kod:
Warning: tempnam(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/web11/) in /var/www/web11/html/forum/includes/usercp_avatar.php on line 216
  yourdomain.com
A little text to describe your forum

FAQ  Suche  Mitgliederliste  User-Gruppen  Statistics  Download 
Profil  Du hast keine neuen Nachrichten  Ausloggen [ bitboy0 ]  Album  Chat 
 
yourdomain.com Forum Index
General Error
 
Could not write avatar file to local storage. Please contact the board administrator with this message

DEBUG MODE

Line : 225
File : /var/www/web11/html/forum/includes/usercp_avatar.php

If you can not fix this problem,
you can find help, or ask question at: http://przemo.org/phpBB2/forum
 
 



Admin-Bereich


Powered by phpBB modified v1.8 by Przemo © 2003 phpBB Group 
Page generated in 0.05 second. SQL queries: 139
 
 


This happens if I try to upload a Signature-IMG from URL ... this doesn't happen if I upload the file from my PC ...

It seem's to be a bug! Because the /tmp - Dir is not the right way to adress it! It should be /var/www/web11/html/forum/images/signature/tmp ... There the forum just forget to add the complete path I'll guess.

regards Sven
 
     
Przemo



Pomógł: 210 razy
Posty: 3148
Wysłany: 13-05-2004, 12:54   

/var/www/web11/html/forum/images/signature/tmp is reserved directory. The main temporaily directory is /tmp
Ask the administrator of server about it. All uploaded files are stored for a moment in the main temporaily directory. Maybe tmp path is wrong in the php.ini or the directory is not writable.
 
     
bitboy0

Posty: 17
Wysłany: 13-05-2004, 22:11   

I AM the Admin ;) Every WEB can only write or read from Directories higer then their base_dir ...

This base_dir restriction is for security!

So my basedir for this forum is: /var/www/web11
I can only access directories starting with this... /tmp is not available for that web

What I'm wondering about: I can upload thoose pictures from my computer at home. Where stores phpbb the pictures coming from my computer? Only the "Upload from URL" is not working...

regards Sven
 
     
Przemo



Pomógł: 210 razy
Posty: 3148
Wysłany: 14-05-2004, 01:17   

Upload from local hdd is different. If a picture is uploaded from the remote site, it is used another engine to downloading (it is not php) and it needs perrmission to write in the /tmp directory.
But check your php.ini, there should be something of that kind:
Kod:
; Argument passed to save_handler.  In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this
; variable in order to use PHP's session functions.
session.save_path = /tmp


; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = /tmp


It is defined tmp directory which has to have the permission to write :) Just set this permission, do not be afraid, it is safe.
 
     
bitboy0

Posty: 17
Wysłany: 02-06-2004, 03:35   

Lastly I found the Problem at a totaly different place:

the php.ini specifies a temp-path BUT the virthost.conf also does that for every virthost!

So the local_upload_path is /var/www/web11/phptmp in my case BUT instead of using this the script uses /tmp which is NOT allowed

The files /incudes/usercp_avatar.php and /includes/usercp_signature.php does containing this wrong path hardcoded!!!

Kod:
            $tmp_path = ( !@$ini_val('safe_mode') ) ? '/tmp' : './' . $board_config['avatar_path'] . '/tmp';
            $tmp_filename = tempnam($tmp_path, uniqid(rand()) . '-');
at the moment I put in here the right path
Kod:
            $tmp_path = ( !@$ini_val('safe_mode') ) ? '/var/www/web11/phptmp' : './' . $board_config['avatar_path'] . '/tmp';
            $tmp_filename = tempnam($tmp_path, uniqid(rand()) . '-');
the upload does fine!

regards Sven
 
     
Gadatliwa Kasia 

   
Przemo



Pomógł: 210 razy
Posty: 3148
Wysłany: 02-06-2004, 11:18   

Thanks, but this is originall phpBB method storage avatar...
 
     
Wyświetl posty z ostatnich:   
Odpowiedz do tematu
Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Możesz załączać pliki na tym forum
Możesz ściągać załączniki na tym forum
Dodaj temat do Ulubionych
Wersja do druku

Skocz do:  

Kopiowanie wszelkich treści zawartych na forum, modyfikacji oraz instrukcji bez zgody administracji i autorów tematów/postów zabronione!

Powered by phpBB modified by Przemo © 2003 phpBB
Strona wygenerowana w 0,08 sekundy. Zapytań do SQL: 14
Polecane serwisy

Najlepsze oprogramowanie do prowadzenia sklepu internetowegoNajlepszy program do sklepu firmowany przez Przem'a

Sklep z gadżetami

serwis laptopów

phpbb

Design Cart - Tworzenie sklepu internetowego

iRonin.IT

• Zamów reklamę