View Full Version : Breadcrumb top level changes with different pages?
SENSEI
Feb-16-2009, 10:03 AM
So I was able to put in the code to change my top level to GALLERIES instead of SHANE HO.
This only works with the Category/Galleries pages.
If I go into a page that lists Sub-Categories or in an actual Gallery page it doesn't work.
Example
http://shaneho.smugmug.com/Travel
But it works here:
http://shaneho.smugmug.com/Weddings
jfriend
Feb-16-2009, 10:19 AM
The changeCategoryInfo function is causing a javascript error on some pages which prevents the rest of your scripts from executing on those pages. I have seen this problem in that script before, it just isn't written properly.
You should change that script and the call to it to be this:
function changeCategoryInfo()
{
var re = /^([0-9]+ )(galler(y|ies))/;
var divTag1 = document.getElementById("categoriesBox");
var divTag2 = document.getElementById("subcategoriesBox");
var divTags, pTags;
if ((divTag1)|| (divTag2))
{
if (divTag1)
divTags = divTag1.getElementsByTagName("div");
else
divTags = divTag2.getElementsByTagName("div");
for (i=0; i<divTags.length; i++)
{
if (divTags[i].className == "miniBox")
{
pTags = divTags[i].getElementsByTagName("p");
if (pTags && (pTags.length > 1))
{
re.exec(pTags[1].innerHTML);
pTags[1].innerHTML = RegExp.$1 + RegExp.$2;
}
}
}
}
}
YE.onDOMReady(changeCategoryInfo);
SENSEI
Feb-16-2009, 10:26 AM
Wow...that looked to fix it...thanks a bunch for the quick reply.
vBulletin v3.5.2, Copyright ©2000-2010, Jelsoft Enterprises Ltd.