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.

Help Hiding a Forum with JavaScript

View previous topic View next topic Go down

Help Hiding a Forum with JavaScript

Post by FrOsTyXi on January 2nd 2015, 7:43 pm

Hello, Can someone help me hide a forum with JS?

Here is the code i have but it's not hiding it anymore.

Code:
$(function(){
  // hides the status update topic on forum page
$('img[src="hidethis.png"]').closest('.main-content').prev().remove();
$('img[src="hidethis.png"]').closest('.main-content').remove();
if(location.href.match('status-updates')){
alert("You Shall Not Pass!!!!");
  location.href="/forum";
};
});

punbb

Forum Link: TPSN

Thank you kindly for the help!

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Re: Help Hiding a Forum with JavaScript

Post by _Twisted_Mods_ on January 2nd 2015, 9:10 pm

if u give me acp again i can look as see y its not working

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Re: Help Hiding a Forum with JavaScript

Post by FrOsTyXi on January 2nd 2015, 9:20 pm

Real weird cleared forum cookies and it's fine weird right before then a color canger i had installed was active and i deleted that few days ago.

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.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