Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » [v0.4.1] [v0.5.0 coming soon] [NEVER! Porting to NextJS (too hard)] MyScratchPage
- MagicCrayon9342
- Scratcher
1000+ posts
[v0.4.1] [v0.5.0 coming soon] [NEVER! Porting to NextJS (too hard)] MyScratchPage
- MagicCrayon9342
- Scratcher
1000+ posts
[v0.4.1] [v0.5.0 coming soon] [NEVER! Porting to NextJS (too hard)] MyScratchPage
- MagicCrayon9342
- Scratcher
1000+ posts
[v0.4.1] [v0.5.0 coming soon] [NEVER! Porting to NextJS (too hard)] MyScratchPage
- MagicCrayon9342
- Scratcher
1000+ posts
[v0.4.1] [v0.5.0 coming soon] [NEVER! Porting to NextJS (too hard)] MyScratchPage
What features would you like to see? Make suggestions @ https://github.com/JaydenDev/MyScratchPage/issues
(If your suggestion involves an API, please put a working fetch() function into the issue report so that the feature can be implemented more quickly
(If your suggestion involves an API, please put a working fetch() function into the issue report so that the feature can be implemented more quickly
- LegoManiac04
- Scratcher
1000+ posts
[v0.4.1] [v0.5.0 coming soon] [NEVER! Porting to NextJS (too hard)] MyScratchPage
Get the user ID from ScratchDB and then do How would I obtain the URL of a users profile picture, and display it.
"https://uploads.scratch.mit.edu/get_image/user/“ + id + ”_60x60.png"
- NFlex23
- Scratcher
1000+ posts
[v0.4.1] [v0.5.0 coming soon] [NEVER! Porting to NextJS (too hard)] MyScratchPage
This is kind-of similar to Scratch Profiler.
Help improve the Advanced Topics (Really!)
Before you create a topic:
Always search for duplicates or other similar topics before making an umbrella topic, e.g., “The Mac Topic”.
- Is it about something you are planning on making but haven't made yet? If so, please wait to post until you have created a working prototype. This is a key factor to keeping the ATs as clean as possible.
- The ATs aren't technical support. It is perfectly valid to ask questions about things related to programming, but not issues with external websites, apps, or devices. Most sites have their own support system; try asking there!
- Is it related to something you are making in Scratch? (This includes OSes and other Scratch projects) If so, please post in Collaboration, Show and Tell, or another similar forum.
- Is your topic questionably “advanced”? Try browsing the other forums to see if your topic fits better in one of those.
- Issues with Scratch itself should be put in Bugs and Glitches.
- MagicCrayon9342
- Scratcher
1000+ posts
[v0.4.1] [v0.5.0 coming soon] [NEVER! Porting to NextJS (too hard)] MyScratchPage
(#27)Yeah, just worse. Since I suck at UI design.
This is kind-of similar to Scratch Profiler.
- MagicCrayon9342
- Scratcher
1000+ posts
[v0.4.1] [v0.5.0 coming soon] [NEVER! Porting to NextJS (too hard)] MyScratchPage
- Chiroyce
- Scratcher
1000+ posts
[v0.4.1] [v0.5.0 coming soon] [NEVER! Porting to NextJS (too hard)] MyScratchPage
try doing this Doesn't work
const id = data.id;
Last edited by Chiroyce (March 27, 2022 15:57:53)
April Fools' topics:
— New Buildings in Scratch's headquarters
— Give every Scratcher an M1 MacBook Air
— Scratch should let users edit other Scratchers' projects
— Make a statue for Jeffalo
— Scratch Tech Tips™
— Make a Chiroyce statue emoji
<img src=“x” onerror=“alert('XSS vulnerability discovered')”>
this is a test sentence
- MagicCrayon9342
- Scratcher
1000+ posts
[v0.4.1] [v0.5.0 coming soon] [NEVER! Porting to NextJS (too hard)] MyScratchPage
(#30)nopetry doing this Doesn't workconst id = data.id;
- kccuber
- Scratcher
1000+ posts
[v0.4.1] [v0.5.0 coming soon] [NEVER! Porting to NextJS (too hard)] MyScratchPage
that's probably copilot's fault if you let copilot write thatDoesn't workfetch('https://my-ocular.jeffalo.net/api/user/' + input) .then(res => res.json()) .then(data => { // grab "id" from the data const { id } = data; const img = "https://uploads.scratch.mit.edu/get_image/user/" + id + "_60x60.png"; $('#pfp').attr('src', img); });
Last edited by kccuber (March 27, 2022 16:21:20)
- MagicCrayon9342
- Scratcher
1000+ posts
[v0.4.1] [v0.5.0 coming soon] [NEVER! Porting to NextJS (too hard)] MyScratchPage
(#32)I tried myself and with copilot, fetch() is my weaknessthat's probably copilot's fault if you let copilot write thatDoesn't workfetch('https://my-ocular.jeffalo.net/api/user/' + input) .then(res => res.json()) .then(data => { // grab "id" from the data const { id } = data; const img = "https://uploads.scratch.mit.edu/get_image/user/" + id + "_60x60.png"; $('#pfp').attr('src', img); });
- Chiroyce
- Scratcher
1000+ posts
[v0.4.1] [v0.5.0 coming soon] [NEVER! Porting to NextJS (too hard)] MyScratchPage
removed
Last edited by Chiroyce (March 27, 2022 16:25:48)
April Fools' topics:
— New Buildings in Scratch's headquarters
— Give every Scratcher an M1 MacBook Air
— Scratch should let users edit other Scratchers' projects
— Make a statue for Jeffalo
— Scratch Tech Tips™
— Make a Chiroyce statue emoji
<img src=“x” onerror=“alert('XSS vulnerability discovered')”>
this is a test sentence
- Chiroyce
- Scratcher
1000+ posts
[v0.4.1] [v0.5.0 coming soon] [NEVER! Porting to NextJS (too hard)] MyScratchPage
try this, and check the console
fetch('https://my-ocular.jeffalo.net/api/user/' + input) .then(res => res.json()) .then(data => { console.log(`Fetching ${input}'s my-ocular data...`); console.log(`Got ${input}'s data - ${data}`); let id = data.id; const img = "https://uploads.scratch.mit.edu/get_image/user/" + id + "_60x60.png"; $('#pfp').attr('src', img); });
April Fools' topics:
— New Buildings in Scratch's headquarters
— Give every Scratcher an M1 MacBook Air
— Scratch should let users edit other Scratchers' projects
— Make a statue for Jeffalo
— Scratch Tech Tips™
— Make a Chiroyce statue emoji
<img src=“x” onerror=“alert('XSS vulnerability discovered')”>
this is a test sentence
- Chiroyce
- Scratcher
1000+ posts
[v0.4.1] [v0.5.0 coming soon] [NEVER! Porting to NextJS (too hard)] MyScratchPage
https://stackoverflow.com/questions/22665232/what-can-cause-chrome-to-give-an-neterr-failed-on-cached-content-against-a-ser
https://www.google.com/search?q=net%3A%3AERR_FAILED
can you try stepping through every line of code via the chrome debugger?
Last edited by Chiroyce (March 28, 2022 02:39:42)
April Fools' topics:
— New Buildings in Scratch's headquarters
— Give every Scratcher an M1 MacBook Air
— Scratch should let users edit other Scratchers' projects
— Make a statue for Jeffalo
— Scratch Tech Tips™
— Make a Chiroyce statue emoji
<img src=“x” onerror=“alert('XSS vulnerability discovered')”>
this is a test sentence
- Chiroyce
- Scratcher
1000+ posts
[v0.4.1] [v0.5.0 coming soon] [NEVER! Porting to NextJS (too hard)] MyScratchPage
this works for me (Firefox)
fetch('https://my-ocular.jeffalo.net/api/user/' + input) .then(res => res.json()) .then(data => { console.log(`Fetching ${input}'s my-ocular data...`); console.log(data); console.log(data._id); });
April Fools' topics:
— New Buildings in Scratch's headquarters
— Give every Scratcher an M1 MacBook Air
— Scratch should let users edit other Scratchers' projects
— Make a statue for Jeffalo
— Scratch Tech Tips™
— Make a Chiroyce statue emoji
<img src=“x” onerror=“alert('XSS vulnerability discovered')”>
this is a test sentence
- mbrick2
- Scratcher
1000+ posts
[v0.4.1] [v0.5.0 coming soon] [NEVER! Porting to NextJS (too hard)] MyScratchPage
It says enter text here not enter username here
My Forums
ATs
Collabaration
My collabs
AIPoint
AspectOS
CoreOS
OddyseyOS
Cops and Robbers
#BringBackManagerRights
#ReturnRightsToManagers
#WeAreForManagerRights
#LetsRemindAboutMangers
#WeAreMangers
#MangersMustManage
The road to 1000 posts!
0 ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ 1000
80% complete
Banner Made By @Abcde26
Card Made By @Polygon
Card Made By @Polygon
- MagicCrayon9342
- Scratcher
1000+ posts
[v0.4.1] [v0.5.0 coming soon] [NEVER! Porting to NextJS (too hard)] MyScratchPage
Can someone inspect the source as find out why https://jaydendev.github.io/MyScratchPage?user=MagicCrayon9342 doesn't work
- Discussion Forums
- » Advanced Topics
- » [v0.4.1] [v0.5.0 coming soon] [NEVER! Porting to NextJS (too hard)] MyScratchPage