Using ecard as a form Using ecard as a form
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Using ecard as a form

Started by tibbyhinze, October 10, 2007, 04:01:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tibbyhinze

I am trying to create an informal email "art auction" whereby people who cannot make it to the actual auction can register their interest / place their bids  beforehand. I would like to use the ecard function as a way for people to send a form back to me. Therefore the recipient name, recipient email (ie.me) and heading fields would be pre-defined, and there would be extra input boxes for phone number, address and bid offer.I did read somewhere about using "reports" as a form (?) but I really like the idea of using the ecard because it already contains a reference to the image of interest after people have browsed the online gallery. We are trying to go Live in a couple of days, so any help is greatly appreciated...I'm not a coder! (obviously?!)

Many thanks!

Joachim Müller

That's why someobody told you to use the reports. In fact, the report form is identical to the ecard in every aspect except for two things:
  • When using the report, the visitor can not choose the recipient - the report goes to the gallery admin no matter what. Ideal for your purposes
  • The report already contains additional fields that you need. Ideal for you as well
All you have to do are some cosmetical things: just edit your language file and change some of the words that relate to the report - don't name it "report to admin", but "bid for auction". Rename the labels for the fields as well. That's about it.

Just try it for yourself and temporarily enable the "report to admin" feature in coppermine's config. Then browse your gallery to see the difference.
I attached some screenshots for you as well.

The difficult thing is if you want to accomplish more fields on the report form (or "auction bid form" if you prefer); you'll have to code them in manually, which requires intermediate coding skills.

tibbyhinze

Many, many thanks for the clarification, and for pointing me to where the various files "live"...  I've managed to set things up and all is working well!

Just two more questions(!) - in order to activate the "send report" function, ecards need to be activated (under groups)  as well, yes? I want to keep things as simple as possible and just have the "send report" button - is this possible?

And is it possible to add the actual title underneath the image when it is received by admin? Do I add something like $pic_title = $row['title'];  ? (I'm not sure where?)

Thanks again, I am trying my best to learn! ::)

Joachim Müller

Quote from: tibbyhinze on October 11, 2007, 09:14:39 AM
in order to activate the "send report" function, ecards need to be activated (under groups)  as well, yes?
Yes
Quote from: tibbyhinze on October 11, 2007, 09:14:39 AMI want to keep things as simple as possible and just have the "send report" button - is this possible?
Yes, just remove the ecard link from your custom theme.

Quote from: tibbyhinze on October 11, 2007, 09:14:39 AMAnd is it possible to add the actual title underneath the image when it is received by admin? Do I add something like $pic_title = $row['title'];  ? (I'm not sure where?)
Yes, that is possible as well.

AngieKay

I have done as mentioned in this thread, modified Report to Admin form and used this as a new form.  Now I would like to remove the ecard link/icon.  I followed the directions in this thread and on other thread for removing that link, and I cannot find the code anywhere.  I'm using CG 1.4 with the Fruity theme .  I have looked for this string of code below, and absolutely cannot find it:

<td align="center" valign="middle" class="navmenu" width="48"><a href="{ECARD_TGT}" title="{ECARD_TITLE}"><img src="images/ecard.gif" width="16" height="16" border="0" align="absmiddle" alt="{ECARD_TITLE}"></a></td>

If you could please help me to know where in my file manager to find this code in the Fruity theme, or where the image link for ecard is, I would be grateful.  Thank you.

phill104

Support for 1.4.x has ended last year. If you are still using 1.4.x then please upgrade to 1.5.x. If you are using 1.5.x alread then please post in the correct boards and post a link to your site so we can investigate.
It is a mistake to think you can solve any major problems just with potatoes.