Ajaxian - Remove Click on Photo

spadez

Joined: 2009-12-20
Posts: 25
Posted: Mon, 2009-12-28 17:05

Hi,

Just a quick question. Im in ajaxian and im looking at the functionality when you click on the image, the image moves to the side and you get a box on the right with information and an option to download the image.

http://www.zombiemod.com/rm/nina2/main.php?g2_itemId=13

How do I remove this functionality? In the short run, im happy to just remove the code in the link which activates the javascript if this is the easiest way of doing it.

Any help is much appreciated, and happy holidays :)

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2009-12-28 19:19
Quote:
In the short run, im happy to just remove the code in the link which activates the javascript if this is the easiest way of doing it.

Most likely yes. I'm not familiar with the Ajaxian theme so I don't know it's options off the top of my head. Try digging around in Site Admin > Themes > Ajaxian and see if there is an option for this there.

Looks like that's all in JavaScript. Quick and dirty, probably delete these lines from this file:

themes/ajaxian/javascript/thumbnail-functions.js

    if (mainPhoto.state == 'downsized') {
	insertimagedatablock();
    }

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
spadez

Joined: 2009-12-20
Posts: 25
Posted: Mon, 2009-12-28 20:04

Hi, I tried this, but after clearing the cache and force refreshing, it hasnt changed. Im still able to click on the main image, to resize the image and display the info block.

I basically want it so when I click the main image, nothing happens. I thought it would be as simple as removing the link attached the image (which im assuming triggers the JS), but the image doesnt seem to be linked.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2009-12-28 20:14

Under http://www.zombiemod.com/rm/nina2/themes/ajaxian/javascript/thumbnail-functions.js I still see those lines.

They start at line 168 of that file.

However, now thinking about, that only get's part of the problem done.

Ah, here we go, in that same file, on line 102, you should see this:
addEvent(mainPhoto, 'click', showPhotoDetails, false);

Just delete that entire line
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
spadez

Joined: 2009-12-20
Posts: 25
Posted: Mon, 2009-12-28 20:31

Hi,

Yes sorry, I put the original file back after I saw it didnt work. Ill try the new mod now.

 
spadez

Joined: 2009-12-20
Posts: 25
Posted: Tue, 2009-12-29 00:51

Yup, that works perfectly, thank you. The arrow still shows up on mouse over but I think I can sort that myself.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2009-12-29 01:17

That's most likely a css who-ha. But if you have trouble sorting that out, just post back and I'll try poking around.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
rocsca
rocsca's picture

Joined: 2009-05-12
Posts: 75
Posted: Wed, 2010-03-24 15:14

Hello,

I have deleted the line above just as you said. And now I really there is not any link followed by clicking on a photo:

http://www.rocsca.it/gallery2/main.php/v/guest/slidesshow/

But when one pass over any image of the album the normal curson become a double arrowed one? Why? [i]Is there any way to avoid this?

Furthermore, is there a way to change to the next image of the album simply clicking on it?

Thanks,

rocsca

 
rocsca
rocsca's picture

Joined: 2009-05-12
Posts: 75
Posted: Sun, 2010-10-17 16:56

I found that in CSS there is:

cursor: nw-resize;

In the element that cointains the image.. I have removed it.. :-)

I'm sorry for the trivial question that I have submitted.

Anyway, I still haven't found the way to move to next photo of the album by simply clicking on the current photo.

rocsca

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2010-10-29 17:51
Quote:
Anyway, I still haven't found the way to move to next photo of the album by simply clicking on the current photo.

I don't have any time to try to hack together a solution, but I'd take a look at the Siriux theme and see what it's doing. I believe there might be changes needed in theme.inc for the right information to be available to Smarty, but the Ajaxian theme might already be loading the right info.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here