Skip to:
Content
Pages
Categories
Search
Top
Bottom

building a plugin – display a image in the group header

  • @nit3watch

    Participant

    K well Iv’e hit a wall and I cant get anywhere now. I got it to save the value to the database, it then checks which value is in the db ( dont know if Ive done it right? ) and should return the specified image. Im still new to php so help would really be appriciated. @r-a-y, mebe you could help me out again? Its off the same code you helped me out with a month ago ( gfield ).

    Here’s the hole plugin: http://pastebin.com/WHFKwuN0
    All you need is a small image ( card1.gif ) saved in the plug-in folder, ( buddypress-group-credit-cards ).

    Its a plug-in to show if a group accepts credit cards and which cards is dependent one the options..

Viewing 5 replies - 1 through 5 (of 5 total)
  • @nit3watch

    Participant

    bumping cause I changed the hole topic.

    @r-a-y

    Keymaster

    @nit3watch – You’re not declaring the functions properly:
    http://pastebin.com/UhRC77TL

    @nit3watch

    Participant

    @r-a-y did you test it on your side? Not working for me. Think Iv’e got the “show card in group header” wrong.

    More specific I think its $description .= ( on line 76 )
    Im ganna try play around a bit and see if I can get it to show.

    @bpisimone

    Participant

    Doesn’t do anything for me either.

    @r-a-y

    Keymaster

    @nit3watch – No, I didn’t try it. I fixed your gcard_group_card() function previously.

    After looking at your code again, it looks like you’re never calling that function so nothing is displayed.

    You need to add the gcard_group_card() function somewhere in the gcard_show_card_in_header() function. Probably after the header.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘building a plugin – display a image in the group header’ is closed to new replies.
Skip to toolbar