1. Forum
    1. Themen Übersicht
  2. Hilfe
  3. Forenregeln
  4. Mitglieder
    1. Team
    2. Mitgliedersuche
  5. Webseite
  6. Archiv
  • Anmelden
  • Registrieren
  • Suche

Neuigkeiten

Dieses Thema
  • Alles
  • Dieses Thema
  • Dieses Forum
  • Artikel
  • Seiten
  • Forum
  • Erweiterte Suche

Neuigkeiten

Letzte Beiträge
  1. JoomGallery 3.x JUX für Joomla! 3
  2. Alle Beiträge zur JoomGallery 3.x JUX
  3. Backend / Administration - JG 3.x

Can I include a small thumbail of each image downloaded in the email download notification?

  • dan40
  • 4. Juli 2023 00:09
  • Erledigt
1. offizieller Beitrag
  • dan40
    Benutzer
    Reaktionen
    1
    • 4. Juli 2023 00:09
    • #1

    Is it possible to have JG insert or include the thumbnail of the image downloaded in the email notifications for downloads? What would I need to include in the .php file? Which php file would it be that does this?

    • Zitieren
  • dan40
    Benutzer
    Reaktionen
    1
    • 4. Juli 2023 00:28
    • #2

    in en-GB.com_joomgallery.ini, there is this line:

    COM_JOOMGALLERY_MESSAGE_NEW_DOWNLOAD_BODY="The image with the title %1$s (Filename: %2$s) has been downloaded by %3$s!"

    If I could figure out or you could tell me what variable represents the thumbnail of the image where it could be inserted into this line, I might have some luck.

    • Zitieren
  • Elfangor93
    Moderator
    Reaktionen
    187
    • 4. Juli 2023 08:02
    • Offizieller Beitrag
    • #3

    In order to modify the content of the email you would need to change eighter the content of the language string (with a language override) or you have to modify the body of the mail within the JoomMessenger class.

    The first option is update safe, but more restricted in what you can do. Since Joomgallery's mailer is sending the mails in raw text format I guess its impossible to add an image this way but i would definitely give it a try.

    The second option is to modify JoomGallery core files. For that take a look at the following code line, where the email for new downloads gets created:
    https://github.com/JoomGalleryfri…ew.raw.php#L136

    Additionally look at this code lines where the JoomMessenger creates the email using Joomlas mailing service:

    https://github.com/JoomGalleryfri…senger.php#L459
    Here you can find the documentation of the Joomla mailing class. I think I would try putting the thumbnail as an attachement using $mailer->addAttachment(<IMAGEPATH>)

    Joomla! API
    The Joomla! CMS 3.10 API Documentation
    api.joomla.org

    Wir sind auf der Suche nach Helfern für die JoomGallery 4 Entwicklung!
    Melde dich bei Interesse bei mir (Elfangor93).
    (Verfügbare Jobs: PHP-Entwicklung, Testen, Übersetzen, Dokumentation)

    • Zitieren
  • dan40
    Benutzer
    Reaktionen
    1
    • 6. Juli 2023 08:00
    • #4
    Zitat von Elfangor93

    [tt]Here you can find the documentation of the Joomla mailing class. I think I would try putting the thumbnail as an attachement using $mailer->addAttachment(<IMAGEPATH>)

    Thank you for that explanation! The <IMAGEPATH> needs a variable, it's not just IMAGEPATH, as indicated. Once I did that I got an error message but then I reversed the change I made and realized that the < and > around the word needs a variable followed by a ";" to end the command. What's the variable for the image thumbnail?

    Einmal editiert, zuletzt von dan40 (6. Juli 2023 16:29)

    • Zitieren

Letzte Beiträge

  • URLs nach Update auf JoomGallery4 und SH404SEF /4SEF

    Bjoern 1. Juli 2025 23:56
  • Looking to replicate JG3 Gallery / Category View under JG4

    GJSchaller 1. Juli 2025 20:01
  • What can you do with Tags?

    FriendlyUser 30. Juni 2025 22:40
  • JG3 Bilder als Artikelbild verlinkt - Welche Migrationseinstellung erhält die Dateipfade?

    MrMusic 30. Juni 2025 10:21
  • JoomGallery for Joomla 4

    MrMusic 26. Juni 2025 13:53
  • Bearbeiten von Bildern nicht möglich

    kaufi88 26. Juni 2025 11:11
  • URLS nach Migration auf JG4

    Elfangor93 25. Juni 2025 12:45
  • Inconsistent category folder paths defined in the database of your JG3 tables

    MrMusic 24. Juni 2025 15:49
  • JoomImages Module in Joomgallery 4

    Elfangor93 17. Juni 2025 09:07
  • 4SEF have native support for JoomGallery

    Elfangor93 17. Juni 2025 08:36
  1. Datenschutzerklärung
  2. Impressum
Community-Software: WoltLab Suite™