Be sure to make your files chmod 777... See if that works...
You also may need to make those blank files noted in an earlier reponse (about 3-4 replies above this one) in notepad ahead of time, upload them, and chmod them 777...
The installation is quite easy, the instructions are somewhat lacking however... I really like this modification...
Babs
tenaki
Joined: 2003-04-08
Posts: 106
Posted: Wed, 2003-09-24 23:38
I will have a go at that, I noticed the bit about the blank files so will give it a go in the morning.
And yes I think this is a great feature as well
Many thanks
tenaki
Joined: 2003-04-08
Posts: 106
Posted: Thu, 2003-09-25 11:42
Working :D
Thanks BubblyBabs
tenaki
Joined: 2003-04-08
Posts: 106
Posted: Thu, 2003-09-25 19:31
Have any of you got any ideas on how I could see how many people have used the gallery.
I know there is album view count, but I am using this set up purely for ecards and it would be good to see, and for others to see how many have been sent?
Any ideas/suggestions welcome
paulw
Joined: 2003-09-10
Posts: 37
Posted: Sun, 2003-09-28 07:24
I have installed as instructions and all appeard ok untill I ran the install scrip and got this error :-
Warning: gallerycardsdbconnect(gallery_cards_config.inc): failed to open stream: No such file or directory in c:\inetpub\wwwroot\gallery\gallery_cards_dbconnect.php on line 9
Warning: gallerycardsdbconnect(): Failed opening 'gallery_cards_config.inc' for inclusion (include_path='.;c:\php4\pear') in c:\inetpub\wwwroot\gallery\gallery_cards_dbconnect.php on line 9
Unable to select database
Has anyone any ideas please ??
Thanks
P.
BubblyBabs
Joined: 2003-03-07
Posts: 107
Posted: Wed, 2003-10-01 20:36
tenaki wrote:
Have any of you got any ideas on how I could see how many people have used the gallery.
I know there is album view count, but I am using this set up purely for ecards and it would be good to see, and for others to see how many have been sent?
Any ideas/suggestions welcome
Hi tenaki...
The only thing I can say is to download from your site to your computer the gallery_cards_database.dat file and then open it with an HTML editor... It's messy but you'll be able to see if people are using your ecard shop...
Babs
tenaki
Joined: 2003-04-08
Posts: 106
Posted: Wed, 2003-10-01 21:07
Thank you will give it a go
Would be nice to get some kind of counter on it though
loxly
Joined: 2003-01-28
Posts: 126
Posted: Sun, 2003-11-23 23:41
BubblyBabs wrote:
After many hours of fiddling I finally figured it out... Guess if I were proficient in php I could have gotten it sooner... I'm still playing with the code (and still uploading cards so there's not as many choices as I'd like just yet)...
I see that you have this centered on your sites, what is the code that accomplished that?
I have been attempting to get the card files to call the header and vooter for the gallery including the navigation system and it is not happening. Can anyone share if they have this truely embedded in their gallery installation?
BubblyBabs
Joined: 2003-03-07
Posts: 107
Posted: Mon, 2003-11-24 02:07
loxly wrote:
BubblyBabs wrote:
After many hours of fiddling I finally figured it out... Guess if I were proficient in php I could have gotten it sooner... I'm still playing with the code (and still uploading cards so there's not as many choices as I'd like just yet)...
I see that you have this centered on your sites, what is the code that accomplished that?
I have been attempting to get the card files to call the header and vooter for the gallery including the navigation system and it is not happening. Can anyone share if they have this truely embedded in their gallery installation?
I added the extra table to center everything below it and made the width only 80%... I have not figured out how to embed gallery into the site other than using tables...
Babs
loxly
Joined: 2003-01-28
Posts: 126
Posted: Mon, 2003-11-24 02:27
Thank you, I will try that. But I meant embed the *cards* into gallery. Not gallery into the site. The gallery headers with navigation are not showing up on the card pages.
Perhaps this will be moot when the team inicates that cards may become part of the code.
BubblyBabs
Joined: 2003-03-07
Posts: 107
Posted: Mon, 2003-11-24 02:49
Oh! I see what you mean! Hmmm, am looking at that now... There's gotta be a way to get the gallery headers into there...
Babs
loxly
Joined: 2003-01-28
Posts: 126
Posted: Mon, 2003-11-24 05:15
I tried a couple of things, but kept getting parse errors, so I gave up before I wrecked the whole thing.
iwantmyphoto
Joined: 2003-11-05
Posts: 98
Posted: Fri, 2003-12-12 21:13
overal, it's a simple but good mod.. Im pretty happy with is sofar, except 1 problem..Anyone can delete my older cards....if they know the file name of my gallerycard_admin.php...... So I had to chmod to 0000, so not even admin can read it.. when I need delete cards, I'd have to change it back to readable.... a little inconvenient..
I've tried to rename the file as the readme says..but whatever you do, you can always del cards as long as you know the file name...So..Is there a way that can prevent users from listing the files on my server?
I know this is a broader security issue...But Im by no means an apache geek..and dont know much about how to tighten the security. ...
any suggestions are greatly appreciated..
thnx..
dinsdale
Joined: 2004-02-03
Posts: 1
Posted: Thu, 2004-02-05 14:13
Just wanted to add that I had exactly the same experience as Dabitz and without this thread I would have been really stuck. I got the needed help from my "friendly Sys-op" and all is working really well. Great add-on. Impressed. :D
hollism16
Joined: 2004-03-03
Posts: 47
Posted: Thu, 2004-03-11 01:50
NOTE: THIS ONE WILL ONLY WORK WITH THE NON-MYSQL STANDALONE VERSION.
I made some additions to this great mod for everyone. My additions will let users create postcards for Video files now (and any other file types your site supports).
That's the main part of it, but it also tells you how to support any file extensions you want to, how to change thumbnails, and I fixed the original files to look more like Gallery (i.e. top and bottom navigation for each page, as well as centering the drafting page like previous posts have asked for).
Tell me what you think- I started this thread for my mod as well. Later~
Hollis
WebHollis.Com
EDIT: Added floridave's completed mod on March 23, 2004 and further purtified it all. Thanks Dave!
Downloaded 8 times before updating (from this thread)
tmothy
Joined: 2004-03-06
Posts: 53
Posted: Thu, 2004-03-11 21:59
GREAT! That was just what I was looking for :D
BubblyBabs
Joined: 2003-03-07
Posts: 107
Posted: Tue, 2004-04-20 15:35
iwantmyphoto wrote:
overal, it's a simple but good mod.. Im pretty happy with is sofar, except 1 problem..Anyone can delete my older cards....if they know the file name of my gallerycard_admin.php...... So I had to chmod to 0000, so not even admin can read it.. when I need delete cards, I'd have to change it back to readable.... a little inconvenient..
I've tried to rename the file as the readme says..but whatever you do, you can always del cards as long as you know the file name...So..Is there a way that can prevent users from listing the files on my server?
I know this is a broader security issue...But Im by no means an apache geek..and dont know much about how to tighten the security. ...
any suggestions are greatly appreciated..
thnx..
I'm late w/ this reply... How would someone find out the name of your admin page unless you told them? If you named it something that is not obvious and not easily guess you should be OK...
Babs
forumwurm
Joined: 2004-06-01
Posts: 10
Posted: Sat, 2004-06-05 00:03
i have integrate this gallery into mambo and i have installe this e-card-mod (mysql-version).
Everything seems to be fine with "Gallery Postcards With Vids" in Gallery v1.4.3-pl2.
A little problem with the links back to the gallery items generated by gallery_cards_pickup.php:
It generates the warning
--------------------------------------
Warning: fread(): Length parameter must be greater than 0. in /homepages/24/d23787147/htdocs/welt/gallery/gallery_cards_tdb.inc.php on line 893
--------------------------------------
I can suppress the warning and do so in line 893 with '@':
-------------------------------------------------------------------
@$str = fread($this->fp, $len);
-----------------------------------------------------
so, if you test it with my gallery at http://www.IllustrierteWelt.de you will not see this warning.
But: the Links back to Photo and back to Album are empty: $return_album and $return_link are not build correctly.
May be it is because of new gallery structure in v1.4.3-pl2 (the script is dated in march, I think)???
What about a print version of a gallery postcard? http://www.illustriertewelt.de/gallery/gallery_cards_print.php?card=card40d01f894e60a
Its easy, just remove the header and footer templates from gallery_cards_pickup.php, save it as gallery_cards_print.php.
Good idea to link it as popup in gallery_cards_pickup.php, you will need $card for building the dynamic link.
this is my (german) version of the popup link to the print version:
------------------------------------------------------------------------
<a href=\"javascript://\" onClick=\"window.open('http://www.illustriertewelt.de/gallery/gallery_cards_print.php?card=$card', 'print', 'width=800,height=800,resizable=yes,scrollbars=yes,menubar=no,toolbar=no')\">
<img src='/images/ico_print_blu.gif' border='0'> Druckversion dieser Postkarte</a>
-----------------------------------------------------------
Ralph
fraz
Joined: 2003-02-16
Posts: 6
Posted: Thu, 2004-06-24 21:08
Ok installed (textdb version) and its all working fine except for one thing.
When I go to my renamed gallery_cards_admin.php it barfs when deleting a file with a 404 for a url ending in
Hi everyone!
I just installed the module I think it's great, besides some graphic customization that can be done here and there...
Perhaps, everything works well until I push the preview button. Than a message like this one that follows appears right on top of the screen:
Warning: getimagesize(/galleryguests/grillo/albums/maldive2004/DSCF0257.sized.jpg) [function.getimagesize]: failed to create stream: No such file or directory in d:\wwwroot\galleryguests\grillo\gallery_cards_send.php on line 250
Does anyone have any idea why this happens??
Thanks in advance for your help!
mc
dfeng
Joined: 2002-10-18
Posts: 4
Posted: Tue, 2004-08-17 18:13
I'm getting similar errors:
Warning: php_hostconnect: connect failed in C:\Web\hwci\photoalbum\gallery\gallery_cards_pickup.php on line 38
Warning: getimagesize: Unable to open 'http://www.hwci.com/gallery/albums/AlvinsWedding/IMG_4112_1024x768_sh.sized.jpg' for reading. in C:\Web\hwci\photoalbum\gallery\gallery_cards_pickup.php on line 38
The thing is, the script works: I'm able to send and retrieve the ecards. I just get these ugly error messages at the top of the screen. I'm getting these errors on the gallery_cards_pickup.php and gallery_cards_send.php pages. Any ideas? I'm running Gallery 1.44 on IIS 6 on Windows 2000.
mauroc wrote:
Hi everyone!
I just installed the module I think it's great, besides some graphic customization that can be done here and there...
Perhaps, everything works well until I push the preview button. Than a message like this one that follows appears right on top of the screen:
Warning: getimagesize(/galleryguests/grillo/albums/maldive2004/DSCF0257.sized.jpg) [function.getimagesize]: failed to create stream: No such file or directory in d:\wwwroot\galleryguests\grillo\gallery_cards_send.php on line 250
Does anyone have any idea why this happens??
Thanks in advance for your help!
mc
BubblyBabs
Joined: 2003-03-07
Posts: 107
Posted: Tue, 2006-11-14 14:11
Well... I like this ecard config better than the module now available... Does anyone have a copy I can d/l? My hard drive crashed and (what are the chances it would happen at the same time?) my webhost lost some critical files forcing me to redo parts of the site... I can't seem to find this on the net anywhere...
Posts: 107
Be sure to make your files chmod 777... See if that works...
You also may need to make those blank files noted in an earlier reponse (about 3-4 replies above this one) in notepad ahead of time, upload them, and chmod them 777...
The installation is quite easy, the instructions are somewhat lacking however... I really like this modification...
Babs
Posts: 106
I will have a go at that, I noticed the bit about the blank files so will give it a go in the morning.
And yes I think this is a great feature as well
Many thanks
Posts: 106
Working :D
Thanks BubblyBabs
Posts: 106
Have any of you got any ideas on how I could see how many people have used the gallery.
I know there is album view count, but I am using this set up purely for ecards and it would be good to see, and for others to see how many have been sent?
Any ideas/suggestions welcome
Posts: 37
I have installed as instructions and all appeard ok untill I ran the install scrip and got this error :-
Warning: gallerycardsdbconnect(gallery_cards_config.inc): failed to open stream: No such file or directory in c:\inetpub\wwwroot\gallery\gallery_cards_dbconnect.php on line 9
Warning: gallerycardsdbconnect(): Failed opening 'gallery_cards_config.inc' for inclusion (include_path='.;c:\php4\pear') in c:\inetpub\wwwroot\gallery\gallery_cards_dbconnect.php on line 9
Unable to select database
Has anyone any ideas please ??
Thanks
P.
Posts: 107
Hi tenaki...
The only thing I can say is to download from your site to your computer the gallery_cards_database.dat file and then open it with an HTML editor... It's messy but you'll be able to see if people are using your ecard shop...
Babs
Posts: 106
Thank you will give it a go
Would be nice to get some kind of counter on it though
Posts: 126
I see that you have this centered on your sites, what is the code that accomplished that?
I have been attempting to get the card files to call the header and vooter for the gallery including the navigation system and it is not happening. Can anyone share if they have this truely embedded in their gallery installation?
Posts: 107
In the file gallery.header I changed this:
<table width=100% border=0>
<tr>
<td>
<span class="head">
<?php echo $gallery->app->galleryTitle ?>
</span>
</td>
</tr>
<tr>
<td valign="top">
to this:
<table width=100% border=0>
<tr>
<td align='center'>
<span class="head">
<img src='http://www.fractalfairy.com/~feusers/ecard/images/logo.jpg' width='500' height='84'>
</span>
</td>
</tr>
</table>
<BR>
<center>
<table width=80% border=0>
<tr>
<td valign="top">
I added the extra table to center everything below it and made the width only 80%... I have not figured out how to embed gallery into the site other than using tables...
Babs
Posts: 126
Thank you, I will try that. But I meant embed the *cards* into gallery. Not gallery into the site. The gallery headers with navigation are not showing up on the card pages.
Perhaps this will be moot when the team inicates that cards may become part of the code.
Posts: 107
Oh! I see what you mean! Hmmm, am looking at that now... There's gotta be a way to get the gallery headers into there...
Babs
Posts: 126
I tried a couple of things, but kept getting parse errors, so I gave up before I wrecked the whole thing.
Posts: 98
overal, it's a simple but good mod.. Im pretty happy with is sofar, except 1 problem..Anyone can delete my older cards....if they know the file name of my gallerycard_admin.php...... So I had to chmod to 0000, so not even admin can read it.. when I need delete cards, I'd have to change it back to readable.... a little inconvenient..
I've tried to rename the file as the readme says..but whatever you do, you can always del cards as long as you know the file name...So..Is there a way that can prevent users from listing the files on my server?
I know this is a broader security issue...But Im by no means an apache geek..and dont know much about how to tighten the security. ...
any suggestions are greatly appreciated..
thnx..
Posts: 1
Just wanted to add that I had exactly the same experience as Dabitz and without this thread I would have been really stuck. I got the needed help from my "friendly Sys-op" and all is working really well. Great add-on. Impressed. :D
Posts: 47
NOTE: THIS ONE WILL ONLY WORK WITH THE NON-MYSQL STANDALONE VERSION.
I made some additions to this great mod for everyone. My additions will let users create postcards for Video files now (and any other file types your site supports).
That's the main part of it, but it also tells you how to support any file extensions you want to, how to change thumbnails, and I fixed the original files to look more like Gallery (i.e. top and bottom navigation for each page, as well as centering the drafting page like previous posts have asked for).
Give my site a look to see it in action/download it THROUGH Gallery:
http://webhollis.com/main/Funny-Misc/gallery_postcards_with_vids
I'll also put the file up on here.
Tell me what you think- I started this thread for my mod as well. Later~
Hollis
WebHollis.Com
EDIT: Added floridave's completed mod on March 23, 2004 and further purtified it all. Thanks Dave!
Downloaded 8 times before updating (from this thread)
Posts: 53
GREAT! That was just what I was looking for :D
Posts: 107
I'm late w/ this reply... How would someone find out the name of your admin page unless you told them? If you named it something that is not obvious and not easily guess you should be OK...
Babs
Posts: 10
i have integrate this gallery into mambo and i have installe this e-card-mod (mysql-version).
but i have a little problem.
please have a look at the following link
http://gocompupro.com/muggles/mod.php?mod=phpBB&file=viewtopic.php&t=139
Posts: 6
Great!
Ty for the hack.
Work well and fast on my gallery.
Fiore
http://www.fototribe.net
Posts: 6
Everything seems to be fine with "Gallery Postcards With Vids" in Gallery v1.4.3-pl2.
A little problem with the links back to the gallery items generated by gallery_cards_pickup.php:
It generates the warning
--------------------------------------
Warning: fread(): Length parameter must be greater than 0. in /homepages/24/d23787147/htdocs/welt/gallery/gallery_cards_tdb.inc.php on line 893
--------------------------------------
I can suppress the warning and do so in line 893 with '@':
-------------------------------------------------------------------
@$str = fread($this->fp, $len);
-----------------------------------------------------
so, if you test it with my gallery at http://www.IllustrierteWelt.de you will not see this warning.
But: the Links back to Photo and back to Album are empty: $return_album and $return_link are not build correctly.
May be it is because of new gallery structure in v1.4.3-pl2 (the script is dated in march, I think)???
thx for support, Ralph
Here is a quicklink to a generated postcard:
http://www.illustriertewelt.de/gallery/gallery_cards_pickup.php?card=card40d01f894e60a
Look at the "empty" links back to album and photo at above and bottom.
Posts: 6
What about a print version of a gallery postcard?
http://www.illustriertewelt.de/gallery/gallery_cards_print.php?card=card40d01f894e60a
Its easy, just remove the header and footer templates from gallery_cards_pickup.php, save it as gallery_cards_print.php.
Good idea to link it as popup in gallery_cards_pickup.php, you will need $card for building the dynamic link.
this is my (german) version of the popup link to the print version:
------------------------------------------------------------------------
<a href=\"javascript://\" onClick=\"window.open('http://www.illustriertewelt.de/gallery/gallery_cards_print.php?card=$card', 'print', 'width=800,height=800,resizable=yes,scrollbars=yes,menubar=no,toolbar=no')\">
<img src='/images/ico_print_blu.gif' border='0'> Druckversion dieser Postkarte</a>
-----------------------------------------------------------
Ralph
Posts: 6
Ok installed (textdb version) and its all working fine except for one thing.
When I go to my renamed gallery_cards_admin.php it barfs when deleting a file with a 404 for a url ending in
/renamedpage.php?card_id=card40db423bc4135&submit=Delete%20Card&Dont%20Think%20Twice
The card *is* deleted.
If however I use the original filename then all works as expected
UPDATE: reverted to original filename but added the following to the .htaccess in my /gallery directory to prevent unauthorised access.
AuthName "Postcards Admin"
AuthType Basic
AuthUserFile /etc/webpasswords
<Files gallery_cards_admin.php>
require valid-user
</Files>
Posts: 26
Hi everyone!
I just installed the module I think it's great, besides some graphic customization that can be done here and there...
Perhaps, everything works well until I push the preview button. Than a message like this one that follows appears right on top of the screen:
Warning: getimagesize(/galleryguests/grillo/albums/maldive2004/DSCF0257.sized.jpg) [function.getimagesize]: failed to create stream: No such file or directory in d:\wwwroot\galleryguests\grillo\gallery_cards_send.php on line 250
Does anyone have any idea why this happens??
Thanks in advance for your help!
mc
Posts: 4
I'm getting similar errors:
Warning: php_hostconnect: connect failed in C:\Web\hwci\photoalbum\gallery\gallery_cards_pickup.php on line 38
Warning: getimagesize: Unable to open 'http://www.hwci.com/gallery/albums/AlvinsWedding/IMG_4112_1024x768_sh.sized.jpg' for reading. in C:\Web\hwci\photoalbum\gallery\gallery_cards_pickup.php on line 38
The thing is, the script works: I'm able to send and retrieve the ecards. I just get these ugly error messages at the top of the screen. I'm getting these errors on the gallery_cards_pickup.php and gallery_cards_send.php pages. Any ideas? I'm running Gallery 1.44 on IIS 6 on Windows 2000.
Posts: 107
Well... I like this ecard config better than the module now available... Does anyone have a copy I can d/l? My hard drive crashed and (what are the chances it would happen at the same time?) my webhost lost some critical files forcing me to redo parts of the site... I can't seem to find this on the net anywhere...
Babs