1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Trouble with Pages

Discussion in 'XenForo Questions and Support' started by Trix, Oct 21, 2012.

  1. Trix

    Trix Member

    Hello all. I have a very old 'ticker' script that my members love using. The site who made it no longer exist. I want to move the ticker script/templates into Xenforo pages.

    I copied and pasted the whole HTML files and they seem to show really well in Xenforo. However i've noticed a small issue.

    You have a page with all of the ticker backgrounds listed. When you click on one, the example ticker updates to reflect the option you chose. In the xenforo pages though, the it does not update at all.

    I was wondering, if there was a special way to include external files with Xenforo pages?

    At the top of the page i have the code to include the JS file

    Code:
      <script language="JavaScript" type="text/JavaScript" src="http://www.mysiteurl.com/ticker/form_processor.js"></script>
    Then at the bottom, the code to display the preview ticker is

    Code:
     <img id="basic_preview" src="http://www.mysiteurl.com/ticker/ticker.php?mode=basic_preview&pic=22l90avk">
    Should these simply work as intended, or is there something else i need to be doing to make them work inside pages? It just seems they get ignored

    Thanks for any help anyone can give.
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    It's probably a conflict between your js and XenForo's js. Or maybe a problem with the include itself. What is the URL of the page?
     
  3. Trix

    Trix Member

    The 'pages' page is on my local host, but the template i'm copying the html directly from is up on my website.

    I can send you the link to that in a PM if you would like, or have the time to look. I can't post the link to the site on here.
     
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Ideally I need to see the XenForo page. I am just looking for obvious problems like bad js includes in the source code.
     
  5. Trix

    Trix Member

    Ok i will put it up on my main site and hope no one sees it :) Would you mind if i PM you the details once it is up?
     
  6. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Sure that's fine.
     
  7. Trix

    Trix Member

    Ok that's embarrassing. It seems to work fine on a live site. Must have been an issue from it being tested on MAMP and not 'online'

    Thanks for your time Jake, sorry about that!
     

Share This Page