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 topics and replies and last post only to the second category

View previous topic View next topic Go down

In progress hide topics and replies and last post only to the second category

Post by narcotiq on January 22nd 2014, 9:41 pm

hello, You helped me earlier with hiding the latest posts from one category only. Well, I made some major changes to the forum and now it works codes given to you. If you can help me fix the problem.
just want to hide the second category last post and topics and replies

Code:
#pun-visit + table .main-head:nth-child(3) + .forumbitBoxLeft .tcr, #pun-visit + table .main-head:nth-child(3) + .forumbitBoxLeft .tc2 { display:none; }


other code:
CSS:

Code:
#1 .tcr, #1 .tc2 { display:none !important; }

JS:

Code:
jQuery(document).ready(function () { jQuery('#1 .tcr, #1 .tc2').remove() });

My forum: www.facegame.forumz.ro/forum

narcotiq
New Member

Posts : 20
Reputation : 1
Language : Romanian

Back to top Go down

In progress Re: hide topics and replies and last post only to the second category

Post by Ange Tuteur on January 22nd 2014, 9:47 pm

Hello,

Since you removed the category ID, it will become more difficult to do this. You will now instead have to use the string of text from your main head of the second category to achieve this. If you change those texts you will have to change them in the script also.

Replace your last script with the following one :
Administration Panel > Modules > HTML & JAVASCRIPT > Javascript codes management

Code:
jQuery(document).ready(function () { jQuery('.main-head:contains(Servere publice / Cereri / Activitate) + .forumbitBoxLeft .tc2, .main-head:contains(Servere publice / Cereri / Activitate) + .forumbitBoxLeft .tcr').remove() });

As I said you'll have to change these texts if you change the title of that category :
Code:
:contains(Servere publice / Cereri / Activitate)

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

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