Search…

X3 Photo Gallery Support Forums

Search…
 
ygi
Topic Author
Posts: 3
Joined: 08 Feb 2008, 03:38

External call of a php page each time a photo is viewed

08 Feb 2008, 03:47

Hi all,

I would like to know if there is a way to call a external php page, each time a photo is viewed, because I am logging in a database how many times a photo has been displayed by a surfer.

Up to now I am obliged to search in the website logfile to update theses fields in my DB.. this is a lot of work

regards
yves
The paradox of eroticism is in showing what is hidden, whilst hiding what is shown.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

08 Feb 2008, 22:23

You could achieve this, but only by editing the FLA source files of course. You would need to locate all the events where an image is "opened" and add your external PHP call. If you also need to add it to calls like "download" and "open in popup", you would need to locate these events also and add your scripts there also.

Don't know if I can recommend it as it would certainly require settling into the source.
 
ygi
Topic Author
Posts: 3
Joined: 08 Feb 2008, 03:38

09 Feb 2008, 04:13

Hi Karl,

Thank you for your reply, unfortunately I was expecting this answer :(
I am no flash developper, and modifying your source code will be diffucult to maintain when upgrading to new releases.
I know that I mail several times this request to technical support, when the slideshow module was new, they told me they would think about it.
I was hoping that 2 releases afterwards I will have the opportunity to do it.
Is it possible to take it as a request ? or someone help me to modify the source code ?
The paradox of eroticism is in showing what is hidden, whilst hiding what is shown.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

10 Feb 2008, 01:33

It is certainly taken as a request as we are working towards a new version which will have a basic built-in statistics module.

If you like, you could elaborate what kind of stats you are looking for. As we see it, it will be fairly simple - Primarily counters for every image to see how many times they have been clicked(viewable from the admin of course)
 
ygi
Topic Author
Posts: 3
Joined: 08 Feb 2008, 03:38

10 Feb 2008, 16:36

Hi, this is great to hear you are already working on a basic built-in Stat Module.
for my case, I have written mine, I am just trying to find a way to integrate your slideshow with mine. Wouldn't it be possible for you to call a built-in php as you were doing before like pop.php (I know this one showed the photo itself) with the right parameters that you get at the begining of the module, and aftewards it becomes the "Custom ToDo". And this would be a called only if a parameter in the .ini woulf be set to true ?

regards..
The paradox of eroticism is in showing what is hidden, whilst hiding what is shown.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

10 Feb 2008, 22:14

ygi wrote:Hi, this is great to hear you are already working on a basic built-in Stat Module.
for my case, I have written mine, I am just trying to find a way to integrate your slideshow with mine. Wouldn't it be possible for you to call a built-in php as you were doing before like pop.php (I know this one showed the photo itself) with the right parameters that you get at the begining of the module, and aftewards it becomes the "Custom ToDo". And this would be a called only if a parameter in the .ini woulf be set to true ?

regards..
You are asking if it would be possible with the current version? Yes, if we made a statistics module and integrated it. However, that is what we are now doing with the new version.