The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Hiding a category

3 posters

Go down

Hiding a category Empty Hiding a category

Post by IdaTR May 12th 2014, 2:32 am

Hellow, i want to hide a category, the category with the foras should still be active, but not visible.. is such thing possible?

I dont mean the toggle way, where you can hide it with a plus / minus symbol by clicking on it.

This is due to a drop down menu i've installed, when using the drop down, it goes in front for the second drop down in the first category, this does that i cant proceed the use of the first drop down menu.

www.rosewille.danskforum.net
IdaTR
IdaTR
Forumember

Female Posts : 547
Reputation : 1
Language : Danish, english
Location : Denmark

http://www.vielamort.net

Back to top Go down

Hiding a category Empty Re: Hiding a category

Post by Neptune- May 12th 2014, 3:47 am

Hello ^^

Those codes are working with default templates.
It is up to you to change those codes if you removed too much from your original index_box.




Step one (javascript)

 study ACP > Modules > HTML & JAVASCRIPT > Javascript codes management
-> Create a new javascript
Title : anything explicit enough like "Hide some categories on home page"
Placement : In the home page
Code :
Code:
$(function() {
/* Add a class to some sub-forums */
$('img[src="http://hoster.com/anemptypicture.png"]').closest('tr').addClass('hidethis');
});
Just replace http://hoster.com/anemptypicture.png with the link of a small empty picture like 1*1 pixel.
Hit submit

Step 2 (CSS)

 study ACP > Display > Pictures and colors > Colors > CSS Stylesheet
Add following code
Code:
tr.hidethis td {
  display: none;
}
Hit Submit

Step 3 (HTML)

 study ACP > General > Forum > Categories and forums >  Edit  on a sub-forum you want to hide
Add to the description (category or sub-forum)
Code:
<img src="http://hoster.com/anemptypicture.png" />
or
fill image URL with (sub-forum only)
Code:
http://hoster.com/anemptypicture.png
Same note as for javascript : Just replace http://hoster.com/anemptypicture.png with the link of a small empty picture like 1*1 pixel.
Neptune-
Neptune-
Forumember

Female Posts : 496
Reputation : 104
Language : French (10), English (8), CSS (5), HTML (4), Javascript (4)
Location : Scotland, UK

https://www.galaxie-series.net/

Back to top Go down

Hiding a category Empty Re: Hiding a category

Post by IdaTR May 12th 2014, 10:10 am

The category is still visible... Oo'
IdaTR
IdaTR
Forumember

Female Posts : 547
Reputation : 1
Language : Danish, english
Location : Denmark

http://www.vielamort.net

Back to top Go down

Hiding a category Empty Re: Hiding a category

Post by Neptune- May 12th 2014, 12:00 pm

I cant see any javascript active on your main page.

Please make sure javascript is enabled on your forum
 study ACP > Modules > HTML & JAVASCRIPT > Javascript codes management
Neptune-
Neptune-
Forumember

Female Posts : 496
Reputation : 104
Language : French (10), English (8), CSS (5), HTML (4), Javascript (4)
Location : Scotland, UK

https://www.galaxie-series.net/

Back to top Go down

Hiding a category Empty Re: Hiding a category

Post by IdaTR May 12th 2014, 2:43 pm

I look it up when i get home. :3

Edit: I've just enabled it, but there's still no change.
IdaTR
IdaTR
Forumember

Female Posts : 547
Reputation : 1
Language : Danish, english
Location : Denmark

http://www.vielamort.net

Back to top Go down

Hiding a category Empty Re: Hiding a category

Post by IdaTR May 13th 2014, 6:57 pm

Bump
IdaTR
IdaTR
Forumember

Female Posts : 547
Reputation : 1
Language : Danish, english
Location : Denmark

http://www.vielamort.net

Back to top Go down

Hiding a category Empty Re: Hiding a category

Post by Neptune- May 14th 2014, 12:11 am

Please force default templates to check if code works. Then enable templates again.

If it works with default template, please post your index_box here (but i dont think issue is coming from template since you still have a structure with basic tr and td).

If it still does not work, disable all your javascript codes to keep only the one i gave.
I see one js, but with at least 3 different codes mixed on it.
If it solves the problem we'll need to get the codes of each javascript to discover which one is causing some trouble.

Sorry for yesterday, didn't notice your edit Sad
Neptune-
Neptune-
Forumember

Female Posts : 496
Reputation : 104
Language : French (10), English (8), CSS (5), HTML (4), Javascript (4)
Location : Scotland, UK

https://www.galaxie-series.net/

Back to top Go down

Hiding a category Empty Re: Hiding a category

Post by IdaTR May 14th 2014, 10:17 am

i dont know what you mean excatly Oo''
Could you please look at it? (:

And its okay ^^ would have been easier if i weren't forced to just write once per. day if there isn't any answers oo'' but what ever :3
IdaTR
IdaTR
Forumember

Female Posts : 547
Reputation : 1
Language : Danish, english
Location : Denmark

http://www.vielamort.net

Back to top Go down

Hiding a category Empty Re: Hiding a category

Post by IdaTR May 15th 2014, 8:04 pm

bumb
IdaTR
IdaTR
Forumember

Female Posts : 547
Reputation : 1
Language : Danish, english
Location : Denmark

http://www.vielamort.net

Back to top Go down

Hiding a category Empty Re: Hiding a category

Post by Beyonder May 16th 2014, 12:19 am

IdaTR wrote:i dont know what you mean excatly Oo''
Could you please look at it? (:

And its okay ^^ would have been easier if i weren't forced to just write once per. day if there isn't any answers oo'' but what ever :3
He means by basically having a code and no you cant hide it but i could tell that you should just create a regular forum and hide it.
Beyonder
Beyonder
Forumember

Male Posts : 721
Reputation : 29
Language : English
Location : Beyond Realm

http://fictionalomniverse.forumotion.com/

Back to top Go down

Hiding a category Empty Re: Hiding a category

Post by IdaTR May 16th 2014, 10:44 am

well right now i have created a regular forum... and its that forum i want to hide
IdaTR
IdaTR
Forumember

Female Posts : 547
Reputation : 1
Language : Danish, english
Location : Denmark

http://www.vielamort.net

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum