Announcement

Collapse
No announcement yet.

Preventing Retail Customers Entering Certain pages

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Preventing Retail Customers Entering Certain pages

    For Preventing Retail Customers from Entering Certain the advanced user guide gives the following code :-

    <Actinic:SHOWFORPRICESCHEDULE Schedules="2" HTML="&#60;A
    HREF=NETQUOTEVAR:SECTIONLINK&#62;NETQUOTEVAR:SECTIONNAME&#60;&#47;
    A&#62;"/>
    <!-- NETQUOTEVAR:SECTIONIMAGE NETQUOTEVAR:SECTIONTEXT -->
    NETQUOTEVAR:NEXT

    I am using v.7.0.1 business with business theme. My other sections are "standard - with image on left of text" [Act_SectionLine.html] the code for which is as follows

    <!-- SectionLine HTML begin -->
    <!-- Insert HTML for the beginning of a section title -->

    <DIV ALIGN="LEFT">

    <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="10">

    <TR>


    <TD ALIGN="LEFT" VALIGN="TOP"> <A HREF="NETQUOTEVAR:SECTIONLINK">NETQUOTEVAR:SECTIONIMAGE</A>
    </TD>


    <TD ALIGN="LEFT" VALIGN="MIDDLE"> <A HREF="NETQUOTEVAR:SECTIONLINK"><B><font face="arial">NETQUOTEVAR:SECTIONNAME</font></B></A>
    <br>
    <font face="arial" size="-1">NETQUOTEVAR:SECTIONTEXT</font> </TD>

    </TR>

    </TABLE>

    </DIV>
    NETQUOTEVAR:NEXT
    <!-- Insert HTML for the end of a section title -->
    <!-- SectionLine HTML end -->


    I would be most grateful if anyone could spare the time to show me how to modify the template so that the hidden section is in the same format as my other sections. I seem to have tried every variation but can't get it to format correctly.

    many thanks
    Tony

    Mandrake Press Ltd.
    Actinic user since 1998

    #2
    This is truly driving us nuts!!!!!! Especially as we have to do an upload every time we want to test even the slightest change to the template.

    The key piece of code is

    <Actinic:SHOWFORPRICESCHEDULE Schedules="2" HTML="<A
    HREF=NETQUOTEVAR:SECTIONLINK>NETQUOTEVAR:SECTIONNAME</
    A>"/>

    now if we simply change NETQUOTEVAR:SECTIONNAME to NETQUOTEVAR:SECTIONIMAGE we suddenly find that in the normal view (i.e. not logged in) "/> appears in the display (where there should be nothing!) and when users are logged in "/> appears instead of the image!!!!!!!

    Is this a bug????
    Tony

    Mandrake Press Ltd.
    Actinic user since 1998

    Comment


      #3
      This is not a bug. The problem is that as soon as a quote mark " is introduced into the HTML="...." part of the <Actinic:SHOWFORPRICESCHEDULE> tag, it effectively ends the tag and corrupts the code.

      You can replace quote marks with single quotes in the section link layout template and in Act_SectionNavImage.html. Here is some example code for the section link:
      Code:
      <DIV ALIGN=LEFT>
      <Actinic:SHOWFORPRICESCHEDULE Schedules="2" HTML="
      <TABLE BORDER='0' CELLSPACING='0' CELLPADDING='10'>
      
      	<TR>
      
      		<TD ALIGN='LEFT' VALIGN='TOP'>
      			<A HREF='NETQUOTEVAR:SECTIONLINK'>NETQUOTEVAR:SECTIONIMAGE</A>
      		</TD>
      
      		<TD ALIGN='LEFT' VALIGN='MIDDLE'>
      			<A HREF='NETQUOTEVAR:SECTIONLINK'><B>NETQUOTEVAR:SECTIONNAME</B></A>
      			<br><span class='actxsmall'>NETQUOTEVAR:SECTIONTEXT</span>
      		</TD>
      
      	</TR>
      
      </TABLE>
      "/>
      </DIV>
      NETQUOTEVAR:NEXT
      and here is some for Act_SectionNavImage.html:
      Code:
      <!-- SectionNavImage HTML begin -->
      <IMG SRC=NETQUOTEVAR:IMAGEFILE
      	  ALT='NETQUOTEVAR:ALTERNATETEXT'
      	  BORDER=0
      	  NETQUOTEVAR:IMAGEHEIGHT
      	  NETQUOTEVAR:IMAGEWIDTH
      	  NETQUOTEVAR:OTHERIMAGEMARKUP
      	  ALIGN='ABSMIDDLE'>
      <!-- SectionNavImage HTML end -->

      Comment


        #4
        Hi Chris

        I used the first block of code you suggested and it results in the section link (as a link) on the extreme right with section text immediately underneath and then, below that, on the extreme left, a spurious "/> . . . this result is the same whether the user is logged in or not!!

        In our many attempts at different variations of coding we found that the <Actinic:SHOWFORPRICESCHEDULE Schedules="2" HTML=" . . ." needs to be built into each cell of the table.
        Tony

        Mandrake Press Ltd.
        Actinic user since 1998

        Comment


          #5
          PS

          Looking at the key section of code from Advanced User Guide

          <Actinic:SHOWFORPRICESCHEDULE Schedules="2" HTML="<A
          HREF=NETQUOTEVAR:SECTIONLINK>NETQUOTEVAR:SECTIONNAME</
          A>"/>


          there are no single quotes for the html where you suggest we should substitute singles for where we normallly use HTML doubles i.e. as in HTML="<A HREF=NETQUOTEVAR:SECTIONLINK> . . ."

          This Advanced User Guide code works (to simply place the link and allow the correct users to see it) . . . but according to what you say we should be using

          HTML="<AHREF='NETQUOTEVAR:SECTIONLINK='> . . ."


          However we attempt to rewrite the code with section image and section text included it won't work.

          I still think there is a bug lurking somewhere??
          Tony

          Mandrake Press Ltd.
          Actinic user since 1998

          Comment


            #6
            Tony

            I have attached my two templates to this email for you to check...
            Attached Files

            Comment


              #7
              Chris

              Tried that . . . and lost section images throughout the catalogue <sigh>. So, I restored the old Act_SectionNavImage.html file and got the same result as before . . .

              . . . the section link (as a link) on the extreme right with section text immediately underneath and then, below that, on the extreme left, a spurious "/> . . . this result is the same whether the user is logged in or not!!
              Tony

              Mandrake Press Ltd.
              Actinic user since 1998

              Comment


                #8
                OK - please edit your Act_SectionNavImage.html to remove all the quote marks (and comment marks) and remove the line

                ALT=NETQUOTEVAR:ALTERNATETEXT

                ...as this doesn't work without quote marks (but works perfectly on mine with single quotes around 'NETQUOTEVAR:ALTERNATETEXT')

                Very frustrating...

                Comment


                  #9
                  Hi Chris

                  Mission accomplished! weird solution though!

                  Removing ALT=NETQUOTEVAR:ALTERNATETEXT causes and upload warning so I commented it out. It would not work with single or double quotes.

                  Section Image is missing in preview mode but it works on the site???

                  I wondered if this is related to "bug in the software that does not like certain embedded HTML tags " see here

                  thanks for your help
                  Tony

                  Mandrake Press Ltd.
                  Actinic user since 1998

                  Comment


                    #10
                    problem opening RestrictedSections.zip file?

                    RestrictedSections.zip seems to be corrupt?


                    I have tried using the code below, which works well.

                    <Actinic:SHOWFORPRICESCHEDULE Schedules="9" HTML="&#60;A

                    HREF=NETQUOTEVAR:SECTIONLINK&#62;NETQUOTEVAR:SECTIONNAME&#60;&#47;A&#62;"/>

                    <!-- NETQUOTEVAR:SECTIONIMAGE NETQUOTEVAR:SECTIONTEXT -->

                    NETQUOTEVAR:NEXT


                    However, I also want to show an image for the section, (with text beneth) Could anyone help please?
                    www.outbackdirect.co.uk
                    www.sipuk.co.uk
                    www.ryobidirect.co.uk

                    Comment


                      #11
                      Hi Bea

                      Use this code for the section link layout...
                      Code:
                      <Actinic:SHOWFORPRICESCHEDULE Schedules="2" HTML="<a href='NETQUOTEVAR:SECTIONLINK'>NETQUOTEVAR:SECTIONIMAGE</a><br /><a href='NETQUOTEVAR:SECTIONLINK'>NETQUOTEVAR:SECTIONNAME</a>"/>
                      
                      NETQUOTEVAR:NEXT
                      and then use this code within 'Act_SectionNavImage.html' -
                      Code:
                      <IMG SRC='NETQUOTEVAR:IMAGEFILE' ALT='NETQUOTEVAR:ALTERNATETEXT' BORDER='0' ALIGN='ABSMIDDLE'>

                      Comment

                      Working...
                      X