The MU forums have moved to WordPress.org

Adsense in Widget and IDs getting stripped (13 posts)

  1. myblogstartup.com
    Member
    Posted 15 years ago #

    In my widgets, I cannot add adsense, not only that, but I've been adding IDs that go with my CSS and they're getting stripped. What can I do to fix this?

  2. tdjcbe
    Member
    Posted 15 years ago #

    That's normal and is in place as a security measure. I would suggest searching the forums as Adsense has been discussed at great length previously.

    Reviewing your other questions, I would suggest heading over to wp.com, getting an account and seeing what you can and can not do as an end user. Sounds like you're not familiar with the platform. You may also want to review the "is Mu for me?" sticky at the top of the forums as well as the Search sticky.

  3. myblogstartup.com
    Member
    Posted 15 years ago #

    I've been using WP for a number of years now, I know my way around it, thank you very much!

    I was able to make my widgets work in the new version of WP, but not on here?

  4. andrea_r
    Moderator
    Posted 15 years ago #

    WPMU is different than WP in that regard. Just like was mentioned above.

  5. myblogstartup.com
    Member
    Posted 15 years ago #

    Yes, I know. How do you explain the IDs not working though?

  6. tdjcbe
    Member
    Posted 15 years ago #

    Same answer really. Inline styles are a security risk.

  7. andrea_r
    Moderator
    Posted 15 years ago #

    Yep, same answer. WPMU strips 'em out. Pretty sure we discussed it already.

  8. myblogstartup.com
    Member
    Posted 15 years ago #

    How can I fix them so it uses regular CSS instead of IDs?

  9. andrea_r
    Moderator
    Posted 15 years ago #

    Um, ID's are part of css....

    how about fix the theme itself?

  10. myblogstartup.com
    Member
    Posted 15 years ago #

    Well, no, see, http://crankthatvolumeup.com/

    I have the Last.fm plugin installed, and I use the IDs from it to align my sidebar. It worked on the standalone WP, I just want it to work in my MU installment.

  11. myblogstartup.com
    Member
    Posted 15 years ago #

    Is there anything I can do to fix the plugin itself then?

    Here's the code of the plugin itself:

    <?php
    /*
    Plugin Name: iLast.Fm
    Plugin URI: http://leandrow.net/lastfm/
    Description: If you like good music this plugin is for you: it offers a complete integration between your blog and your Last.fm account. You can show on your blog what musics you are listening to, your top albums or your loved tracks. Funny like that!
    Version: 0.2
    Author: Leandro Alonso
    Author URI: http://leandrow.net/
    */

    [lots of code snipped by Donncha]

  12. tdjcbe
    Member
    Posted 15 years ago #

    Dude, now I know you haven't read the docs:

    http://codex.wordpress.org/Debugging_WPMU

    Please don't paste code to the forums.

  13. myblogstartup.com
    Member
    Posted 15 years ago #

    I fixed it myself, for anyone else that needs it, go to wp-includes and open kses.php.

    This defines all the variables that are allowed in lets say a paragraph (p), link (a), etc.

    For me, I had to go to the unordered list (ul) part and add 'id' => array (),

    Yay, I'm happy now, just gotta figure out how to enable adsense.

About this Topic

  • Started 15 years ago by myblogstartup.com
  • Latest reply from myblogstartup.com