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.

Hide a forum from Index Page?

View previous topic View next topic Go down

Hide a forum from Index Page?

Post by HogwartsAcademy on Wed Jan 02, 2013 4:32 pm

Do you know if hiding a forum from the index page can be done? Because I want my members to have to visit this HTML page to get to the these forums, I don't just want them to scroll down the Index Page and find them, I need it to be organized and provide a more fun and neat way to get to these areas.. sorry I'm not making a new topic for this I just need to start on this project really quickly, can you help me out mates?


Last edited by HogwartsAcademy on Thu Jan 03, 2013 12:07 am; edited 1 time in total

HogwartsAcademy
Forumember

Posts : 474
Reputation : 1
Language : English

Back to top Go down

Re: Hide a forum from Index Page?

Post by nextlevelgaming on Wed Jan 02, 2013 4:47 pm

You can not do this since it is parsed through php. They will only work in the topic_list template and category list ... I'm not sure if jQuery could fetch one of them.

nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

Re: Hide a forum from Index Page?

Post by HogwartsAcademy on Wed Jan 02, 2013 4:53 pm

@nextlevelgaming wrote:You can not do this since it is parsed through php. They will only work in the topic_list template and category list ... I'm not sure if jQuery could fetch one of them.

Hmm.. I guess I'll wait to see if anyone else can see if they can do anything about it, thanks for the input lad.

HogwartsAcademy
Forumember

Posts : 474
Reputation : 1
Language : English

Back to top Go down

Re: Hide a forum from Index Page?

Post by nextlevelgaming on Wed Jan 02, 2013 5:12 pm

Nope just tested and it is not possible without the page being loaded. The latest topic is parsed through a PHP placeholder. This is just not possible and no way around it. Sorry. I mean unless you have an off site server to host php scripts you can strip the site using a cURL, cronJobs and some other PHP stuff. I'm not an expert of PHP but i know this here is not possible without Smile

nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

Re: Hide a forum from Index Page?

Post by HogwartsAcademy on Thu Jan 03, 2013 12:07 am

bump

HogwartsAcademy
Forumember

Posts : 474
Reputation : 1
Language : English

Back to top Go down

Re: Hide a forum from Index Page?

Post by nextlevelgaming on Thu Jan 03, 2013 12:15 am

Did you change everything? Um cuz this was your latest topics in HTML page? If so it makes my answers look redundant and you shouldn't do that you should just have made a new thread! Its possible with scripts but I don't have tine fir it so.

nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

Re: Hide a forum from Index Page?

Post by HogwartsAcademy on Thu Jan 03, 2013 2:36 am

@nextlevelgaming wrote:Did you change everything? Um cuz this was your latest topics in HTML page? If so it makes my answers look redundant and you shouldn't do that you should just have made a new thread! Its possible with scripts but I don't have tine fir it so.

It was I didn't want to make a new topic, you are free to just delete your posts mate? Thanks for your help btw, I just realized since that issue wasn't and can't be resolved I can ask this one here..

HogwartsAcademy
Forumember

Posts : 474
Reputation : 1
Language : English

Back to top Go down

Re: Hide a forum from Index Page?

Post by HogwartsAcademy on Thu Jan 03, 2013 3:53 pm

Rideem3 wrote:You could hide the categories and forums with CSS. What's the forum you want to hide and what is your forums URL?

Okay so the Forum that I want hidden's URL is http://www.hogwartsacademy.org/f18-classrooms

My forum's url is: http://www.hogwartsacademy.org



(p.s. there are many sub-forums inside the general forum I want hidden from the Index page, will those be hidden as well?

HogwartsAcademy
Forumember

Posts : 474
Reputation : 1
Language : English

Back to top Go down

Re: Hide a forum from Index Page?

Post by HogwartsAcademy on Fri Jan 04, 2013 9:53 am

bump

HogwartsAcademy
Forumember

Posts : 474
Reputation : 1
Language : English

Back to top Go down

Re: Hide a forum from Index Page?

Post by Cassius Dio on Fri Jan 04, 2013 3:08 pm

Hi,

Add this to your JavaScript codes management:
Code:
$(document).ready(function(){
$('.forumline tr').has('a[href="/f18-classrooms"]').css('display','none');
});
You can find JavaScript codes management from:
ACP ~> Modules ~> HTML & JAVASCRIPT ~> JavaScript codes management. Create a new code and add it.

Cassius Dio
Forumember

Male Posts : 581
Reputation : 79
Language : Romanian &English
Location : Yellow Submarine

http://beatles.forummo.com/

Back to top Go down

Re: Hide a forum from Index Page?

Post by HogwartsAcademy on Fri Jan 04, 2013 5:18 pm

SGSS wrote:Hi,

Add this to your JavaScript codes management:
Code:
$(document).ready(function(){
$('.forumline tr').has('a[href="/f18-classrooms"]').css('display','none');
});
You can find JavaScript codes management from:
ACP ~> Modules ~> HTML & JAVASCRIPT ~> JavaScript codes management. Create a new code and add it.

This worked but there is one problem, it for some reason shows that redirect

Hogwarts Academy :: Hogwarts Academy :: Classrooms :: Defense Against The Dark Arts

So all someone needs to do is click back to Classrooms to see the hidden forum..

HogwartsAcademy
Forumember

Posts : 474
Reputation : 1
Language : English

Back to top Go down

Re: Hide a forum from Index Page?

Post by HogwartsAcademy on Fri Jan 04, 2013 5:37 pm

Sure mate, give me a second.

Edit:


As you can see, the part in the red is what I am speaking of.

"Classrooms" is the one I made hidden, and the "Defense against the dark arts" is the sub-forum, and there's about 14 other sub-forums. What I am saying is all someone has to do is click on the classrooms to view it.

HogwartsAcademy
Forumember

Posts : 474
Reputation : 1
Language : English

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