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 latest posts on Index for ZB; Think there is one for IF
Topic Started: Jun 30 2011, 07:12 PM (534 Views)
anubis505-ZNR
Member Avatar
Member
[ * ]
Board Address: www.heroesofthenet.com
Board Software: Zetaboards
Description: I want the script to remove the latest post info from the Index for all the forums.

What I mean is:
"Topic name"
Today 12:00 pm by UserName

So the forum names and descriptions just show up on the index. Thus forcing members to click on the forum itself and not just the latest post in that forum. Hope this makes sense.

I ASSUME that is what THIS script does but it is for IF :cry: Maybe it will help in scripting in a new one. Or maybe one exists and I just can't find it.

Thank you for any help! You guys are awesome and I appreciate everything the coders here do. <3
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
$("td.c_last, tr.c_info").remove();
$("td.c_mark, td.c_subforum, td.c_forum").attr("rowspan", "1");
$("td.c_subforum, .category td.c_foot").attr("colspan", "2");
</script>
Offline Profile Goto Top
 
anubis505-ZNR
Member Avatar
Member
[ * ]
Thank you Cory! That was fast too. You're awesome.

I'd like to point out that the script made my stats_legend look a little funky but I corrected it by adding another line. Seems to work. I feel like I should learn javascript...

Code:
 
<script type="text/javascript">
$("td.c_last, tr.c_info").remove();
$("td.c_mark, td.c_subforum, td.c_forum").attr("rowspan", "1");
$("td.c_subforum, .category td.c_foot").attr("colspan", "2");
$("td#stats_legend").attr("colspan", "2");
</script>


The index page looks so different now. Is there an easy way to add a little space between each forum without going into each theme? If not, that's fine.

Thank you!
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code:
 
<script type="text/javascript">
$("td.c_last, tr.c_info").remove();
$("td.c_mark, td.c_subforum, td.c_forum").attr("rowspan", "1");
$("td.c_subforum, .category td.c_foot, #stats_legend").attr("colspan", "2");
</script>
There's your fix with one less line, you could also make the marker box cover both TDs (this is default) with this script:
Code:
 
<script type="text/javascript">
$("td.c_last, tr.c_info").remove();
$("div.category:not(#stats) td.c_mark, td.c_subforum, td.c_forum").attr("rowspan", "1");
$("td.c_subforum, .category td.c_foot").attr("colspan", "2");
</script>
Is this what you mean by adding space between the forums?
Offline Profile Goto Top
 
anubis505-ZNR
Member Avatar
Member
[ * ]
Yes, that is exactly what I meant! How'd you do that?

And thank you. I thought something still looked a little off but couldn't figure it out.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
$("tr[id*='forum']:not(:eq(-1)), tr:has(td.c_subforum)").after("<tr><td colspan='2' style='background: none; border: 0'></td></tr>");
$("tr:has(td.c_subforum), div[id*='cat'] tr:has(td.c_foot)").prev().remove();
</script>
If you wish to add it to a specific theme instead of all themes, add it here:

Admin CP Posted Image Themes Posted Image Themes Posted Image Edit Theme Layout
Offline Profile Goto Top
 
anubis505-ZNR
Member Avatar
Member
[ * ]
Thank you, Cory. This is exactly what I was looking for.

Satisfied~
Offline Profile Goto Top
 
Roby-ZNR
Member Avatar
Efficacy
[ *  *  *  *  *  * ]
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