Keith Rozett
Full Member
Not that kind of doctor.
Not even the other kind, technically.
Posts: 720
inherit
Not that kind of doctor.
186408
0
Jul 7, 2015 11:21:48 GMT -8
Keith Rozett
Not even the other kind, technically.
720
November 2012
krozett
|
Post by Keith Rozett on Mar 27, 2013 16:14:47 GMT -8
You're welcome! I forgot to mention, I'll post again once the new variables go live. Have all of the above already been added? Because I can't get the total results for search to work Just shows as blank. I can't even see it in the variable list either. None of the variables I mentioned in my first post have been added yet. Only the ones that RedBassett has crossed off in the OP have been added so far.
|
|
inherit
Jack of All Trades, Master of None
27090
0
May 30, 2013 20:36:34 GMT -8
Stinky666
8,818
July 2004
stinky666
|
Post by Stinky666 on Mar 27, 2013 16:15:47 GMT -8
Have all of the above already been added? Because I can't get the total results for search to work Just shows as blank. I can't even see it in the variable list either. None of the variables I mentioned in my first post have been added yet. Only the ones that RedBassett has crossed off in the OP have been added so far. Lmao well that explains that. At least I hadn't broken anything Thanks. Any idea when they will be added? Or do we just need to keep an eye out?
|
|
Keith Rozett
Full Member
Not that kind of doctor.
Not even the other kind, technically.
Posts: 720
inherit
Not that kind of doctor.
186408
0
Jul 7, 2015 11:21:48 GMT -8
Keith Rozett
Not even the other kind, technically.
720
November 2012
krozett
|
Post by Keith Rozett on Mar 27, 2013 16:17:57 GMT -8
None of the variables I mentioned in my first post have been added yet. Only the ones that RedBassett has crossed off in the OP have been added so far. Lmao well that explains that. At least I hadn't broken anything Thanks. Any idea when they will be added? Or do we just need to keep an eye out? We've been doing pushes about every week or so, so maybe this weekend? I'll let you guys know when they're out.
|
|
inherit
Jack of All Trades, Master of None
27090
0
May 30, 2013 20:36:34 GMT -8
Stinky666
8,818
July 2004
stinky666
|
Post by Stinky666 on Mar 27, 2013 16:20:50 GMT -8
Lmao well that explains that. At least I hadn't broken anything Thanks. Any idea when they will be added? Or do we just need to keep an eye out? We've been doing pushes about every week or so, so maybe this weekend? I'll let you guys know when they're out. Excellent. We'd all (I assume, not sure why they wouldn't) appreciate that
|
|
#00AF33
Bark Different.
102833
0
1
Feb 12, 2023 16:57:46 GMT -8
RedBassett
I'm a Marxist/Lennonist of the Groucho/John variety.
15,405
April 2007
applecomputer
RedBassett's Mini-Profile
|
Post by RedBassett on Mar 27, 2013 17:40:41 GMT -8
Have all of the above already been added? Because I can't get the total results for search to work Just shows as blank. I can't even see it in the variable list either. None of the variables I mentioned in my first post have been added yet. Only the ones that RedBassett has crossed off in the OP have been added so far. I never crossed any off. You should do that when you add them to the internal list.
|
|
inherit
20332
0
Jul 3, 2024 14:49:17 GMT -8
Vu1canF0rce
729
February 2004
daviper
|
Post by Vu1canF0rce on Mar 27, 2013 19:40:47 GMT -8
Thanks for your patience, everyone. I'll list all the new variables I added in bold: - $[post.thread] Thread -> Post List $[post]: Add href, title, content, etc, rather than just link to thread.
- $[current_user.is_pbplus] User -> is_pbplus
- $[forum.is_adfree] Forum -> is_adfree
- $[thread.board] Board -> Display Name (in thread list template) - You now have access to the entire board object, so you not only get board.id and board.display_name, you'll also get board.moderator and all the other good stuff.
- $[total] Total Number of results on search page
- $[current_user.theme] - skin.id and skin.name for current_user - Renamed to reflect the new V5 name for skins. In addition to theme.id and theme.name, you also get theme.css (which won't really do anything for you, but the data is there regardless), theme.description, theme.disabled, and theme.default.
- $[total_online] and $[total_online_24] - Total # Users online
One of the requests, $[user_groups_href], turns out to be unneeded. Vu1canF0rce, you can accomplish this with this code: <a href="$[current_user.href]/groups">Click here to see your groups</a>
Unfortunately, we won't be able to implement the request for 'Read Count in thread list and thread pages'. If I understand your request, you want to get the number of views that each individual post has. However, this isn't information that we track. Have fun with the new variables, everyone. Show us what sorts of cool layouts you can do with them! Wow, so the mix of HTML and the ProBoards custom programming do work together. Awesome how I was off by just the .href. However, it doesn't work as intended. $[current_user.href]/groups url actually points to http://FORUM-URL/page/pagename (<-- real forum, of course). $[current_user.href]/groups should point to http://FORUM-URL/user/#/desiredlink like $[current_user] does.Any advice? I stand corrected. The $[current_user.href] does work as such that I tested on the user profile layout theme and $[current_user.href]/groups (with html syntax) works as intended. However, copying the same code (in case I mistyped or something) to the custom pages html tab yields the same results of forum-url/groups (which is not a real forum link) and just $[current_user.href] (with html syntax) yields forum-url/page/pagename. And, as a last-ditch effort, creating a custom page entitled groups and copying the entire script from the groups layout template does not yield the same exact details. This brings up the question do all variables not work with custom pages as they do with layout templates? Could this be a bug?
|
|
Keith Rozett
Full Member
Not that kind of doctor.
Not even the other kind, technically.
Posts: 720
inherit
Not that kind of doctor.
186408
0
Jul 7, 2015 11:21:48 GMT -8
Keith Rozett
Not even the other kind, technically.
720
November 2012
krozett
|
Post by Keith Rozett on Mar 28, 2013 9:41:29 GMT -8
Thanks for your patience, everyone. I'll list all the new variables I added in bold: - $[post.thread] Thread -> Post List $[post]: Add href, title, content, etc, rather than just link to thread.
- $[current_user.is_pbplus] User -> is_pbplus
- $[forum.is_adfree] Forum -> is_adfree
- $[thread.board] Board -> Display Name (in thread list template) - You now have access to the entire board object, so you not only get board.id and board.display_name, you'll also get board.moderator and all the other good stuff.
- $[total] Total Number of results on search page
- $[current_user.theme] - skin.id and skin.name for current_user - Renamed to reflect the new V5 name for skins. In addition to theme.id and theme.name, you also get theme.css (which won't really do anything for you, but the data is there regardless), theme.description, theme.disabled, and theme.default.
- $[total_online] and $[total_online_24] - Total # Users online
One of the requests, $[user_groups_href], turns out to be unneeded. Vu1canF0rce, you can accomplish this with this code: <a href="$[current_user.href]/groups">Click here to see your groups</a>
Unfortunately, we won't be able to implement the request for 'Read Count in thread list and thread pages'. If I understand your request, you want to get the number of views that each individual post has. However, this isn't information that we track. Have fun with the new variables, everyone. Show us what sorts of cool layouts you can do with them! Wow, so the mix of HTML and the ProBoards custom programming do work together. Awesome how I was off by just the .href. However, it doesn't work as intended. $[current_user.href]/groups url actually points to http://FORUM-URL/page/pagename (<-- real forum, of course). $[current_user.href]/groups should point to http://FORUM-URL/user/#/desiredlink like $[current_user] does.Any advice? I stand corrected. The $[current_user.href] does work as such that I tested on the user profile layout theme and $[current_user.href]/groups (with html syntax) works as intended. However, copying the same code (in case I mistyped or something) to the custom pages html tab yields the same results of forum-url/groups (which is not a real forum link) and just $[current_user.href] (with html syntax) yields forum-url/page/pagename. And, as a last-ditch effort, creating a custom page entitled groups and copying the entire script from the groups layout template does not yield the same exact details. This brings up the question do all variables not work with custom pages as they do with layout templates? Could this be a bug? Ah, I misunderstood your use case for this variable. Yes, as it turns out, you cannot use normal template variables inside custom pages. This isn't so much a bug, but it's something we haven't implemented. But IMO, it's something we need... your situation is a perfect example. There's no reason I can think of that we can't allow all "global" template variables (which at the moment is just $[current_user]), so I'll put in a feature request. In the meantime, I believe a simple plugin can do what you need to do. It's not ideal, but you won't have to wait for the new feature: $(document).ready(function() { if (proboards.data('route').name == 'page' && proboards.data('route').params.page_id == 'CUSTOMPAGE') { $('#content').prepend($('<a href="/user/' + proboards.data('user').id + '/groups">Click for groups</a>')); } }); Just something I threw together. Replace CUSTOMPAGE with your real page's name, and modify the jQuery prepend to insert whatever you want, wherever you want. (Hopefully you're familiar with jQuery )
|
|
inherit
tunesrcoolii@gmail.com
86185
0
Oct 3, 2013 8:48:20 GMT -8
tunescool
4,399
August 2006
tunescool
|
Post by tunescool on Mar 28, 2013 10:35:59 GMT -8
Unfortunately, we won't be able to implement the request for 'Read Count in thread list and thread pages'. If I understand your request, you want to get the number of views that each individual post has. However, this isn't information that we track i dont understand, i use a variable in the Thread List Template that doesnt work in the Post List Template that does count the number of views each thread has. and many other people use it too <h1 style="padding-left:100px;"><i>$[thread.subject] (Read $[thread.views] time{if $[thread.views] != 1}s{/if})</i></h1> i just want to put it next to the timestamp in the Post List Template the thread view count is rite there in the titlebar thenotablenook.com/thread/24364and the thread view count is rite there on every Thread List page Subject Created By Replies Views Last Post
|
|
inherit
16846
0
Nov 19, 2012 15:20:20 GMT -8
Chris
3,036
December 2003
cddude
|
Post by Chris on Mar 28, 2013 10:54:58 GMT -8
|
|
Keith Rozett
Full Member
Not that kind of doctor.
Not even the other kind, technically.
Posts: 720
inherit
Not that kind of doctor.
186408
0
Jul 7, 2015 11:21:48 GMT -8
Keith Rozett
Not even the other kind, technically.
720
November 2012
krozett
|
Post by Keith Rozett on Mar 28, 2013 12:59:27 GMT -8
I'm not sure exactly what you're asking. Do you want the total number of users matching the filter to be displayed? Or just available as a template variable?
|
|
inherit
16846
0
Nov 19, 2012 15:20:20 GMT -8
Chris
3,036
December 2003
cddude
|
Post by Chris on Mar 28, 2013 13:06:51 GMT -8
I'm not sure exactly what you're asking. Do you want the total number of users matching the filter to be displayed? Or just available as a template variable? Well, originally the request was to be a "solution" to the lack of users online counting. In this case, I'd like a template variable for the total users matching the current filter. It did just occur to me though that it'd require JS to update it given the dynamic page loading. So I guess its not quite as simple anymore.
|
|
Keith Rozett
Full Member
Not that kind of doctor.
Not even the other kind, technically.
Posts: 720
inherit
Not that kind of doctor.
186408
0
Jul 7, 2015 11:21:48 GMT -8
Keith Rozett
Not even the other kind, technically.
720
November 2012
krozett
|
Post by Keith Rozett on Mar 28, 2013 14:40:03 GMT -8
Unfortunately, we won't be able to implement the request for 'Read Count in thread list and thread pages'. If I understand your request, you want to get the number of views that each individual post has. However, this isn't information that we track i dont understand, i use a variable in the Thread List Template that doesnt work in the Post List Template that does count the number of views each thread has. and many other people use it too <h1 style="padding-left:100px;"><i>$[thread.subject] (Read $[thread.views] time{if $[thread.views] != 1}s{/if})</i></h1> i just want to put it next to the timestamp in the Post List Template the thread view count is right there in the titlebar thenotablenook.com/thread/24364and the thread view count is right there on every Thread List page Subject Created By Replies Views Last Post Okay, I've added a new variable called $[post.thread_views] that you can use anywhere you can use the post variable. There's a reason you can't access the $[thread] data directly in the Post List template, and it has to do with how we separate things in our system. But you can use that new variable now.
|
|
inherit
tunesrcoolii@gmail.com
86185
0
Oct 3, 2013 8:48:20 GMT -8
tunescool
4,399
August 2006
tunescool
|
Post by tunescool on Mar 28, 2013 15:03:36 GMT -8
thanks, its not gonna work immediately? i just put it in this span and it doesnt show up, from what you were saying, i can use it now, sounded to me like it would take affect
<span class="date">$[post.thread_views]$[post.date]</span>
|
|
inherit
16846
0
Nov 19, 2012 15:20:20 GMT -8
Chris
3,036
December 2003
cddude
|
Post by Chris on Mar 28, 2013 15:40:38 GMT -8
thanks, its not gonna work immediately? i just put it in this span and it doesnt show up, from what you were saying, i can use it now, sounded to me like it would take affect <span class="date">$[post.thread_views]$[post.date]</span> As stated earlier in the thread, it'll be live with the next code push. I believe he guessed this weekend, but no guarantee.
|
|
inherit
Graphics Ninja
3
0
Nov 19, 2012 12:17:26 GMT -8
Ryan Roos
Wordsmyth
35,133
November 2003
ryan
|
Post by Ryan Roos on Mar 29, 2013 6:26:42 GMT -8
Code pushes are roughly once a week tunescool, sometimes more. Please have some patience. We're still in Beta and not technically launched. So write your code now and if it's not breaking anything then in a week it will kick on. Or wait a week and then start implementing your changes. And be ready, post launch when we say we've added something, you will possibly have to wait until the v5.x update for it. That could be months depending on when you're asking. But the good news with that is there will be a changelog.
|
|