inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,017
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Dec 22, 2013 17:40:46 GMT -8
Nothing is showing up when there's a new post, is there something I'm doing wrong? I'm sorry, I'm very over my head here Nothing would show up since we made the image display:none (invisible), a code would need to find those hidden images then display some sort of notification somewhere around the category image once I get a better idea of where you want it to appear (those are relatively large category images). Also if we use an image rather than the default new icon then knowing the dimensions of that image might be relevant to how and where it gets positioned $(function(){ $('.container.boards') .each(function(){ var b = $(this); if(b.find('img.board-icon[title="New Posts"]').length==0){ b.find('.title_wrapper').prepend('<span class="new-icon" style="display:inline;float:none;position:relative;bottom:-90px;right:-60px;"><a href="#" onclick="return false;">new</a></span>'); } }) }) Actually since all we really need is the title to determine new post/no new post it could be added to a hidden image you add through the layout then revealed using pure CSS without the need for javaScript (e.g .board-icon[title="New Posts"] {display:inline;}). That way you could specify the image without the need for a code as well as position it depending on where you added it in the layout by using CSS to fine tune. Nevermind, that would be per board, I forgot we were doing per category. Once I have my coffee I'll be fine...
|
|
Former Member
inherit
guest@proboards.com
131621
0
Nov 23, 2024 2:36:51 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Dec 31, 2013 17:09:52 GMT -8
Chris, I apologize profusely for how long it's taken me to get back to you on this. Holidays have been hectic and then I didn't have my laptop with photoshop on it. x.x' If it is possible, I'd love for the image to be this http://i1375./ag467/bradyty2/categorynew_zps12f57802.png It's 50 pixels tall and 100 pixels wide And for it to be located like this on the categories If anything about that is not possible, please just let me know. =) Or if any further information is required
|
|
Former Member
inherit
guest@proboards.com
131621
0
Nov 23, 2024 2:36:51 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jan 11, 2014 20:01:27 GMT -8
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,017
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Jan 12, 2014 4:45:29 GMT -8
Sorry ₪» ⅀ ƪ Ƒ «₪, this totally dropped off my radar. The following code is for the specific structure of your forum layout and the hidden new indicators as we discussed <script> (function(){ /* Add "new" to category titles if there are new posts (Alcryst Edition)*/
var new_icon = 'http://i1375./ag467/bradyty2/categorynew_zps12f57802.png'; $(function () { $('.container.boards') .each(function () { var b = $(this); if (b.find('img.board-icon[title="New Posts"]').length) { b.find('.title_wrapper').append('<img class="new-icon-category" src="' + new_icon + '" style="position:relative" >') } }) }) })() </script>
And the accompanying CSS targets that new icon to allow styling (used only to position the icon in this case but can be any valid CSS for future expansion) .new-icon-category { left:750px; top: -130px; }
|
|
Former Member
inherit
guest@proboards.com
131621
0
Nov 23, 2024 2:36:51 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jan 12, 2014 16:29:33 GMT -8
Main header and style sheet? Thank you so much for helping me out, I really appreciate it, Chris. =)
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,017
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Jan 12, 2014 18:19:11 GMT -8
You already have one of the codes previously posted in this thread installed, but as discussed that code would not work on your forum with the layout changes that were made, this code would replace that code in the main FOOTER. The CSS can be added to the theme's stylesheet.
|
|
Former Member
inherit
guest@proboards.com
131621
0
Nov 23, 2024 2:36:51 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jan 12, 2014 18:43:42 GMT -8
It's working perfectly, thank you so much =D
|
|