Simple Machine Codes
November 23, 2009, 01:15:06 am
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to SMC, the best place for your SMF For Free Codes
 
  Home Help Search Arcade Affiliates Code Index Staff List Calendar Members Login Register  

Hide the News uptop


Pages: [1]   Go Down
  Print  
Author Topic: Hide the News uptop  (Read 432 times)
0 Members and 1 Guest are viewing this topic.
Celebrus
Artificially Conscious
Administrator

Offline Offline

Gender: Male
Posts: leet


aka Omikron


View Profile WWW
« on: December 03, 2007, 03:43:43 am »

This code hides the news that shows up next to the search box up top near the members area. It's useful if you are using Agent Moose's News Box code.

First ensure you have this in your headers:

Code:
<script src="http://YOURFORUM.smfforfreeX.com/jquery.js"></script>
Replace YOURFORUM and X in that with whatever is appropriate for your forum.
Then put this in your footers.

Code:
<script>
//Made by Omikron 9861
$("tbody tr td.titlebg2:contains(News)").hide();
</script>
Report Spam   Logged

Sassy Pants
Members

Offline Offline

Gender: Female
Posts: 42



View Profile
« Reply #1 on: December 03, 2007, 12:38:12 pm »

umm, why do we need a code, you can just turn this option off from the admin, right?  Thats what I have done  Wink
Report Spam   Logged
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,664



View Profile WWW
« Reply #2 on: December 03, 2007, 02:16:52 pm »

Nice code Smiley

And No, you can't disable it...at least I can't.
Report Spam   Logged

Sassy Pants
Members

Offline Offline

Gender: Female
Posts: 42



View Profile
« Reply #3 on: December 03, 2007, 03:09:39 pm »

Maybe I am misunderstanding it then, lol.....Admin > Edit forum news > leave totally blank and no news shows up.  I cant see it on my forum, not even the word news.  Also, this is how mine is set
Admin > Configuration > Current theme > uncheck enable news

Is this what we are talking about?  That news section?  If not, I apologize for butting in  Wink
Report Spam   Logged
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,664



View Profile WWW
« Reply #4 on: December 03, 2007, 05:59:36 pm »

That would be it.  At least there is another way to do it Wink
Report Spam   Logged

Celebrus
Artificially Conscious
Administrator

Offline Offline

Gender: Male
Posts: leet


aka Omikron


View Profile WWW
« Reply #5 on: December 03, 2007, 11:29:42 pm »

I never knew that you could do that.  Grin
Report Spam   Logged

Sassy Pants
Members

Offline Offline

Gender: Female
Posts: 42



View Profile
« Reply #6 on: December 04, 2007, 02:20:11 am »

weehaw!!  I am so smart for a change!! lol  Cheesy
Report Spam   Logged
Celebrus
Artificially Conscious
Administrator

Offline Offline

Gender: Male
Posts: leet


aka Omikron


View Profile WWW
« Reply #7 on: December 04, 2007, 02:30:12 am »

But I managed to figure out a use.
Suppose you are using Moose's SMC News Box, which does not work on machines where javascript is disabled, if you disable news, even those who can't see the newsbox(SMC) can't see it. This will disable it only where javascript works and so should mooses smc news box.
Remote, but not completely useless.
Report Spam   Logged

Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,664



View Profile WWW
« Reply #8 on: December 04, 2007, 02:25:10 pm »

That is a very good way to think of useing the code Smiley  Nice job Smiley
Report Spam   Logged

Agent Moose Jr.
Ultra Contagious
Global Moderator

Offline Offline

Gender: Male
Posts: 1,044



View Profile WWW
« Reply #9 on: January 04, 2008, 01:06:53 pm »

nice job
Report Spam   Logged

Newest:

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2006, Simple Machines LLC
ServerBeach Coupon