Redirect Page On Badge Granting

Don Von Alpha Dom
by Don Von Alpha Dom · 2 posts
11 years ago in My Badges Panel
Posted 11 years ago · Author
This code stops badge autogranting and instead when someone tries to get your badge, sends them to a page. Many devs are using this to redirect people to a product page where they promise to give you the badge if you buy their product.

Code
<script type="text/javascript">
$(document).ready(function() {
var myIMVUID = 25522141;   // this is mine, substitute your own
var productID = 13850517;  // used to redirect to a product page
var badgeNumbers = [1,2,3,4]; // if you only have one badge, use [1]
for (var i in badgeNumbers) {
   YAHOO.util.Event.removeListener('grant-badge-' + myIMVUID + '-' + badgeNumbers[i], 'click');
   YAHOO.util.Event.addListener('grant-badge-' + myIMVUID + '-' + badgeNumbers[i], 'click', function() {
      window.open("http://www.imvu.com/shop/product.php?products_id=" + productID, "_blank");
   });
}
});
</script>
Posted 4 years ago
thank you so much for this. I've been getting so sick and tired of people going and autogranting al of my badges. They steal my ideas and it gets very annoying because I put all of my hard work, time and effort into building and good badge for myself and to sell to others and for people to just go and steal that, is unreal. Thank you for this code i hope that it will help a lot with the problem that i'm having right now. All of these codes that you are mentioning are great codes and very useful and hopeful. Great work!

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