Cant add php code in my sidebar.. :(

Discussion in 'WordPress' started by awiekupo, Jul 12, 2007.

  1. #1
    I'm trying to add this simple code using sidebar plugin but it just wont work.

    PHP code to add:
    <?php AI_Interface::adIconShow();?>

    My Blog URL:
    http://emenang.com/wordpress/

    Where I want to put the PHP code:
    At the left side on top of search form.

    I am using Sidebar Widgets by Automattic.

    Anyone can help? I can try to add the code manually but I have no idea which files to edit...

    Cheers!
    Sha
     
    awiekupo, Jul 12, 2007 IP
  2. bsdpowa

    bsdpowa Banned

    Messages:
    388
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you're doing it manualy I'd suggest you to edit sidebar.php. There you should see the code for your sidebar. Insert that php line where ever you want it to be displayed.
     
    bsdpowa, Jul 12, 2007 IP
  3. rgordon83

    rgordon83 Peon

    Messages:
    671
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
    #3
    get the samarian php plugin, it will let you add php via widgets. pretty cool...
     
    rgordon83, Jul 12, 2007 IP
    r3born likes this.
  4. awiekupo

    awiekupo Peon

    Messages:
    975
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I've tried to edit sidebar.php but nothing change.. :(

    samarian php plugin? Err.. any link?
     
    awiekupo, Jul 12, 2007 IP
  5. awiekupo

    awiekupo Peon

    Messages:
    975
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Nvm, I got it from here.

    http://samsarin.com/samsarin-php-widget

    What a wonderrrrrrrrfull plugin! Thanks rgordon! I owe you one. Thanks to all too who had helped me.. You guys are the best!

    Cheers!
    Sha
     
    awiekupo, Jul 12, 2007 IP
  6. r3born

    r3born Active Member

    Messages:
    1,070
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    88
    #6
    Thanks :)
    Had the same problem before, now I think I know how to solve it :) Rep left.

     
    r3born, Jul 12, 2007 IP
  7. MeetHere

    MeetHere Prominent Member

    Messages:
    15,399
    Likes Received:
    994
    Best Answers:
    0
    Trophy Points:
    330
    #7
    You can also you exec php plugin.
     
    MeetHere, Jul 13, 2007 IP
  8. rgordon83

    rgordon83 Peon

    Messages:
    671
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Nno problem!
     
    rgordon83, Jul 13, 2007 IP
  9. browie

    browie Peon

    Messages:
    546
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #9
    FINALLY, sweet I'm going to owe that guy one too.
     
    browie, Jul 14, 2007 IP