inherit
180565
0
Nov 24, 2024 12:38:18 GMT -8
User 180565 is taking donation
I forgot you were a person
10,446
June 2012
keenk
Pink Stars
|
Post by User 180565 is taking donation on Oct 31, 2012 10:54:26 GMT -8
Hi all, was wondering if it would be possible to create a plug in that gets rid of the On/Off Icons and replaces it by adding a new color to I think it is .windowbg2 to a board when there is a new post.
|
|
#00AF33
14306
0
1
Sept 8, 2023 8:54:17 GMT -8
Jordan
What is truth?
11,838
October 2003
jab2
|
Post by Jordan on Oct 31, 2012 12:48:58 GMT -8
No plugin required,
Admin Home > Themes > Layout Templates > Board > Board List
<table class="list" role="grid"> <thead> <tr> <th class="icon"></th> <th class="main">Board</th> <th class="threads">Threads</th> <th class="posts">Posts</th> <th class="latest last">Last Post</th> </tr> </thead> <tbody> {foreach $[board]} {if !$[board.is_redirect]} <tr id="$[board.content_id]" class="$[board.content_class]"> <td class="icon">$[board.icon]</td>
Replace the bold with something like the following:
{if !$[board.is_new]} <td class="icon" style="backgound-color: #ff0000;"></td> {else} <td class="icon" style="backgound-color: #0000ff;"></td> {/if}
A better way would be to create another CSS class, and just add onto the class name. So you'd have something like class="icon new_posts" and class="icon old_posts". The code for that would be something like:
{if !$[board.is_new]} <td class="icon old_posts"></td> {else} <td class="icon new_posts"></td> {/if}
|
|
inherit
180565
0
Nov 24, 2024 12:38:18 GMT -8
User 180565 is taking donation
I forgot you were a person
10,446
June 2012
keenk
Pink Stars
|
Post by User 180565 is taking donation on Oct 31, 2012 12:54:46 GMT -8
Looks like it's working from a preview but currently getting another error already told the Admins about it.
|
|
#e61919
1
0
1
Sept 28, 2023 13:31:20 GMT -8
VS Admin
20,147
January 2000
admin
|
Post by VS Admin on Nov 1, 2012 13:54:13 GMT -8
Jordan, you should check $[board.is_new] not the .icon.alt
|
|
#00AF33
14306
0
1
Sept 8, 2023 8:54:17 GMT -8
Jordan
What is truth?
11,838
October 2003
jab2
|
Post by Jordan on Nov 1, 2012 14:03:03 GMT -8
Ah, thanks, don't know how I missed that. I've update my post.
|
|