First, you need to generate your image codes on https://testcounter.ironblockhd.repl.co.
You can embed the first image where you want to show the count. The second image is invisible, rendering it will increment the total count.
I just used it on my post ;)
What dude this is insane! How'd you make it?
@DynamicSquid Thanks! i used replits new database and made a simple http server that sends server-generated svg images
@ironblockhd oh I see, that's cool! for an update, could you make it so that only one user can view it one time?
A lot of people have third party cookies deactivated and google chrome plans to disable it by default, so it wouldn't really be worth it
haha someone botted the views
This is really cool ironblock!
how do you use it
Embed both codes it gives you, for replit posts etc select markdown and for websites select html
so i need to copy and paste the code @ironblockhd
ok thx @ironblockhd
@Leroy01010 np, sorry for understanding the question wrong at first
it's ok @ironblockhd
So how does this work?
@JosephSanthosh i used replitDB to storage the counts and have a simple server set up that sends dynamically generated svg images. When you embed the image that it gives you it will display the count
@ironblockhd Oh Ok. So I just embed the image in the code?
@ironblockhd Did you write all the code in here? How would I have to add this in my code, do I copy each file seperately?
Yes, both seperatly
for some reason it doesnt work on my post, https://repl.it/talk/share/A-blog/49129
You need to add a image for both links, you also need to add [loading..](https://testcounter.ironblockhd.repl.co/c/65ca4caa5a46)
@ironblockhd I might need you to help me a bit, the counter works, but can you add repl sign-in to my program?
Here's a tutorial for python: https://repl.it/talk/learn/Authenticating-users-with-Replit-Auth/23460
https://testcounter.ironblockhd.repl.co/c/bdf19bd38de
its broken it doesnt show views
@Code1Tech thats the link that adds to the count when you render it, here's the link your searching: https://testcounter.ironblockhd.repl.co/v/bdf19bd38de
cool!
This is awesome! I can add it to my projects!
Style the counter, needs more work.
Someone botted it lol
Someone spammed views lololol
Oh wow!
actually wait no that's a stupid question sorry
Does this work for comments?
Epic!
This is very neat!
Does anyone else see this error?
TypeError [ERR_INVALID_URL]: Invalid URL: undefined/views
at onParseError (internal/url.js:257:9)
at new URL (internal/url.js:333:5)
at request (https.js:287:30)
at Object.get (https.js:318:15) at req (/home/runner/databaseTempSync.js:4:10)
at Object.<anonymous> (/home/runner/databaseTempSync.js:14:3) at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14) {
input: 'undefined/views',
code: 'ERR_INVALID_URL'
}
Noooo not the undefined database bug again :( i already made a post on https://repl.it/bugs/p/database-url-returns-undefined but now i think i know the issue
Works again now for some reason lol
I totally didn't just bot it. LOL!
Hehe you only have to bot the /c/ one
@ironblockhd Yeah. I know, but I still botted it...
@ironblockhd Congratulations on 5092 views by the way! LOL!
Nice haha
@AmazingMech2418 SO MECH Where ARE YOU
@HahaYes In the repl. LOL! https://repl.it/@AmazingSquidYes/AdaptX#main.cpp