Former Member
inherit
guest@proboards.com
131621
0
Nov 22, 2024 10:50:44 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Dec 28, 2013 10:53:33 GMT -8
So I am using this code to put my Recent Threads as a button like Paritcipated in my Navigation Tree. You can see my site here. What I am hoping to accomplish is similar to Participated--when there is a new post in your Participated list, then the NEW icon shows up next to the word Participated. I am hoping to have the same effect for Recent Threads--when there is a new post in a thread in the Recent Threads list, I'd love for a NEW icon to show next to the words Recent Threads in the Navigation Tree. I have talked with David Clark about this and there's no easy solution to it but I am posting here following this recommendation: I don't think that this is data that our dev team plans on including on every page, but a possible solution might be to request a plugin that checks the timestamp in the "Last Updated:" section on the homepage's info center and, if the timestamp shows as more recent than the last time you were on the homepage, place a NEW icon on the button until you click it. It's more of a half-solution, since it will only function if you visit the homepage, but that's the only way I can figure that you might be able to implement that functionality I'm afraid. If you have an idea other than the one David provided, I'm all ears! If not, I'm quite fine with David's idea, even though it requires visiting the homepage as he says. Most people load the homepage first when visiting a site so it's fine by me. If anyone is willing to take this on, I'd be very appreciative, and thank you for your time just for reading this. =)
|
|
Former Member
inherit
guest@proboards.com
131621
0
Nov 22, 2024 10:50:44 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Dec 29, 2013 10:55:03 GMT -8
Crap, this should probably be in request a plugin. Didn't even realize I put it in the wrong board. Does an admin wanna move it for me? ;D
|
|
Former Member
inherit
guest@proboards.com
131621
0
Nov 22, 2024 10:50:44 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Dec 31, 2013 12:29:43 GMT -8
bump =)
|
|
wtvr
New Member
Posts: 141
inherit
202728
0
Oct 10, 2020 19:56:31 GMT -8
wtvr
141
December 2013
wtvr
|
Post by wtvr on Dec 31, 2013 16:08:00 GMT -8
I am not posting with any way of being able to help, I am not a coder but I like the idea and would like to share my opinions/suggestions. First of all I have thought about this for other reasons, bcuz I use the Drop Down Nav plugin and have rearranged my nav bar quite nicely with that feature. Maybe you could talk to the creator of that plugin and have these 2 ideas merge together, so that other buttons can have similar features, or icons as well. As far as how to get the Nav Tree to respond to the "New" part of the recent threads seems like it would be quite the task and I hope somebody can help you... maybe you could just change the way the participated button works??
|
|
Former Member
inherit
guest@proboards.com
131621
0
Nov 22, 2024 10:50:44 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Dec 31, 2013 16:42:47 GMT -8
The creator of the drop down navigation plugin is Shorty, he might be able to incorporate it but Recent Threads isn't in the nav bar by default so I dunno if he'd add the feature if only those who put Recent Threads in the nav bar will benefit from it. It's entirely up to him and since I tagged him I'm sure he'll let you know =) I don't think altering the participated button will work. What David Clark suggested was more along the lines of a jerryrig where it checks dates against dates and generates New through it. Hopefully someone will eventually take this on when they get the time, I'll just happily bump along til then =)
|
|
inherit
170346
0
Mar 1, 2016 12:53:37 GMT -8
Shorty
Yeah, I'm that cool. Lol! No I'm not.
3,018
August 2011
shortyverrett94
|
Post by Shorty on Dec 31, 2013 17:41:57 GMT -8
I am not posting with any way of being able to help, I am not a coder but I like the idea and would like to share my opinions/suggestions. First of all I have thought about this for other reasons, bcuz I use the Drop Down Nav plugin and have rearranged my nav bar quite nicely with that feature. Maybe you could talk to the creator of that plugin and have these 2 ideas merge together, so that other buttons can have similar features, or icons as well. As far as how to get the Nav Tree to respond to the "New" part of the recent threads seems like it would be quite the task and I hope somebody can help you... maybe you could just change the way the participated button works?? The creator of the drop down navigation plugin is Shorty, he might be able to incorporate it but Recent Threads isn't in the nav bar by default so I dunno if he'd add the feature if only those who put Recent Threads in the nav bar will benefit from it. It's entirely up to him and since I tagged him I'm sure he'll let you know =) I don't think altering the participated button will work. What David Clark suggested was more along the lines of a jerryrig where it checks dates against dates and generates New through it. Hopefully someone will eventually take this on when they get the time, I'll just happily bump along til then =) I'm sorry it's not something I will add into the Drop Down Nav plugin. While it's doable. I would have to code for it specifically and then eventually someone would ask me to do it for their button, and so on. And then it just becomes full of code that only few people would use. Sorry.
|
|
Former Member
inherit
guest@proboards.com
131621
0
Nov 22, 2024 10:50:44 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jan 6, 2014 23:12:13 GMT -8
bump
|
|
Former Member
inherit
guest@proboards.com
131621
0
Nov 22, 2024 10:50:44 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jan 13, 2014 22:14:57 GMT -8
bump =)
|
|
Former Member
inherit
guest@proboards.com
131621
0
Nov 22, 2024 10:50:44 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jan 16, 2014 21:44:24 GMT -8
bump
|
|
Former Member
inherit
guest@proboards.com
131621
0
Nov 22, 2024 10:50:44 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jan 20, 2014 3:10:19 GMT -8
Bump
|
|
Former Member
inherit
guest@proboards.com
195316
0
Nov 22, 2024 10:50:44 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jan 20, 2014 3:38:15 GMT -8
Hi, ₪» ⅀ ƪ Ƒ «₪Is this what you are looking for? it will show the Recent Threads & Recent Post buttons next to the participated button It was code done by PeterGoes Top Global Header replace your recent thread code with the one below To Show Both <script> $(function(){ var recent = $("a.recent-threads-button"); recent.clone().attr("href", "/threads/recent").html("Our Recent Threads").insertBefore($("#navigation-tree")); recent.clone().attr("href", "/posts/recent").html("Recent Posts").insertBefore($("#navigation-tree")); }); </script> Steve
|
|
Former Member
inherit
guest@proboards.com
131621
0
Nov 22, 2024 10:50:44 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jan 20, 2014 3:45:09 GMT -8
Unfortunately not, @xsteveuk. If you read my OP I already have that. =)
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jan 20, 2014 4:24:12 GMT -8
<script>
$(function(){ (function(){ return { init: function(){ var recent = $("a.recent-threads-button"); var recent_threads = recent.clone().attr("href", "/threads/recent").attr("id", "recent-threads-new").html("Recent Threads"); var boards_new_posts = $(".icon img[alt='New Posts']"); var threads_new_posts = $("tr.item.thread.new"); var new_icon = $("<span></span>").attr("class", "new-icon").hide(); if(boards_new_posts.length || threads_new_posts.length){ new_icon.html("New").show(); new_icon.css("position", "relative").css("top", "2px"); } recent_threads.append(new_icon).insertBefore($("#navigation-tree")); } }; })().init(); });
</script>
|
|
Former Member
inherit
guest@proboards.com
131621
0
Nov 22, 2024 10:50:44 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jan 20, 2014 5:04:19 GMT -8
Peter, thank you so much for responding, I appreciate it a lot, but upon implementation that doesn't appear to be working. =/ I made a test post, switched accounts, and had New show up in all ways that it should (thread list, participated, category, info center) but it didn't have any New show up next to Recent Threads.
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jan 20, 2014 6:27:54 GMT -8
₪» ⅀ ƪ Ƒ «₪I wrote it without testing it on a forum, but just tried it, and it's working fine for me. If you have a custom theme, then the issue is likely that it's not finding the stuff that is new. Got a link to the forum you are using it on? Edit: Try this one. This is specific for your forum. Anyone else looking to use this, please see the original script I posted. <script>
$(function(){ (function(){ return { init: function(){ var recent = $("a.recent-threads-button:first"); var recent_threads = recent.clone().attr("href", "/threads/recent").attr("id", "recent-threads-new").html("Recent Threads"); var boards_new_posts = $("div.title_wrapper img.new-icon-category"); var threads_new_posts = $("tr.item.thread .new-icon a:contains('New')"); var new_icon = $("<span></span>").attr("class", "new-icon").hide(); if(boards_new_posts.length || threads_new_posts.length){ new_icon.html("New").show(); new_icon.css("position", "relative").css("top", "2px"); } recent_threads.append(new_icon).insertBefore($("#navigation-tree")); } }; })().init(); });
</script>
|
|