News:

Create A Forum Installed

Author Topic: [Code] Remove (Moderator: ...) on Board Index  (Read 2235 times)

0 Members and 1 Guest are viewing this topic.

Offline Arekay

  • Newbie
  • *
  • Posts: 16
  • Karma: 1
  • Gender: Male
  • Weeee!
    • View Profile

Badges: (View All)
Topic Starter Combination Level 2
[Code] Remove (Moderator: ...) on Board Index
« on: February 09, 2011, 12:45:33 am »
This code will remove the "(Moderators: ...)" on the board index



This code utilizes jQuery, please use the latest version found in this thread: http://support.createaforum.com/5/jquery-v1-8-update/
Footers:
Code: [Select]
<script type="text/javascript">
/*Created By Arekay www.syntaxnet.tk*/
$("p.moderators").hide();
</script>
« Last Edit: August 12, 2012, 03:43:44 pm by xboi209 »

Share on Facebook Share on Twitter


Offline Agent Moose

  • Newbie
  • *
  • Posts: 37
  • Karma: 12
  • Gender: Male
  • Miss me?
  • Location: South Carolina, United States
    • View Profile

Badges: (View All)
Linux User Mobile User Level 5
Re: [Code] Remove (Moderator: ...) on Board Index
« Reply #1 on: February 27, 2011, 09:50:17 pm »
Just for other more ways to do it, heres a CSS way :)  Just add to whatever style your using:
Code: [Select]
.moderators {display: none; !important};
Code: [Select]
//Hint hint :)
if(/action=profile;u=(.*);sa=UserPage/i.test(location.href)){
var number = RegExp.$1;
var username = (smf_id_member !== "0") ? document.getElementById("upper_section").getElementsByTagName("li")[0].getElementsByTagName("span")[0].innerHTML : void(0);

Offline Arekay

  • Newbie
  • *
  • Posts: 16
  • Karma: 1
  • Gender: Male
  • Weeee!
    • View Profile

Badges: (View All)
Topic Starter Combination Level 2
Re: [Code] Remove (Moderator: ...) on Board Index
« Reply #2 on: March 01, 2011, 03:11:15 am »
That's a good point, thanks!

With the large role CSS plays in SMF2.0, a lot of things can be done with CSS, unlike in the version that SMFForFree uses, I just keep forgetting about it.
« Last Edit: March 01, 2011, 03:13:14 am by Arekay »

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
3683 Views
Last post January 27, 2010, 03:02:13 am
by Ultimate Forumer
4 Replies
437 Views
Last post November 18, 2014, 06:59:48 pm
by conductor
3 Replies
399 Views
Last post January 21, 2016, 06:24:38 pm
by CreateAForum
0 Replies
1672 Views
Last post September 13, 2018, 03:24:20 am
by CreateAForum
5 Replies
1073 Views
Last post March 02, 2019, 09:12:20 pm
by Pearl