Status: offline

Bloggins

Forum User
Newbie
Registered: 13/08/05
Posts: 11
Quote by machinari: I probably should have thought of this, but let's limit the call to pear to the script that will actually use it rather than having the path included every time any page is loaded. Take the pear include stuff from the functions.inc file and place it just above the require_once ('Image/Transform.php'); in the image-functions.inc file.

That will fix your problem, and it just might fix Trinity's problem also. As I was debugging this, I was finally able to reproduce Trinity's issue on my own box and fixed it by doing the above.
I've only been able to reproduce the issue on a windows box however, *nix just seems to always work.


I had same issue as these two but running on Linux (core 4). I ran dos2unix on image-functions.inc after discovering it was dos file while about to add fix suggested to it

works like a charm now

Status: offline

Robin

Forum User
Full Member
Registered: 15/02/02
Posts: 725
Quote by machinari:Check the font path in Inmemoriam's config file and then check that the font physically exists in that path.


Machinari you're da MAN
Thank you very much
Geeklog Polish Support Team

Status: Banned

machinari

Forum User
Full Member
Registered: 22/03/04
Posts: 1512
/me is significantly annoyed today

Status: Banned

machinari

Forum User
Full Member
Registered: 22/03/04
Posts: 1512
Robin, here's a hint when you want to find out why an image won't show: click on the "full view" link and if there is a problem with the image or the font, as in this case, you should have an error come up that will at least give you a starting place.

So, having clicked on your text watermarked image, I see that the script cannot find the font. Check the font path in Inmemoriam's config file and then check that the font physically exists in that path. We'll go from there.

Status: offline

Robin

Forum User
Full Member
Registered: 15/02/02
Posts: 725
Quote by machinari: did you copy over the watermarks directory?

Yes but I didn't update it
So now the image watermarks work thanks machinary however text watermarks don't.
I checked the remaining files and dirs and I'm 100% sur the pear files are up to date.
Geeklog Polish Support Team

Status: Banned

machinari

Forum User
Full Member
Registered: 22/03/04
Posts: 1512
did you copy over the watermarks directory? the script seems not to be able to find the image. Also, remember to overwrite your pear files with the included ones as they have changes made to them relevant to watermarking.

Status: offline

Robin

Forum User
Full Member
Registered: 15/02/02
Posts: 725
Quote by mach: Robin, ...upgrade

Done boss

What do we do next
I'm on 0.9.0 now and watermarks still don't work Neither text nor images, default ones, none.
I installed locally Geeklog using this
DeveloperSide.NET Web-Server NON-SSL Package, version 1.10
It's basically Apache, Php, Mysql running on W2K, SP4.

Geeklog Polish Support Team

mach

Anonymous
Robin, ...upgrade

Status: offline

Robin

Forum User
Full Member
Registered: 15/02/02
Posts: 725
I'm puzzled. Watermarks work locally on my test enviroment and on my site they don't. After enabling a watermark (text) when you click on a thumb all you get is a link but no photo. Example
Version 0.8.5

Cheers
Geeklog Polish Support Team

Status: Banned

machinari

Forum User
Full Member
Registered: 22/03/04
Posts: 1512
0.9.5? doesn't exist and wont.
the documentation explains that comments wont be applied until gl 1.3.12 comes out. wont be long for that.
anyway, Inmemoriam 1.0 already has comments working and will be released once 1.3.12 is released.

Status: offline

berber

Forum User
Junior
Registered: 24/10/05
Posts: 20
will 0.9.5 have the option to add comments to each image?

Status: offline

Robin

Forum User
Full Member
Registered: 15/02/02
Posts: 725
Quote by machinari: 0.9.0 takes care of that.

Looks like I need to update the gallery then
Thanks Machinary for prompt reply .
Geeklog Polish Support Team

Status: Banned

machinari

Forum User
Full Member
Registered: 22/03/04
Posts: 1512
0.9.0 takes care of that. thanks Robin

Status: offline

Robin

Forum User
Full Member
Registered: 15/02/02
Posts: 725
OK here's the thing with 0.8.5. Hopefully nobody's mentioned it yet as I checked for this one.
I had to edit images posted by a user and afterwards I noticed that the author/owner changed from the user into myself
So there is something in the SQL that updates photos.
I had to go to the DB and change owner_id back to user's.

Probably the same applies to albums but I haven't checked it.

Cheers
Geeklog Polish Support Team

Status: offline

hatric

Forum User
Junior
Registered: 19/09/05
Posts: 22

It seems to be working fine today. I must have had some sort of glich going on the other night. Thanks.

Status: Banned

machinari

Forum User
Full Member
Registered: 22/03/04
Posts: 1512
the thumbs per page setting is completely separate from the pagination for scaled images so no need to look there for a solution.

that said, I'm at a loss for a solution being that I am unable to reproduce this behaviour.

things to check: do you have more than 15 or 16 images in the album? sure that it was the first image you clicked on to start or was it the 15th from the end? does this behaviour occur for every album? and only when thumbs per page are set to 64? It would help if I could see your gallery--shoot me an email if you want to keep it private.

Status: offline

hatric

Forum User
Junior
Registered: 19/09/05
Posts: 22
Cool! worked great!!

next... (am I annoying you yet?? )

I set my thumbnail page to a default of 64 T-nails to a page. When I open the first picture it comes up fine... I use the little arrow (pointing to the right) to advance to the next picture, and this works good for 15 to 16 images before the green arrow dissapears and the only link left is the "slideshow" link. Seems there is a cut-off at 16 (the default images per page #?). Is there a setting to get past this "limit?"

thanks
/hatric

Status: Banned

machinari

Forum User
Full Member
Registered: 22/03/04
Posts: 1512
Quote by hatric:... how to make the "album name" into a link to the actual album?

find this line from the code just above:
PHP Formatted Code
                    $retval .= '<p>' . $albumname . '</p>';

 
and replace it with this:
PHP Formatted Code
                    $retval .= '<p><a href="' . $INM_CONF['url_html'] . '/browse.php?id=' . $A['aid'] . '">' . $albumname . '</a></p>';

 

Status: offline

hatric

Forum User
Junior
Registered: 19/09/05
Posts: 22

Yea... like most of the MS minions of the world, I am stuck using IE. By choice? NO. By necesity? YES!! unless you would like to retrain my 80 year old mother how to use something else! I have spent enough hours on the phone with her already teaching the difference between "left click" and "right click"


The code for the random picture block worked like a charm. Thank you!!! To take it one step further... how to make the "album name" into a link to the actual album?


DOH!! I should have tried the back button for the slideshow!! lol thanks!



Status: Banned

machinari

Forum User
Full Member
Registered: 22/03/04
Posts: 1512
Quote by hatric:The bolding of the album titles you suggested did not work, nothing changed in apperance.
worked for me. You must be using IE?
Quote by hatric:In the random picture block, is there a way to describe, underneath the thumbnail, text to tell which album the picture came from?
yup. can you write PHP? You'll need to modify inm_getRandomMedia() in the functions.inc file. ...or you can just replace it with this:
PHP Formatted Code
function inm_getRandomMedia($id = ''){
    global $INM_TABLES, $_CONF, $INM_CONF;

    if (!empty($id)){
        if (inm_hasAlbumAccess($id)){
            $A = array();
            $result = DB_query("SELECT mid, filename, title, caption FROM {$INM_TABLES['media']} WHERE aid='$id' AND status='0'" . COM_getPermSQL('and') . " ORDER BY RAND() LIMIT 1");
            list($A['mid'],$A['filename'],$A['title'],$A['caption']) = DB_fetchArray($result);
            $retval = $A;
        } else {
            $retval = '';
        }
    } else {
        //get random mid
        $result = DB_query("SELECT mid, title, caption, aid FROM {$INM_TABLES['media']}" . COM_getPermSQL('where') . " ORDER BY RAND()");
        if (DB_numRows($result) < 1){
            return;
        }
        while ($A = DB_fetchArray($result)){
            if (inm_hasMediaAccess($A['mid']) >= 2){
                if(!empty($A['title'])){
                    $alt = trim(COM_stripslashes($A['title']));
                } else {
                    $alt = 'link to image #' . $A['mid'];
                }
                $albumname = COM_stripslashes(DB_getItem($INM_TABLES['albums'], 'name', "id='{$A['aid']}'"));
                $thumbsize = DB_getItem($INM_TABLES['settings'], 'thumbsize', "thumbsize<>''");
                $src = $INM_CONF['url_html'] . '/image.php?thumb=1&size=' . $thumbsize . '&mid=' . $A['mid'];
                $retval = '<a href="' . $INM_CONF['url_html'] . '/browse.php?mid=' . $A['mid'] . '"><img src="' . $src . '" title="' . $alt . '" alt="' . $alt . '" /></a>';
                if (!empty($albumname)){
                    $retval .= '<p>' . $albumname . '</p>';
                }
                if (!empty($A['caption'])){
                    if (strlen(trim(COM_stripslashes($A['caption']))) > 64){
                        $retval .= '<p>' . substr(trim(COM_stripslashes($A['caption'])), 0, 64) . '...</p>';
                    } else $retval .= '<p>' . trim(COM_stripslashes($A['caption'])) . '</p>';
                }
                break;
            } else {
                continue;
            }
        }
    }
    return $retval;
}


 
in version 1.0, this function will be changed a bit to allow easier editing from the template file.
Quote by hatric:When using the slideshow there is no "exit" button to kill it and return to the gallery... or am I missing something?
Just click on an image or your browser's back button.

Page navigation