Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#97 2008-06-06 02:31:35

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

Re: smd_gallery: super-flexible gallery generator

Thanks for the detail on setting up smd_gallery with Slideshow 2! i am not good with java, hope you all can help me once more

I have just one error. It is in IE 6 and 7. The script won’t run and it says “Error on page” line 74 char 3
‘Slideshow’ is undefined.

This is the section containing line 74 char 3

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

Last edited by immarabi (2008-06-06 02:35:21)

Offline

#98 2008-06-06 12:46:22

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

Re: smd_gallery: super-flexible gallery generator

immarabi:

Did you put the slideshow javascript in the HEADER.

It should look like this:

<script type="text/javascript" src="http://www.yourwebsite.com/js/mootools.js"></script>
<script type="text/javascript" src="http://www.yourwebsite.com/js/slideshow.js"></script>

progre55

PS: I updated my previous entry to include the Header section just in case it may have been throwing anyone off.

Last edited by progre55 (2008-06-06 12:50:23)

Offline

#99 2008-06-06 12:48:55

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

Re: smd_gallery: super-flexible gallery generator

Bloke:

I think I saw somewhere where this plug in and your slim box plug in do not play nicely. Is that only if they are on the same page?

I need to use this plug in and combine it with a jqwery slideshow, but other sections/pages of the site use slimbox and I would rather not tinker with those areas.

progre55

Offline

#100 2008-06-06 14:50:04

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,446
Website GitHub

Re: smd_gallery: super-flexible gallery generator

progre55 wrote:

I think I saw somewhere where this plug in and your slim box plug in do not play nicely.

*gasp* sacrilege :0)

afaik, they play fine together. There’s nothing I can think of in the code that will conflict; the difficulty is with the libraries. If you try and put mootools and jQuery on the same page without some remedial action (on the part of jQuery, since mootools assumes it’s the centre of the universe) then the two will clash. You need to add jQuery.noConflict(); to your page and then they’ll share the sand instead of kicking it in each other’s faces.


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

#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: 11,446
Website GitHub

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: 11,446
Website GitHub

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: 11,446
Website GitHub

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

Board footer

Powered by FluxBB