Welcome Guest ( Log In | Register )

 Forum Rules Extensions Support
 
Reply to this topicStart new topic
> Pdf Attachment's Name In Post By Email Pro
ilansch
post Nov 8 2013, 07:11 PM
Post #1


Newbie
*

Group: Members
Posts: 2
Joined: 10-January 13
Member No.: 1,517



Many of our emails have more than one attachment and as per the instructions on:

https://3dwebdesign.org/forum/how-to-attach...t-by-email-t937

I'm using the following HTML container:
CODE
<p><a href="%s" title="Attachment" style="clear:both" target="_blank" />Attachment</a></p>


but the problem is that people can't distinguish which attachment is which.

I tried substituting the word "Attachment" with %s but then it shows the Subject of the email twice (with two attachments).

Is there a way to display the file-name?

Thanks
Ilan
Go to the top of the page
 
+Quote Post
ilansch
post Nov 22 2013, 05:43 AM
Post #2


Newbie
*

Group: Members
Posts: 2
Joined: 10-January 13
Member No.: 1,517



Well no answers so I hacked the code and it works, the problem is that every update I'll lose the hack and I'll need to go back to make the changes again... Wish the developers would see this post and maybe add it as an option (or I'm willing to make the necessary documented-modifications to add this option to the admin in case they want to include it in a later release).

In case some one needs it, this is what I did for Post by Email Pro ver 1.9:

edit file: administrator/components/com_post_by_email/helpers/helper.php

and modify line 391

from:
CODE
$replacement = sprintf($attachment_container, $replacement, $subject);


to:
CODE
$replacement = sprintf($attachment_container, $replacement, $local_name);


and then you could use the following HTML container:
CODE
<p><a href="%s" title="Attachment" style="clear:both" target="_blank" />%s</a></p>


and that would create the link:
CODE
<p><a href="http://your.domain/images/postbymaildirectory/filename.pdf" title="Attachment" style="clear:both" target="_blank" />filename.pdf</a></p>


Hope that helps others.

Go to the top of the page
 
+Quote Post
Web Design Seo
post Nov 22 2013, 07:03 AM
Post #3


Web Design Seo
****

Group: Root Admin
Posts: 4,332
Joined: 29-April 09
From: Sofia
Member No.: 1



@ilansch, thank you, we will review this for next extension update.


--------------------
Правила на форума | Forum Rules | How to receive support. 3D Web Design: Уеб дизайн, Seo оптимизация, Web Site Extensions, Oscommerce Addons, Wordpress plugins and Joomla Extensions. Изработка на уеб сайтове и оптимизация на сайт за търсачки и Seo услуги.
Go to the top of the page
 
+Quote Post
jayw
post Apr 18 2014, 02:33 PM
Post #4


Newbie
*

Group: Members
Posts: 17
Joined: 6-April 14
Member No.: 1,995



Thanks for the information. It works great!

QUOTE (ilansch @ Nov 22 2013, 01:43 AM) *
Well no answers so I hacked the code and it works, . . .


...

...


Hope that helps others.

Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Collapse

> Similar Topics

  Topic Replies Topic Starter Views Last Action
No new Pinned: Topic has attachmentsPost By Email Pro
Pro version of Post By Email component
116 Ivan Stamenov 630,492 24th March 2021 - 01:56 PM
Last post by: Web Design Seo
No New Posts Post By Email Pro - Cron Warnings
JROUTER_MODE warnings
3 Brian Craigie 124,164 12th March 2020 - 08:35 AM
Last post by: Web Design Seo
No New Posts Post By Email To K2 Images Not Resizing
1 bossies 127,191 31st May 2019 - 10:49 AM
Last post by: Web Design Seo
No New Posts Post By Email, Error 500
500 error on backend
1 galamarco 172,089 17th January 2019 - 06:29 AM
Last post by: Web Design Seo
No new Post By Email Not Working Since Joomla 3.5.0 Update [solved]
5 tompuchner 135,055 2nd May 2016 - 07:04 AM
Last post by: Web Design Seo
No New Posts Post By Email Using Mms On A Mobile Phone
1 alexilio 122,503 13th April 2016 - 09:44 AM
Last post by: Web Design Seo
No New Posts Post By Email Jomsocial - Unable To Post To Wall
3 uglykidjoe 96,416 11th February 2016 - 07:25 AM
Last post by: Web Design Seo
No New Posts Post By Email Doesn't Works
1 cranky69 107,849 1st December 2015 - 10:30 AM
Last post by: Web Design Seo
No New Posts Post By Email Pro Won't Process Messages But Not Published
All messages are processed but some of them are not published
1 sconello 84,357 9th November 2015 - 11:53 AM
Last post by: Web Design Seo
No new Post By Email - "content Between Strings" Extraction Not Working
4 ritual_advert 79,578 4th November 2015 - 07:25 AM
Last post by: Web Design Seo


 



RSS Lo-Fi Version Time is now: 1st June 2026 - 09:57 PM