The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Hiding a category

View previous topic View next topic Go down

Hiding a category

Post by IdaTR on 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
Forumember

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

http://nionevrien.forumq.net/

Back to top Go down

Re: Hiding a category

Post by Neptune- on 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)

studyACP > 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)

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

Step 3 (HTML)

studyACP > 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-
Forumember

Male Posts : 187
Reputation : 21
Language : French (10), English (8), CSS (5), HTML (4), Javascript (1)
Location : France

http://www.planet-series.com/

Back to top Go down

Re: Hiding a category

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

The category is still visible... Oo'

IdaTR
Forumember

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

http://nionevrien.forumq.net/

Back to top Go down

Re: Hiding a category

Post by Neptune- on 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
studyACP > Modules > HTML & JAVASCRIPT > Javascript codes management

Neptune-
Forumember

Male Posts : 187
Reputation : 21
Language : French (10), English (8), CSS (5), HTML (4), Javascript (1)
Location : France

http://www.planet-series.com/

Back to top Go down

Re: Hiding a category

Post by IdaTR on 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
Forumember

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

http://nionevrien.forumq.net/

Back to top Go down

Re: Hiding a category

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

Bump

IdaTR
Forumember

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

http://nionevrien.forumq.net/

Back to top Go down

Re: Hiding a category

Post by Neptune- on 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-
Forumember

Male Posts : 187
Reputation : 21
Language : French (10), English (8), CSS (5), HTML (4), Javascript (1)
Location : France

http://www.planet-series.com/

Back to top Go down

Re: Hiding a category

Post by IdaTR on 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
Forumember

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

http://nionevrien.forumq.net/

Back to top Go down

Re: Hiding a category

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

bumb

IdaTR
Forumember

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

http://nionevrien.forumq.net/

Back to top Go down

Re: Hiding a category

Post by Hagoromo Otsutsuki on 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.

Hagoromo Otsutsuki
Forumember

Male Posts : 525
Reputation : 21
Language : English
Location : Heaven

http://naruto-omniverse.forumotion.com/

Back to top Go down

Re: Hiding a category

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

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

IdaTR
Forumember

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

http://nionevrien.forumq.net/

Back to top Go down

View previous topic View next topic Back to top


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