1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Question about a code

Discussion in 'BlackHat Lounge' started by PageMarketingSEO, Dec 9, 2015.

  1. PageMarketingSEO

    PageMarketingSEO Regular Member

    Joined:
    Jan 7, 2013
    Messages:
    489
    Likes Received:
    60
    Occupation:
    Computer engineer
    Location:
    Egypt
    Need quick check on some code that worked fine on my pc but when uploaded on hosting it doesn't work anymore.

    If you got SKYPE it would be awesome add me on "ikimoi".

    Otherwise if you can solve it here, this is the code

    Code:
    <script>
    $(document).ready(function(){ $().socialTrafficPop({
    timeout: 30,
    title: "Website.com/niche/",
    message: 'Niche Generator',
    google_url: "Website.com/niche/",
    fb_url: "Website.com/niche/",
    closeable: false,
    advancedClose: false,
    opacity: '0.45',
    twitter_method: "tweet",
    tweet_url: 'Website.com/niche/',
    tweet_text: 'Sweet! Ive just received my free Resource niche'
    });
    });
    </script>
    
    )
    What this code does is it pops a social box that closes after 30 seconds or when someone tweets/google+ the website. On the pc it works fine but when uploaded to hosting, the countdown doesn't work neither the icons of twitter/google+.

    There is another problem too with a button that should perform a java operation when clicked it doesn't do shit when uploaded.

    Thanks!
     
    Last edited: Dec 9, 2015
  2. Sherbert Hoover

    Sherbert Hoover Jr. Executive VIP Jr. VIP

    Joined:
    Dec 26, 2010
    Messages:
    999
    Likes Received:
    8,109
    Occupation:
    ORM - Branding - Content
    Location:
    United States
    Home Page:
    Fixed it for you:

    Code:
    <script>$(document).ready(function(){ $().socialTrafficPop({
    timeout: 30,
    title: "Website.com/niche/",
    message: 'Niche Generator',
    google_url: "Website.com/niche/",
    fb_url: "Website.com/niche/",
    closeable: false,
    advancedClose: false,
    
    opacity: '0.45',
    twitter_method: "tweet",
    tweet_url: 'Website.com/niche/',
    tweet_text: 'Sweet! Ive just received my free Resource niche'
    insert: Franklin_Hatchett_Method,
    });
    });
    </script>
     
    • Thanks Thanks x 1
  3. PageMarketingSEO

    PageMarketingSEO Regular Member

    Joined:
    Jan 7, 2013
    Messages:
    489
    Likes Received:
    60
    Occupation:
    Computer engineer
    Location:
    Egypt
    Does not work, the problem is not from the code probably as it worked on pc before uploading, it might be when calling for a javascript or something.
     
  4. Sherbert Hoover

    Sherbert Hoover Jr. Executive VIP Jr. VIP

    Joined:
    Dec 26, 2010
    Messages:
    999
    Likes Received:
    8,109
    Occupation:
    ORM - Branding - Content
    Location:
    United States
    Home Page:
    Now I feel bad man. I was just messing with you. Look closely at what I added.
     
  5. PageMarketingSEO

    PageMarketingSEO Regular Member

    Joined:
    Jan 7, 2013
    Messages:
    489
    Likes Received:
    60
    Occupation:
    Computer engineer
    Location:
    Egypt
    OH haha so you mean you added bullshit.. pfft man not gonna focus much on a joke now this is already getting me flippin.
    insert: Franklin_Hatchett_Method <<-- looks like the super addition from your side :D
     
  6. tb303

    tb303 Power Member

    Joined:
    Dec 18, 2011
    Messages:
    734
    Likes Received:
    388
    missing any javascript includes from the <head> part of the page? jsquery etc?
    also check you actually uploaded all the other js files it needs to the correct path on your hosting and that they are linked correctly in the html.

    sorry if thats too obvious but from you posting just that code thats what it reads like.
     
    • Thanks Thanks x 1
  7. PageMarketingSEO

    PageMarketingSEO Regular Member

    Joined:
    Jan 7, 2013
    Messages:
    489
    Likes Received:
    60
    Occupation:
    Computer engineer
    Location:
    Egypt
    I have no idea it seems some java stuff not working on page so a closer look from someone who knows a bit of code would define the problem.
     
  8. tb303

    tb303 Power Member

    Joined:
    Dec 18, 2011
    Messages:
    734
    Likes Received:
    388
    Pm me a link and ill take a look if youre still stuck.
     
  9. PageMarketingSEO

    PageMarketingSEO Regular Member

    Joined:
    Jan 7, 2013
    Messages:
    489
    Likes Received:
    60
    Occupation:
    Computer engineer
    Location:
    Egypt
    Thanks bro i figured one issue on my own, the other issue just got resolved afterwards.