The MU forums have moved to WordPress.org

need a plugin to add a footer.php to all themes (24 posts)

  1. ilbloger
    Member
    Posted 14 years ago #

    hellow.
    my name is daniel and i am very need help .
    i try to make a google Analytics to all my subdomain and domains and i add my code to all my themes (200+)
    i make it about 3 days its so hard and now i found this:
    http://www.google.com/support/googleanalytics/bin/answer.py?answer=55503&ctx=sibling

    its from google they say i need to put 1 more code but i dont have power to do it 1 : 1 when pepole plz help me i am very need your help . i need a plugin for 1.5.1 what will add this code into all footer.php themes !! please and good luck !

  2. MrBrian
    Member
    Posted 14 years ago #

    Wow.. you really wasted a lot of time. See, wordpress has these things called "hooks", where you can insert whatever you want into the footer of every theme with just a few lines of plugin code. Not to mention the google analytics plugin for MU has already been made and addresses that exact problem.
    http://themajesty.asslema.net/wordpress-mu/wordpress-mu-google-analytics/

  3. ilbloger
    Member
    Posted 14 years ago #

    TNX DUDE BUT 1 PROBLEM I CANT READ THIS ITS EVEN NOT ENGLISH CAN YOU PLEASE TELL ME WHAT TO DO ?

  4. demonicume
    Member
    Posted 14 years ago #

    i think i might have a script for you. i gotta go find it.

  5. Ovidiu
    Member
    Posted 14 years ago #

    I can just read a little french, but here is what that page says:

    Installation:
    download, put it into mu-plugins folder, unzip
    Configuration:
    go to administration panel, site admin > Google Analytics input your google account info then tell all your users that they have to go in there and input their own acount for their own stats

    hope that helps

  6. demonicume
    Member
    Posted 14 years ago #

    check this out. don't be callin me late at night for support, though.

  7. ilbloger
    Member
    Posted 14 years ago #

    tnx guys i install this script but i have with this script when i try to put my info i dont know whate to put here :

    take look:http://img65.imageshack.us/img65/167/helpjf6.jpg
    its write "Entrez votre numéro de compte Google Analytics" what is mean ? plz guys help me =]

  8. Ovidiu
    Member
    Posted 14 years ago #

    Entrez votre numéro de compte Google Analytics
    translates into:
    Enter your Google Analytics Account number

  9. ilbloger
    Member
    Posted 14 years ago #

    demonicume your script its not good for mu becouse for google give anther script for multiple domains take look here : http://www.google.com/support/googleanalytics/bin/answer.py?answer=55503&ctx=sibling

  10. cafespain
    Member
    Posted 14 years ago #

    @ilbloger. There is this wonderful thing called Google translate. You can put in a web address or a line of text, select the language it's in and what you want it translated to and it does it.

    It's here:
    http://translate.google.com/translate_t

    Not 100% accurate but close enough. Couldn't live without it.

  11. ilbloger
    Member
    Posted 14 years ago #

    Ovidiu tnx alot

    tnx all for help but i see that all the plugins dont have this script what is need for google :

    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    var pageTracker = _gat._getTracker("UA-12345-1");
    pageTracker._setDomainName("none");
    pageTracker._setAllowLinker(true);
    pageTracker._initData();
    pageTracker._trackPageview();
    </script>

    can some plz write a hack that will add this script plz plz its all need to over my bloger if some1 do this i will very glad but if not i will add each themes but it will take me alot of time anyway tnx for help guys .

    let me know if some1 can write it for me if not when say not i dont will w8 ! TNX agin for all

  12. demonicume
    Member
    Posted 14 years ago #

    WTF? that script hould be good enough. but you could easily add that stuff yourself. control-x, control-v.

  13. cafespain
    Member
    Posted 14 years ago #

    Am I becoming cynical in my increasing age (I would say old age, but my shallow ego wouldn't be able to take it) but is the world becoming lazier?

    Rather than sitting down and learning, people go out and ask other people to take time out from what they are doing and write something for them? Or even to take the plugin they have (that works) find the line that puts the old google javascript in and change it to the new one.

    Hell, it could even be accomplished with a good text editor (capable searching through sub-directories) and a global search and replace of <?php wp_footer(); ?> with

    <?php wp_footer(); ?>
     <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    var pageTracker = _gat._getTracker("UA-12345-1");
    pageTracker._setDomainName("none");
    pageTracker._setAllowLinker(true);
    pageTracker._initData();
    pageTracker._trackPageview();
    </script>

    But then, if they are too lazy to actually use real words, then.....

    Sorry one of those days, but "chav-spk" really gets on my nerves. You have a language ****ing use it.

  14. andrea_r
    Moderator
    Posted 14 years ago #

    Hey, I agree with everything you said - not to mention this particular thing has been written and re-written, and people can't even search properly. Nor comprehend what they are reading when they *do* find it or have it spoon-fed to them.

  15. ilbloger
    Member
    Posted 14 years ago #

    hey hey w8 guys i was add on mu self but i dont know php at all if i was know i was adding and even dont ask it from ou guy ,sory if you dont understand me i dont want to make some1 here angry sory if i do make some 1 here angry .

    ohhh so sad i will need to add this script to each themes on my self with out a hack its will take me like 3-4 days .

    if was know php i was do the hack on my self so thnx guys and sory for what i ask with the hack .

  16. ilbloger
    Member
    Posted 14 years ago #

    cafespain i am sorry for my bad english the problem is what i even not from usa or anther place where talk in english i am from israel and dont so good english like you all what i know its from computer games online when sorry for this.

  17. cafespain
    Member
    Posted 14 years ago #

    Ok ilbloger. READ THIS VERY CAREFULLY or Rid tis vcarfullike.

    Take demonicume's plugin. open it in a text editor. Find the bit of the plugin that has the <script> tags and replace it with your bit of code in the <script> tags.

  18. cafespain
    Member
    Posted 14 years ago #

    hat i even not from usa or anther place where talk in english

    Hmmm. Could that be England maybe? The clue's in the name :)

    "Hmmm Could dat be England maybe? The clues in da name :)"

    http://www.theutherfish.co.uk/chav.php

  19. ilbloger
    Member
    Posted 14 years ago #

    cafespain thanks man its worck thanks alot .
    i hope u dont angry on me and thanks agin.

    ok guys thanks!! you all very help me GOOD LUCK guys !!!
    cya !! cya !! cya !! thanks thanks
    thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks

  20. iamsgf
    Member
    Posted 14 years ago #

    Guys, this was kinda what i was looking for. I installed the rafik_ga plugin and google is tracking it. However as I am using third level domains rather that sub-directory, it seems that google is not tracking this, even though I see the code on the individual blogs.

    Any ideas?

    Thanks

  21. ceejayoz
    Member
    Posted 14 years ago #

    a global search and replace of <?php wp_footer(); ?>

    Why would you do that?!?!?!

    wp_footer is an action! Write a tiny plugin that attaches to the wp_footer action, put it in mu-plugins, and you're done.

    Always change code in the fewest possible spots.

  22. andrea_r
    Moderator
    Posted 14 years ago #

    Note he replaced that footer call with the exact same call *and* a bunch of extra script. :)

  23. MrBrian
    Member
    Posted 14 years ago #

    Lol, from the very first post, i knew this guy was a dim bulb. Hence why I didn't waste my time replying multiple times.

  24. demonicume
    Member
    Posted 14 years ago #

    do i still get an assist for that?

About this Topic

  • Started 14 years ago by ilbloger
  • Latest reply from demonicume