Need a code

Boss Jr.

Addicted
Joined
Sep 14, 2008
Messages
944
Reaction score
0
FP$
707
Ok, I need a code that when I put it in someone's sig it counts every post after the code is placed.

And it has to be Javascript.

Edit: BTW I'm using invisionfree so that's what it has to be for.

Please help, and thank you in advance.
 
Is the code to be placed right after their registration? If you do it that way, all you'd have to do is reference the storage of the user post count.
 
No it is meant to be part of a larger code, but the majority of this project is top secret.

I still need this code, I will rep anybody who can get it for me!
 
well if you want to count something you're going to have to store the count somewhere, be it a database or text file.

you could use cookies but really wouldn't work as each user would have a different count on their system

there are methods to write to files using javascript but they're dodgy at best, not to mention a security fix and don't work across all browsers.

now if you want to count the posts a user has made since the code was inserted you'll have to put the code on the post page, not in their sig otherwise it woud be called everytime a view of the page was made.

this type of thing would be pretty easy if you weren't on a free host - couple of minutes to write a couple of lines of php or whatever
but on a free host, as you say, it needs to be javascript which cannot be done (well IMO)

you could use AJAX to store a count but that would mean storing a file on the server
 
Ok, I'll tell you what I can and i guess somebody will have to tell me if it's even possible......

What the whole code is, is a miniature member rank code, like awards that level themselves up as you post. The reason it has to be javascrip is because I want to host the code in ripway so that people can't cheat and effect their codes (y'know, via the <script> tags). That's why I need the counter, the other part of the code will refer to this code and when X number of posts are met it'll level up your reward.

So is it even possible?
 
Boss Jr. said:
Ok, I'll tell you what I can and i guess somebody will have to tell me if it's even possible......

What the whole code is, is a miniture member rank code, like awards that level themselves up as you post. The reason it has to be java is because I want to host the code in ripway so that people can't cheat and effect their codes (y'know, via the <script> tags). That's why I need the counter, the other part of the code will refer to this code and when X number of posts are met it'll level up your reward.

So is it even possible?
Unless I'm understanding you wrong, no this isn't possible with JavaScript, especially on a free host where you don't have access to the PHP files.
Java and JavaScript are two different things by the way. ~smile~
 
Oops, sorry *edited*

Could I do it in another code? And if so can I host it off site so that people don't try and cheat? If not no problem, I'll just make a rule "Anybody cought tampering with their code will get a warning increase!".

So is it just impossible in Javascript or could I still do this if I use a different code?
 
Back
Top Bottom