• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug Customization Removing Clickability?

FAQtoid

Ever wanted to create an Avatar? Creating an Avatar!

Searching Dgrin with Google Searching with Google

Dgrin Challenges

Congratulations to the Winner of DSS #128 (Sunrise or Sunset), ShootingStar.

The next Dgrin Challenge DSS #129 (Silhouette Revisited ) is open for entries through May 27th, 2013 at 8:00pm PDT.

As always, we look forward to your participation but please do take a moment to read through the rules before posting your entry.

Past DSS Challenge Winners, DSS Challenge Rules, and other important DSS Challenge information is here.

Need some help with Accessories?

Tutorials

Ever find yourself wondering just how someone managed to create an image using different effects?

Here are three simple tutorials we hope will encourage you to try something new.

The Hot Seat

A lifelong interest in landscape photography has led Eyal Oren to make a study of his adopted hometown of Marblehead, MA. As you can see, his dedication is paying off!

Africa!

Dgrinners Harryb, Pathfinder, and others joined Andy Williams and Marc Muench on Safari in East Africa recently. Here are some awesome threads to check out!

 
Thread Tools Display Modes
Old Oct-15-2010, 02:08 PM
#1
Sniff Photography is offline Sniff Photography OP
Major grins
Sniff Photography's Avatar
Removing Clickability?
I'm really hoping someone has an answer for this one...
I just found how to remove the ability to click on a photo in journal(old) viewing style:

//-------------------------------------------------------------
// Clear links and thus clickability from photos in journal galleries
//-------------------------------------------------------------
YE.onDOMReady(ClearLinksFromMany);
function ClearLinksFromMany()
{
var listOfGalleries = [
"13737637", /*Guestbook*/
"13949163", /*About*/
];
if (window.AlbumID)
{
for (var i in listOfGalleries)
{
if (window.AlbumID == listOfGalleries[i])
{
removeLinkFromImg();
break;
}
}
}
}
function removeLinkFromImg()
{
var oList = YD.getElementsByClassName("photo", "div");
for (var i=0; i < oList.length; i++)
{
var aTags = oList[i].getElementsByTagName("a");
for (var j=0; j < aTags.length; j++)
{
// get rid of the href on the <a> tag
aTags[j].removeAttribute("href");
// get rid of the alt and title tags on the <img> tag
aTags[j].firstChild.removeAttribute("alt");
aTags[j].firstChild.removeAttribute("title");
}
}
}
It works perfectly on my About page which is set to journal(old)
http://www.sniffphotography.com/Othe...13949163_RWDJh

However, this does nothing for my Guestbook page which is set to journal
http://www.sniffphotography.com/Othe...13737637_Ud82V

Is there any way to have this work for journal and journal(old) viewing styles? Any help is greatly appreciated.
__________________
« Brendan »
Sniff Photography
Old Oct-15-2010, 02:10 PM
#2
J Allen is offline J Allen
Major grins
J Allen's Avatar
Quote:
Originally Posted by Sniff Photography View Post
I'm really hoping someone has an answer for this one...
I just found how to remove the ability to click on a photo in journal(old) viewing style:


It works perfectly on my About page which is set to journal(old)
http://www.sniffphotography.com/Othe...13949163_RWDJh

However, this does nothing for my Guestbook page which is set to journal
http://www.sniffphotography.com/Othe...13737637_Ud82V

Is there any way to have this work for journal and journal(old) viewing styles? Any help is greatly appreciated.

See this thread:
http://www.dgrin.com/showthread.php?t=135066
__________________
-Joe Allen
My Smugmug Site
Old Oct-15-2010, 02:14 PM
#3
jfriend is offline jfriend
Scripting dude-volunteer
If you get the latest code from customization #12 here, it should work with both new journal and old journal styles.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Oct-15-2010, 02:19 PM
#4
Sniff Photography is offline Sniff Photography OP
Major grins
Sniff Photography's Avatar
Wow! Now that's what I call service! Thank you so much for the quick response. I knew I had seen that somewhere.
__________________
« Brendan »
Sniff Photography
Old Oct-15-2010, 02:34 PM
#5
Sniff Photography is offline Sniff Photography OP
Major grins
Sniff Photography's Avatar
So, I'm still having the same issue with my Guestbook page:
http://www.sniffphotography.com/Othe...13737637_Ud82V

Am I missing something?
__________________
« Brendan »
Sniff Photography
Old Oct-15-2010, 02:44 PM
#6
jfriend is offline jfriend
Scripting dude-volunteer
Quote:
Originally Posted by Sniff Photography View Post
So, I'm still having the same issue with my Guestbook page:
http://www.sniffphotography.com/Othe...13737637_Ud82V

Am I missing something?
I don't know why it's not working. The first thing you can try is to turn off right-click protection in that gallery. Beyond that, I'll have to debug it some more to see why it's not working. It looks like it's possible that Smugmug changed the timing of when the images are added to the journal (new) style and the images aren't yet in the page when the script runs. I'll have to look at it some more. Let me know if anything changes when you turn right-click protection off in that gallery.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Oct-15-2010, 02:54 PM
#7
Sniff Photography is offline Sniff Photography OP
Major grins
Sniff Photography's Avatar
No change when I turn protection off. The odd part is that It works on my 'About' page, which is set to 'Critique'
__________________
« Brendan »
Sniff Photography
Old Oct-15-2010, 03:10 PM
#8
jfriend is offline jfriend
Scripting dude-volunteer
Quote:
Originally Posted by Sniff Photography View Post
No change when I turn protection off. The odd part is that It works on my 'About' page, which is set to 'Critique'
That's not odd at all that different views would respond differently. Smugmug creates the different gallery styles differently and some styles do funky things with the timing that makes it hard to modify them. I'll take a look at why it isn't working sometime this weekend.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Oct-15-2010, 03:13 PM
#9
Sniff Photography is offline Sniff Photography OP
Major grins
Sniff Photography's Avatar
Thank you for taking a look.
__________________
« Brendan »
Sniff Photography
Tell The World!  
Similar Threads Thread Starter Forum Replies Last Post
Removing specific Key Words pjspics SmugMug Customization 4 Feb-05-2009 01:03 PM
Info page...Removing username bhockensmith SmugMug Customization 3 Dec-16-2008 06:46 AM
removing ,removing, removing Bountyphotographer SmugMug Customization 6 Nov-01-2007 08:55 AM
removing clickability DJKennedy SmugMug Customization 5 Dec-28-2006 07:40 PM
Removing scratches from LCD mercphoto Accessories 7 Mar-15-2006 07:02 AM


Thread Tools
Display Modes

Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump