Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of hnla

Support: Creating & Extending

Existing and new plugins/components and themes.

building a plugin – display a image in the group header (6 posts)

Started 1 year, 6 months ago by: nit3watch

  • Profile picture of nit3watch nit3watch said 1 year, 6 months ago:

    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..

  • Profile picture of nit3watch nit3watch said 1 year, 6 months ago:

    bumping cause I changed the hole topic.

  • Profile picture of r-a-y r-a-y said 1 year, 6 months ago:

    @nit3watch – You’re not declaring the functions properly:

    http://pastebin.com/UhRC77TL

  • Profile picture of nit3watch nit3watch said 1 year, 6 months ago:

    @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.

  • Profile picture of bpisimone bpisimone said 1 year, 6 months ago:

    Doesn’t do anything for me either.

  • Profile picture of r-a-y r-a-y said 1 year, 6 months ago:

    @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.