Status: offline

mrcraig52

Forum User
Newbie
Registered: 09/09/05
Posts: 3
thanks man, i appreciate the help.

Status: offline

machinari

Forum User
Full Member
Registered: 22/03/04
Posts: 1512
Quote by mrcraig52:in the random image block, is it possible to show just the image without the caption?
find the function inm_getRandomMedia() in the functions.inc file.
look for the following code and either comment it out or delete it.
PHP Formatted Code
                if (!empty($A['caption'])){
                    if (strlen(trim(stripslashes($A['caption']))) > 64){
                        $retval .= '<p>' . substr(trim(stripslashes($A['caption'])), 0, 64) . '...</p>';
                    } else $retval .= '<p>' . trim(stripslashes($A['caption'])) . '</p>';
                }

 


Status: offline

mrcraig52

Forum User
Newbie
Registered: 09/09/05
Posts: 3
ok, this isn't really a bug, but just a question.

in the random image block, is it possible to show just the image without the caption? I've tried my best to figure it out on my own, but I'm pretty new at this stuff.

i absolutely love this plugin, I can't wait to see how it develops.

Status: offline

machinari

Forum User
Full Member
Registered: 22/03/04
Posts: 1512
by the way, trinity and Dustin, do you have safe mode enabled? that may cause an issue with setting the path to gl's pear.

Status: offline

machinari

Forum User
Full Member
Registered: 22/03/04
Posts: 1512
Quote by Dustin Flesher: Any ideas?
check your file permissions as well. this worked for another person that has the same issue as trinity. I havn't heard back from trinity so I don't know if that is the prob or not.

let's just test something shall we?
*append Image/Transform.php to your $_CONF['path_pear'] and use that path in image-functions.inc on line 31 rather than simply Image/Transform.php.
For example, require_once(path/to/system/pear/Image/Transform.php);

You will have to go through image/transform.php and image/driver/gd.php at the very least and search for include_once or require_once and edit pear paths accordingly. If your issue is not a path issue, then this effort will not make any difference.
On the other hand, if this effort does work for you, then you have simply misplaced the included pear files.

after that, I have no idea. if your path is good and your files are properly placed as I've outlined in previous posts and also mentioned in the install instructions, and your permissions are such that php can access those files, then all should be well. otherwise you'll have to recheck these things.

Dustin Flesher

Anonymous
I've got the same problem as Trinity. Images aren't showing up. Thumbnails aren't being generated. I get an error related to PEAR_Error::load. have_pear=false. The pear files are in the right place. I checked the include_path. system/pear is included. Any ideas?

Status: offline

machinari

Forum User
Full Member
Registered: 22/03/04
Posts: 1512
last bug of the day cuz I have to get some sleep.
images that are still in the submission queue are displayed in the random image block, the featured album thumb review, as well as being displayed as a representative album thumb. of course that is not good, so I fixed it. I cut 'em off!

Status: offline

machinari

Forum User
Full Member
Registered: 22/03/04
Posts: 1512
Hey, Trinity, in another thread, midiman (that's his username) was having the same issue as you are and it was fixed after he had checked and changed permissions on those pear files. Might want to check that.

Status: offline

machinari

Forum User
Full Member
Registered: 22/03/04
Posts: 1512
here is another bug that just got fixed (in my working copy ).
when you accept a submission and edit it in the queue or anytime after it has been approved, the owner will change to current uid rather than the contributor.
It's a quickchange on line 280 of media.php from $_USER['uid'] to $M['owner_id'].

Status: offline

machinari

Forum User
Full Member
Registered: 22/03/04
Posts: 1512
well, trin, I don't know what to tell you. If the path is good and the files are there, but the server still returns the fatal error, then it is beyond me.

Perhaps there is a difference in the cvs version of Geeklog that I'm not aware of, but I cant think of what that might be that would cause such an error when the path is good and the files exist in their proper places..

Have you tried running it on 1.3.11?
Anybody else have any ideas what would cause the path to fail?

Status: offline

trinity

Forum User
Regular Poster
Registered: 30/01/05
Posts: 80
Quote by machinari:
Quote by trinity: Yes i did.
When you set $_CONF['have_pear'] = false; all it does is add the /system/pear to the path in your php.ini. I also tried your workaround but that didnt work.
adding system/pear to the path in php.ini is exactly what inmemoriam counts on. So if "false" then lib-common.php does it and if "true" then my workaround above does it. Either way, some how, the path to the image package is misplaced, assuming the path to sytem/pear is actually making it into your include path. This can only mean one of two things: the pear stuff that shipped with inmemoriam has been placed improperly in your pear dir (or not at all); or php has no permission to use it, which is just a ridiculous idea.

check if Gl's pear is making it into your include path, use echo ini_get('include_path');

suggestion: check that you have placed Inm's pear stuff correctly according to the following:
PHP Formatted Code

system/pear/Image/Transfrom.php
system/pear/Image/Transform/Driver/
system/pear/Console/


 

ensure that the following is not how you have place the files:
PHP Formatted Code

system/pear/PEAR/Image/Transform.php
system/pear/PEAR/Image/Transfrom/Driver/
system/pear/PEAR/Console/


 


off to a class, back in a few hours..


checked them out and everything is where it should be
glFusion - Technology Fused with Style - www.gllabs.org

Status: offline

machinari

Forum User
Full Member
Registered: 22/03/04
Posts: 1512
nice catch, Tom. That was a remnant of a previous version of the query.

Tom Schenk

Anonymous
I have only discovered one problem that doesn't seem to have been addressed yet. In the functions.inc file on line 493, I had to change:

$sql .= &quot; AND (UNIX_TIMESTAMP(m.date) BETWEEN '$startdate' AND '$enddate'Wink&quot;;


to

$sql .= &quot; AND (UNIX_TIMESTAMP(date) BETWEEN '$startdate' AND '$enddate'Wink&quot;;


The &quot;m.&quot; was generating an error because when you specified the database in the preceeding FROM clause, you didn't alias &quot;media&quot; as &quot;m&quot;. This may only have effected users of the Site Calendar Block (I was getting a SQL error when clicking on a date in the block).

Status: offline

machinari

Forum User
Full Member
Registered: 22/03/04
Posts: 1512
if those directories were not created when you untarred or FTP'd the package (which could happen cuz they are empty dirs--i should put a dummy file in them) then you'll just have to create them manually and set their permissions properly afterward.

Status: offline

Nightdude

Forum User
Chatty
Registered: 15/09/04
Posts: 61
Ok...maybe it's just late and/or I'm very tired.

I am looking forward very much to incorporate this into my site.

I cannot locate the following directories
* $_CONF['path']/plugins/inmemoriam/albums/
* $_CONF['path']/plugins/inmemoriam/thumbnails/
* $_CONF['path']/plugins/inmemoriam/scaled/
* $_CONF['path']/plugins/inmemoriam/backups/
* $_CONF['path']/plugins/inmemoriam/logs/

I found the watermarks, but not these to set to chmod777, or are these actually created on install?

All else is in, except these settings and pressing the install button on the plugins page.

ND

Status: offline

machinari

Forum User
Full Member
Registered: 22/03/04
Posts: 1512
Quote by trinity: Yes i did.
When you set $_CONF['have_pear'] = false; all it does is add the /system/pear to the path in your php.ini. I also tried your workaround but that didnt work.
adding system/pear to the path in php.ini is exactly what inmemoriam counts on. So if "false" then lib-common.php does it and if "true" then my workaround above does it. Either way, some how, the path to the image package is misplaced, assuming the path to sytem/pear is actually making it into your include path. This can only mean one of two things: the pear stuff that shipped with inmemoriam has been placed improperly in your pear dir (or not at all); or php has no permission to use it, which is just a ridiculous idea.

check if Gl's pear is making it into your include path, use echo ini_get('include_path');

suggestion: check that you have placed Inm's pear stuff correctly according to the following:
PHP Formatted Code

system/pear/Image/Transfrom.php
system/pear/Image/Transform/Driver/
system/pear/Console/

 

ensure that the following is not how you have place the files:
PHP Formatted Code

system/pear/PEAR/Image/Transform.php
system/pear/PEAR/Image/Transfrom/Driver/
system/pear/PEAR/Console/

 


off to a class, back in a few hours..

Status: offline

trinity

Forum User
Regular Poster
Registered: 30/01/05
Posts: 80
Yes i did.
I also have the geeklog pear libs installed.as well as server wide pear. When you set $_CONF['have_pear'] = false; all it does is add the /system/pear to the path in your php.ini. I also tried your workaround but that didnt work. If you need more information about our server set up let me know what you need and i can send it to you. I cant devulge certian server setup info in public on this forum, so email would be better to give it to you
glFusion - Technology Fused with Style - www.gllabs.org

Status: offline

machinari

Forum User
Full Member
Registered: 22/03/04
Posts: 1512
good suggestions, k616. Glad you like it and glad you're into the code! the best fixes/suggestions always come from effort like yours.

about the dashes, they can just go into the language file and problem solved.

as far as moving a pic from gallery to gallery, it isn't implemented. Entire albums can be moved, but individual pics cannot. This is already on my to do list for the next release however (as well as your other suggestions).

k616

Anonymous
i didn't find any easy way to move pic from one album to another? is there one or should i start work on it?

k616

Anonymous
sleepy
hi, i really like inmemoriam gallery - it really solved my gl gallery problems because gallery 1.x and 2 were really pain in the ass..

i'm now hacking inmemoriam to suit my needs and few suggestions to next version:
- picture and view count of album should show picture and view count of album and subalbums combined.
- if album doesn't have any pictures in it nor default thumb pic, but has subalbums, it should take thumbnail pic from a random sub-album pic.
fast hack for this starting in functions.inc at line 1477:
PHP Formatted Code

} elseif (DB_count($INM_TABLES['albums'], 'pid', $A['id']) >= 1) {
    // if album only contains subalbums, get random thumb from subalbum
    $TR = DB_query("SELECT id FROM {$INM_TABLES['albums']} WHERE pid='{$A['id']}'" . COM_getPermSQL('and') . " ORDER BY RAND() LIMIT 1");
    $R = DB_query("SELECT mid, filename, title FROM {$INM_TABLES['media']} WHERE aid='" . DB_result($TR,0,0) . "' " . COM_getPermSQL('and') . " ORDER BY RAND() LIMIT 1");
    list($randommid,$filename,$alttext) = DB_fetchArray($R);
    $albumthumb = $_CONF['site_url'] . '/inmemoriam/image.php?mid=' . $randommid . '&thumb=1';
    $summary->set_var('alt', stripslashes($alttext));

 


- by default there is topic that goes like "topic -- slogan" ($LANG_INM01[11] -- $LANG_INM01[12]) at every page. if you don't have a slogan you have to go through several php -files and remove "--" from code, if you don't want stupid outlook for your gallery ("topic --" at every page). if that would be handled by one function or something like that, it'd be easier to customize.

i might come up with more suggestions later...

and i'm working on finnish language file. i will send that when ready.