Results 1 to 10 of 10

URLs preventing the niftycubes from working

This is a discussion on URLs preventing the niftycubes from working within the General Discussion forums, part of the vBSEO SEO Plugin category; When I have the URL rewriting working, I can't seem to get niftycubes working. If you go to AdminFuel The ...

  1. #1
    Member
    Real Name
    Prateek
    Join Date
    May 2008
    Posts
    31
    Liked
    0 times

    URLs preventing the niftycubes from working

    When I have the URL rewriting working, I can't seem to get niftycubes working.

    If you go to AdminFuel

    The left hand sidebar has divs that haven't been rounded. I don't know what is happening. I have this is the header:

    Code:
    <script type="text/javascript" src="http://www.adminfuel.com/niftycube.js"></script> 
    <script type="text/javascript">
    window.onload=function(){
    Nifty("div#box_portal","big fixed height transparent");
    Nifty("div#content_portal","big fixed height transparent");
    Nifty("div#box2_portal","big fixed height transparent");
    Nifty("div#content2_portal,div#content3_portal","big fixed height transparent");
    Nifty("div#box_navi,div#side_nav","big fixed height transparent");
    Nifty("div#box_search,div#side_search","big fixed height transparent");
    Nifty("div#side_poll","big fixed height transparent");
    Nifty("div#side_threads","big fixed height transparent");
    }
    </script>
    In the Niftycube.js file, this is used:

    Code:
    function AddCss(){
    niftyCss=true;
    var l=CreateEl("link");
    l.setAttribute("type","text/css");
    l.setAttribute("rel","stylesheet");
    l.setAttribute("href","http://www.adminfuel.com/niftyCorners.css");
    l.setAttribute("media","screen");
    document.getElementsByTagName("head")[0].appendChild(l);
    }
    And add CSS to the head and this gets the curves of the cube done. But it won't add this line to the head. Why?

  2. #2
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    you're loading this twice:

    Code:
    <script type="text/javascript" src="niftycube.js"></script> 
    <script type="text/javascript">
    window.onload=function(){
    Nifty("div#box_portal","big fixed height transparent");
    Nifty("div#content_portal","big fixed height transparent");
    Nifty("div#box2_portal","big fixed height transparent");
    Nifty("div#content2_portal,div#content3_portal","big fixed height transparent");
    Nifty("div#box_navi,div#side_nav","big fixed height transparent");
    Nifty("div#box_search,div#side_search","big fixed height transparent");
    Nifty("div#side_poll","big fixed height transparent");
    }
    </script>
    once, after the title,
    once, after analytics (which also shouldn't be up top in source anyway...)


    in a generated source view, i do see the niftycorners css being added.

    my guess is the double script is causing issues.

  3. #3
    Member
    Real Name
    Prateek
    Join Date
    May 2008
    Posts
    31
    Liked
    0 times
    I don't know how it is adding it twice. I only have it in the headinclude file and nowhere else.

  4. #4
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    grab the web developer tool bar for firefox (google chris pederick) and load your page, then the view -> generated source option to see it.

  5. #5
    Member
    Real Name
    Prateek
    Join Date
    May 2008
    Posts
    31
    Liked
    0 times
    I only see it appearing once below the google analytics page.

    And, btw, how can I move the google analytics code up like you said?

  6. #6
    Member
    Real Name
    Prateek
    Join Date
    May 2008
    Posts
    31
    Liked
    0 times
    Any help?

  7. #7
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    22,367
    Liked
    542 times
    Blog Entries
    4
    Google analytics code is added via vBSEO.

    However you can do the following , create a plugin with execution number 25
    hook location : global_complete
    PHP Code:
    $output str_replace('</body>''
    <script type="text/javascript" src="http://www.adminfuel.com/niftycube.js"></script> 
    <script type="text/javascript">
    window.onload=function(){
    Nifty("div#box_portal","big fixed height transparent");
    Nifty("div#content_portal","big fixed height transparent");
    Nifty("div#box2_portal","big fixed height transparent");
    Nifty("div#content2_portal,div#content3_portal","big fixed height transparent");
    Nifty("div#box_navi,div#side_nav","big fixed height transparent");
    Nifty("div#box_search,div#side_search","big fixed height transparent");
    Nifty("div#side_poll","big fixed height transparent");
    Nifty("div#side_threads","big fixed height transparent");
    }
    </script>

    </body>'
    $output); 
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  8. #8
    Member
    Real Name
    Prateek
    Join Date
    May 2008
    Posts
    31
    Liked
    0 times
    Wow! That works I think. Thanks!

    As for the GA code, I did have it there and I had the new version of the code. It seemed to break the box and template.. but I will try again.

  9. #9
    Member
    Real Name
    Prateek
    Join Date
    May 2008
    Posts
    31
    Liked
    0 times
    My fault, misread how to enter into the box

  10. #10
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    22,367
    Liked
    542 times
    Blog Entries
    4
    I'm glad i could help
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

Similar Threads

  1. C n' P URLs not working (sometimes).
    By UKBL in forum Troubleshooting
    Replies: 1
    Last Post: 08-07-2008, 02:58 PM
  2. Forum URLs not working any longer
    By Eagle in forum Troubleshooting
    Replies: 1
    Last Post: 07-10-2008, 12:26 PM
  3. Replies: 3
    Last Post: 07-09-2008, 11:52 PM
  4. URLs in E-mail not working
    By Rehan in forum Troubleshooting
    Replies: 7
    Last Post: 11-04-2006, 01:19 PM

Posting Permissions

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