Generated HTML customisation | Search |
NowSMS Support Forums ⬆ NowSMS Support - MMS & Advanced Issues ⬆ Archive through May 02, 2013 ⬆ |
◄ ► |
Author | Message | ||||
FRaveau New member Username: Fraveau Post Number: 23 Registered: 06-2012 |
Hi, I would like to modify the HTML web page pointed by the URL in MMS converted to SMS with web link. Is that possible? Thanks | ||||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4125 Registered: 08-2008 |
Hi, The templates for the version with code can be found in the MMSSMS directory of the NowSMS installation. There is a document that describes the format somewhere, but I am having difficulty locating it. It should be relatively straight forward, login.htm is the template for the page that prompts for the code, and msgtemplate.htm is the template for the message itself. The template for the direct option is mmwap-template.htm in the MMSCDATA directory. I don't think this file exists until you create it. It uses the same format as msgtemplate.htm. This said, we have been doing work to increase the functionality of the convert template to make it more functional for modern browsers (especially with regard to video). The updated version consolidates templates so that both code and direct link options both use msgtemplate.htm. We are still performing internal tests on this update, but if you are looking at customizing the templates, you may wish to look at this update. http://www.nowsms.com/download/nowsms20121004.zip -- Des NowSMS Support | ||||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4126 Registered: 08-2008 |
Here is the other link I was having trouble finding: http://www.nowsms.com/mms-conversion-to-sms-with-web-link | ||||
FRaveau New member Username: Fraveau Post Number: 24 Registered: 06-2012 |
We would prefer to use the direct link as I think the short link is complicated enought to preserve privacy. When do you think this version will be approved for production? Regards | ||||
sam Frequent Contributor Username: Samdsouza Post Number: 86 Registered: 08-2006 |
Hi Des Dont mean to hijack this thread but this is great news: "we have been doing work to increase the functionality of the convert template to make it more functional for modern browsers (especially with regard to video). " Wanted your inputs on the following: 1. I never saw or created mmwap-template.htm in the MMSCDATA directory. Is this mandatory/required? 2. In NowSMS\MMSCDATA\ folder i see the latest version creates nowsms.css in the root. Does that mean NowSMS\MMSCDATA\css folder is not required anymore with the latest version? Kindly let me know & keep up the excellent feature updates. @FRaveau the latest update i have tested and works just great. Sam | ||||
FRaveau New member Username: Fraveau Post Number: 25 Registered: 06-2012 |
Hi I've installed the update and it provides a good base for customization indeed. I have a few feedbacks: - The image thumbnails (with the -small suffix) are not resized actually. They are of the same size as the original - The audio player doesn't work on my Samsung S2 and the video player doesn't work on IE9 which is probably related to HTML5 Franck | ||||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4129 Registered: 08-2008 |
Probably another week or two. Our primary concern is with regard to these updated templates and underlying logic changes to support them.
I will investigate. There are config settings for setting the preview size. With more higher resolution phone displays, we wanted to make it larger to look better on these devices. I am asking for these config settings to be moved into the template.
What version of Android on the S2? Does the direct link to download the audio work? I haven't seen any issues with IE9, but maybe I have a plugin installed that I am unaware of. I'd appreciate any insight about what might be wrong. -- Des NowSMS Support | ||||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4130 Registered: 08-2008 |
It was a way to override the template for multimedia WAP Push in older versions. If it didn't exist, an inbuilt template was used. That said, I'm not sure this was officially documented, and it was quirky. That is why in the new version we have moved to using a single template.
Correct. That CSS directory can be deleted. We decided to consolidate files in the root of that directory. -- Des NowSMS Support | ||||
FRaveau New member Username: Fraveau Post Number: 26 Registered: 06-2012 |
There are config settings for setting the preview size. With more higher resolution phone displays, we wanted to make it larger to look better on these devices. I am asking for these config settings to be moved into the template. ok fine. I feel like pictures could be displayed directly into the page with a width=device-width parameters. What version of Android on the S2? 4.0.3 Does the direct link to download the audio work?} There is no direct link, just a very diminished player If you want I can send you screenshots using a mail adress. Franck | ||||
FRaveau New member Username: Fraveau Post Number: 27 Registered: 06-2012 |
Hi, I left aside the HTML5 for now to work on a basic generetion first and but also because I'm not shure of the gain of it anyway. The @@SUBJECT@@ and @@TEXT@@ tag provide the same text. Is that an error in the MMS client? I don't really anderstand the BEGINCONTENT / ENDCONTENT tag as it's not present in the geenrated HTML despites it's mandatory to get something. Could you explain it please? Franck | ||||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4138 Registered: 08-2008 |
You can do this easily. Change @@CONTENTURLPREVIEW@@ to @@CONTENTURL@@
I see the problem. The pre-Chrome Android browser has a broken HTML5 audio tag. We did find a quick fix for 4.x, but 2.x is still broken and the "download" link does not appear. So we're adding the download link to always appear for audio content, even if HTML5 audio is supported. Here's an alternative that works a little better: @@BEGINCONTENTAUDIO@@ <div class="contentaudio"> <table border="0"> <tr> <td> <audio controls="controls"> <source src="@@CONTENTURLCONVERT-mp3@@" type="audio/mp3" /> <source src="@@CONTENTURLCONVERT-mp3@@" type="audio/mpeg" /> <source src="@@CONTENTURL@@" type="@@CONTENTURLTYPE@@" /> </audio> </td> </tr> <tr> <td style="text-align:right;font-size:75%;font-variant:small-caps;"> <a href="@@CONTENTURLCONVERT-mp3@@">Click To Download Audio</a> </td> </tr> </table> </div> @@ENDCONTENTAUDIO@@ (To be honest, audio content seems to be seldom used in MMS messages. Images and video are more common place.)
Where it is most significant is for video. People like to send video over MMS, and that is the area that benefits most from the HTML5 tags. The current version does have some problems determining video height and width and mistakenly sets some video to 0 height & width. That is being fixed.
Most MMS clients do not bother with a subject. When the subject is blank or missing, we extract the start of the text to use as the subject.
An MMS message can contain any type of content, not just image/audio/video. This is a placeholder to catch other content. (For example, sending a contact on the iPhone sends a vcard.) I agree that it is odd that this section is required in the template, but I can confirm that it is. -- Des NowSMS Support | ||||
FRaveau New member Username: Fraveau Post Number: 28 Registered: 06-2012 |
Hi, Thank you Des for all your answers When the subject is blank or missing, we extract the start of the text to use as the subject. Could you fill it with a fixed string (eg Multimedia message) or a new tag? That would avoid repetition most of the time Is it possible to customise the test SMS? Franck | ||||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4142 Registered: 08-2008 |
Hi Franck, That is what we used to do, but it has been a somewhat frequent source of complaint. There's probably no perfect solution, but in the next update we will add a config switch to set the subject to "Multimedia Message" in the web templates if it is blank/missing.
The text of the SMS is not cutomisable. It contains the start of the message text (or subject if present) followed by the URL. Actually it does start with the message sender phone number, but we plan to add an option to set the MMS sender as the SMS sender, in which case the sender phone number will not be included in the text. -- Des NowSMS Support | ||||
FRaveau New member Username: Fraveau Post Number: 29 Registered: 06-2012 |
Hi Des,
That's a very good point! My concert is indeed to provide a text SMS that can't be considered by the receiver as a weird spam or so. It could be great to have a way to translate the "Multimedia message:" string in the SMS. Franck | ||||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4151 Registered: 08-2008 |
Hi Franck, Yes, we also want the reply to go back to the actual sender as well. The "Multimedia Message" subject won't be included in the SMS text. (If you're seeing it, let me know.) Our intent is that the SMS text in this scenario will include the subject (if present) and as much of the text from the message as will fit into the text when combined with the URL. (Currently we have limited to 50 characters of text, but that is being expanded.) Usually the text in an MMS has some relevance to any picture or video being sent. Of course, there is a use case issue that if the message contains no text. We need to insert "Multimedia Message" or preferably some other configurable text. We are working to try to address these issues by Friday. -- Des NowSMS Support | ||||
FRaveau New member Username: Fraveau Post Number: 30 Registered: 06-2012 |
Hi, ok fine! Please keep us informed. Is an accounting callback possible when the web page is consulted? Franck | ||||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4154 Registered: 08-2008 |
Hi Franck, Yes, an MMSRetrieve callback is triggered when the web page is requested. -- Des NowSMS Support | ||||
FRaveau New member Username: Fraveau Post Number: 31 Registered: 06-2012 |
Hi,
Is that in the next update? Because currently there is no callback when requesting the web page. I just tested it. Franck | ||||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4156 Registered: 08-2008 |
Hi Franck, Currently the MMSRetrieve callback is triggered only the first time the recipient retrieves the web page. We have no plans to change that. There are also some unnecessary MMSRetrieve callbacks that are triggered for images and CSS. Those callbacks are being removed. Pending further test results, the update should be posted later today or over the weekend. -- Des NowSMS Support | ||||
FRaveau New member Username: Fraveau Post Number: 32 Registered: 06-2012 |
But the thing is: i dont experience any callback when requesting the page from a mobile. No prob with MMS retreiving. Franck | ||||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4157 Registered: 08-2008 |
I'd probably have to see an MMSCDEBUG.LOG to understand why. (It can be posted here or e-mail to nowsms@nowsms.com with Attention: Des in the subject line.) But before we take that step, two things: 1.) What does the MMSC-yyyymmdd.LOG report about these retrievals? We added some HTTPGET entries to this log. What do you see there when the message is retrieved. These log entries should also record an MMSRETRIEVE entry the first time a recipient accesses the page. 2.) The update that we have been discussing is available for download at http://www.nowsms.com/download/nowsms20121018.zip -- Des NowSMS Support | ||||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4160 Registered: 08-2008 |
Also, FYI, here is info about some of the new settings for controlling the MMS to SMS with web page conversion... * MMS to SMS/WAP with Web Link - Updated web templates now use an excerpt from the start of the message text as the subject if a subject is not present in the MMS message. To go back to using the static text "Multimedia Message", add MMSSMSTextExcerptForBlankSubject=No under the [MMSC] header of MMSC.INI. * MMS to SMS with Web Link - Add additional configuration parameters to control the content of the SMS text message that is generated. All settings described below are placed in the [MMSC] section of MMSC.INI: MMSSMSUseSender=Yes When this setting is used, the MMS sender address will be used as the SMS sender address. MMSSMSBlankText= If the MMS message does not contain any text or subject, this text will be used in the resulting SMS message. MMSSMSPrefix= If present, this text is added to the SMS message before the actual text of the message. MMSSMSPostfix= If present, this text is added to the SMS message after the actual text of the message, but before the URL for additional content. | ||||
sam Frequent Contributor Username: Samdsouza Post Number: 92 Registered: 08-2006 |
Hi Des Would request your inputs on the above new settings: 1. The above settings apply to SMS with web link (Direct) or SMS with web link (Code) or both? 2. How does the [TranslateText] settings differ from the above mentioned settings? 3. The [TranslateText] settings affect only the WML page and not the msgtemplate.htm now or affect both? Kindly let me know Thanks Sam | ||||
FRaveau New member Username: Fraveau Post Number: 33 Registered: 06-2012 |
Hi, I've been playing with the new settings and I can't get the MMS sender used as the SMS sender despite I added the MMSSMSUseSender=Yes here are a SMSDEBUG.log sample: 14:08:34:491 [16] ThreadProcessModem: Processing D2D336F0.req... 14:08:34:491 [16] ThreadProcessModem: GET /api.php?login=YYYYYYYYYYYY&pass=XXXXX&msg=%2B33664222347%20-%20message%20multim edia:%20Hhhhhh%20Cliquez%20sur:%20%20http://mms.SSSS.fr:8080/MZ/ZZZZZ&dest=%2B33609070554&origine= HTTP/1.1 User-Agent: Now SMS/MMS Gateway v2012.10.18 Host: api.smsbox.fr Accept: */* Connection: close 14:08:34:538 [16] HttpResponseWait: Ok 14:08:34:538 [16] ThreadProcessModem: HTTP/1.1 200 OK Date: Mon, 22 Oct 2012 12:08:37 GMT Server: Apache Expires: Mon, 22 Oct 2012 12:08:37 GMT Last-Modified: Mon, 22 Oct 2012 12:08:37 GMT Cache-Control: maxage=1 Pragma: public Connection: close Vary: Accept-Encoding Content-Length: 2 Content-Type: text/plain; charset=iso-8859-1 OK 14:08:34:538 [16] WaitForSocketClose: WinSock reported ioctlsocket complete So the origin isn't set. Franck | ||||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4164 Registered: 08-2008 |
Hi Franck, The fact that the phone number is still in the text of the SMS suggests to me that the MMSSMSUseSender=Yes setting is not being recognised. I've just run some tests with an HTTP SMSC connection (I previously only tried this with SMPP), and it works as expected when I add MMSSMSUseSender=Yes to the [MMSC] section of MMSC.INI. If that setting is present, and the MMS From (Sender) address is a valid phone number (or shortcode) format, then my experience is that the sender number is not included in the text of the SMS, and NowSMS attempts to use that MMS sender number as the SMS sender address. Double check the MMSSMSUseSender=Yes MMSC.INI setting doesn't have a misspelling, and maybe try restarting the MMSC service if for some reason the service was not able to reload the changed setting. -- Des NowSMS Support | ||||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4165 Registered: 08-2008 |
The MMSSMSxxxxx settings discussed here apply only to web link (Direct), except for MMSSMSTextExcerptForBlankSubject = which applies to both. The web link (code) interface works differently and these settings would not be applicable. (There is a separate config setting for using the MMS sender as the SMS sender in that interface. The text of the SMS in that interface is intended to be instructions to use a code to access the message via a web page.) The new web page template format (msgtemplate.htm) applies to both types of web link interface, code or direct.
The TranslateText settings are still available, however using the new msgtemplate.htm format, most are no longer used, or apply only to the legacy msgtemplate.wml interface for old devices. If you follow the new msgtemplate.htm format, with separate @@BEGINCONTENTIMAGE@@ / @@BEGINCONTENTVIDEO@@ / @@BEGINCONTENTAUDIO@@ sections, then most of the translatable web page prompts are part of the HTML template. Referring back to this list: http://support.nowsms.com/discus/messages/1/670.html The only setting applicable to msgtemplate.htm is this one, which allows you to change the text "Multimedia Message": [TranslateText] Multimedia Message=xxxxxxx It is confusing, but referring back to that list: Subject and From translations apply only to WML. For HTML, those strings are assumed to be in translated form in the HTML template. The various "Download" translations also no longer apply to the HTML template, as there are now separate sections of the HTML template to handle different content types. I hope that clarifies. We didn't want to break existing templates, so the TranslateText settings will still work with older templates. But for newer templates with the separate settings for different content types, "Multimedia Message" is the only text that may need translation...and only if MMSSMSTextExcerptForBlankSubject=No. I get more than a little confused myself trying to explain it.
Both, but in practice, for the new msgtemplate.htm, only "Multimedia Message" is translated, and only if MMSSMSTextExcerptForBlankSubject=No -- Des NowSMS Support | ||||
sam Frequent Contributor Username: Samdsouza Post Number: 94 Registered: 08-2006 |
Thanks a million Des....You explained it perfectly!!! Yes i did get confused while trying to put up the question myself... Just one quick question..lets say the text is blank and the subject is blank...both are blank i meant..and MMSSMSTextExcerptForBlankSubject=Yes...how would it work out in this scenario? Kindly let me know Regards Sam | ||||
FRaveau New member Username: Fraveau Post Number: 34 Registered: 06-2012 |
Hi Des, I can't do it work Could you look at my MMSC.ini please? Franck
| ||||
sam Frequent Contributor Username: Samdsouza Post Number: 97 Registered: 08-2006 |
Hi Des Regarding Franks issue of MMSSMSUseSender=Yes I am also seeing the same behavior. Its not picking up the mobile number as senderID..i get the following in my smsout logs: Sender=Default Sender Address Text="UserAlias" - "MMSSMSBlankText" http://xyz.com/MR/LvOXoBkE" Regards Sam | ||||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4171 Registered: 08-2008 |
Our old friend "Multimedia Message" (or translated string) is used. Good question ... this scenario is quite common where people send a picture but don't make any comment. -- Des NowSMS Support | ||||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4173 Registered: 08-2008 |
Hi Sam & Franck, MMSSMSUseSender=Yes was not working in all scenarios, but should be now. http://www.nowsms.com/download/nowsms20121024.zip -- Des NowSMS Support | ||||
sam Frequent Contributor Username: Samdsouza Post Number: 99 Registered: 08-2006 |
Bingo!!!...Works Great....Thanks for fixing this...I find one change in the URL content. Previously it was this: Text="UserAlias" - "MMSSMSBlankText" http://xyz.com/MR/LvOXoBkE" Now its this: Text="PhoneNumber" - "MMSSMSBlankText" http://xyz.com/MR/LvOXoBkE" Any particular reason for changing the UserAlias to PhoneNumber in the URL? Kindly let me know Thanks once again Sam | ||||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4179 Registered: 08-2008 |
Hi Sam, In the previous implementation, the "UserAlias" in the text was part of the problem. The way MMSSMSUseSender=Yes was implemented, it was expecting the phone number in the text. (It would remove it and use it as the sender.) At least that was part of the problem, because I think there was a scenario that didn't use aliases that was also problematic. -- Des NowSMS Support | ||||
sam Frequent Contributor Username: Samdsouza Post Number: 104 Registered: 08-2006 |
Thanks Des That explains it. Thanks a lot for resolving this issue. Regards Sam |