We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Remove Topic Starter?
Topic Started: Aug 20 2015, 05:35 PM (390 Views)
JamieMN
Member
[ *  *  * ]
Board Address: www.modernnations.com
Board Software: ZetaBoards
Description: I've got a specific forum section which is used as a Getting Started Guide but to make it seem slightly more 'professional', is it possible to have a code that'll remove the "Topic Starter" column, and the "Last Post by" area so it doesn't say who posted it? Just for that specific section.
Edited by JamieMN, Aug 20 2015, 05:36 PM.
Offline Profile Goto Top
 
Roby
Member Avatar
#27

How's this:

Replace FORUM_NUMBER with the forum number that you'd like the effect to take place.
A forum's number can be found right in the URL when you're viewing that forum's index. For example, if you were looking at the code requests forum here on the support board: http://support.zathyus.com/forum/1000326/ <- that number right at the end after /forum/ would be its forum number.

Below the Board
Code:
 
<script type='text/javascript'>
$(function() {

var forum_num = FORUM_NUMBER;

if (location.href.indexOf('forum/' + forum_num + '/') !== -1) {
$('table.posts tbody td.c_cat-starter, table.posts tbody td.c_cat-lastpost, table.posts tbody th.c_cat-starter, table.posts tbody th.c_cat-lastpost').hide();
}
});
</script>
Edited by Roby, Aug 25 2015, 06:05 PM.
Offline Profile Goto Top
 
JamieMN
Member
[ *  *  * ]
Awesome, Thanks Roby! That works great.
What would be the chance that "Replies" and "Views" would be able to be removed too? so it'd just be the title, what would I need to add? ^^
Offline Profile Goto Top
 
Roby
Member Avatar
#27

No problem! Try this
Code:
 
<script type='text/javascript'>
$(function() {

var forum_num = FORUM_NUMBER;

if (location.href.indexOf('forum/' + forum_num + '/') !== -1) {
$('table.posts tbody td.c_cat-starter, table.posts tbody td.c_cat-lastpost, table.posts tbody th.c_cat-starter, table.posts tbody th.c_cat-lastpost, table.posts tbody td.c_cat-replies, table.posts tbody td.c_cat-views, table.posts tbody th.c_cat-replies, table.posts tbody th.c_cat-views').hide();
}
});
</script>
Offline Profile Goto Top
 
JamieMN
Member
[ *  *  * ]
Works great! Thanks again :-)
Offline Profile Goto Top
 
Roby
Member Avatar
#27

Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic