inherit
261409
0
Jun 30, 2020 12:50:37 GMT -8
hitmen33
2
June 2020
hitmen33
|
Post by hitmen33 on Jun 9, 2020 20:59:34 GMT -8
alert(pb.data("route").name); returns name of page alert(pb.size(pb.data("user"))); returns 16
What I am trying to do is get the information entered in location field under Profiles. I tried the following to no success. Perhaps I am missing something and a little kick start would help. I tried looking everywhere for an Object Model or same code to access this key... I stop guessing and asking for assistance. The Petes user guide to plugins has been great, but even it says there are other keys to explore, but dont know how. Tried to iterate over them but also failed.
alert(pb.data("user").location); returns Undefined
A full object model on user would be appreciative (JSON?) or just how to access this.
Thanks
Russell
|
|
inherit
257284
0
Nov 13, 2024 10:37:51 GMT -8
Eton Bones
70
December 2018
etonbones
|
Post by Eton Bones on Jun 10, 2020 8:27:57 GMT -8
console.log(pb.data.previewData ? pb.data.previewData() : proboards.dataHash) The above code typed into an immediate window/console would allow you to inspect all that is available.
I can't remember if location was ever included in the V5 dataHash but it does not appear to be there now so if you need it you would probably need to do it the old school way and harvest it from the mini-profiles if present.
|
|
inherit
261409
0
Jun 30, 2020 12:50:37 GMT -8
hitmen33
2
June 2020
hitmen33
|
Post by hitmen33 on Jun 30, 2020 8:26:14 GMT -8
Thank you that help me see what is available and can acess those listed in the Object I see in the console. What I am missing is the ability to extract my Email and the member's Email. Perhaps I am not approaching this correctly, but at least I am becoming familiar with how this works. What I am trying to do is get both emails as I shoot them from a UI I created to an external page where I have integrated a database as a backend. I want to be able to save transactions (basically) a swap site. When a proposed swap (or trade) I want to record it as well as shoot them an email alert. I can do this if I push this extended code to my external code base and then return them back to Proboards. I am doing this through a Plugin. Obviously, I like to think I could have done this through the object, but now I am left to "Scrape" the page. I am sure there is an easier way. Please advise...and thanks in advance
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Jul 2, 2020 1:04:43 GMT -8
Thank you that help me see what is available and can acess those listed in the Object I see in the console. What I am missing is the ability to extract my Email and the member's Email. Perhaps I am not approaching this correctly, but at least I am becoming familiar with how this works. What I am trying to do is get both emails as I shoot them from a UI I created to an external page where I have integrated a database as a backend. I want to be able to save transactions (basically) a swap site. When a proposed swap (or trade) I want to record it as well as shoot them an email alert. I can do this if I push this extended code to my external code base and then return them back to Proboards. I am doing this through a Plugin. Obviously, I like to think I could have done this through the object, but now I am left to "Scrape" the page. I am sure there is an easier way. Please advise...and thanks in advance Before we continue I would like you to review the Proboards Terms of Service to be sure you are not in violation in what you have just described above 19. PROHIBITED USES ProBoards imposes certain restrictions on Your use of the Website and the Services. You represent and warrant that you will not: (a) "stalk" or otherwise harass any person, or contact any person who has requested not to be contacted; (b) provide false, misleading or inaccurate information to ProBoards or any other member; (c) impersonate, or otherwise misrepresent affiliation, connection or association with, any person or entity; (d) while, using the Website and Services, use "ad blocking" software or similar built-in web browser options designed to hide, block or prevent the proper display of online advertising; (e) modify or change the placement and location of any advertisement appearing on the Website; (f) harvest or otherwise collect information about ProBoards users, including email addresses and phone numbers; (g) use or attempt to use any engine, software, tool, agent, or other device or mechanism (including without limitation browsers, spiders, robots, avatars, or intelligent agents) to harvest or otherwise collect information from the Website for any use, including without limitation use on third-party websites; (h) access content or data not intended for You, or log onto a server or account that You are not authorized to access; (i) attempt to probe, scan, or test the vulnerability of the Services, the Website, or any associated system or network, or breach security or authentication measures without proper authorization; (j) interfere or attempt to interfere with the use of the Website or Services by any other user, host or network, including, without limitation by means of submitting a virus, overloading, "flooding" "spamming," "mail bombing," or "crashing"; (k) use the Website or Services to send unsolicited e-mail, including without limitation promotions or advertisements for products or services; (l) forge any TCP/IP packet header or any part of the header information in any e-mail or in any uploading or posting to, or transmission, display, performance or distribution by means of, the Website or Services; or (m) attempt to modify, reverse-engineer, decompile, disassemble or otherwise reduce or attempt to reduce to a human-perceivable form any of the source code used by the ProBoards Parties in providing the Website or Services. Any violation of this section may subject You to civil and/or criminal liability.
|
|