• I have a wordpress 3.0 install with subdirectories multisite enabled. So I’ve got a setup that looks like main-site.com with subdirectory sites like main-site.com/subsite/. I am also using the mu-domain mapping plugin so that I can map the url subsite.com to main-site.com/subsite/. After a little bit of effort and some help from Andrea I got that working so that main-site.com/subsite/ is now showing up at subsite.com. So far so good.

    Here is the problem. main-site.com/subsite/ (and, therefore, subsite.com) is a photo gallery site that uses the simpleviewer-pro flash gallery plugin. I am making use of the javascript API that comes with simpleviewer-pro to create external navigation controls for the photo slideshow (“next” and “previous” buttons) and to print the the photo captions on another part of the page.

    Everything, including the external API controls, work flawlessly when the primary domain is set to main-site.com/subsite/. However, when the primary domain is switched to subsite.com the external API controls no longer function. The flash gallery itself is OK, it embeds, and all of the functionality from within the flash object works fine (i.e. you can advance the slideshow by clicking on the photo itself, etc.) The only thing that doesn’t work are all of the sections of the page that are enabled by the javascipt API.

    Obviously, there is some problem with the API picking up on the domain mapping. Does anyone have any idea what is happening here and how it might be fixed? Of course, I am posting this message at the simpleviewer support forum as well. I just thought that someone here might have had a similar problem and could help me out. Any assistance would be appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Go to Super Admin – Sites, find the mapped blogs and change all instances of the subfolder address to the full domain. that should fix it.

    Thread Starter kprensac

    (@kprensac)

    Hi Andrea,

    Thanks for the response. I tried that several times in every way and combination possible. It didn’t work. I don’t think that this is a path issue. I have a single external js file for each gallery that contains both the javascript for the API and also the javascript for the embedding and initialization of the flash object. Since the flash object is embedding and initializing just fine in every case, I don’t think that the domain mapping is creating any issue with finding that file. By the way, I’m not using any of the wp flash plugins either (kimili, etc.) but loading swfobject.js on each relevant page by way of functions.php. There doesn’t seem to be any problem with how that part of it is working either.

    Got nothing relevant from either hostgator support or the simpleviewer forum on this so I’m feeling pretty stumped at the moment. Any other comments or suggestions. Thanks again.

    James

    Got a link we can all go look at?

    Hi Andrea,
    i have a similar problem. Using wordpress 3.0 + domain-mapping plugin..

    look at the javascripttable on:
    https://blog.seoprogrammierer.de/

    but on the article it ends with an javascript-error:
    https://blog.seoprogrammierer.de/2010/09/08/oldies-but-goldies/

    same includes because same main-template..any idea?

    fabian

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Domain Mapping and Javascript APIs’ is closed to new replies.