11
Derya
Re: xcGallery help
  • 2003/11/11 14:41

  • Derya

  • Module Developer

  • Posts: 40

  • Since: 2003/5/12


Ok...i think this error belongs to the filetypes.
Please, can you try it with gif, png and jpg and tell me with which of them you get an error.
And check if you have all needed files for netpbm installed, e.g libpng, zlib...this belongs to your netpbm binary distribution.



12
Derya
Re: xcGallery help
  • 2003/11/11 11:28

  • Derya

  • Module Developer

  • Posts: 40

  • Since: 2003/5/12


@tjnemez:
is /netpbm the fullpath to your netpbm? You need to enter the fullpath, not the relative. If it doesn't work with the fullpath try this:
open picmgmt.in.php in an editor.
Replace line 183-201:
case GIS_GIF:
        
$op_in   'giftopnm';
    
$op_out 'ppmtogif';
    
$cmd "{$xoopsModuleConfig['impath']}{$op_in} $src_file | pnmscale -xsize={$destWidth} -ysize={$destHeight} | ppmquant 255 | {$op_out} > $im_dest_file";
    break;

    case 
GIS_JPG:
    
$op_in   'jpegtopnm';
    
$op_out 'pnmtojpeg';
    
$op_out2 'ppmtojpeg';
    
$cmd "{$xoopsModuleConfig['impath']}{$op_in} $src_file | pnmscale -xsize={$destWidth} -ysize={$destHeight} | {$op_out} -quality={$xoopsModuleConfig['jpeg_qual']} > $im_dest_file";
    
$cmd2 "{$xoopsModuleConfig['impath']}{$op_in} $src_file | pnmscale -xsize={$destWidth} -ysize={$destHeight} | {$op_out2} -quality={$xoopsModuleConfig['jpeg_qual']} > $im_dest_file";
        break;

    case 
GIS_PNG:
    
$op_in   'pngtopnm';
    
$op_out 'pnmtopng';
    
$cmd "{$xoopsModuleConfig['impath']}{$op_in} $src_file | pnmscale -xsize={$destWidth} -ysize={$destHeight} | {$op_out} > $im_dest_file";
    break;


with:
case GIS_GIF:
    
$op_in   'giftopnm';
    
$op_out 'ppmtogif';
    
$cmd "{$xoopsModuleConfig['impath']}{$op_in} $src_file | {$xoopsModuleConfig['impath']}pnmscale -xsize={$destWidth} -ysize={$destHeight} | {$xoopsModuleConfig['impath']}ppmquant 255 | {$xoopsModuleConfig['impath']}{$op_out} > $im_dest_file";
    break;

    case 
GIS_JPG:
    
$op_in   'jpegtopnm';
    
$op_out 'pnmtojpeg';
    
$op_out2 'ppmtojpeg';
    
$cmd "{$xoopsModuleConfig['impath']}{$op_in} $src_file | {$xoopsModuleConfig['impath']}pnmscale -xsize={$destWidth} -ysize={$destHeight} | {$xoopsModuleConfig['impath']}{$op_out} -quality={$xoopsModuleConfig['jpeg_qual']} > $im_dest_file";
    
$cmd2 "{$xoopsModuleConfig['impath']}{$op_in} $src_file | {$xoopsModuleConfig['impath']}pnmscale -xsize={$destWidth} -ysize={$destHeight} | {$xoopsModuleConfig['impath']}{$op_out2} -quality={$xoopsModuleConfig['jpeg_qual']} > $im_dest_file";
        break;

     case 
GIS_PNG:
    
$op_in   'pngtopnm';
    
$op_out 'pnmtopng';
    
$cmd "{$xoopsModuleConfig['impath']}{$xoopsModuleConfig['impath']}{$op_in} $src_file | {$xoopsModuleConfig['impath']}pnmscale -xsize={$destWidth} -ysize={$destHeight} | {$xoopsModuleConfig['impath']}{$op_out} > $im_dest_file";
    break;

(newbb wraps the lines so be careful)

@svaha:
xcGallery uses a selfdefined $PHP_SELF varible. it' s defined in the init.inc.php line 73
$PHP_SELF = isset($HTTP_SERVER_VARS['REDIRECT_URL']) ? $HTTP_SERVER_VARS['REDIRECT_URL'] : $HTTP_SERVER_VARS['SCRIPT_NAME'];

Maybe this $HTTP_SERVER_VARS are off in your php configration, please look into your phpinfo.
But, thanx reporting this, i will change it for the next release.



13
Derya
Re: xcGallery help
  • 2003/11/10 21:03

  • Derya

  • Module Developer

  • Posts: 40

  • Since: 2003/5/12


I have changed nothing on the file handling of coppermine. I can't reproduce this ownership problems, so i can't help you with it. Have you used coppermine on the same server, because this is a server issue...please, read more about this issue in the coppermine faqhttp://coppermine.sourceforge.net/faq.php?q=cantDeletePic#cantDeletePic

Netpbm: Have you entered you path correctly in the config. You should use / on *nix systems and \ on windows.
Exampal:
on windows use c:\programs\netpbm\
on *nix use /usr/bin/

Don't forget the ending slash.




14
Derya
Re: xcGal template problem
  • 2003/11/10 15:01

  • Derya

  • Module Developer

  • Posts: 40

  • Since: 2003/5/12


You shouldn't modify the templates in the file structure.
The xcGallery templates work like everyother XOOPS template. You need to modify them from admin cp-> system admin->templates->your template->xcgallery.
Search the forum here to find out how to do this and read the wiki.



15
Derya
Re: xcGallery help
  • 2003/11/10 11:19

  • Derya

  • Module Developer

  • Posts: 40

  • Since: 2003/5/12


Quote:

as you can see the sub dir "10001" is owned by "www" and i cannot delete or rename it.


The gallery creates a directory for every user, who has uploaded pics. The directory named everytime 10000 + the user id, so you don't need to add a folder under your username.

The directory owning issue is a server configuration problem. If php runs on your server as an apache modul and under a user "nobody", "www"... then the created directories and files are owned by this user and you can delete them only within a php script. There is no way to change this.



16
Derya
Re: A total waste of space this!
  • 2003/11/4 10:38

  • Derya

  • Module Developer

  • Posts: 40

  • Since: 2003/5/12


Quote:

Herko Coomans wrote:
Anything else we need to change in the admin?

I miss a feature to update the module tables. If you install a new version of a modul by replacing the files and click update button, then changes in the table structure don't apply.
One solution should be having update infos in the xoops_version like for the regular sql-file, e.g.
modversion['sqlupdate']['mysql'] = "sql/update.sql";

This file can contain new tables, alter tables...
Now, we need to apply this file on module update like the regular sql file on module install. Thereafter we need to rename/delete the update file(or somthing like this) to prevent reapplying on the next time we click update.

Should be nice having something like this...



17
Derya
Re: ..
  • 2003/11/3 0:49

  • Derya

  • Module Developer

  • Posts: 40

  • Since: 2003/5/12


Quote:
I"m trying to use an html template I have instead of the index.php at the root ( I made the html template a php file and named it index.php)

1.This can't work, because you have nowhere an including of the needed files. If you use this instead of the index.php you need to tell the script from there it can get the needed variables.
2.if you want to use this as php you can't use smarty tags. There are two ways to do this right:
- create an index.php and a template for it, so you have php and smarty separeted...
- make everything in php without smarty-tags
3. Why don't you turn all blocks and modules off for anonymous users and set the login block visible for anonymous. It's the same effect, if you want you can set the login-block as centerblock...



18
Derya
Re: coppermine module
  • 2003/11/1 10:10

  • Derya

  • Module Developer

  • Posts: 40

  • Since: 2003/5/12


Hi tjnemez,

You will find the first release candidate for download during this week (maybe after wednesday).
It will be a rc so everybody, who can't wait for the stable version, can help me finding the bugs

greetz
derya



19
Derya
Re: Problems with the Euro symbol ( ? )
  • 2003/10/24 14:03

  • Derya

  • Module Developer

  • Posts: 40

  • Since: 2003/5/12


This is a browser problem.
Opera can't send the euro sign with the right encoding on my WinXp.
Mozilla and IE works fine. Try it with another browser.



20
Derya
Re: Custom block for Coppermine Gallery
  • 2003/10/17 11:30

  • Derya

  • Module Developer

  • Posts: 40

  • Since: 2003/5/12


Hi Guyz,

Predator told me that you're waiting desirously for the first release of my xcGallery

Now, I want to give you a little overview of my project.
xcGallery is a Gallery module for XOOPS 2.0.x based on Coppermine 1.1.0. I don't want to make only a port, I want integrate it complete into XOOPS and the further development will be independently of coppermine, so it takes a little time to finish it. Since Wednesday, coppermine 1.2.0 RC2 is released, but it's changes won't be in my module...maybe I integrate some of them later.

I don't want to tell you what it can and what not, because it's too much
I have promised Predator to give him a dev version for installing a demo on monday, so you can see it during the upcoming week.

greetz
derya




TopTop
« 1 (2) 3 »



Login

Who's Online

211 user(s) are online (113 user(s) are browsing Support Forums)


Members: 0


Guests: 211


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits