View Full Version : Customize Specific Share Page
SPK64
Jan-03-2007, 07:34 AM
Is it possible to customize a specific .shareHomepage?
Such as hiding nav bars or chaning headers when a specific share group is accessed?
Andy
Jan-03-2007, 07:36 AM
Is it possible to customize a specific .shareHomepage?
Such as hiding nav bars or chaning headers when a specific share group is accessed?
Hi, we need to see your site, please :ear
SPK64
Jan-03-2007, 07:40 AM
Hi, we need to see your site, please :ear
steveangie.smugmug.com
Andy
Jan-03-2007, 07:46 AM
steveangie.smugmug.com
Good. Please put it in your profile, You! upper left of dgrin screen
Andy
Jan-03-2007, 07:49 AM
So, you want to target a specific sharegroup, like this:
http://go.skactionpix.com/share/2yeMnbmTZGduc
with certain headers, etc?
I don't know if it's doable. Stay tuned...
Mike Lane
Jan-03-2007, 07:51 AM
So, you want to target a specific sharegroup, like this:
http://go.skactionpix.com/share/2yeMnbmTZGduc
with certain headers, etc?
I don't know if it's doable. Stay tuned...Do it just like any other page :D
.shareHomepage .whatever {blabity blah}
SPK64
Jan-03-2007, 07:59 AM
Do it just like any other page :D
.shareHomepage .whatever {blabity blah}
Yes, I can do this and it will apply to all share pages. I would like to be able to target changes to specific share groups.
Mike Lane
Jan-03-2007, 08:01 AM
Yes, I can do this and it will apply to all share pages. I would like to be able to target changes to specific share groups.OIC. No. Sorry :dunno Looks like they classed the body tag with .shareHomepage and bodyColor_whatever only.
SPK64
Jan-03-2007, 02:23 PM
OIC. No. Sorry :dunno Looks like they classed the body tag with .shareHomepage and bodyColor_whatever only.
Any chances of doing this with Java instead css? Or is this something I need to ask in the hacks section?
SPK64
Jan-06-2007, 01:31 PM
Well I found a solution to customizing an individual share page. It is done with a small amount of Java.
It works in Firefox and IE7. Have not tested others.
I use the Sharepage description (albumDescription) as the link to making changes to the page.
It may not be pretty but works well for me. I had to check it 2 different ways for IE and firefox.
Items in red is what the album description was for the specific share page.
The last line of the code is what runs the function.
/*Modify specific share page*/
function sharemod()
{
var sHtml = "Samtec Photo Challenges<br>\n"
var sText = "Samtec Photo Challenges"
var objElement = YD.get("albumDescription")
if (objElement != null)
{
var sInnerText = new String(objElement.innerText)
var sInnerHTML = new String(objElement.innerHTML)
if ((sInnerText==sText) || (sHtml==sInnerHTML))
{
document.getElementById('my_header').style.display = "none";
document.getElementById('sam_header').style.displa y = "block";
document.getElementById('navbar').style.display = "none";
document.getElementById('SKFooter').style.display = "none";
document.getElementById('samfooter').style.display = "block";
}
}
}
YE.onAvailable("footer", sharemod);
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.