Ken
New Member
Posts: 38
inherit
267546
0
Jan 29, 2024 6:48:12 GMT -8
Ken
38
February 2023
surrealshinjokun
|
Post by Ken on Aug 17, 2023 11:26:11 GMT -8
I'd like to add a link below the "No posts have been made on this board." giving the option to create a thread there. I got the rest setup, but I don't know how to append the href string. Any suggestions or answers are greatly appreciated. No posts have been made on this board.<br><a href="thread/new/" target="_blank">You can change that!</a>
|
|
Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Aug 17, 2023 13:48:31 GMT -8
I'd like to add a link below the "No posts have been made on this board." giving the option to create a thread there. I got the rest setup, but I don't know how to append the href string. Any suggestions or answers are greatly appreciated. No posts have been made on this board.<br><a href="thread/new/" target="_blank">You can change that!</a> Quick queries: - do you want the link to lead directly to the posting page of that board? - what should the behaviour be on the main page if a board contains one or more subboards and both the main board & subboards have 0 posts?
|
|
Ken
New Member
Posts: 38
inherit
267546
0
Jan 29, 2024 6:48:12 GMT -8
Ken
38
February 2023
surrealshinjokun
|
Post by Ken on Aug 17, 2023 17:32:16 GMT -8
I'd like to add a link below the "No posts have been made on this board." giving the option to create a thread there. I got the rest setup, but I don't know how to append the href string. Any suggestions or answers are greatly appreciated. No posts have been made on this board.<br><a href="thread/new/" target="_blank">You can change that!</a> Quick queries: - do you want the link to lead directly to the posting page of that board? - what should the behaviour be on the main page if a board contains one or more subboards and both the main board & subboards have 0 posts? - If "posting page" is the same as creating a thread, yes.
- If there are no posts, so I guess sub-boards on their own?
|
|
Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Aug 17, 2023 17:48:28 GMT -8
Quick queries: - do you want the link to lead directly to the posting page of that board? - what should the behaviour be on the main page if a board contains one or more subboards and both the main board & subboards have 0 posts? - If "posting page" is the same as creating a thread, yes.
- If there are no posts, so I guess sub-boards on their own?
- Yes, "posting page" is the same as creating a thread or post (there are 2 different URLs based on whether or not you're creating a thread or a post, obviously we will use the thread one for this) - I think I wasn't clear on this one. So, if you have a board with 0 posts and one or more subboards in that board that also has 0 posts, where should the link take the user to create their thread? the main board? one of the subboards?
|
|
Ken
New Member
Posts: 38
inherit
267546
0
Jan 29, 2024 6:48:12 GMT -8
Ken
38
February 2023
surrealshinjokun
|
Post by Ken on Aug 17, 2023 17:59:13 GMT -8
- If "posting page" is the same as creating a thread, yes.
- If there are no posts, so I guess sub-boards on their own?
- Yes, "posting page" is the same as creating a thread or post (there are 2 different URLs based on whether or not you're creating a thread or a post, obviously we will use the thread one for this) - I think I wasn't clear on this one. So, if you have a board with 0 posts and one or more subboards in that board that also has 0 posts, where should the link take the user to create their thread? the main board? one of the subboards? The main board and thread option would be preferred.
|
|
Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Aug 17, 2023 18:52:37 GMT -8
- Yes, "posting page" is the same as creating a thread or post (there are 2 different URLs based on whether or not you're creating a thread or a post, obviously we will use the thread one for this) - I think I wasn't clear on this one. So, if you have a board with 0 posts and one or more subboards in that board that also has 0 posts, where should the link take the user to create their thread? the main board? one of the subboards? The main board and thread option would be preferred. OK! I'm not feeling well again (ah, chronic illness) so I am heading to bed a little early, but I'll provide the changes first thing in the AM :)
|
|
Ken
New Member
Posts: 38
inherit
267546
0
Jan 29, 2024 6:48:12 GMT -8
Ken
38
February 2023
surrealshinjokun
|
Post by Ken on Aug 18, 2023 6:11:49 GMT -8
The main board and thread option would be preferred. OK! I'm not feeling well again (ah, chronic illness) so I am heading to bed a little early, but I'll provide the changes first thing in the AM :) Take your time and get well soon.
|
|
Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Aug 18, 2023 7:05:15 GMT -8
I appreciate the understanding!
OK so, the quick answer is the exact place where you currently have your edit, change the URL pathway to the following:
/thread/new/$[board.id]
I would also change from target=_blank to target=_self -- blank opens the link in a new tab, but self opens in the same window; it would have parity with the action of clicking the board itself, but directing to the new thread posting page.
These changes will apply to every board and appear if, and only if, the board is empty. This will also appear on empty subboards, however the link to create a new thread is only present in a subboard when you are actually viewing the subboard by clicking into the parent board to see it displayed — in the cases where both a parent board and a subboard are empty, the homepage will show a link that leads only to the posting page of the parent board.
|
|
Ken
New Member
Posts: 38
inherit
267546
0
Jan 29, 2024 6:48:12 GMT -8
Ken
38
February 2023
surrealshinjokun
|
Post by Ken on Aug 18, 2023 7:23:36 GMT -8
I appreciate the understanding! OK so, the quick answer is the exact place where you currently have your edit, change the URL pathway to the following: /thread/new/$[board.id]I would also change from target=_blank to target=_self -- blank opens the link in a new tab, but self opens in the same window; it would have parity with the action of clicking the board itself, but directing to the new thread posting page. These changes will apply to every board and appear if, and only if, the board is empty. This will also appear on empty subboards, however the link to create a new thread is only present in a subboard when you are actually viewing the subboard by clicking into the parent board to see it displayed — in the cases where both a parent board and a subboard are empty, the homepage will show a link that leads only to the posting page of the parent board. Thank you!
|
|