[SHARE]One of the best lithuania community portal

Started on the old forum in December 2009 · view the original in the archive · old links redirect here

43 replies · 2,929 views · started 16 years ago · 1 min read

TL;DR · summary of 43 replies
  • chmod Nuotraukos folder. It seems to fix the issue with uploaded photos being corrupted.
  • Sladex provided a copy.php file for anyone who needs it.
  • Neostream is still experiencing issues with uploaded photos appearing as size O bytes, despite trying chmod on the Nuotraukos folder.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

13 participants
neostream Junior · 16 posts #24

I have uploaded my photos ... but when I go to my profile and I click his album .. it does not appear .. please help me ..

u think this is the problem $fotoFILE = "http://64.255.180.67/~nerijus/copy.php?id=$encode";

http://neox.penanghosting.com/wapforum

neostream Junior · 16 posts #27

sladex wrote: something wrong with xhtml.

myDEMO

where I want to change this Pokalbiai(chat) Diskusijos Pažinčių klubas Fotoalbumas Skelbimai Kasdiena! Dainų žodžiai Anekdotai Įdomybės Žaidimai Informacija Mano meniu » PM dėžutė(0/0) Online 2

I can not find it

lexuss Junior · 10 posts #28

i like the design, i wanna translate this script to english, but i wanna make sure that are no erors. what do you all think?

sladex Developer · 232 posts #29

index.php translation:

Pokalbiai(chat) = Chat Diskusijos = Forum Pažinčių klubas = Dating club Fotoalbumas = Foto gallery Skelbimai = Sell/Buy/Change Kasdiena! = Everyday Dainų žodžiai = Lyrics Anekdotai = Jokes Įdomybės = Interestings Žaidimai = Games Informacija = Information Prisijungti! = Login Registracija » = Registration

😊

It's easy to translate it with google translate 😉

neostream Junior · 16 posts #30

sladex wrote: index.php translation:

Pokalbiai(chat) = Chat Diskusijos = Forum Pažinčių klubas = Dating club Fotoalbumas = Foto gallery Skelbimai = Sell/Buy/Change Kasdiena! = Everyday Dainų žodžiai = Lyrics Anekdotai = Jokes Įdomybės = Interestings Žaidimai = Games Informacija = Information Prisijungti! = Login Registracija » = Registration

😊

It's easy to translate it with google translate ;)

Thanks sladex...see my DEMO

now fully translate to english..just my photo album have problem..

neostream Junior · 16 posts #31

lexuss wrote: i like the design, i wanna translate this script to english, but i wanna make sure that are no erors. what do you all think?

I already translate...see my DEMO

neostream Junior · 16 posts #32

Sladex please help me...when i upload photo..and i see in photo album..my photo damaged.. 🙁

neostream Junior · 16 posts #33

when i upload photo and see in photo album..photo damaged

neostream Junior · 16 posts #35

photo damaged

sladex wrote: whats wrong with foto?

hmm .. when I upload pictures ... and I see my photo in my photos .. all broken .. you can try in the wapsite using my nickname

Address: neox.penanghosting.com/wapforum Nickname: nightwish password: 123456

😢

neostream Junior · 16 posts #37

sladex wrote: Chmod all directory where is iploading photo. and chmod all txt files. 777

but why i can upload smiley without any problems .. actually photo can be uploaded but when I look in the folder Nuotraukos all the pictures I have uploaded size O bytes..

neostream Junior · 16 posts #39

sladex wrote: chmod Nuotraukos folder. I don't know in my localhost and other hosting everything works fine.

can you give me the copy.php for me?

sladex Developer · 232 posts #40

Here is copy.php

<?php header("Cache-Control: no-store, no-cache, must-revalidate"); include("MySQLconnect.php"); $id = trim(htmlspecialchars($_GET['id'],ENT_QUOTES)); $info = base64_decode($id); $info = explode("|", $info); $nuotrauka = "$info[0]"; $dydis = "$info[1]"; $vartotojas = "$info[2]"; $vartotojas = strtolower($vartotojas); $dydis = strtolower($dydis); $view = mysql_fetch_array(mysql_query("SELECT * FROM nuotraukos WHERE ID='$nuotrauka' and Vartotojas='$vartotojas'")); $foto = $view["ID"]; $narys = $view["Vartotojas"]; $busena = $view["Busena"]; $formatas = $view["Formatas"]; $rotate = $view["Rotate"]; if(empty($rotate) or $rotate != "-90" and $rotate != "90" and $rotate != "180" and $rotate == "no") { $rotate = "0"; } else { $rotate = "$rotate"; } $failas = "nuotraukos/$narys/$foto.$formatas"; if(empty($nuotrauka) or empty($vartotojas) or $nuotrauka != "$foto") { $image = "images/nerasta.gif"; $formatas = "gif"; $reklama = "0"; } elseif($busena == "ban") { $image = "images/ban.gif"; $formatas = "gif"; $reklama = "0"; } elseif(!file_exists($failas)) { $image = "images/nerasta.gif"; $formatas = "gif"; $reklama = "0"; } else { $image = "nuotraukos/$narys/$foto.$formatas"; $formatas = "$formatas"; $reklama = "1"; } if($rotate == "90" or $rotate == "-90") { list($height,$width) = getimagesize($image); } else { list($width,$height) = getimagesize($image); } $max = "250"; if($width > $max) { $procentai = $max*100/$width; $first = floor(($width/100)*$procentai); $second = floor(($height/100)*$procentai); } else { $first = "$width"; $second = "$height"; } if($formatas == "jpg") { header("Content-type: image/Jpeg"); } elseif($formatas == "gif") { header("Content-type: image/Gif"); } elseif($formatas == "png") { header("Content-type: image/Png"); } $thumb = imagecreatetruecolor($first,$second); if($formatas == "jpg") { $source = imagecreatefromjpeg("$image"); } elseif($formatas == "gif") { $source = imagecreatefromgif("$image"); } elseif($formatas == "png") { $source = imagecreatefrompng("$image"); } $source = imagerotate($source, $rotate, 0); imagecopyresampled($thumb, $source, 0, 0, 0, 0, $first, $second, $width, $height); if($formatas == "jpg") { imagejpeg($thumb); } elseif($formatas == "gif") { imagegif($thumb); } elseif($formatas == "png") { imagepng($thumb); } imagedestroy($thumb); ?>

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close