inherit
134494
0
Jun 11, 2015 21:30:29 GMT -8
taylor40
317
December 2008
taylor40
|
Post by taylor40 on Nov 24, 2012 9:53:21 GMT -8
Is it possible to have a plugin that would put "recent posts" next to "Participated" and in the same style instead of having it down in the info center?
Thanks
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Nov 24, 2012 10:19:29 GMT -8
Ideally you would do this by modifying the layout, but it would also require some CSS changes in a few areas so that the button matches the participated button, as it would need it's own class name. So I decided to make it super easy for you with a script...
<script>
$(function(){ $("a.recent-threads-button").clone().attr("href", "/threads/recent").html("Recent Threads").insertBefore($("#navigation-tree")); });
</script> That can be added to your global header.
|
|
inherit
186212
0
Sept 14, 2021 23:13:53 GMT -8
katanya123
163
November 2012
katanya123
|
Post by katanya123 on Nov 24, 2012 10:56:00 GMT -8
Bit confused about this. Is there also one for Recent Posts? This code only displays the Threads.
|
|
Former Member
inherit
guest@proboards.com
167458
0
Nov 22, 2024 5:18:46 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Nov 24, 2012 12:13:06 GMT -8
Hi, You could change ("href", "/threads/recent").html("Recent Threads") To ("href", "/posts/recent").html("Recent Posts") That should show the (Recent Posts) I think that should work Tried it on my own beta board changing the line to (Recent posts) and worked OK If Peter don't mind Steve
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Nov 24, 2012 15:15:24 GMT -8
Yep that will do it.
Or if you want recent posts and recent threads...
<script>
$(function(){ var recent = $("a.recent-threads-button"); recent.clone().attr("href", "/threads/recent").html("Recent Threads").insertBefore($("#navigation-tree")); recent.clone().attr("href", "/posts/recent").html("Recent Posts").insertBefore($("#navigation-tree")); });
</script>
|
|
inherit
134494
0
Jun 11, 2015 21:30:29 GMT -8
taylor40
317
December 2008
taylor40
|
Post by taylor40 on Nov 25, 2012 1:20:40 GMT -8
Exactly what I wanted... Thanks very much...
|
|
Former Member
inherit
guest@proboards.com
167458
0
Nov 22, 2024 5:18:46 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Nov 25, 2012 3:01:09 GMT -8
Hi, Peter
Could this be set to show for guests also To show the Recent Threads Button.
Steve
|
|
inherit
186212
0
Sept 14, 2021 23:13:53 GMT -8
katanya123
163
November 2012
katanya123
|
Post by katanya123 on Nov 25, 2012 9:43:33 GMT -8
Works great for me, thanks!
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Jul 18, 2013 12:07:47 GMT -8
you mean member's recent posts?
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Jul 18, 2013 18:59:51 GMT -8
guests cant see it
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Jul 18, 2013 20:20:28 GMT -8
this:
Last Updated: TEST FORUM ONLY by JR (Jul 8, 2013 at 2:44pm)
?
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Jul 20, 2013 11:46:21 GMT -8
that link only shows in the info center. therefore it would only be able to put a new button up top on the main page.
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Jul 20, 2013 17:36:34 GMT -8
I say "main" page, but I mean "home" page. in v4 it was called "main" and I revert terminology sometimes.
the main page is the only page in the forum that has a link showing the last post of the forum. the link you attempted to make there has no definition
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Jul 20, 2013 19:07:19 GMT -8
recent posts and recent threads are actual defined destinations in the proboards architecture. so making a link to them is easy. you could even open a dialog to them. the VERY last post, however, isnt a defined destination. without actually know the ID of the very last post of the forum, you couldnt even fake it.
you COULD do a link that would go to a list of todays birthdays. that link would be:
/members?dir=asc&sort=name&view=birthdays
if you can convince the developers to add "forum_last_post_id" into proboards.data THEN you could easily make the button you are after. but you have to submit that request in the support board and wait for them to approve the suggestion. I have seen their suggestion list and it is MASSIVE
|
|
inherit
193844
0
May 19, 2015 5:01:45 GMT -8
Sassy
I love you Shaggy!
2,372
May 2013
sassylisa14
|
Post by Sassy on Jul 21, 2013 5:51:25 GMT -8
Yep that will do it. Or if you want recent posts and recent threads... <script>
$(function(){ var recent = $("a.recent-threads-button"); recent.clone().attr("href", "/threads/recent").html("Recent Threads").insertBefore($("#navigation-tree")); recent.clone().attr("href", "/posts/recent").html("Recent Posts").insertBefore($("#navigation-tree")); });
</script> Thank you! Will definitely add that to my new forum when I change it over. ~Sassy~
|
|