PDA

View Full Version : Need Help With Categories


stuntfoto
Aug-06-2008, 01:18 AM
So basically all i am trying to do is hide
stuntfoto's home (from the .homepage)


&
Photo-ops Galleries (from the category and gallery view):D:huh:scratch


from my category/gallery views.

I tried this code but it has worked to no avail. Please help
.homepage #galleryTitle {display: none ;}
#categoriesBox .boxTop { display: none; }
.loggedIn #categoriesBox {display: block;}
(http://www.stuntfoto.com/) (http://www.stuntfoto.com/)

SJK
Aug-06-2008, 01:48 AM
putting this in CSS will get rid of the stuntfotos Home



/* hides your name (including any 's) */
#userName {
display: none;
}
/* hides the word home */
#userHome {
display: none;
}

stuntfoto
Aug-06-2008, 02:39 AM
putting this in CSS will get rid of the stuntfotos Home



/* hides your name (including any 's) */
#userName {
display: none;
}
/* hides the word home */
#userHome {
display: none;
}



Kool Now How do i get rid of on categories page?
[gallery name] Galleries


stuntfoto.smugmug.com

Allen
Aug-06-2008, 07:18 AM
So basically all i am trying to do is hide
...
&
Photo-ops Galleries (from the category and gallery view):D:huh:scratch

from my category/gallery views.
...[/code] (http://www.stuntfoto.com/) (http://www.stuntfoto.com/)
Ref this thread http://www.dgrin.com/showthread.php?t=48082&page=2

This will hide the Photo-ops category from the cat/gal box. Might not work
with the - in the cat name though.

Put in javascript

<!-- Hide Categories -->
function delCategory() {
re = /\/(Photo-ops)$/;

var oList = YD.getElementsByClassName('miniBox', 'div', this);

for (i = 0; i < oList.length; i++) {
if (re.test(oList[i].getElementsByTagName('a')[0].href))
oList[i].parentNode.removeChild(oList[i]);
}
}
YE.onContentReady('categoriesBox', delCategory);
<!-- End Hide Categories -->

stuntfoto
Aug-06-2008, 12:53 PM
I think that removes the entire category. I am just trying to remove the gallery's part that says XXX [Gallery's] i.e Forbidden City [Gallery's] or Photo-Ops [Gallery's] im trying to remove the text shown here in brackets. Only the text not the whole gallery. Anyone? Help?:scratch


Ref this thread http://www.dgrin.com/showthread.php?t=48082&page=2

This will hide the Photo-ops category from the cat/gal box. Might not work
with the - in the cat name though.

Put in javascript

<!-- Hide Categories -->
function delCategory() {
re = /\/(Photo-ops)$/;

var oList = YD.getElementsByClassName('miniBox', 'div', this);

for (i = 0; i < oList.length; i++) {
if (re.test(oList[i].getElementsByTagName('a')[0].href))
oList[i].parentNode.removeChild(oList[i]);
}
}
YE.onContentReady('categoriesBox', delCategory);
<!-- End Hide Categories -->

stuntfoto
Aug-06-2008, 02:49 PM
Also how do i add line breaks to the descriptions inside the categories?


It Wont let me add html into the descriptions..
.. WHATs going on heER!!!!!

denisegoldberg
Aug-06-2008, 03:18 PM
Also how do i add line breaks to the descriptions inside the categories?


It Wont let me add html into the descriptions..
.. WHATs going on heER!!!!!
If you want to use html in the descriptions, make sure to start your description with <html> and end it with </html>.

That works for gallery descriptions, so I assume that it works for your category descriptions.

If you need it, (although I suspect you don't based on your comment about html), <br/> will add a line break.

--- Denise

stuntfoto
Aug-06-2008, 03:26 PM
If you want to use html in the descriptions, make sure to start your description with <html> and end it with </html>.

--- Denise


Doesnt work. It currently looks like this inside the category description but it doesnt format?

<html>To get your private party key, email:<br/>
snap@stuntfoto.com<br/>
Please include your <b>name</b> and/or other relevant matters.
</html>