IMVU Filter - guest only code

Don Von Alpha Dom
by Don Von Alpha Dom · 27 posts
16 years ago in General
Posted 15 years ago
whos pikachu??
Posted 15 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
Select a forum Protection     Help & Support     Introductions     Mafia News     IMVU News General Discussion     IMVU Lounge        IMVU Series / Roleplaying        Social Games     Mafia Market     Mafia Tools        Premium IMVU Tools        Off Topic Tools     Off Topic     Contests Creator Corner     Graphics Design        Photoshop        GIMP     Basic Creator Help     Catalog And Product Showcase     3D Meshing        3Ds Max        Sketchup        Blender Gangsters with Connections     White Hat Activities        Google Hacking        Trackers Programming Corner     Coding        Python        .Net (C#, VB, etc)        Flash        JAVA        Autoit        Batch        HTML & CSS        Javascript        PHP        Other        IMVU Homepage Codes           General           About me Panel           Messages Panel           Special Someone Panel           Visitors Panel           New Products Panel           Rankings Panel           Wishlist Panel           My Badges Panel           Outfits Panel           Url Panel           Groups Panel           Slideshow Panel           My Room Panel           Sandbox panel           Layouts     Help & Requests Free Credits     Approved Methods     Submit Methods Free Money     Approved Methods     Submit Methods Adult Corner     Get Mafia AP Here     AP Lounge        AP Social Games        Casual Dating Tips     IMVU Slave Market & Escorts