Hatric

Anonymous

Absolutely awesome!! Thanks so much for your help!

Any way to scale down the theme box size (eg. shade, light, rose, etc). I notice they will scale up when a long caption is put in, which is awesome!

Status: offline

machinari

Forum User
Full Member
Registered: 22/03/04
Posts: 1512
Quote by hatric:
1. i would like to resize the text under the random picture in the menu box (Browse and Favorites links).
find this in inmemoriam.css and edit accordingly:
PHP Formatted Code
#inm-phpblockrandom {
        font-size: .8em;
        text-align: center;
        }

#inm-phpblockrandom ul {
        margin: 0;
        padding: 0;
        text-align: left;
        list-style-type: none;
        list-style-position: inside;
        }
#inm-phpblockrandom img {
        margin: 2px;
        }

 

Quote by hatric:
2. I was also wondering, in the galleries under the pics where you have the credit, size, etc. is there a way to modify that. I would like to have the captions instead.
if you're refering to the thumbnail pages, that bit is not configurable... you will have to edit some PHP.

here we go. find inm_albumThumbs() in browse.php.
find the comment "begin loop".
inside that "while" loop, anywhere in the top-half, add the following line:
PHP Formatted Code

            $T->set_var('caption', COM_stripslashes($TH['caption']));

 
now add the template variable, {caption}, to your thumbs.thtml file and either delete or comment out the ones you don't want (in the template file).

Status: offline

machinari

Forum User
Full Member
Registered: 22/03/04
Posts: 1512
Quote by Rob: I'm completely baffled by this problem but would like to figure it out.
Me too, and I will continue to search for a solution until one is found--please bear with me/us.

Rob, if you receive the same error as Trinity, i.e, "Fatal error: Call to undefined function: load() in ...", then the potential lack of any GD2 function/library is not the issue--yet, because the script isn't even getting to the GD extension. The problem is, for an unknown reason, that the image_transform package is not being found by the script even though it seems to be making it into the include_path--at least for the few of you.

I'm going to go rant about this in another forum and see If I can dig something up. The issue for me is that I'm not sitting at your computer where I could just check things based upon other things that I may see..
blah blah.

Status: offline

hatric

Forum User
Junior
Registered: 19/09/05
Posts: 22
hi, new user and I really like your gallery plug-in!

Couple questions, not really "bugs"

1. i would like to resize the text under the random picture in the menu box (Browse and Favorites links).

2. I was also wondering, in the galleries under the pics where you have the credit, size, etc. is there a way to modify that. I would like to have the captions instead.

Thanks!

Rob

Anonymous
Ah, so it was. That still leaves me with the minor problem of the images never displaying. I simply get a square box with a question mark inside. I'm completely baffled by this problem but would like to figure it out. I guess then the correct route to take would be to test each part individually. Can anyone post code (or a link to it) that would allow me to test to see if the gd2 plugin works? Also just to let you know I still consider myself a php newbie so go easy one me. Thanks in advance,

-Rob

mach

Anonymous
Quote by Rob:When I try to delete it in windows it says that it is currently in use
that is a windows error, and has little to do with the script. perhaps the album was in use in another window or something like that. If you're using the gallery to delete an album that the gallery created, the only way you'll get that type of error is if, in fact, the directory is in use by some other windows process.

I assume you're running a windows server (whatever it's called these days)? But (watch for disclaimer), I'm not a server guy so maybe one of these other gurus might have an answer.

Rob

Anonymous
Also not sure if this another bug, or just one of my issues, but I can't seem to delete an album once I create one. When I try to delete it in windows it says that it is currently in use, even though there may not be anything in it, and the permissions for it are set so that everyone could delete it.

-Rob

Rob

Anonymous
I can tell you that I do have gd2 installed, and am fairly sure that it works although I don't know how to test it. These other libraries seem moot however as I even tried using it with gifs and those do not display either (yes I did enable them in the inmemoriam config file) So therefore we know that php5 probably is not the issue here, and I would guess that some pople using apache2 have gotten it to work as well, but what about windows?

-Rob

Status: offline

machinari

Forum User
Full Member
Registered: 22/03/04
Posts: 1512
sr1 wouldn't affect any of this.

GD2 is bundled with PHP5, but a couple of necessary libraries may still be missing from your configuration: libpng and libjpeg at least.
See this discussion and then go to the PHP page for more info on where to obtain necessary files and how to install/configure them.

An easier solution would be to install NetPBM or ImageMagick, but I've not finished integrating that code yet...

Rob

Anonymous
I've upgraded to sr1, did not fix the issue. FYI I'm running on windows 2000, apache 2, and php5. Think that might have anything to do with it?

-Rob

Rob

Anonymous
I seem to be having the same issue as trinity and dustin. For a recap: Images do not load, error message on attempt to view full image, pear=false, paths are correct, using version 1.3.11 (note not sr1)
I'm going to attempt to upgrade to sr1 to see if that fixes the issue.

-Rob

Status: offline

machinari

Forum User
Full Member
Registered: 22/03/04
Posts: 1512
to beat the server timeout, you have two choices...
*Increase the max_execution_time using ini_set() if you have safe mode off
*or reduce the number of images that are being processed.

to reduce the number of images that are being processed per run, do this:
find the function inm_generateStatic() in admin/index.php.
then find the following lines near the end of the function (line 882ish):
PHP Formatted Code
            if ($t >= 300){
                break 2;
            }
            if ($i >= 200){
                break 2;
            }


 
change the 300 to 99 (33 images made into 99 thumbs) and change the 200 to 100 (100 scaled images) depending on which is giving you the trouble. mess around with the numbers. subsequent runs will pick up where the last left off.

hmm.. you could probably put set_time_limit(n) into the beginning of the function and that would add n seconds to the allowable time the script has to run.. I've never done that though. Maybe I should, let me know how it goes.

keep in mind, though static images no longer have to be resized, they still have to be read into the page, so it still isn't going to be as fast as if the images were static and simply linked to in a public dir. That is one of the fallbacks of this script (for those concerned with speed over security).

MrKnisely

Anonymous
I'm attempting to generate static thumbs, it got lots of drive space, but little processor and ram. Well, I click on the buton and it times out even with your 100 image safeguard in place.

The issue is that I have LARGE pictures, they're 2-3 MB each.

I must say that I'm nowhere near qualified to make head nor tail of code. (If you're running a multi-area OSPF environment, or even IS-IS, I'm your man...)

Can anyone help me with this?

Thanks!

MrKnisely

Status: offline

machinari

Forum User
Full Member
Registered: 22/03/04
Posts: 1512
just fixed an autotag bug: if no text was supplied for the link, none was applied by default, which left a blank link--not clickable. fixed.

btw, all these fixes, and a ton of other fixes and additions (that will surely cause some more bugs) will be included in the next release. The next release won't happen until I can get at least another image lib under control. I'm working on NetPBM atm. I cant say how long cuz school is in so my spare time is thinned out.

mach

Anonymous
Spain Rocks!

Status: offline

midiman

Forum User
Newbie
Registered: 26/05/04
Posts: 4
Hello again, machinari

I've found a small bug that's only noticeable if you have set error_reporting(E_ALL)
File: admin/plugins/inmemoriam/index.php
When you call functions inm_scan1, inm_scan2, inm_scan3 and inm_scan4, you pass $T as reference
PHP Formatted Code
 inm_scan1($valid,&$T);
 
. This generates 4 warnings like "Call-time pass-by-reference" is deprecated.
You can simply remove "&" in function calls
PHP Formatted Code
 inm_scan1($valid,$T);
 
, as you have already defined the references in functions definition
PHP Formatted Code
 function inm_scan1($valid,&$T){}
 
.

Hope this helps
midiman

Status: offline

machinari

Forum User
Full Member
Registered: 22/03/04
Posts: 1512
Trinity and Dustin, geeklog utilizes the pear mail package in the same way as what we are trying to accomplish. Does your site send mail without any path issues?

Quote by dustin:I checked the include_path. system/pear is included
just checking, your include path shows the full path to pear and not just system/pear, right?

indulge me guys, check that the following path is valid on your systems:
$_CONF['path_pear'] . Image/Transform/Driver/GD.php

for the $_CONF['path_pear'], please use the path as you see it in your include_path.

all that stuff aside, cuz i'm sure you're tired of checking and rechecking your paths and permissions... The only other thing that would cause your issue is if you're running without the GD library at all (cant help you here), or if you are running GD1 or the non-bundled version of GD2 (easy fix).

Dustin Flesher

Anonymous
I'm using 1.3.11sr1. I also am not using the standard file path scheme. That is, I'm not mapping the base url name to Geeklog's public_html. I suspect we've got a relative path problem somewhere.

Status: offline

machinari

Forum User
Full Member
Registered: 22/03/04
Posts: 1512
sorry Trinity, I've just finished looking thru the CVS differences and I don't find anything that might cause this irregularity. If you have a Geeklog 1.3.11sr1 release available on your server setup, see if you have the same issues with Inmemoriam on that install.

Status: offline

trinity

Forum User
Regular Poster
Registered: 30/01/05
Posts: 80
I checked permisons and everything is ok. Also safe mode isnt an issue eather. i was wondering whether it could be that i am useing a user acount based webroot as in /~trinity/ but i cant find anything that would seem to indicate that. Could it be something to do with the cvs version of geeklog?
glFusion - Technology Fused with Style - www.gllabs.org