inherit
204284
0
Jan 4, 2015 12:48:19 GMT -8
NooBoards
29
January 2014
nooboards
|
Post by NooBoards on Feb 2, 2014 5:43:41 GMT -8
I have an announcements forum in which every thread includes an event. I would like for those threads that are linked to events that have already transpired to receive a Red "Expired" label. Ideally the effect would occur on every instance of event linked threads regardless of the forum they appear in.
It seems a simple idea but I don't even know where to start on plugin builder.
|
|
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 Feb 2, 2014 21:41:09 GMT -8
It doesnt look like event data is tied to the thread outside of being IN the thread itself. I would suggest asking on support for event data to be added to proboards.data('proboards.thread') so it can be accessed by plugins outside of the thread itself.
|
|
inherit
204284
0
Jan 4, 2015 12:48:19 GMT -8
NooBoards
29
January 2014
nooboards
|
Post by NooBoards on Feb 3, 2014 5:51:10 GMT -8
Yeah, I'm just getting my head around this stuff. I just figured out yesterday that a plugin is just packaged Header/Footer/JS/CSS code that could otherwise be manually inserted into the admin areas which is simple enough. And I've been studying the proboards.data object but I've not found a means to discover the entirely of it. console.log(proboards.data) just displays a function, is there a map of all of the array headings anywhere?
|
|
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 Feb 3, 2014 8:07:30 GMT -8
proboards.dataHash
but its not in there either. you will have to request that get added. Tim is pretty open to ideas though, so you have a good chance.
|
|
inherit
204284
0
Jan 4, 2015 12:48:19 GMT -8
NooBoards
29
January 2014
nooboards
|
Post by NooBoards on Feb 3, 2014 19:53:21 GMT -8
range_string appears to contain the necessary data. Start and end are the same for regular threads. threads with calendar dates have a different start and end related to the calendar entry. parsing it consistently is another issue...
|
|
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 Feb 3, 2014 21:25:07 GMT -8
inside the thread sure, but I was interpreting the request as being able to label the event from the thread listing page?
|
|
inherit
204284
0
Jan 4, 2015 12:48:19 GMT -8
NooBoards
29
January 2014
nooboards
|
Post by NooBoards on Feb 4, 2014 3:51:23 GMT -8
Right, it was late and I got excited.
|
|