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.

Help Hiding a Forum with JavaScript

2 posters

Go down

Help Hiding a Forum with JavaScript Empty Help Hiding a Forum with JavaScript

Post by FrOsTyXi 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
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

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

Back to top Go down

Help Hiding a Forum with JavaScript Empty Re: Help Hiding a Forum with JavaScript

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

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

Male Posts : 2108
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Help Hiding a Forum with JavaScript Empty Re: Help Hiding a Forum with JavaScript

Post by FrOsTyXi 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
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

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

Back to top Go down

Back to top

- Similar topics

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