Textpattern CMS support forum

You are not logged in. Register | Login | Help

#101 2008-06-06 14:51:05

progre55
Member
Registered: 2006-05-02
Posts: 668

Re: smd_gallery: super-flexible gallery generator

Bloke:

Thanks for the quick response.

progre55

Offline

#102 2008-06-06 17:14:03

immarabi
Member
Registered: 2008-04-29
Posts: 57

Re: smd_gallery: super-flexible gallery generator

progre55 wrote:
Did you put the slideshow javascript in the HEADER.

Yes I did put the correct javascript in the header

There are two errors actually.
‘Slideshow’ undefined

and “expected identifier, string or number” on line 44, which is this in the source:

<div id="my_show" class="slideshow">
  <img src="http://www.xxxxxxxxxx.com/images/16.gif" alt="" />
</div> 

you can look at the site here

So anyway, to be more specific, my form, which is called “sshow” looks like this:

<div id="my_show" class="slideshow">
  <img src="{imagepath#1}{imagedef#1}" alt="{alt#1}" />
</div>
<script type="text/javascript">
  var data = [{imagedef}];
  var myShow = new Slideshow('my_show', data, {controller: true, hu: '{imagepath#1}'});
</script>

and my tag is this:

<txp:smd_gallery category="catalog" form="sshow" collate="quote:{imagedef}" />

Last edited by immarabi (2008-06-06 17:42:45)

Offline

#103 2008-06-06 19:19:38

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 8,813
Website

Re: smd_gallery: super-flexible gallery generator

@immarabi:

Baffling. It looks identical to the example progre55 posted and I can’t see anything that would cause it not to work.

I don’t get the errors you listed and I can start the slideshow by hovering over it, hitting Pause and then hitting Play. So my guess is it’s some kind of auto-start thing? Past that, I’m out of ideas sorry. Anyone?

P.S. if you find out what it is, please post here so we can bask in the knowledge! Ta…

Edit: oh wait, it’s working now. Guess you found the problem…?

Last edited by Bloke (2008-06-06 19:20:22)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#104 2008-06-06 20:02:56

immarabi
Member
Registered: 2008-04-29
Posts: 57

Re: smd_gallery: super-flexible gallery generator

oh wait, it’s working now. Guess you found the problem…?

No, I didn’t! that is weird. Are you sure you were looking in IE. In firefox, everything is fine. You might think that it isn’t working, but that is just because I have it set to stay on the image for 4 sec. which seems like eternity in the internet world

Offline

#105 2008-06-06 20:21:14

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 8,813
Website

Re: smd_gallery: super-flexible gallery generator

immarabi wrote:

Are you sure you were looking in IE.

*cough* missed that bit, sorry. I’ll learn to read before posting next time.

What an odd error message. Buggered if I can see anything wrong with the code. In my experience, the usual culprit for the 3rd error — Micro$oft’s catch-all “object expected” — is a namespace clash when you have a js variable and a DOM element with the same name (id). But since the only js on the page is the 2 lines of slideshow or mootools…

In firefox, everything is fine.

Except now I’ve just started receiving an odd error in that too:

Access to restricted URI denied" code: "1012

Never seen that one before either but I wonder if it’s somehow related? Sorry I’m not much help right now.

Last edited by Bloke (2008-06-06 20:21:51)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#106 2008-06-06 20:36:32

progre55
Member
Registered: 2006-05-02
Posts: 668

Re: smd_gallery: super-flexible gallery generator

I will take a closer look over the weekend. Sorry I can’t help right now.

progre55

Offline

#107 2008-06-07 02:59:01

immarabi
Member
Registered: 2008-04-29
Posts: 57

Re: smd_gallery: super-flexible gallery generator

ok, well, I solved the issue with IE, I don’t know how, I just reloaded Slideshow 2! js and css again and I haven’t modified them at all- and now there is no issue with IE. I will try to figure out which one of my modifications caused the problem.

Anyway, my issue now is with firefox and that weird error that shows up in Firebug

Access to restricted URI denied" code: "1012

Now this error ONLY occurs when you enter the website without putting “www” before the address name. THe error pops up and the slideshow doesn’t work. It displays the first image and that is it. I know that this issue is not with your plugin, but I have come this far . . . please?

Last edited by immarabi (2008-06-07 02:59:51)

Offline

#108 2008-06-07 08:21:58

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 8,813
Website

Re: smd_gallery: super-flexible gallery generator

immarabi wrote:

ok, well, I solved the issue with IE… I will try to figure out which one of my modifications caused the problem.

Cool.

Now this error ONLY occurs when you enter the website without putting “www” before the address name.

Is your Admin->Preferences -> Site URL set to just shattuckart.com? I wonder if things like (imagepath) are adding the ‘www’, since it’s read from that box. The www is regarded superfluous by some anyway.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#109 2008-06-07 13:56:43

immarabi
Member
Registered: 2008-04-29
Posts: 57

Re: smd_gallery: super-flexible gallery generator

Is your Admin->Preferences -> Site URL set to just xxx.com?

No, it is set to www.xxx.com

should it be without the www for the plugin to work?

Last edited by immarabi (2010-10-03 16:29:33)

Offline

#110 2008-06-07 14:30:12

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 8,813
Website

Re: smd_gallery: super-flexible gallery generator

immarabi wrote:

No, it is set to www.shattuckart.com. should it be without the www for the plugin to work?

Dunno, but it’s worth trying. It may be that the slideshow plugin sees the www and non-www as two different domains and doesn’t like it.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

Board footer

Powered by FluxBB