Send email of favourites list Send email of favourites list
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Send email of favourites list

Started by equi, December 09, 2004, 04:23:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

equi

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

Joachim Müller

this is the right place to ask :D

Edit themes/yourtheme/theme.php, find// 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// 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

equi

#2
sorted, thanx again  :D

equi

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

Joachim Müller

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

equi

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

Joachim Müller

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