Welcome Guest [Log In] [Register]
Welcome to ZetaScript! We hope you enjoy your visit.

At ZetaScript, you will be able to access codes and modifications for your ZetaBoards and InvisionFree Forum. Register today or log in to see these great features!


Username:   Password:
Featured Thread; Allows you to put a featured thread
Topic Started: Apr 10 2011, 11:40 PM (912 Views)
Swordslam
Member Avatar
Full of inside jokes

Code:
 
<script type='text/javascript'>

var image = "http://z3.ifrm.com/static/1/s_stats.png"; //Edit this to the image url you want
var threadhref = ""; //Edit this to the thread URL
var threadname = "Topic Name";//The thread name

//No editing past this point
var featuredthread = "<a href='"+threadhref+"'>"+threadname+"</a>";
$("th:contains(Board Statistics):last").parent().before("<tr><th colspan='2'>Featured Thread</th></tr><tr><td rowspan='2' class='c_mark'><img src='"+image+"'/></td></tr><tr><td colspan='2'>"+featuredthread+"</td></tr>");

</script>


This is a code that will put a section on the bottom of your board with a thread you want to feature. You edit the variables. threadhref is for the URL, and threaname is the text that will appear. Put it Above the Copyright.
Offline
 
mightykyle66

any previews?
Offline
 
Swordslam
Member Avatar
Full of inside jokes

http://swordcodes.co.cc
Offline
 
Altered Faith

This is a really awesome code! Is there a way you can get it to automatically update?
Offline
 
Swordslam
Member Avatar
Full of inside jokes

Automatically update? Like, you click a button and you can edit it?
Offline
 
.awd

Not bad! Very good
Offline
 
Altered Faith

Swordslam
Apr 12 2011, 09:56 PM
Automatically update? Like, you click a button and you can edit it?
No, but when a thread gets like, 25 replies, it automatically goes into the featured thread spot.
Offline
 
Swordslam
Member Avatar
Full of inside jokes

For every forum? It could be worked out but it would be difficult. If it was for 1 forum and 1 only 1 thread it would be really simple.
Offline
 
Altered Faith

Well in like one section. For example, the community section. Once a thread in there got over 25 replies it went there.
Offline
 
Swordslam
Member Avatar
Full of inside jokes

Yeah that's possible. Although I just tried it and I got confused in a few minutes. I could try and get the most replied to topic for a certain forum.
Edited by Swordslam, Apr 17 2011, 03:15 AM.
Offline
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · ZetaBoards Codes · Next Topic »

Theme design by Flying Whales and coded by Gabriel. of Outline.