forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: equi on December 09, 2004, 04:23:05 pm

Title: Send email of favourites list
Post by: equi on December 09, 2004, 04:23:05 pm
I hope this is the right board for this.

Is there a simple way of allowing a user to click a button or link when he is in the My Favourites part, allowing a email to be sent requesting more information about the photos in the Favourites list?


Sorry if this is not the right place to ask this query.


Thanx

BTW  Got CPG working within minutes, just trying to configure it at the moment
Title: Re: Send email of favourites list
Post by: Joachim Müller on December 09, 2004, 04:51:27 pm
this is the right place to ask :D

Edit themes/yourtheme/theme.php, find
Code: [Select]
// HTML template for title row of the fav thumbnail view (album title + download)
$template_fav_thumb_view_title_row = <<<EOT

                        <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                                <td width="100%" class="statlink"><h2>{ALBUM_NAME}</h2></td>
                                <td><img src="images/spacer.gif" width="1"></td>
                                <td class="sortorder_cell">
                                        <table height="100%" cellpadding="0" cellspacing="0">
                                                <tr>
                                                        <td class="sortorder_options"><span class="statlink"><a href="zipdownload.php">{DOWNLOAD_ZIP}</a></span></td>
                                                </tr>
                                                </table>
                                </td>
                        </tr>
                        </table>

EOT;
and add anything you want to the html part, e.g. by replacing above code with
Code: [Select]
// HTML template for title row of the fav thumbnail view (album title + download)
$template_fav_thumb_view_title_row = <<<EOT

                        <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                                <td width="100%" class="statlink"><h2>{ALBUM_NAME}</h2></td>
                                <td><img src="images/spacer.gif" width="1"></td>
                                <td class="sortorder_cell">
                                        <table height="100%" cellpadding="0" cellspacing="0">
                                                <tr>
                                                        <td class="sortorder_options"><span class="statlink"><a href="mailto:you@yourdomain.tld?subject=request%20additional%20info%20by%20email%20about%20favorites">request additional info by email</a> <a href="zipdownload.php">{DOWNLOAD_ZIP}</a></span></td>
                                                </tr>
                                                </table>
                                </td>
                        </tr>
                        </table>

EOT;

Joachim
Title: Re: Send email of favourites list
Post by: equi on December 09, 2004, 05:23:25 pm
sorted, thanx again  :D
Title: Re: Send email of favourites list
Post by: equi on December 09, 2004, 06:11:52 pm
Sorry, mabye I did not explain correctly, what I was after was exactly that function but preferably a form or if not possible an email, with the users Favourites list in order to get back to them regarding the urls or filenames of their favourites photos

(ie 3 photos in favourites, click Request more info etc.... Form or email popup  with blah blah  You have requested more information about img456, img567, img566, .....)

hope thats a bit clearer



thanx
Title: Re: Send email of favourites list
Post by: Joachim Müller on December 09, 2004, 06:24:11 pm
what you're requesting is a complex mod, not a quick hack that can be doctored in a minute or two. Basically, what you have in mind is possible.

Joachim
Title: Re: Send email of favourites list
Post by: equi on December 10, 2004, 05:47:30 pm
Arnt the URL's or image references posted to favourites page in order to display images, can these not be pasted into the subject heading of an email or suchlike, just a thought.  If the page knows what favourites files to display can this info not be copied into a text string??

Thanx
Title: Re: Send email of favourites list
Post by: Joachim Müller on December 10, 2004, 06:41:55 pm
If you think it's that easy, just code it. What I was going to say with my posting: everyone is welcome to code the mod you're looking for, but I won't be looking into this, as I can't see a benefit for the majority of users.

Joachim