IMVU Filter - guest only code

Don Von Alpha Dom
by Don Von Alpha Dom · 27 posts
16 years ago in General
Posted 16 years ago
whos pikachu??
Posted 16 years ago
wahhh!!! NOAGH!!!
Crapman Then De1043 Then Cobra Then Pikachu Then Soon to Be called IMVUSANTA
Posted 14 years ago
I was reading IMVU codes and I found some other interesting elements apart from mininav-avname, like credits_real_value and credits_promo_value

Could they be used for the filter script? My idea is that people needs credits when they don't have a lot...
Posted 14 years ago
DaGal wrote:
I was reading IMVU codes and I found some other interesting elements apart from mininav-avname, like credits_real_value and credits_promo_value

Could they be used for the filter script? My idea is that people needs credits when they don't have a lot...

...I don't follow 8-[
Posted 14 years ago
I've tried with this noob custom code, but for some reason it doesn't work... there's no action from if or else.

Code
<script language="javascript" type="text/javascript">
if document.getElementById("credits_real_value") == 0 && Promo=document.getElementById("credits_promo_value") < 500) {
document.write("Enter HTML");
}
else {
document.write("Doesn't work!");
}
</script
Posted 14 years ago · Author
Code
<script language="javascript" type="text/javascript"> 
if(document.getElementById.credits_real_value == 0 && document.getElementById.credits_promo_value < 500) {
document.write("Enter HTML");
}
else {
document.write("Doesn't work!");
}
</script>


Try This ^^
Your if statment was missing an opening parenthasie to hold the parameters.
Posted 14 years ago
Err... it happens when I'm trying to code at 7 AM and I continuously edit it -.-"

I'm going to check if it works
Posted 14 years ago
Almost got it. Reading codes from this topic I found that it's needed to add "innerHTML" at the end of a element definition statement.

<script language="javascript" type="text/javascript">
var Credits=document.getElementById('credits_real_value').innerHTML;
var Predits=document.getElementById('credits_promo_value').innerHTML;

if(Credits == 0 && Predits < 500) {
document.write("Enter HTML");
}
else {
document.write("Doesn't work!");
}
</script>


This code *ALMOST* works. However, credits and predits variables are stored as strings. In the test account I use, I've got 2,050 predits, so I modify the script for setting the limit at 3000. The output was still "Doesn't work". After trying a document.write(Predits), it gave me 2,050. A string.

Is there a way to make it see as an integrer? Even with comma it would still be useful...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Sign in

Already have an account? Sign in here

SIGN IN NOW

Create an account

Sign up for a new account in our community. It's easy!

REGISTER A NEW ACCOUNT