Postcards for Gallery - get it here

muggles
muggles's picture

Joined: 2002-08-19
Posts: 22
Posted: Mon, 2002-08-19 21:12

Hello,

I have released a simple add on for Gallery that allows Custom Postcards to be sent to the email address' of your choice. It adds a new link above each photo in your gallery and has a super simple install.

This version DOES NOT require MySQL and will take on the look of your current gallery.
(it uses <!-- BBCode Start --><A HREF="http://textdb.sourceforge.net" TARGET="_blank">TextDB</A><!-- BBCode End -->)

You can download your very own copy here:
<!-- BBCode Start --><A HREF="http://gocompupro.com/muggles/mod.php?mod=downloads&amp;op=viewdownload&amp;cid=5" TARGET="_blank">Postcards for Gallery</A><!-- BBCode End -->

I have a MySQL version for the phpWebSite gallery hack available, but NO nuke version, since I do not use nuke... so don't ask. :evil:
I would gladly host a nuke version if someone creates one.

Also, there is nothing built-in to this version that will automatically remove old cards...
for now, I created an admin page for you to manually delete cards. :???:

muggles

 
muggles
muggles's picture

Joined: 2002-08-19
Posts: 22
Posted: Fri, 2002-08-23 16:13

[Question:]
My Postcards are not being sent, what's wrong?

[Answer:]
The PostCard Mod uses php's built-in mail function to send cards, as set-up in your installs php.ini.

You would need to define some variables in your php.ini

If running win* you need to set these two:
SMTP = someserver.com;
sendmail_from =

;

and if running *nix just this one:
sendmail_path = /path/to/sendmail;

Good Luck

 
Dabitz
Dabitz's picture

Joined: 2002-08-22
Posts: 20
Posted: Sat, 2002-08-24 03:23

I tried to install the text version but it couldn't create all the db files because of permissions.

This is the error code i get when i run the installation page:

Warning: fopen("gallery_cards_database.dat", "w+") - Permission denied in /home/pavochon/public_html/gallery/gallery_cards_tdb.inc.php on line 146

When I send a card on the pick up page i get a broken image with the following error:
Warning: getimagesize: Unable to open '' for reading. in /home/pavochon/public_html/gallery/gallery_cards_pickup.php on line 36

The email doesn't get sent neither. I can't find the php.ini. I am running on unix...

When i try to rebuild the database I get a never ending page with an error like this:
Warning: fclose(): supplied argument is not a valid File-Handle resource in /home/pavochon/public_html/gallery/gallery_cards_tdb.inc.php on line 612

Warning: fopen("gallery_cards_database.idx", "w+") - Permission denied in /home/pavochon/public_html/gallery/gallery_cards_tdb.inc.php on line 613

Warning: flock(): supplied argument is not a valid File-Handle resource in /home/pavochon/public_html/gallery/gallery_cards_tdb.inc.php on line 614

Warning: flock(): supplied argument is not a valid File-Handle resource in /home/pavochon/public_html/gallery/gallery_cards_tdb.inc.php on line 615

Warning: rewind(): supplied argument is not a valid File-Handle resource in /home/pavochon/public_html/gallery/gallery_cards_tdb.inc.php on line 617

Warning: ftell(): supplied argument is not a valid File-Handle resource in /home/pavochon/public_html/gallery/gallery_cards_tdb.inc.php on line 864

Warning: fread(): supplied argument is not a valid File-Handle resource in /home/pavochon/public_html/gallery/gallery_cards_tdb.inc.php on line 865

Warning: fread(): supplied argument is not a valid File-Handle resource in /home/pavochon/public_html/gallery/gallery_cards_tdb.inc.php on line 893

Warning: ftell(): supplied argument is not a valid File-Handle resource in /home/pavochon/public_html/gallery/gallery_cards_tdb.inc.php on line 864

Warning: fread(): supplied argument is not a valid File-Handle resource in /home/pavochon/public_html/gallery/gallery_cards_tdb.inc.php on line 865

Warning: fwrite(): supplied argument is not a valid File-Handle resource in /home/pavochon/public_html/gallery/gallery_cards_tdb.inc.php on line 629

Warning: feof(): supplied argument is not a valid File-Handle resource in /home/pavochon/public_html/gallery/gallery_cards_tdb.inc.php on line 632

Warning: fwrite(): supplied argument is not a valid File-Handle resource in /home/pavochon/public_html/gallery/gallery_cards_tdb.inc.php on line 639

Warning: feof(): supplied argument is not a valid File-Handle resource in /home/pavochon/public_html/gallery/gallery_cards_tdb.inc.php on line 632

Warning: fwrite(): supplied argument is not a valid File-Handle resource in /home/pavochon/public_html/gallery/gallery_cards_tdb.inc.php on line 639

Warning: feof(): supplied argument is not a valid File-Handle resource in /home/pavochon/public_html/gallery/gallery_cards_tdb.inc.php on line 632

Warning: fwrite(): supplied argument is not a valid File-Handle resource in /home/pavochon/public_html/gallery/gallery_cards_tdb.inc.php on line 639

Warning: feof(): supplied argument is not a valid File-Handle resource in /home/pavochon/public_html/gallery/gallery_cards_tdb.inc.php on line 632

Warning: fwrite(): supplied argument is not a valid File-Handle resource in /home/pavochon/public_html/gallery/gallery_cards_tdb.inc.php on line 639

Warning: feof(): supplied argument is not a valid File-Handle resource in /home/pavochon/public_html/gallery/gallery_cards_tdb.inc.php on line 632

Warning: fwrite(): supplied argument is not a valid File-Handle resource in /home/pavochon/public_html/gallery/gallery_cards_tdb.inc.php on line 639

Please help. This would be a nice feature.

Dave

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Sat, 2002-08-24 12:03

Laugh, fun! You probably didn't need to post quite so many of those :lol:
Anyhow, you are indeed hitting permissions problems. Php sucks
in that it doesn't nicely tell you to check your permissions but spits
out a crappy error like that

You need to verify that httpd daemon has read and write access to your
gallery folder, not just the albums one and such as the cards plugin
dumps all files into the main directory which is a little messy *nudge muggles*.

Fix that and it should work fine, it is for me.

 
Dabitz
Dabitz's picture

Joined: 2002-08-22
Posts: 20
Posted: Sat, 2002-08-24 13:22

Opps. I am sorry about that. Shame on me :roll:

Your suggestion sounds to me like I need telnet to do this? I only have ftp and I didn't find any file called httpd daemon. I'll look again, let me know if you can give me a little simpler explanation. Thanks for taking the time to help me.

Perhaps I have to make the gallery setup folder, .htaccess and config.php writable when I run the installation? Like ftp users have to do when they run the setup for the gallery itself?

Dave

 
muggles
muggles's picture

Joined: 2002-08-19
Posts: 22
Posted: Sun, 2002-08-25 17:25

Dabitz,

Sorry for the delay, wife and I went away for our 15th anniversary :smile:

1] download this archive of an empty card database:
http://gocompupro.com/muggles/downloads/gallery_cards-emptydb.zip

2] extract into your gallery folder with the rest of the postcard files

3] give the files writable permissions (ask your admin)

4] run the install again

:???:
and, my bad for not spending more time on this version, I use the MySQL version
which has none of these problems. I just thru this version together real quick for others who may want postcards and have no MySQL daemon running (and was curious about that TextDB MySQL look-alike database thingy).

Tomorrow I'll release the stand-alone MySQL version i guess.
muggles

 
Dabitz
Dabitz's picture

Joined: 2002-08-22
Posts: 20
Posted: Sun, 2002-08-25 17:43

Oh boy! Congratulations! 15 years is a long time... I hope you had fun... That is a good excuse for the delay, I do have an excuse for my rush as well. I am having a baby within 5 weeks!!! Can't believe it yet... our 1st one... :smile:

Everything went smoothly on the installation great job. I really wish i would know how to write php code myself.

I still have one little problem. The email doesn't get sent. I know I have to do this:

and if running *nix just this one:
sendmail_path = /path/to/sendmail;

But where do I do this change? Is it within a gallery file? Or a card file? I am using phpBB2 board which works very well and it sends emails well, so this should work for me too. php.ini? Is that a server php installation file? I am on a shared unix environment so php is already installed on my server. Again the bulletin board has no problem sending emails.

Let me know and congratulations again! :lol:

 
muggles
muggles's picture

Joined: 2002-08-19
Posts: 22
Posted: Sun, 2002-08-25 18:12

oh my,

You can open gallery_cards_send.php in an editor and..

replace:
// mail($PCto, $PCsubj, $PCbody, $PCheaders);

with:
mail($PCto, $PCsubj, $PCbody, $PCheaders);

i.e. remove the slashes "//" from the beginning of the line. HAHAHA
omg

I just uploaded the fixed version. download again if you want the new fixed gallery_cards_send.php

omg, I can't beleive I left it like that. stuff happens :smile:

Congrats!

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Sun, 2002-08-25 21:25

Oooh, standalone mysql, that would be nice :wink:

 
muggles
muggles's picture

Joined: 2002-08-19
Posts: 22
Posted: Sun, 2002-08-25 23:18

tada, <!-- BBCode Start --><A HREF="http://gocompupro.com/muggles/mod.php?mod=downloads&amp;op=viewdownload&amp;cid=5" TARGET="_blank">download standalone MySQL Postcards here!</A><!-- BBCode End -->

Quick How To:

1] create your MySQL database
2] Edit gallery_cards_config.inc with your database info
3] execute gallery_cards_install.php to create tables
4] Enjoy!

:grin: :grin: :grin:

 
funvill

Joined: 2002-10-24
Posts: 2
Posted: Thu, 2002-10-24 21:59

thx
evey thing worked for me
<!-- BBCode Start --><A HREF="http://www.funvill.com" TARGET="_blank">funvill</A><!-- BBCode End -->

 
vahan1

Joined: 2002-11-01
Posts: 27
Posted: Fri, 2002-11-01 23:10

Thanks!!

Installed mySQL version, works/looks great!!

-v

 
Agatka
Agatka's picture

Joined: 2002-10-19
Posts: 140
Posted: Fri, 2002-11-15 00:04

HI,

I would really like this script to work and it does to a point. It seems that I don't know how to connect the database as I get the following error:

Warning: Failed opening 'gallery_cards_config.inc' for inclusion (include_path='') in /home/agatka/public_html/galeria/gallery_cards_dbconnect.php on line 9
Unable to select database

Can someone please help me?

Thank you in advance.

 
Agatka
Agatka's picture

Joined: 2002-10-19
Posts: 140
Posted: Sat, 2002-11-16 04:49

Still waiting. I know you guys could help me afterall you did it.

Please, please ........ I would realy like this to work

Thanks :smile:

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Sat, 2002-11-16 07:06

Hi Agatka.

It cannot find the MySQL database you've (hopefully) specified (or it doesn't have permission). You have to create a new database (either with mysqladmin or phpMyAdmin) and specify the correct database/mysql user/password to the program (I just looked throught the code (spiffy!)... seems it goes into gallery_cards_config.php).

(muggles, is there an FAQ for these questions on your site to refer people to?)

Good luck,
-Beckett (beck@beckettmw.com)

 
Agatka
Agatka's picture

Joined: 2002-10-19
Posts: 140
Posted: Sat, 2002-11-16 14:24

Thanks,

But I have done all of the above. It just wasn't connecting that way, so what I did is get rid of the gallery_card_config.php altogether and just used the mysql_connect in the gallery_card_dbconnect and it worked. Guess the config file is supposed to make it easier but didn't for me :smile:

Agatka

 
irishblue

Joined: 2002-08-21
Posts: 19
Posted: Mon, 2003-01-20 14:49

I tried installing the standalone my SQL version. I inserted my database info and password. however got the following errors:

Quote:
Parse error: parse error in /home/virtual/site51/fst/var/www/html/gallery/gallery_cards_config.php on line 23

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/virtual/site51/fst/var/www/html/gallery/gallery_cards_config.php:23) in /home/virtual/site51/fst/var/www/html/gallery/session.php on line 51

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/virtual/site51/fst/var/www/html/gallery/gallery_cards_config.php:23) in /home/virtual/site51/fst/var/www/html/gallery/session.php on line 51

Warning: gallerycardsdbconnect() [function.gallerycardsdbconnect]: open_basedir restriction in effect. File(/php/includes/gallery_cards_config.inc) is not within the allowed path(s): (/home/virtual/site51/fst/) in /home/virtual/site51/fst/var/www/html/gallery/gallery_cards_dbconnect.php on line 9

Warning: gallerycardsdbconnect(gallery_cards_config.inc) [function.gallerycardsdbconnect]: failed to create stream: Operation not permitted in /home/virtual/site51/fst/var/www/html/gallery/gallery_cards_dbconnect.php on line 9

Warning: gallerycardsdbconnect() [function.gallerycardsdbconnect]: Failed opening 'gallery_cards_config.inc' for inclusion (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site51/fst/var/www/html/gallery/gallery_cards_dbconnect.php on line 9
Unable to select database

This is what I have on line 23:
$cards_home_url = $gallery->app->http://www.mydomain.com/gallery/; /* Your sites URL */
$cards_sitename = $gallery->app->my gallery; /* Your Site Name */

Could anyone help decipher what I did wrongly? Thanks.

 
fay

Joined: 2003-01-08
Posts: 16
Posted: Tue, 2003-01-21 06:54

i've try those
gallery_cards03_mySQL-standalone.zip &amp;
gallery_cards02-standalone.zip

but the problem is the same when running step
> Point your browser to http://www.your_site.com/gallery/gallery_cards_install.php

------------
Warning: Failed opening '/home/fay/public_html/gallery/gallery_cards_install.php' for inclusion (include_path='') in Unknown on line 0

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Tue, 2003-01-21 13:23

fay,

Your include path is hosed. Edit your php.ini file and change your include path to be at least the current working directory ("."):

include_path "."

Then restart your webserver to effect the changes.

-Beckett (

)

 
irishblue

Joined: 2002-08-21
Posts: 19
Posted: Tue, 2003-01-21 14:12

any work around for the errors I encountered?

 
fay

Joined: 2003-01-08
Posts: 16
Posted: Wed, 2003-01-22 03:04
Quote:
Your include path is hosed. Edit your php.ini file and change your include path to be at least the current working directory ("."):

include_path "."

Then restart your webserver to effect the changes.

i was add this line to my php.ini

include_path = "."

then restart the httpd...

i also try to put full path of gallery but same prb..
still got same error msg.. any idea
thanks

 
dodofreak
dodofreak's picture

Joined: 2002-12-09
Posts: 75
Posted: Fri, 2003-01-24 20:10

All,

I'm working on a postnuke module called "GalleryCards" based upon the standalone Postcards code base. I'm not a programmer, but I've been able to complete the basic user functions. The postnuke module now allows users to send and pickup postcards. I'm still working on the admin portion, which will allow postnuke admins to list all postcards and to add/delete them from the database. Also, the color customization still doesn't quite work.

When I'm done, I'll post the code up for download.

 
thebign

Joined: 2003-01-14
Posts: 11
Posted: Sun, 2003-01-26 01:09

Hi

I use the cards stand alone. I have no problems with sending ecard, but i get the wrong link to ecard.

I have albums with pictures in the gallery folder. (gallery/albums)

But the ecards link points to gallery and no picture to show

What should i change?

Im using gallery 1.3.3

 
dodofreak
dodofreak's picture

Joined: 2002-12-09
Posts: 75
Posted: Mon, 2003-01-27 21:47

All,

I'm releasing the initial version of the postnuke module called "GalleryCards" based upon the standalone Postcards code base.

Features
Users: send and pickup postcards.
Admin: list all postcards and to add/delete them from the database.

You can download the postnuke module <!-- BBCode Start --><A HREF="http://www.storypath.com/pn/modules.php?op=modload&amp;name=UpDownload&amp;file=index&amp;req=getit&amp;lid=2" TARGET="_blank">here</A><!-- BBCode End -->.

Enjoy! :smile:

 
dodofreak
dodofreak's picture

Joined: 2002-12-09
Posts: 75
Posted: Mon, 2003-01-27 22:24

All, I had to update the download for GalleryCards. There was an error in it. If you downloaded it and it doesn't work, I would recommend that you get the latest version. I've updated the download link with the latest file.

 
thebign

Joined: 2003-01-14
Posts: 11
Posted: Mon, 2003-01-27 23:52

Hi

Your link does'nt work - But I dowloaded it from your homepage.

But need the gallery_cards02-standalone, from muggles. So I tried again.

I couldn't install the files (gallery_cards_database.dat and gallery_cards_database.idx) on my host server.

So I made to empty files in notepad:

gallery_cards_database.dat
gallery_cards_database.idx

Upload to Gallery/

and CHMODE them to 777

and then Point your browser to http://www.your_site.com/gallery/gallery_cards_install.php to create your db files

and then it worked for me.

Just to inform others users if they have the same problem

 
dodofreak
dodofreak's picture

Joined: 2002-12-09
Posts: 75
Posted: Tue, 2003-01-28 03:14

Things that I have on the TODO list for the PostNuke module:

1. Clean up the code!!!!
2. Fix the custom color selection javascript in send card
3. Complete the admin functions:
- Clean database (allow for cleaning of cards that are over XX days old in the database)
- Validate (validation of Photo URLs)
- Config (allow/disallow anonymous users, XX days for lifespan of postcards, etc)

 
GravityArc
GravityArc's picture

Joined: 2003-02-27
Posts: 54
Posted: Thu, 2003-02-27 21:29

Does anyone have the code to get the "send a postcard" link in the top next to the "print this photo" link (if that link is enabled)?

Thanks!

 
BubblyBabs
BubblyBabs's picture

Joined: 2003-03-07
Posts: 107
Posted: Fri, 2003-03-07 05:15

For some reason I was unable to get this working until I removed this line from the gallery_cards_send.php and gallery_cards_pickup.php files:

$image_size = getimagesize($this_photo, &amp;$image_info);

Once I removed that line I was able to send a card, before that I kept getting an error...

However, I do not see an image when the card is picked up, is that due to my removing those files?

I also was unable to chmod 777 the .dat and .ibx files...

Babs

 
nkhan4u
nkhan4u's picture

Joined: 2003-03-13
Posts: 4
Posted: Thu, 2003-03-13 23:04
Quote:
Thanks,

But I have done all of the above. It just wasn't connecting that way, so what I did is get rid of the gallery_card_config.php altogether and just used the mysql_connect in the gallery_card_dbconnect and it worked. Guess the config file is supposed to make it easier but didn't for me :smile:

Agatka

Hello,

I am getting same error unable to connect /home/www/mydoman/gallery/gallery_cards_dbconnect.php on line 9

I have tried what stated above, but no luck, I guess I am not doing something right. Could you please help me stup up this thing.

Thank

 
pauld

Joined: 2003-01-07
Posts: 17
Posted: Sat, 2003-03-15 04:53

Hi,
I also tried to install the standalone mySQL version, I also get the error;
Warning: Failed opening '/home/blah/public_html/gallery/gallery_cards_install.php' for inclusion (include_path='') in Unknown on line 0

I hacked away for a while with no sucess :cry:
I have thought that it pulls the path to gallery from the global(config), and with my setup (behind a router) it fails as my config file just says "gallery/" then the rest of your postcard code tries to look for a complete path. I am hoping this comment helps others, I couldn't get it to work.....
I'm fairly sure that the path fails in the utils.php file around line 579

Also, is it correct to have the requires have single quotes;
require ('gallery_cards_dbconnect.php'); I thought that might be it,

Any thoughts appreciated,
Regards, Paul

 
agerley
agerley's picture

Joined: 2003-03-15
Posts: 11
Posted: Sat, 2003-03-15 05:19
Quote:
Does anyone have the code to get the "send a postcard" link in the top next to the "print this photo" link (if that link is enabled)?

Yep I did that... Im new to PHP, so I hope this will work with other Gallerys than mine :smile:

1. Delete inline_photo.header from <your-gallery-dir>/html_wrap/

2. Edit view_photo.php from <your-gallery-dir> with your fav. editor

3. On line 341 if you use Gallery 1.3.2 after the Shutterfly code, paste this:

<!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE>
$photo = $gallery->album->getPhoto($GLOBALS["index"]);
if ($photo->isResized()) {
$name = $photo->image->resizedName;
} else {
$name = $photo->image->name;
}
$url = $gallery->album->getAlbumDirURL("full") .
"/" .
$name . "." . $photo->image->type;

$adminCommands .= "<a href=" . $gallery->app->photoAlbumURL . "/gallery_cards_send.php?photo_name=" . $url . ">[send as postcard]</a>";
</TD></TR></TABLE><!-- BBCode End -->

I hope this will do it... If someone can optimize the code, then I'll be happy :grin:

/Agerley

 
agerley
agerley's picture

Joined: 2003-03-15
Posts: 11
Posted: Sat, 2003-03-15 17:54

Ok, good news.... I just updated to Gallery version v1.3.4-cvs-b15, and the code works fine also there... the only difference is that it need to be pasted on line 361 instead. the code needs to be pasted after the shutterfly and fotokasten codes (print service codes).

Good Luck..... :grin:

 
loxly

Joined: 2003-01-28
Posts: 126
Posted: Sat, 2003-03-15 19:37
Quote:
All, I had to update the download for GalleryCards. There was an error in it. If you downloaded it and it doesn't work, I would recommend that you get the latest version. I've updated the download link with the latest file.

Where is the download link? I followed the liink to muggles site and it is the August version.

**********************
Edited: Oops, I was reading about the incorrect version. Can I get pointed to somewhere that has a tutorial on creating a php nuke module? I am going to spend today researching this. The Gallery Cards ad on is GREAT!

One question, does the mod track the number of times a card has been sent and picked up? I need this for a specific purpose.

Debbie

 
taji

Joined: 2003-05-12
Posts: 3
Posted: Mon, 2003-05-12 13:21

i have this problem !

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of getimagesize(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/modules/GalleryCards/gallery_cards_send.php on line 233

it got to this with this


$image_size = getimagesize($this_photo, &$image_info);

in gallery_cards_send.php and gallery_cards_pickup.php

what should it do to clear this error ?

do i need to modify php.ini ?

how should i modify and where to modify ?

i do not use ImageMagick for gallery, i only use netpbm is this the reason.

please advise

thanks

Taji

 
loxly

Joined: 2003-01-28
Posts: 126
Posted: Fri, 2003-07-11 00:30

I had the standalone version working with 1.3.4 and now with 1.3.5B44 and the MySql version I get the cannot connect to error above also, anyone find out what is going on?

I tried both Standalone and MySql versions and get errors with both. I manually installed the dbase and now I get the following error after I create the card and attempt to send.

Warning: Access denied for user: 'apache@localhost' (Using password: NO) in /usr/local/psa/home/mysitepath/gallery/gallery_cards_dbconnect.php on line 10

Warning: MySQL Connection Failed: Access denied for user: 'apache@localhost' (Using password: NO) in /usr/local/psa/home/mysite/gallery/gallery_cards_dbconnect.php on line 10
Unable to select database

 
loxly

Joined: 2003-01-28
Posts: 126
Posted: Fri, 2003-07-11 00:35

btw, I checked and double checked the database settings including password and they are all correct.

 
hdixon
hdixon's picture

Joined: 2003-07-17
Posts: 10
Posted: Sat, 2003-07-19 04:04

Hi Agatka - I'm no PHP expert but I had the same error you were getting. I did notice that the file gallery_cards_dbconnect file referenced include file 'gallery_cards_config.inc' when actually it has php ending. I changed the .inc to .php and reran the gallery_cards_install.php page and it went to completion.

 
loxly

Joined: 2003-01-28
Posts: 126
Posted: Sat, 2003-07-19 16:18

Worth a try! Thanks!

 
loxly

Joined: 2003-01-28
Posts: 126
Posted: Sat, 2003-07-19 17:15

It worked, but you need both the .php and the .inc

 
nukestud
nukestud's picture

Joined: 2003-03-25
Posts: 114
Posted: Sun, 2003-07-20 01:05

Anyone tried installing this with PHPNUKE 6.5? I don't see why it wouldn't work!

Have a good one!

 
loxly

Joined: 2003-01-28
Posts: 126
Posted: Sun, 2003-07-20 04:11

It works, but it doesn't keep the postcard inside nuke. I am using it with 6.8

(I solved the dbase issue by following the advice above. You need both .inc and .php and the files are identical, not the .inc that comes with the non-sql version.)

 
ByteDreams

Joined: 2003-08-03
Posts: 1
Posted: Tue, 2003-08-12 00:18

muggles,

last year someone asked about an FAQ on muggles' site. Was that ever posted? I'd like to see that before attempting to install.

 
BubblyBabs
BubblyBabs's picture

Joined: 2003-03-07
Posts: 107
Posted: Wed, 2003-09-17 13:34

Hi, I've recently upgraded to v1.4pl and have finally gotten this ecard hack to work...

I'd like to center the tables however... I've tried several different ways of adding the center tag but none seem to work... I'd really rather not have everything way over to the left of the browser page...

How does one go about editing this so it's centered? I'm sure by my question one can tell I'm fairly new to php so please consider that when you reply...

Thanks,
Babs

 
CFresh4U

Joined: 2003-09-13
Posts: 6
Posted: Thu, 2003-09-18 00:53

Babs, I just installed the ecard hack and can't get it to work with v1.4-pl1... It keeps sending back to the configuration wizard after I click on the send card link above the photo. Could you please let me know what you did to get it to work. I am new to php. Thanks.

 
BubblyBabs
BubblyBabs's picture

Joined: 2003-03-07
Posts: 107
Posted: Thu, 2003-09-18 12:49

Hi CFresh4U,

I did what thebign did a while back:

"So I made to empty files in notepad:

gallery_cards_database.dat
gallery_cards_database.idx

Upload to Gallery/

and CHMODE them to 777

and then Point your browser to http://www.your_site.com/gallery/galler ... nstall.php to create your db files"

I tried that before and couldn't chmod my .dat and .idx files to 777 but now I can (webhost upgraded my site so now I can do more) so I was able to get it to work... For some reason some people don't seem to need to premake those files while others do...

Addendum: I forgot to mention I had to make all the files chmod777 (I could probably get by with 775, haven't tried that yet)... If I don't the card will get sent but when the person clicks on the link they get the card w/o the image)

Babs

 
BubblyBabs
BubblyBabs's picture

Joined: 2003-03-07
Posts: 107
Posted: Thu, 2003-09-18 13:41

HI all...

Could anyone explain to me how to get this centered? The ecard is centered when someone clicks on their link to get the ecard sent to them but when they go to make the ecard it's all pushed over to the left... I can't figure out how to get it to center...

Thanks,
Babs

 
BubblyBabs
BubblyBabs's picture

Joined: 2003-03-07
Posts: 107
Posted: Sun, 2003-09-21 20:29

*S-I-G-H*

OK, continuing on with this... Why is it if I change this line in gallery_cards_send.php:

$box_stuff .="
<table summary='send26' border='0' cellspacing='0' cellpadding='10' align='center'><tr>
<td align='center'><span style='font-variant: small-caps;'>Text Color</span>

to

$box_stuff .="
<center><table summary='send26' border='0' cellspacing='0' cellpadding='10' align='center'><tr>
<td align='center'><span style='font-variant: small-caps;'>Text Color</span>

the table does not center?

Babs

 
BubblyBabs
BubblyBabs's picture

Joined: 2003-03-07
Posts: 107
Posted: Mon, 2003-09-22 01:27

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)...

http://www.fractalfairy.com/~feusers/ecard/

Babs

 
tenaki

Joined: 2003-04-08
Posts: 106
Posted: Mon, 2003-09-22 14:13

That is very good BubblyBabs

Can I ask, if it was a) difficult to isntall (newbie with php) and b) do you use it just for e-cards

 
tenaki

Joined: 2003-04-08
Posts: 106
Posted: Tue, 2003-09-23 23:36

Hi there
I have installed ecards and it looks like it will be good, once I can resolve a couple of probs.

The first is the dreaded red x which I think will be a path problem, but where do you think. This occurs when you go to view your card

The second is again when you go to view the card "no record found" is displayed at the top.

Any ideas what I have done to cock it up