Page 1 of 1

phpBB integration

Posted: 20 Sep 2007, 19:51
by skunk'neo
hi,
I enjoy very much imagevuex for sharing photos with my friends on a community website ; but I would like to be able to integrate imagevuex in a phpBB forum.

So I read this tutorial : https://www.photo.gallery/imagevue/spc/ ...

I added this
Code
<script></script> ... (it seems that it s not appearing i dont know why anyway it s the javascript object)
I put the ss_pagecomponent.ini and the images in the demo in the forum folder ...

I created a new topic on the forum with the code of the examples page ...

... and it s not working :/

Html is allowed the tags are ok but nothing appear.

Thanks to everyone who can help me.

PS : sorry for my bad english

Posted: 20 Sep 2007, 21:32
by mjau-mjau
When pasting code in this forum, I think you have to choose "Disable HTML in this post" when writing it. If not, sometimes some of the code is ignored and removed.

Regarding your question, I think it would help a lot if you had a link to your page where you are attempting to integrate the slideshow. I could see what was missing, or if there was any incorrect parameters. You can be pretty sure it will not work if any code or settings are missing.

Posted: 21 Sep 2007, 07:08
by skunk'neo

Posted: 21 Sep 2007, 07:31
by mjau-mjau
I took a look at the source, and I guess there are several things you need to fix to get this to work.

#1 - You are using the SWFobject javascript to embed the SWF which is good, but the path you are using to the javascript is not correct. See in your code at the top of the page:
Code
<script type="text/javascript" src="javascript/swfobject_source.js"></script>
This is assuming the javascript is here: http://skunkfamily.free.fr/board/javasc ... _source.js but it's not ... Either you have to upload the javascript in this location, or you have to set the src to point to another location.

#2 In the embed code further down the page, I can see your "quotes" have been substituted on 2 lines.
Code
var so = new SWFObject("slideshow.swf", "mymenu", "400", "425", "7", "#FFFFFF");
...
so.write("slideshow");
It should be:
Code
var so = new SWFObject("slideshow.swf", "mymenu", "400", "425", "7", "#FFFFFF");
...
so.write("slideshow");
#3 There is another 'unknown' issue. The slideshow module should be working independantly before you try to get it to work in a page. Its not currently working here: http://skunkfamily.free.fr/board/slides ... ponent.ini - Can you give me the path to your Imagevue folder? You should really keep all files related to Imagevue in a separate folder, then embed any swf and use the globalpath to set the relative path.

Posted: 08 Oct 2007, 12:16
by skunk'neo
I putted swfobject_source.js in javascript folder.
I don t know how to avoid the quotes to be substituted :( can I put two ' instead of " ?
the path of imagevue folder is http://skunkfamily.free.fr/gallery/

thx for the time you give for helping me

Posted: 08 Oct 2007, 23:42
by mjau-mjau
You should be able to use single 'quotes' ...

Posted: 09 Oct 2007, 08:10
by skunk'neo
It still don't work and I still don't know why :(
Here is my config file ...
Code
[MAIN]

globalpath = false
path = http://skunkfamily.free.fr/gallery/
directimage = false
startimageclick = next
language = slideshowlang.ini
autostart = true
autoscale = false
scaleup = false
keepaspect = true
boxstage = false
imagesorting = na
cacheimages = 2
minmargin = 0
maxwidth = false
maxheight = false
interval = 6
serverextension = php
sitemenu = false
usejsresize = false
altimage = false

Posted: 09 Oct 2007, 11:33
by mjau-mjau
You are missing one important part in the HTML code. The following code is from our own example at www.photo.gallery:
Code
<div id="flashcontent"">
	Imagevuex pagecomponent example
</div>
<script type="text/javascript">
var so = new SWFObject("/imagevue/slideshow.swf", "flashcontent", "400", "225", "7", "#FFFFFF");
so.addVariable('configfile','ss_pagecomponent.ini');
so.addVariable('globalpath','/imagevue/');
so.addVariable('path', 'divimage/demoimages/');
so.addVariable('imagesorting', 'rnd');
so.addVariable('interval', '4');
so.write("flashcontent");
</script>
See the <div> tag at the top? Your code is entirely missing the required DIV tag. This div tag is given an ID and is the tag that the javascript targets and actually substitutes with a SWF file. Also, see the line so.write("flashcontent");. This tells the javascript to write the SWF to the div tag with that ID. Make sure it is the same as the ID you give to the DIV tag

Posted: 09 Oct 2007, 11:42
by skunk'neo
It s almost working ! thanks!

But the pictures are not appearing.

Could you send me the link of the tutorial of the html integration, I m not able to find it again :?

Posted: 09 Oct 2007, 12:32
by mjau-mjau
That would be: https://www.photo.gallery/imagevue/spc/

In your configuration file, http://skunkfamily.free.fr/board/ss_pagecomponent.ini - You have the following setting:
Code
path = http://skunkfamily.free.fr/gallery/
This is the slideshow module, and the path needs to be an imagefolder, not the main Imagevue gallery.