Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ![]() Interested in joining? Click here. If you are already a member of ZBCode, feel free to login right here: |
| [SC] Bold Topics With Less Than X Replies | |
|---|---|
| Tweet Topic Started: May 3 2009, 03:23 PM (895 Views) | |
| Vitality | May 3 2009, 03:23 PM Post #1 |
|
Tabula Rasa
![]()
|
What does it do: It will bold the topic title of the topics that have less than a specified number of replies. It's a feature to promote new topics. Preview: None at the moment. Where does it go: Below the Board There are two versions of this code. If you'ree anti-jQuery, you can go ahead an use the one I have made in classic JS (I did this to get back in the swing of classic). Or, if you're concerned about space, you can go ahead an use the other version Reid had so kindly coded up. The classic JS version
Reid's version
Okay, so the only editing you can do is deciding on what amount of replies you want before the topic title turns regular again. Right now it is set to have all topics with less than 10 replies to turn bold, but if you want more or less, all you have to do is edit this line (it's the same for both versions): That is right near the top of the code and can be changed to whatever number you like. Thank you Reid for the help! |
![]() |
|
| DaMeiN | May 3 2009, 04:49 PM Post #2 |
![]()
Oo.SpawN.oO
![]()
|
So where does this go? I've tried it in all the sections I believe with no affects ![]() Thanks. |
![]() † You fall to your knees, you beg you plead. Can I be someone else, for all the times I hate myself.. † † You refuse to bend, so I keep bending until I break... † | |
![]() |
|
| Vitality | May 3 2009, 04:52 PM Post #3 |
|
Tabula Rasa
![]()
|
It goes Below the Board and it will effect the topics that have less replies than the number you've set in the forum view. |
![]() |
|
| Pilla | May 4 2009, 05:53 PM Post #4 |
![]()
|
nice code! |
![]() |
|
| daveclarkedaveclarke | Jun 5 2009, 05:23 AM Post #5 |
|
Adrenaline Site Owner
![]()
|
nice code! it works fine for me can this be edited so tht instead of it being bold it could be a different font colour? |
![]()
| |
![]() |
|
| Dorith | Jun 8 2009, 01:52 AM Post #6 |
![]()
Has just entered the Matrix
![]()
|
Sorry if I'm not allowed to modify another person's code, but I'm just answering the question for the person above. If I'm now allowed to do this, then just trash this post. @daveclarkedaveclarke Where it says:
Change it to:
And where it says 'red', change that to whichever color you'd like it to be. Hope that helps
|
![]() (Made emoticon using Codes Rock's Smiley Generator) | |
![]() |
|
| Reid | Jun 8 2009, 11:44 AM Post #7 |
![]()
What? The land of the free? Whoever told you that was your enemy.
![]()
|
Feel free to edit my version, but I can't give permission for Vitality.
|
| The Resource Board | |
![]() |
|
| speeddemon32q | Jul 18 2010, 03:55 PM Post #8 |
![]()
|
This is a great code. Thanks so much. Just wondering, if I wanted to bold and change color, how would I put them both in there? |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Zetaboards Modifications · Next Topic » |

























7:39 PM Jul 10