Announcement

Collapse
No announcement yet.

Fooling Actinic Not To Change HREF Links

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

    Fooling Actinic Not To Change HREF Links

    OK

    i have been around this a few times and tried various options, i know there are the odd thread around here but i have been unable to find a solution.

    Rigth i need to put a link in the contact us page for skype, now the link works fine until i upload, then actinic turns it into a full url.

    so i have tried to create a variable an fool actinic into not generating the url but alas it is not to be.

    I have tried reseaching doing it with JS but my knowledge of js is extremely limited and i have trawled the internet looking for fixes or ideas but nothing seems to work.

    so the link i have is <a href="skype:username?call"> now actinic kindly converts this on upload to be <a href="http://www.mydomain.co.uk/acaltalog/skype:username?call"> which of course ends up in a 404 not found

    so anyone any ideas on a work around to stop actinic being all kind and filling in the blanks

    Cheers
    D

    #2
    Off the top of my head - try this:
    Code:
    <actinic:block php="true" >
    echo "<a href='skype:username?call'>";
    </actinic:block>
    or this:
    Code:
    <script>document.write('<a href="skype:username?call">');</script>
    EDITED PHP Code

    Comment


      #3
      Thanks Duncan

      OK the PHP bit gives me and error

      Parse error: parse error, expecting `','' or `';'' in main on line 2

      and i tried the js and without success earlier today, And i had an extra > in mine, right the code i have below is what i have, not im notsure if it is working, i dont have skype installed on the laptop and when i clicked it told me i needed to download it, good i thought, but when i tried it on a pc with, i got the error 404 and it looks like the url is still being changed.

      Code:
      <script> document.write('<a href="skype:RawAir?call">');</script><img src="http://mystatus.skype.com/bigclassic/RawAir" style="border: none;" width="182" height="44" alt="My status" /></a>
      Could someone please test it for me, dont need a call just to see if it handles the link

      http://rawair.co.uk/acatalog/

      its next to the submit button on the contact us form, out the way for now

      Cheers
      Darren

      Comment


        #4
        404 im afraid fella

        ive tried both fixes above on my contact us page and they arent working ;(
        Remembering the road to Actinic enlightenment is a long and sometimes painful one.
        Current project:
        cheapadulttoys4u.co.uk
        cheaplingerie4u.co.uk
        Something for the Missus,Something for the Weekend

        Comment


          #5
          Cheers G2

          Thought as bloody much, there must be a way around this, has to be

          D

          Comment


            #6
            I think Duncan maybe forgot to mix up the " & ' s in his PHP. Try This:

            <actinic:block php="true" >
            echo "<a href='skype:username?call'>";
            </actinic:block>
            Mike
            -----------------------------------------

            First Tackle - Fly Fishing and Game Angling

            -----------------------------------------

            Comment


              #7
              Inaccurate post occasioned by responding before reading
              Last edited by wjcampbe; 24-Feb-2008, 07:05 AM. Reason: need to read before responding
              Bill
              www.egyptianwonders.co.uk
              Text directoryWorldwide Actinic(TM) shops
              BC Ness Solutions Support services, custom software
              Registered Microsoft™ Partner (ISV)
              VoIP UK: 0131 208 0605
              Located: Alexandria, EGYPT

              Comment


                #8
                Originally posted by olderscot
                I think Duncan maybe forgot to mix up the " & ' s in his PHP. Try This:
                Mike
                True Mike - post edited above in case others find it later.

                Comment


                  #9
                  Thanks For you help guys

                  Both the JS and the PHP Block codes work to the extent of functioning, however actinic is still being sneaky and manage to still change the url.

                  But thanks for the help

                  D

                  Comment


                    #10
                    Originally posted by wjcampbe
                    Inaccurate post occasioned by responding before reading
                    Sloppy work, Bill


                    must do better
                    Tracey

                    Comment


                      #11
                      Im not going to make any comments, Tracey you dig your own hole

                      Rigth Guys

                      The PHP block works, but not on the contact us page, i guess its becuase it runs through the cgi bin, but if i use the code and put it on the site in the inner layouts it works.

                      So something new learnt everyday.

                      Thanks for all your help guys, now i need to add some styling

                      D

                      Comment


                        #12
                        OK we have fixed the problem with actinic meesing with the href when things are added to the contact us page.

                        When stuff go's through the cgi bin actinic creates full url's. But with the help of Bill & Fergus a simple trick to fool actinic and stop it meassing resulted in a fix

                        <script language="javascript" type="text/javascript">
                        <!--
                        document.write("<a hre");
                        document.write("f='skype:UserName?call'>");
                        // -->
                        </script>
                        so anyone else need to do something similar this should sort it out for you

                        Thanks for all your help guys
                        D

                        Comment

                        Working...
                        X