<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged guest-page</title>
<link>https://overflow.efficy.io/?qa=tag/guest-page</link>
<description>Powered by Question2Answer</description>
<item>
<title>Guest page &amp; requirejs : Yes we can!</title>
<link>https://overflow.efficy.io/?qa=6181/guest-page-requirejs-yes-we-can</link>
<description>&lt;p&gt;I know, I know, I know: Guest pages went to the dark side of the force! But since I'm as old as Methuselah, I already had to work on them and still have to, for legacy reasons.&lt;/p&gt;

&lt;p&gt;First I have to thank Stéphane &amp;amp; Kristof, our gurus, who opened the Red Sea waters to let me reach the Holy Land. &lt;/p&gt;

&lt;p&gt;The first step to activate requirejs framework from a guest page is to call a macro like this one:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;DialogScripts {[
  &amp;lt;%UseScript('js/config/require.config.js', fixedpath=T, data-custombase='%%GetFileBase(short=T)')%&amp;gt;
  &amp;lt;%Evaluate(&quot;%%Macro('RequireConfigCustom')&quot;)%&amp;gt;
  &amp;lt;%UseScript('../../../../lib/js/vendor/require.js', fixedpath=T, data-main='%%Macro(&quot;MainJsModule&quot;)', data-custom-main='%%Macro(&quot;MainJsModuleCustom&quot;)')%&amp;gt;
]}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The second one is to copy the standard &lt;code&gt;efficy/js/config/require.config.js&lt;/code&gt; file in your &lt;code&gt;guest/myGuest/js/config&lt;/code&gt; folder. A few drops of Holy water on this file will then suffice to perform the miracle :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;baseUrl: '../guest/myGuest/js',
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Since your custom &lt;code&gt;require.config.js&lt;/code&gt; is one level deeper than the efficy one, you have to add one &lt;code&gt;../&lt;/code&gt; to all relative paths:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;'domReady':               '../../lib/js/vendor/require.domReady',
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;becomes&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;'domReady':             '../../../lib/js/vendor/require.domReady',
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Add this &lt;code&gt;../&lt;/code&gt; to all standard modules relative paths.&lt;/p&gt;

&lt;p&gt;And at the end of the file :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;if (tagC) {
  attrC = tagC.getAttribute(attrC).replace(/([^\/]*)\/$/, '$1'); // remove trailing slash;
  if (attrC) require.paths.custom = '../' + attrC + '/js/';
}
if (tagD) {
  attrD = tagD.getAttribute(attrD).replace(/([^\/]*)\/$/, '$1'); // remove trailing slash;
  if (attrD &amp;amp;&amp;amp; attrD !== '..') require.paths.dealer = '../' + attrD + '/js/';
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;becomes&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;if (tagC) {
  attrC = tagC.getAttribute(attrC).replace(/([^\/]*)\/$/, '$1'); // remove trailing slash;
if (attrC)
  require.paths.custom = '../../' + attrC + '/js/';
}
if (tagD) {
  attrD = tagD.getAttribute(attrD).replace(/([^\/]*)\/$/, '$1'); // remove trailing slash;
if (attrD &amp;amp;&amp;amp; attrD !== '..')
  require.paths.dealer = '../../' + attrD + '/js/';
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;You can now use the requirejs well known syntax from your page :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;requirejs(
  ['standardModule', 'custom/misc/customModule'],
  function(StandardModule, CustomModule) {
     ...
  }
);
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Meditate on this Psalm III of Chapter II of the Gospel according to Saint Peter and think about it the next time you'll have to work on a guest page.&lt;/p&gt;

&lt;p&gt;Amen!&lt;/p&gt;
</description>
<category>Guest</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6181/guest-page-requirejs-yes-we-can</guid>
<pubDate>Fri, 18 Jun 2021 11:48:26 +0000</pubDate>
</item>
<item>
<title>refresh GetGuestLabel in 12.0</title>
<link>https://overflow.efficy.io/?qa=6133/refresh-getguestlabel-in-12-0</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I tried to refresh my guest page labels in 12.0 and I used these methods:&lt;br&gt;
- refresh from &lt;a rel=&quot;nofollow&quot; href=&quot;http://efficy120/public/guest?app=xxx&amp;amp;action=readregistry&quot;&gt;http://efficy120/public/guest?app=xxx&amp;amp;action=readregistry&lt;/a&gt;&lt;br&gt;
- kill COM+&lt;br&gt;
- refresh settings from console&lt;/p&gt;

&lt;p&gt;the only method that works was to use recycle from IIS in application pools and to empty my browser cache.&lt;/p&gt;

&lt;p&gt;Is there any simple way to refresh the guest label ?&lt;/p&gt;
</description>
<category>Guest</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6133/refresh-getguestlabel-in-12-0</guid>
<pubDate>Thu, 27 May 2021 15:49:50 +0000</pubDate>
</item>
<item>
<title>Customize the error message for a Guest page when there are &quot;Invalid parameters&quot;</title>
<link>https://overflow.efficy.io/?qa=5699/customize-error-message-guest-page-there-invalid-parameters</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;is it possible to customize the error message that you get when you've entered invalid parameters for a guest page. You then get the following error message:&lt;br&gt;
“Invalid parameters for request! Check Guest_Error.log for details&quot;&lt;/p&gt;

&lt;p&gt;But I really would like to know if we can modify this error message to a more friendly one.&lt;/p&gt;

&lt;p&gt;Best regards,&lt;br&gt;
Jeroen&lt;/p&gt;
</description>
<category>Guest</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5699/customize-error-message-guest-page-there-invalid-parameters</guid>
<pubDate>Wed, 25 Nov 2020 16:47:54 +0000</pubDate>
</item>
<item>
<title>how to implement a double opt-in newsletter registration in Efficy</title>
<link>https://overflow.efficy.io/?qa=4766/how-to-implement-double-opt-newsletter-registration-efficy</link>
<description>&lt;p&gt;first opt-in is a guest page with mail confirmation and link to Efficy profile&lt;br&gt;
how can I implement the second opt-in from the mail confirmation.&lt;br&gt;
I need to generate a link that will change the status in the profile&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4766/how-to-implement-double-opt-newsletter-registration-efficy</guid>
<pubDate>Tue, 10 Sep 2019 15:42:04 +0000</pubDate>
</item>
<item>
<title>Upload documents (files) from a guest page</title>
<link>https://overflow.efficy.io/?qa=4394/upload-documents-files-from-a-guest-page</link>
<description>&lt;p&gt;Hello all,&lt;/p&gt;

&lt;p&gt;Is there a way to create a guest form with upload document functionality?&lt;br&gt;
But without using the .Net assembly (FileUpload.aspx).&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;

&lt;p&gt;Henry&lt;/p&gt;
</description>
<category>Guest</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4394/upload-documents-files-from-a-guest-page</guid>
<pubDate>Fri, 31 May 2019 11:33:20 +0000</pubDate>
</item>
<item>
<title>Encrypt string parameters in guest page</title>
<link>https://overflow.efficy.io/?qa=2626/encrypt-string-parameters-in-guest-page</link>
<description>&lt;p&gt;Hi everyone,&lt;/p&gt;

&lt;p&gt;One of my customer wants to encrypt the url of the guest pages.&lt;/p&gt;

&lt;p&gt;For the moment it's something like this : &lt;/p&gt;

&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://EFFICYURL/EFFICY.DLL/guest?app=MyApp&amp;amp;page=test.htm&amp;amp;propkey=2633&amp;amp;broch=OFF&amp;amp;lang=FR&amp;amp;param=&amp;amp;cont=1643C29336&amp;amp;type=Year&amp;amp;proj=0&amp;amp;section=main&amp;amp;ismode=let&quot;&gt;https://EFFICYURL/EFFICY.DLL/guest?app=MyApp&amp;amp;page=test.htm&amp;amp;propkey=2633&amp;amp;broch=OFF&amp;amp;lang=FR&amp;amp;param=&amp;amp;cont=1643C29336&amp;amp;type=Year&amp;amp;proj=0&amp;amp;section=main&amp;amp;ismode=let&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;With this, the next key (propkey) can easily be guessed and the contact can potentially access all the records&lt;/p&gt;

&lt;p&gt;The idea is to use a specific encryption, the url will only be something like this : &lt;br&gt;
&lt;a rel=&quot;nofollow&quot; href=&quot;https://EFFICYURL/EFFICY.DLL/guest?app=MyApp&amp;amp;page=test.htm&amp;amp;id=Y2F0ZWdvcnk9dGV4dGlsZSZ1c2VyPXVzZXIx&quot;&gt;https://EFFICYURL/EFFICY.DLL/guest?app=MyApp&amp;amp;page=test.htm&amp;amp;id=Y2F0ZWdvcnk9dGV4dGlsZSZ1c2VyPXVzZXIx&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;With this, I need to do a loadscript, runscript to go serverside, decrypt the id and pass client side the right parameters&lt;br&gt;
But this means all the Runqueries, GetArguments,..  have to be delayed right?&lt;/p&gt;

&lt;p&gt;Did anyone have already done something like this or do you have any advice?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;

&lt;p&gt;Kind regards,&lt;br&gt;
Henry&lt;/p&gt;
</description>
<category>Guest</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2626/encrypt-string-parameters-in-guest-page</guid>
<pubDate>Mon, 24 Jul 2017 09:08:48 +0000</pubDate>
</item>
<item>
<title>Guest page label not working</title>
<link>https://overflow.efficy.io/?qa=2228/guest-page-label-not-working</link>
<description>&lt;p&gt;I have a problem with the guest page. The label file &quot;guest_label.txt&quot; is not taken into account.&lt;br&gt;
Do we have to do something particular to make it work in Efficy 10 SP2.&lt;/p&gt;

&lt;p&gt;Remark :&lt;br&gt;
I already did the read registry and the guest page is display without error.&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2228/guest-page-label-not-working</guid>
<pubDate>Wed, 25 Jan 2017 16:50:06 +0000</pubDate>
</item>
<item>
<title>Guest Page configuration</title>
<link>https://overflow.efficy.io/?qa=1982/guest-page-configuration</link>
<description>&lt;p&gt;Hi everyone, &lt;/p&gt;

&lt;p&gt;I'm having a problem while trying to configure a guest page @Ingenico Easycash.&lt;br&gt;
This is not the first time i have to implement a guest page, but this time is not working and I cannot find the reason.&lt;/p&gt;

&lt;p&gt;When I try to access the page, I have an error message telling me to check the Guest_error.log file but I cannot find it (seems that it's not created).&lt;/p&gt;

&lt;p&gt;Here are some screenshots of my configs:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=16324494599736490146&quot; alt=&quot;Here is the Guest Page configuration in the Register Table&quot;&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=7398125287106052295&quot; alt=&quot;Here is the web directory path&quot;&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=15477403598238763537&quot; alt=&quot;Here is the guest folder path&quot;&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=640823003827299109&quot; alt=&quot;Here is the error message that I got&quot;&gt;&lt;/p&gt;

&lt;p&gt;Any Ideas? &lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;

&lt;p&gt;Prince&lt;/p&gt;
</description>
<category>Guest</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1982/guest-page-configuration</guid>
<pubDate>Thu, 27 Oct 2016 12:02:48 +0000</pubDate>
</item>
<item>
<title>Guest Page or Extranet what is the difference?</title>
<link>https://overflow.efficy.io/?qa=628/guest-page-or-extranet-what-is-the-difference</link>
<description>&lt;p&gt;What I understood from edn is that Extranet needs contact licenses (and may be a full user call GUEST not sure about that one) and the contact licenses are counted on the number of contacts that have a EXTCODE field filled in.&lt;/p&gt;

&lt;p&gt;Guest page doesn't need license but the user should pass its MAILINGCODE in the URL of the guest page in order to retrieve some information in Efficy.&lt;/p&gt;

&lt;p&gt;I saw in some example some guest pages using a logon page Login = email + Password = MAILINCODE.&lt;/p&gt;

&lt;p&gt;So why using Extranet if Guest pages can also have some sort of &quot;security&quot; ?&lt;/p&gt;
</description>
<category>Guest</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=628/guest-page-or-extranet-what-is-the-difference</guid>
<pubDate>Wed, 12 Aug 2015 04:50:44 +0000</pubDate>
</item>
</channel>
</rss>