SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Member
    Join Date
    Feb 2005
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Dumpalink's AdultFriendFinder Script

    Hello, I'm not sure where on Sitepoint to ask this, so I'll ask it here.

    Dumpalink.com uses a script to generate fake pictures of girls in place of the ones that AdultFriendFinder would automatically show. You can see how it's done in the source code at this page: http://aff2.dumpalink.com/dal/aff-h-4.html

    Does anyone know if that script is available, or if not and you know how to do it, PM me and perhaps we can work something out.

    Thanks.

  2. #2
    SitePoint Member
    Join Date
    Oct 2001
    Location
    Chicago
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Check out axelsfun.com. They provide the same service, easy to use and very cheap.
    Read my latest traffic report here!
    http://www.easysitenetwork.com/reviv...riment-part-3/

  3. #3
    SitePoint Member
    Join Date
    Feb 2005
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actually, I do use axelsfun.com currently, but I'd like to choose my own pictures like Dumpalink, Drunken Cat, etc.

    Anyone know how it's done?

  4. #4
    SitePoint Zealot allstar's Avatar
    Join Date
    Sep 2005
    Location
    in my box.
    Posts
    125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's a javascript trick. After the page loads javascript replaces the <img src=""> part with images of it's own. I right clicked and viewed source on that page and found this.

    Code:
    				 <script> 
                        /* 
                        ###################### 
                        # Replace AFF images # 
                        ###################### 
                        */ 
     
                        // custom settings 
                        // =============== 
                        // image directory: 
                        var _imgdir = "http://aff2.dumpalink.com/img2/"; 
                        // =============== 
                        // number of images in the image directory: 
                        var _imgcount = 70; 
                        // =============== 
                        // image size: 
                        var _imgwidth = "100px"; 
                        var _imgheight = "100px"; 
                        // =============== 
                        // age range: 
                        var _minage = 18; 
                        var _maxage = 30; 
                        // =============== 
     
                        var _imgnumber = null; 
                        var _unique = null; 
                        var _done = null; 
                        var _imgused = new Array(); 
                        var _banner = document.getElementById("affban"); 
                        var _images = _banner.getElementsByTagName("img"); 
                        var _agespans = _banner.getElementsByTagName("span"); 
     
                        for (var i=0; i<_images.length; i++) 
                        { 
                             if (_images[i].src.indexOf("spacer.gif") == -1) 
                             { 
                                  _done = false; 
                                  while (!_done) 
                                  { 
                                       _unique = true; 
                                       _imgnumber = Math.floor(Math.random()*_imgcount) + 1; 
                                       for (var j=0; j<_imgused.length; j++) 
                                       { 
                                            if (_imgnumber == _imgused[j]) 
                                            { 
                                                 _unique = false; 
                                            } 
                                       } 
     
                                       if (_unique) 
                                       { 
                                            _imgused[_imgused.length] = _imgnumber; 
                                            _images[i].src = _imgdir + "img (" + _imgnumber + "\).jpg"; 
                                            _images[i].style.width = _imgwidth; 
                                            _images[i].style.height = _imgheight; 
                                            _images[i].style.display = "block"; 
                                            _done = true; 
                                       } 
                                  } 
                             } 
                        } 
     
                        var _agedone = false; 
                        var _age = 0; 
     
                        for (var i=0; i<_agespans.length; i++) 
                        { 
                             if (_agespans[i].className == "age_gender") 
                             { 
                                  _agedone = false; 
                                  _age = 0; 
                                   
                                  while (!_agedone) 
                                  { 
                                       _age = Math.floor(Math.random()*_maxage) + 1; 
                                       if (_age >= _minage) 
                                       { 
                                            _agespans[i].innerHTML = _age + "/F"; 
                                            _agedone = true; 
                                       } 
                                  } 
                             } 
                        } 
                   </script>

  5. #5
    SitePoint Member
    Join Date
    Feb 2005
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, I saw that as well. Now if I could only figure out how to do it...if anyone knows, let me know. I'm willing to pay for this. Of course a nice, helpful person telling me for free is preferred.

  6. #6
    SitePoint Member toxicfusion's Avatar
    Join Date
    Aug 2005
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    have you found out how dumpalink do it ORT SEO?

  7. #7
    SitePoint Wizard wide's Avatar
    Join Date
    Apr 2004
    Location
    Denmark
    Posts
    1,215
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Contact AFF and they will provide you with everything you need.
    ...

  8. #8
    SitePoint Member
    Join Date
    Dec 2006
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Contacted AFF and they do not give support on this.

    Has anyone seen a tutorial on how to do this? Seems like every site I see is using this methoid of advertising but all seem to be more script literate than I am

    Thanks..


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •