3D ImageFlow Gallery Support Product Page

This topic was archived

Dynamic URL ID

Asked 30 Dec 2007 01:58:10
1
has this question
30 Dec 2007 01:58:10 Mark Lynch posted:
Hi,

I have the following setup.

I have an image gallery table which is used for holding the pathnames of images.
I have a unique key for each record in this table.
I have a foreign key which holds the unique key from another table of individual groups.

For example:

1 10 imagename group a
2 10 imagename group a
3 11 imagename group b
4 10 imagename group a
5 10 imagename group a
6 11 imagename group b

So, 'group a' would have 4 photos and 'group b' would have 2 photos in their dynamic galleries.

My problem is that in my xml.php file, when I put the filter of GET the URL id = id on the Recordset, it does not show any photographics of group a or b in the live page. I am asking the filter to get the id from the url of the page that the flash gallery is showing on, and I think this is the problem.

Can anyone tell me if this is possible and what is the coding.

Cheers
Mark


Replies

Replied 05 Jan 2008 14:49:46
05 Jan 2008 14:49:46 George Petrov replied:
well just call the php page with url parameter like:

xml.php?group=a

and in the recordset defined in xml.php - set as filter url parameter called group for example to filter the records based on the given group

Greetings,
George

--------------------------------------------------
George Petrov - Founder of the Dynamic Zones
DMXzone.com, FWzone.net, FLzone.net, CFzone.net,
DNzone.com, FlashFiles.nl
--------------------------------------------------
Replied 06 Jan 2008 02:46:14
06 Jan 2008 02:46:14 Mark Lynch replied:
Hi,

Good thought, but didn't work.

I will keep at it, unless someone else has can help or has answer?

Thanksd George

Mark
Replied 06 Jan 2008 21:39:25
06 Jan 2008 21:39:25 George Petrov replied:
what exactly didn't work? Weren't the records filtered? Was the parameter not passed? Did you got any errors?

When you call the xml.php page directly in the browser with the right parameter did it then worked?

George

--------------------------------------------------
George Petrov - Founder of the Dynamic Zones
DMXzone.com, FWzone.net, FLzone.net, CFzone.net,
DNzone.com, FlashFiles.nl
--------------------------------------------------
Replied 14 Jan 2008 17:42:40
14 Jan 2008 17:42:40 Mark Lynch replied:
Hi George,

I filtered the recordset in the _xml.php file and I just get 1 grey square on the resulting gallery page.

I am asking the recordset in the _xml.php file to do the following:

$colname_Recordset1 = "-1";
if (isset($_GET['idalb_img'])) {
$colname_Recordset1 = $_GET['idalb_img'];

Now if I use an entered value for the filtered recordset in the xml file (ie idalb_img = 24) where 24 is the id of the group record, then everything works fine. Its as though the xml file cannot find the url query result when viewed in the gallery page?

If I cannot find an answer to this, I will obviously use your software for manual dynamic galleries. However, if we can sort this, it can be used on dynamic changing galleries and albums, a better selling point to us programmers.

Thanks
Mark

Replied 23 Jan 2008 09:12:12
23 Jan 2008 09:12:12 George Petrov replied:
Hi Mark,

Could you paste the embed code generated for the 3D ImageFlow Gallery object? So can see how you have entered the path to the xml.php file with the parameters.

Greetings,
George

--------------------------------------------------
George Petrov - Founder of the Dynamic Zones
DMXzone.com, FWzone.net, FLzone.net, CFzone.net,
DNzone.com, FlashFiles.nl
--------------------------------------------------
Replied 24 Jan 2008 15:08:28
24 Jan 2008 15:08:28 Mark Lynch replied:
Hi George,

Dont know what you did, but since the update of the .3 version, everything works fine.

As long as everyone specifies the filtered recordset in the xml file, AND uses a filtered recordset on the public page... remembering to specify the filter variable after the xml file in the public page source code, ie. flashvars="xmlFile=../imageflowgallery/3DFlowGallery1_xml.php">?id=<?php echo $row_Recordset1['idalb_img']; ?>

then everything works.

Well done George to you and your team, and for taking time out to reply.

R, Mark
Replied 24 Jan 2008 16:23:32
24 Jan 2008 16:23:32 George Petrov replied:
Great to hear that Mark!

Just make sure that if you pass more parameters to the xml php file - you need to escape the &
instead of & write %26

This is the nature of flashvars and passing url params.

Greetings,
George

PS. Make sure you check the new video effects like Motion Blur, Depth of Field and Distance Fog from the property inspector effects tab. Those will give you amazing video power!

--------------------------------------------------
George Petrov - Founder of the Dynamic Zones
DMXzone.com, FWzone.net, FLzone.net, CFzone.net,
DNzone.com, FlashFiles.nl
--------------------------------------------------
Replied 11 Feb 2008 00:01:43
11 Feb 2008 00:01:43 Bill Elkerton replied:
I am having the same problem as Mark Jones. I have the main page filtered and the xml.asp page filtered but not sure of the script to add in. However I am using ASP VBScript so I can't figure out the PHP, any help on what the code should look like in ASP would be appreciated.


Thanks Bill
Replied 11 Feb 2008 01:35:46
11 Feb 2008 01:35:46 Bill Elkerton replied:
Got it to work in ASP. however; everytime I make a change in the gallery parameters to change angles or depth size the ???_xml.asp file gets change so much that it doesn't work. When I look at the design view the code for the bindings is gone and all the recordsets are gone, consequently I have to redo the whole page again. It happens everytime that a change is made to the gallery properties. So now I make changes manually to the ???_xml.asp file.

But it is looking good!!

Bill

Reply to this topic