Home>Support>Error when pasting script into Page Builder widgit

Error when pasting script into Page Builder widgit

Hi all,

I’m trying to place the following eBay script into a page:



document.write('x3Cscript type="text/javascript" charset="utf-8" src="http://adn.ebay.com/cb?programId=4&campId=5337745139&toolId=10026&keyword=camper+trailer&minPrice=1000&width=400&height=90&font=2&textColor=222222&linkColor=0000aa&arrowColor=d2680b&color1=d2680b&color2=[COLORTWO]&format=ImageLink&contentType=TEXT_AND_IMAGE&enableSearch=y&usePopularSearches=n&freeShipping=n&topRatedSeller=n&itemsWithPayPal=n&descriptionSearch=n&showKwCatLink=n&excludeCatId=&excludeKeyword=&catId=&disWithin=200&ctx=n&autoscroll=y&title=camper+trailers&flashEnabled=' + isFlashEnabled + '&pageTitle=' + _epn__pageTitle + '&cachebuster=' + (Math.floor(Math.random() * 10000000 )) + '">x3C/script>' );

If I place it into a standard WP page, it works perfectly, displacing an eBay ad unit which auto-scrolls content.

However, if I activate Page Builder for the page, and then paste the code into either a text or visual editor widgit, then instead of the ad unit, I get part of the code displayed as seen in the link below.

If I modify the code to:

x3C/script>' );

Then the ad unit is displayed, but it doesn’t auto-scroll and search/arrows don’t work.

(I’m running WP 4.3, page builder 2.2 and Widgets bundle 1.4.4)

URL: http://www.australianimages.com.au/diycamper/test/

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 10 days ago Jamie Benaud

    Hmmm. So pasting the code into code tags here causes the same issue as putting it into my page builder…

    I’ll add am image of the code into the test page linked above.

  2. 9 years, 9 days ago Andrew Misplon
    Hi, I Work Here

    Hi Jamie

    Is there anywhere we can grab this script ourselves so we can see the original output from eBay. Was it emailed to you perhaps?

  3. 9 years, 9 days ago Andrew Misplon
    Hi, I Work Here

    This works:

    <script type="text/javascript" charset="utf-8" src="http://adn.ebay.com/cb?programId=4&campId=5337745139&toolId=10026&keyword=camper+trailer&minPrice=1000&width=400&height=90&font=2&textColor=222222&linkColor=0000aa&arrowColor=d2680b&color1=d2680b&color2=[COLORTWO]&format=ImageLink&contentType=TEXT_AND_IMAGE&enableSearch=y&usePopularSearches=n&freeShipping=n&topRatedSeller=n&itemsWithPayPal=n&descriptionSearch=n&showKwCatLink=n&excludeCatId=&excludeKeyword=&catId=&disWithin=200&ctx=n&autoscroll=y&title=camper+trailers&flashEnabled=' + isFlashEnabled + '&pageTitle=' + _epn__pageTitle + '&cachebuster=' + (Math.floor(Math.random() * 10000000 )) + '"></script>
    

    Ideally we’d take a look at the original output though.

  4. 9 years, 8 days ago Jamie Benaud

    Thanks for the reply Andrew.

    You need to be an ebay affiliate to get access to the script generator. But the exact code they give you is shown at the top of this page (http://www.australianimages.com.au/diycamper/test/ ) I just pasted it into the ‘visual’ tab of a visual editor widget, so it doesn’t treat it as a script. The bottom of the same page shows what happens if you paste it into the ‘text’ tab of the widget.

    I tried your modified version of the code. The ad unit displays, but the javascript actions don’t work. Content should auto-scroll every few seconds, and the the two arrows on the top right and search on bottom left don’t work. I assume this means the other two scripts referenced must be present.
    See here: http://www.australianimages.com.au/diycamper/test-2/

    If I paste the full ebay code into a standard page (without Page Builder), then it works correctly.
    See here: http://www.australianimages.com.au/diycamper/test-3/

  5. 9 years, 8 days ago Andrew Misplon
    Hi, I Work Here

    Hey Jamie

    I tried a bunch of things last night. The escaping we’re doing in Page Builder, unfortunately, doesn’t allow this script to parsed in it’s current form. I even tried : https://wordpress.org/plugins/enhanced-text-widget/.

    For now, there is, unfortunately, no hotfix I can think of. Sorry, wish I had more here. At the moment this can only be used outside of Page Builder.

    You could perhaps give an eBay plugin a try:

    https://wordpress.org/plugins/search.php?q=ebay

  6. 9 years, 7 days ago Jamie Benaud

    Hi Andrew,

    Thanks for trying. There are a few eBay plugins available, but they don’t really offer the same functionality as the eBay scripts….mostly just RSS feeds.

    No worries on there not being a fix right now, but if you could note it as something to be fixed in a future update of Page Builder, that would be fantastic.

  7. 9 years, 7 days ago Andrew Misplon
    Hi, I Work Here

    For sure. I’ll log this now. Hopefully the guys can make a change to allow this in a future version.

    Thanks for your understanding.

  8. 8 years, 8 months ago Plasma-Process

    Hi Andrew, and Jamie,

    I have this issue as well, and I started to switch to another Page builder, but I was having a hard time with the new Plug in as the Site Origin Page builder is so easy to use.

    I do have a work around that you can see on the following pages:

    http://www.plasma-process.com/oxford-instruments/
    http://www.plasma-process.com/plasma-therm/

    What I did is paste the E-bay code into a new post, and then used “”Add Posts to Pages” Plug in by Arsham Mirshah at

    https://www.webmechanix.com/resources/wordpress-plugins/add-posts-to-pages/

    Then you can use the [add_posts category=”category-slug” tag=”tag-slug” show=”5″ h=”2″ full=”false” readmore=”Read more link text” img=”false”] command in a simple Text widget.

    I use a category of the page, and then a tag called “e-Bay”

    I hope this is useful.

    Mike Etcher….

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More