inherit
259017
0
Sept 25, 2021 1:54:15 GMT -8
CrazyBoy
Web developer.
968
July 2019
crazyboy
|
Post by CrazyBoy on Oct 13, 2019 5:25:05 GMT -8
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,781
January 2015
msg
|
Post by Lynx on Oct 13, 2019 10:08:06 GMT -8
|
|
inherit
259017
0
Sept 25, 2021 1:54:15 GMT -8
CrazyBoy
Web developer.
968
July 2019
crazyboy
|
Post by CrazyBoy on Oct 13, 2019 10:10:34 GMT -8
Hi Lynx, I have a phone,i have done from the code in a friend PC,SO i couldn't download it i know that i need to use a post key,but the 'key' and the note are in case for me
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,781
January 2015
msg
|
Post by Lynx on Oct 13, 2019 10:16:22 GMT -8
Hi Lynx, I have a phone,i have done from the code in a friend PC,SO i couldn't download it i know that i need to use a post key,but the 'key' and the note are in case for me 'Key' is just the name of your key. Example: In the Scavenger Hunt plugin, the User Key's name is sh_obj_amount. Just make it unique. 'Note' is just that - a note to yourself for what the key is for. That's an optional field, so you don't need to put anything in there if you don't want to. EDIT: Scavenger Hunt keys: - sh_alerts_config - this is for the prize indicator - sh_obj_amount - this is for the user's personal count - sh_leaderboard - this is for the leaderboard
|
|
inherit
259017
0
Sept 25, 2021 1:54:15 GMT -8
CrazyBoy
Web developer.
968
July 2019
crazyboy
|
Post by CrazyBoy on Oct 13, 2019 10:25:03 GMT -8
Hi Lynx , I have a phone,i have done from the code in a friend PC,SO i couldn't download it i know that i need to use a post key,but the 'key' and the note are in case for me 'Key' is just the name of your key. Example: In the Scavenger Hunt plugin, the User Key's name is sh_obj_amount. Just make it unique. 'Note' is just that - a note to yourself for what the key is for. That's an optional field, so you don't need to put anything in there if you don't want to. EDIT: Scavenger Hunt keys: - sh_alerts_config - this is for the prize indicator - sh_obj_amount - this is for the user's personal count - sh_leaderboard - this is for the leaderboard thank's, in js component: "proboards.plugin.key("hidden").get (e) == 2) { is this the key i may use?(hidden)
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,781
January 2015
msg
|
Post by Lynx on Oct 13, 2019 10:31:28 GMT -8
'Key' is just the name of your key. Example: In the Scavenger Hunt plugin, the User Key's name is sh_obj_amount. Just make it unique. 'Note' is just that - a note to yourself for what the key is for. That's an optional field, so you don't need to put anything in there if you don't want to. EDIT: Scavenger Hunt keys: - sh_alerts_config - this is for the prize indicator - sh_obj_amount - this is for the user's personal count - sh_leaderboard - this is for the leaderboard thank's, in js component: "proboards.plugin.key("hidden").get (e) == 2) { is this the key i may use?(hidden) Personally, I'd use a key with the name of post_hidden - so I know exactly what that key is for - but that's just my personal preference. Use what you want to use - just keep it unique. Another method could use a key name of cb_post_hidden where the 'cb' part is taken from your username: crazy boy - that can help to keep it unique as well. I tend to put msg_ as part of my plugin's ID.
|
|
inherit
259017
0
Sept 25, 2021 1:54:15 GMT -8
CrazyBoy
Web developer.
968
July 2019
crazyboy
|
Post by CrazyBoy on Oct 13, 2019 10:39:50 GMT -8
thank's Lynxbut i can't do that plugin
|
|
inherit
259017
0
Sept 25, 2021 1:54:15 GMT -8
CrazyBoy
Web developer.
968
July 2019
crazyboy
|
Post by CrazyBoy on Oct 18, 2019 12:07:23 GMT -8
I don't want to give up and i want re-write this plugin! so Lynx,can you tell me why this?
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,781
January 2015
msg
|
Post by Lynx on Oct 18, 2019 22:19:36 GMT -8
The only thing I can think of, is are you testing for the key first? Also, this line: proboards.plugin.key("hidden").get (e) == 2) {
is that part of an if statement? Exactly what values can that key hold? I see you're comparing it to a 2 - what's the 2 stand for? Is it basically looking for a true/false to see if a post is hidden or not? Hard to decipher with just the image, CrazyBoy. What's your code look like? Keep in mind that a key can't 'get' anything if nothing's been 'set' first.
|
|
inherit
259017
0
Sept 25, 2021 1:54:15 GMT -8
CrazyBoy
Web developer.
968
July 2019
crazyboy
|
Post by CrazyBoy on Oct 19, 2019 10:36:08 GMT -8
yes Lynx it's on an if statement but the code i took it from the github ! so the key already coded,i have to delete the propoards...key... ? and code it again?
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,781
January 2015
msg
|
Post by Lynx on Oct 19, 2019 13:22:32 GMT -8
CrazyBoy,
Notice the difference betweenthese 2 lines (disregarding the plugin key name):
proboards.plugin.get("mod_hide_action").settings.showStubs
proboards.plugin.key("hidden").get (e) == 2)
Notice that the plugin key name comes in the parenthesis after the get. Your code line has it coming after the word key. I haven't worked with keys much, which is probably why I didn't notice that before.EDIT: This post is in error. Please ignore.
|
|
inherit
259017
0
Sept 25, 2021 1:54:15 GMT -8
CrazyBoy
Web developer.
968
July 2019
crazyboy
|
Post by CrazyBoy on Oct 19, 2019 13:27:31 GMT -8
Lynx you mean it should be proboards.plugin('hidden').key.get ? not proboards.plugin.key('hidden').get ?
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,781
January 2015
msg
|
Post by Lynx on Oct 19, 2019 13:32:13 GMT -8
Lynx you mean it should be proboards.plugin('hidden').key.get ? not proboards.plugin.key('hidden').get ? Nevermind - my bad. I was looking at the wrong section of code on my last post. So, back to an earlier post of mine then - I'm sorry, but I don't know why you're getting that error. Maybe Chris, Todge or Peter knows.
|
|
inherit
259017
0
Sept 25, 2021 1:54:15 GMT -8
CrazyBoy
Web developer.
968
July 2019
crazyboy
|
Post by CrazyBoy on Oct 19, 2019 13:32:59 GMT -8
ok,i think that this is the important question Lynxin the if statement you said i'll find the variables for the settings,so in the variables am i able to write userCanHide ?
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Oct 22, 2019 6:18:56 GMT -8
Am struggling to follow this thread. I would like to guide you so let us start from the beginning.
It looks like you want to re-write or modify an open source plugin that you linked in your first post that is on GitHub.
What are you trying to do?
Are you trying to add a feature? Are you trying to fix something?
|
|