Gallery For Lavalair (converted To Wml)

Started on the old forum in March 2007 · view the original in the archive · old links redirect here

44 replies · 5,562 views · started 19 years ago · 1 min read

TL;DR · summary of 44 replies
  • Guest had an issue with female users being directed to male galleries.
  • The script was not allowing users to rate pictures, only comment on them.
  • Wizard suggested adding a blank JPEG image in the images folder.
  • TechnoBoy reported a fatal error with if(candelgal($uid, $item[0])).

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

8 participants
Guest #41

im getting error while tryn to add pic

Parse error: parse error, unexpected T_ELSE in /home/www/wap.cyberslut.info/genproc.php on line 133 cud someone tell where exactly do i need to add the codes in genproc? in fact in all the files so that i get no errors

thanks

alexism Developer · 136 posts #43

evrything is ok but picture in gallery is not apear....help plz...

rukiya Lead · 569 posts #44

im getting error while tryn to add pic

Parse error: parse error, unexpected T_ELSE in /home/www/wap.cyberslut.info/genproc.php on line 133 cud someone tell where exactly do i need to add the codes in genproc? in fact in all the files so that i get no errors

thanks

you need to add a curly brace**}**

rukiya Lead · 569 posts #45

evrything is ok but picture in gallery is not apear....help plz... change the max.php into

<?php
include("config.php");
include("core.php");
connectdb();
$pic = mysql_fetch_array(mysql_query("SELECT * FROM fun_gallery WHERE id ='".$id."'"));
$filename = "$pic[3]";
$height= 100;
$width= 100;
// Content type
header('Content-type: image/jpeg');
// Get new dimensions
list($width_orig, $height_orig) = getimagesize($filename);

if ($width && ($width_orig < $height_orig)) {
   $width = ($height / $height_orig) * $width_orig;
} else {
   $height = ($width / $width_orig) * $height_orig;
}

// Resample
$image_p = imagecreatetruecolor($width, $height);
$image = imagecreatefromjpeg($filename);
imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig);

// Output
imagejpeg($image_p, null, 100);
ImageDestroy ($image_p);
?>

is codes for resized thumbnail view

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