Template for dynamic web page view version 2.2
Template for dynamic web page view version 2.2
A new year... a fresh start
For those people not familair with my template please refer to postings of earlier versions in which some explanation is given. In all cases you can ofcourse read the supplied help file.
Version 2.2 introduces the following changes and improvements:
1. Table headers and size have been adjusted to create more 'real estate'
2. Layout files changed to better suite point 1
3. All four colour schemes have been adapted and are better looking
4. Translation of the search field at the top goes now automatic (text is defined in locale.xml)
5. Some clean-up in html files
6. Email submission allows a user to fill in comments before sending the mail
7. Changed the "email" system, which now allows for the traditional mailto (=client) and a submit to a mail processing server (I have included support for the free mail relay service "Response-O-matic")
Points 6 & 7 are specifically for AJW! You may want to try this...
To see the new looks see here
The new zip package can be downloaded from here
Some explanation about Response-O-Matic:
First I am not in any way related to the above company, specific problems I won't answer. That being said; it is very simple to set up!
A. Create a login account at www.response-o-matic.com
B. Follow the three steps to make a new form.
Step 1
-- leave name and email address fields empty and press on proceed to step 2
Step 2
-- check the box "Send them back to your website" and fill in the URL of your website and make a reference to "mailform.html". E.g. www.mywebsite.com/amc/mailform.html. Also make sure you have your correct email address filled in here otherwise you won't receive the user submitted emails!
Step 3
-- in the generated HTML code you find the values of ACCTID and FORMID. These values you need to copy in the account setting located in the file locale.xml. There is no need to keep the HTML code - it is not used at all.
C. In the file locale.xml you need to change the action setting into: "http://www.response-o-matic.com/mail.php" instead of the default "mailto:"
D. Save the locale file and clear your browser cache. From now on mail submission is scripted!
Good luck,
BonieNL
For those people not familair with my template please refer to postings of earlier versions in which some explanation is given. In all cases you can ofcourse read the supplied help file.
Version 2.2 introduces the following changes and improvements:
1. Table headers and size have been adjusted to create more 'real estate'
2. Layout files changed to better suite point 1
3. All four colour schemes have been adapted and are better looking
4. Translation of the search field at the top goes now automatic (text is defined in locale.xml)
5. Some clean-up in html files
6. Email submission allows a user to fill in comments before sending the mail
7. Changed the "email" system, which now allows for the traditional mailto (=client) and a submit to a mail processing server (I have included support for the free mail relay service "Response-O-matic")
Points 6 & 7 are specifically for AJW! You may want to try this...
To see the new looks see here
The new zip package can be downloaded from here
Some explanation about Response-O-Matic:
First I am not in any way related to the above company, specific problems I won't answer. That being said; it is very simple to set up!
A. Create a login account at www.response-o-matic.com
B. Follow the three steps to make a new form.
Step 1
-- leave name and email address fields empty and press on proceed to step 2
Step 2
-- check the box "Send them back to your website" and fill in the URL of your website and make a reference to "mailform.html". E.g. www.mywebsite.com/amc/mailform.html. Also make sure you have your correct email address filled in here otherwise you won't receive the user submitted emails!
Step 3
-- in the generated HTML code you find the values of ACCTID and FORMID. These values you need to copy in the account setting located in the file locale.xml. There is no need to keep the HTML code - it is not used at all.
C. In the file locale.xml you need to change the action setting into: "http://www.response-o-matic.com/mail.php" instead of the default "mailto:"
D. Save the locale file and clear your browser cache. From now on mail submission is scripted!
Good luck,
BonieNL
[FR] Traduction française - French translation
Voilà la traduction en français du template V2.2 avec quelques modifications pour traduction et listes vidéo et audio (modifié pour utilisation avec Movie cat 4.0.6, voir les Layouts 1 à 6 pour les champs zone DVD et avis CSA).
Récupération ici http://joel.desseaux.free.fr/. Page demo ici.
French translation of the template V2.2 with some modifications for flags video and audio formats. (I use the Movie Cat 4.0.6 mod, see layouts 1 to 6 for fields DVD region code and MPAA rating).
You can find here http://joel.desseaux.free.fr/ . To see it here.
Bon catalog.
Récupération ici http://joel.desseaux.free.fr/. Page demo ici.
French translation of the template V2.2 with some modifications for flags video and audio formats. (I use the Movie Cat 4.0.6 mod, see layouts 1 to 6 for fields DVD region code and MPAA rating).
You can find here http://joel.desseaux.free.fr/ . To see it here.
Bon catalog.
Last edited by Dedej on 2010-01-13 17:47:56, edited 1 time in total.
Hi Dedej,
Thanks for the french translation.
One thing I noticed: sorting of the columns does not work anymore (clicking on a column header does not start the sorting).
This happens because you have set in the layout files under options "sortkey=number" while none of the columns have "number" as sorting rule defined.
You will need to choose for sortkey a value which is defined in any of the "sortby" values.
If you do not want any initial sorting at all then set sortkey=""
Bonne chance
BonieNL
Thanks for the french translation.
One thing I noticed: sorting of the columns does not work anymore (clicking on a column header does not start the sorting).
This happens because you have set in the layout files under options "sortkey=number" while none of the columns have "number" as sorting rule defined.
You will need to choose for sortkey a value which is defined in any of the "sortby" values.
If you do not want any initial sorting at all then set sortkey=""
Bonne chance
BonieNL
Sortkey
Hi bonienl,
Thanks for the answer and this marvellous template.
I use sortkey number for keep the saga(serie) group of my base (ex 4 films of saga Alien or films of saga Die Hard) but when I use colon order for sort in some case, I can't retrieve the initial sort by number.
I am looking for a solution but I am not a programmer I just tried to modify code for made what I wanted.
Thanks and good catalog
Thanks for the answer and this marvellous template.
I use sortkey number for keep the saga(serie) group of my base (ex 4 films of saga Alien or films of saga Die Hard) but when I use colon order for sort in some case, I can't retrieve the initial sort by number.
I am looking for a solution but I am not a programmer I just tried to modify code for made what I wanted.
Thanks and good catalog
When sortkey="" is used then initial listing will be in the same order as titles are stored in the XML database.
To sort on numbers you can add a new column with number display and sorting rule in the XML layout file(s):
Adding this column will allow you to resort on numbers after some other sort was done before.
The sorting column and direction is kept in a cookie, this allows a visitor to get the same view when he returns to the website. Clearing cookies will restore to initial sorting upon the next visit.
To sort on numbers you can add a new column with number display and sorting rule in the XML layout file(s):
Code: Select all
<cell title="Number" sortby="Number">
<text>
movie.getAttribute('Number')
</text>
</cell>
The sorting column and direction is kept in a cookie, this allows a visitor to get the same view when he returns to the website. Clearing cookies will restore to initial sorting upon the next visit.
-
- Posts: 76
- Joined: 2008-02-22 21:50:31
Excellent scripting as usuall
Hello, Happy New Year.....
I am just playing around with this.....
Can you confirm exactly where is the locale.xml to put the ACCTID AND FORMID results... I cannot see any headings saying "account setting".
I see this
account="acctid,formid"
Of what are where does the following go, I replace the actual code with xxxx just for forum purpose, I have kept the actual values...
<input type="hidden" name="acctid" id="acctid" value="xxxxxxxxxxxxxxx" />
<input type="hidden" name="formid" id="formid" value="xxxxxx" />
edited....................
I think i got it... the two values xxxxxxxxxxxxxxxxx and xxxxxx would look like this
was
account="acctid,formid"
now
account="xxxxxxxxxxxxxxxxx,xxxxxx"
When I tested it it will not say who has requested... No senders email address.... Can these feilds be added to the form...
Like:
Your Name:
Your SubID:
Your Email Address:
This was the email result how it is presented
Email from: user-submission@response-o-matic.com
Subject: Online Request (d71)
Email content:
(would look better if after the = it started a new line)
My�Choice = DVD7171 - {Psycho Ward} > Total Movie Files=1
DVD7172 - {Post Grad} > Total Movie Files=1
DVD7173 - {A Dangerous Man} > Total Movie Files=1
DVD7174 - {Sorority Row} > Total Movie Files=1
Totals = Total titles = 4
Total disks = 4
Total file size = 0 MB
(Would look better is after the = it started on a new line)
Your�comments = asdasdasdsassdsssdaaadsdadd
Thanks
AJW
I am just playing around with this.....
Can you confirm exactly where is the locale.xml to put the ACCTID AND FORMID results... I cannot see any headings saying "account setting".
I see this
account="acctid,formid"
Of what are where does the following go, I replace the actual code with xxxx just for forum purpose, I have kept the actual values...
<input type="hidden" name="acctid" id="acctid" value="xxxxxxxxxxxxxxx" />
<input type="hidden" name="formid" id="formid" value="xxxxxx" />
edited....................
I think i got it... the two values xxxxxxxxxxxxxxxxx and xxxxxx would look like this
was
account="acctid,formid"
now
account="xxxxxxxxxxxxxxxxx,xxxxxx"
When I tested it it will not say who has requested... No senders email address.... Can these feilds be added to the form...
Like:
Your Name:
Your SubID:
Your Email Address:
This was the email result how it is presented
Email from: user-submission@response-o-matic.com
Subject: Online Request (d71)
Email content:
(would look better if after the = it started a new line)
My�Choice = DVD7171 - {Psycho Ward} > Total Movie Files=1
DVD7172 - {Post Grad} > Total Movie Files=1
DVD7173 - {A Dangerous Man} > Total Movie Files=1
DVD7174 - {Sorority Row} > Total Movie Files=1
Totals = Total titles = 4
Total disks = 4
Total file size = 0 MB
(Would look better is after the = it started on a new line)
Your�comments = asdasdasdsassdsssdaaadsdadd
Thanks
AJW
Hi AJW,
I can partly help you
Perhaps my explanation wasn't clear enough, but you figured out yourself that you need to substitute the "acctid" and "formid" identifiers in the locale.xml file with the real values you obtain from response-o-matic.
The "comment" field can be used to ask the user to supply additional information, such as contact details.
I made a small change in the javascript to preset the comment field with some predefined text, this however requires an updated locale.xml file too (a new entry "commentText" was created).
Via PM I send you a zip file with a updated javascript and locale file included. Use these for your testing.
The format of the email I can't really control. To minimize the "inconvenience" however I've changed the field identifiers to 1,2,3, it should make it a bit friendlier.
BonieNL
I can partly help you
Perhaps my explanation wasn't clear enough, but you figured out yourself that you need to substitute the "acctid" and "formid" identifiers in the locale.xml file with the real values you obtain from response-o-matic.
The "comment" field can be used to ask the user to supply additional information, such as contact details.
I made a small change in the javascript to preset the comment field with some predefined text, this however requires an updated locale.xml file too (a new entry "commentText" was created).
Via PM I send you a zip file with a updated javascript and locale file included. Use these for your testing.
The format of the email I can't really control. To minimize the "inconvenience" however I've changed the field identifiers to 1,2,3, it should make it a bit friendlier.
BonieNL
-
- Posts: 76
- Joined: 2008-02-22 21:50:31
Advertising
I will have a more play around with that...
Just curious... I have my own domain, isn't there a way I can integrate a FORM FILL on my own server instead of an offsite advertising one...
Thanks again and appreciate all the advise and help.
AJW
Just curious... I have my own domain, isn't there a way I can integrate a FORM FILL on my own server instead of an offsite advertising one...
Thanks again and appreciate all the advise and help.
AJW
Sure that is possible...
The action value in the file locale.xml has to point to your own mail script, e.g. "http://www.mydomain.com/formmail.php"
Most mail scripts need additional information which is given in hidden fields. I have added to the function "sendmail" in the javascript source support for response-o-matic, but you need to adapt this to your own requirements.
Btw if you are looking for a free and good mail script, maybe this one is of interest: http://www.tectite.com
It requires though PHP support at the hosting side.
BonieNL
The action value in the file locale.xml has to point to your own mail script, e.g. "http://www.mydomain.com/formmail.php"
Most mail scripts need additional information which is given in hidden fields. I have added to the function "sendmail" in the javascript source support for response-o-matic, but you need to adapt this to your own requirements.
Btw if you are looking for a free and good mail script, maybe this one is of interest: http://www.tectite.com
It requires though PHP support at the hosting side.
BonieNL
-
- Posts: 76
- Joined: 2008-02-22 21:50:31
Expressions
I have Microsoft Expression Web 3 which has PHP ability, but I assume that is going a bit far, as when it comes to more than just click and add... well.... not a programmer as such. Changing details and adding something with easy instructions is more like my area..
My domain does support php.
There are multiple databases..... Movies, TV Series, MP3, Iphone, and a few more....
AJW
My domain does support php.
There are multiple databases..... Movies, TV Series, MP3, Iphone, and a few more....
AJW
Re: Expressions
AJW,ajwconsult wrote:My domain does support php
I have created a PHP form mailer that works together with the template (=javascript).
For testing purposes you can download the test zip file from the same location as given in my previous PM (it contains now 4 files, copy all these to your export folder).
Usage is very simple: change the $recipient value in the PHP file to your own email address (also make sure the same email address is given in the file locale.xml) and you are ready to go!
The variable commentText in the locale.xml file tells which input fields need to be created. Names with an ending asterix (*) identify compulsary fields (this is automatically checked by the script before sending of the mail message).
Let me hear your experiences
BonieNL
-
- Posts: 76
- Joined: 2008-02-22 21:50:31
Another excellent job weldone...
I have uploaded to to my site to test and it looks like to the following..
-----------------start of email-------------------
DVD4019 - {Lee Evans - Different Planet Tour} > Total Movie Files=1
DVD4020 - {Lee Evans - Live At Her Majesty\'s Theatre} > Total Movie Files=1
DVD4021 - {Neverwas} > Total Movie Files=1
Total titles = 3
Total disks = 3
Total file size = 0 MB
Name: zxczczxc
Your_SUB_ID: zxxzxz
Your_Paypal_Email_Address: xxxz
-----------------------end of email---------------------
It is possible to remove the carraige return of each "Favorite" so it looke more like below as the email is used to print and it ould mean 2x more line on page than necessary...
------------------------Like This - without this line ------------------
DVD4019 - {Lee Evans - Different Planet Tour} > Total Movie Files=1
DVD4020 - {Lee Evans - Live At Her Majesty\'s Theatre} > Total Movie Files=1
DVD4021 - {Neverwas} > Total Movie Files=1
Total titles = 3
Total disks = 3
Total file size = 0 MB
Name: zxczczxc
Your_SUB_ID: zxxzxz
Your_Paypal_Email_Address: xxxz
----------------------------------without this line----------------------
I have uploaded to to my site to test and it looks like to the following..
-----------------start of email-------------------
DVD4019 - {Lee Evans - Different Planet Tour} > Total Movie Files=1
DVD4020 - {Lee Evans - Live At Her Majesty\'s Theatre} > Total Movie Files=1
DVD4021 - {Neverwas} > Total Movie Files=1
Total titles = 3
Total disks = 3
Total file size = 0 MB
Name: zxczczxc
Your_SUB_ID: zxxzxz
Your_Paypal_Email_Address: xxxz
-----------------------end of email---------------------
It is possible to remove the carraige return of each "Favorite" so it looke more like below as the email is used to print and it ould mean 2x more line on page than necessary...
------------------------Like This - without this line ------------------
DVD4019 - {Lee Evans - Different Planet Tour} > Total Movie Files=1
DVD4020 - {Lee Evans - Live At Her Majesty\'s Theatre} > Total Movie Files=1
DVD4021 - {Neverwas} > Total Movie Files=1
Total titles = 3
Total disks = 3
Total file size = 0 MB
Name: zxczczxc
Your_SUB_ID: zxxzxz
Your_Paypal_Email_Address: xxxz
----------------------------------without this line----------------------
That's quick testing....
I made a small update to the file mailform.php
Please redownload the zip file with the update, you just need to replace the file mentioned above (and put your email address in it of course)!
BonieNL
Ps. If you want to suppress one or more of the "Total" lines, you just have to make the corresponding field empty ("") in the file locale.xml.
I made a small update to the file mailform.php
Please redownload the zip file with the update, you just need to replace the file mentioned above (and put your email address in it of course)!
BonieNL
Ps. If you want to suppress one or more of the "Total" lines, you just have to make the corresponding field empty ("") in the file locale.xml.
-
- Posts: 76
- Joined: 2008-02-22 21:50:31
Thanks for the quick reply...
Nearly there by the looks of it....
--------------looks llike this now---------------
DVD4015 - {Premonition} > Total Movie Files=1
xxxxxxxxxxxxxxx
DVD4019 - {Lee Evans - Different Planet Tour} > Total Movie Files=1
xxxxxxxxxxxxxxx
DVD4020 - {Lee Evans - Live At Her Majesty\'s Theatre} > Total Movie Files=1
xxxxxxxxxxxxxxx
DVD4021 - {Neverwas} > Total Movie Files=1
Total titles = 4
xxxxxxxxxxxxxxx
Total disks = 4
xxxxxxxxxxxxxxx
Total file size = 0 MB
Name: my name here
Your_SUB_ID: 00001
You_Paypal_Email_Address: 2@3.com
just the top 2 section have extra carraige return in them... i put xxxxxx in to show..
Nearly there by the looks of it....
--------------looks llike this now---------------
DVD4015 - {Premonition} > Total Movie Files=1
xxxxxxxxxxxxxxx
DVD4019 - {Lee Evans - Different Planet Tour} > Total Movie Files=1
xxxxxxxxxxxxxxx
DVD4020 - {Lee Evans - Live At Her Majesty\'s Theatre} > Total Movie Files=1
xxxxxxxxxxxxxxx
DVD4021 - {Neverwas} > Total Movie Files=1
Total titles = 4
xxxxxxxxxxxxxxx
Total disks = 4
xxxxxxxxxxxxxxx
Total file size = 0 MB
Name: my name here
Your_SUB_ID: 00001
You_Paypal_Email_Address: 2@3.com
just the top 2 section have extra carraige return in them... i put xxxxxx in to show..
-
- Posts: 76
- Joined: 2008-02-22 21:50:31
Hello,
The statement is as follows....
<box pin="movie.getAttribute('Number')" value="movie.getAttribute('MediaLabel')+' - '+'{'+movie.getAttribute('OriginalTitle')+'}'+' > Total Movie Files='+movie.getAttribute('Disks')" totals="true" save="true"/>
The statement is as follows....
<box pin="movie.getAttribute('Number')" value="movie.getAttribute('MediaLabel')+' - '+'{'+movie.getAttribute('OriginalTitle')+'}'+' > Total Movie Files='+movie.getAttribute('Disks')" totals="true" save="true"/>
bonienl wrote:Hmm, I can't reproduce this!
Can you give me the exact setting of the <box pin="movie.getAttribute('Number')" value=... statement in your layout.xml file?
-
- Posts: 76
- Joined: 2008-02-22 21:50:31
Thanks for the update..
The result is exactly the same.
Section 1 has extra line (favorite section)
Section 2 has extra line (totals section)
Section 3 Pefect (senders details)
The result is exactly the same.
Section 1 has extra line (favorite section)
Section 2 has extra line (totals section)
Section 3 Pefect (senders details)
bonienl wrote:I have my suspicion, it has nothing to do with your box statement though, but I can't really test this myself!
I made a change to movies.js and you can download the zip file again. Overwrite the old file movies.js with this one and let me know the result.
Alright I think I have found the cause. Some extra carriage-return characters being inserted which unix doesn't like...ajwconsult wrote:Thanks for the update..
The result is exactly the same.
Section 1 has extra line (favorite section)
Section 2 has extra line (totals section)
Section 3 Pefect (senders details)
I have updated the files movies.js and mailform.php, please get the zip file once more and overwrite the old versions (don't forget to put your email address in the mailform.php file).