Skip to:
Content
Pages
Categories
Search
Top
Bottom

custom datas (from an other db) displayed in profile custom fieds


  • mouffles
    Participant

    @mouffles

    Hi there,

    First if the authors read and participate in this forums i would like to thanks them for the work on buddypress, bbpress too. I setted up a whole wp/bp/bbp community and everythings work like a charm, and after some little hacks in my theme files i’ve been abble to highly increase performances and having a real professionnal community website(i think i’ll post some of these hacks in here one of these days).

    So as the subject of my post tell its good, where could find ressources (tutorials or examples) on how to display custom datas (like games scores) stored in a db, into the users profile fields.

    – I already know and use alternate php login with wp functions in wp dbs with my external games, as an example i already did a system to send pictures made in one drawing game into bp_album db, then display them in bp album section of a user profile.

    – I know and and use the custom fields in profiles setup in wp admin, but i don’t know how and what specify to display alternate informations like game scores.

    Could someone just help me to find somethings related to this.

Viewing 4 replies - 1 through 4 (of 4 total)

  • shanebp
    Moderator

    @shanebp

    Does it have to be a profile field?
    Or could it just be displayed on the profile page?

    If you need to save the info into a custom profile field, it’s a little more work.

    Either way – use the same process you used for your bp_album ‘system’.

    Start by looking thru
    /plugins/buddypress/bp-members
    and
    /plugins/buddypress/bp-xprofile

    for hooks and filters and use them in profile theme files.

    You’re very welcome!

    Your problem sounds interesting. You could either build your own query / cache / template functions and display it in the bottom of the profile table, or sync that external content into BP’s profile fields database tables.


    mouffles
    Participant

    @mouffles

    Thanks for the answers,

    It would be better with profile fields (users are used to this kind of display for multiple games), but i’ll take a look into other solutions as you told Shane, and i’ll first look at files you mentionned.
    I think that later i’ll look after plugin development (skeleton plugin is a very good way to understand basics), because highscores friends notifications + profile tab with games scores is an elegant and efficient way to socialise games activities (facebook proove it well…).

    Indeed social + games website can suit well with bp and even better with plugins, Because plugins are often simpler than the bp core functions (like profiles are), it’s quite easy to plug them with other things.
    As an example the drawing game connection with bp_album was very easy to develop, cause it was just some very basic php/mysql queries, i use just 2 or 3 queries to achieve this…
    I also connect Cubepoints to one my game, the points can be converted in gold coins, by this way i can get more gamers social investisment in community.

    Ok i’ll give news if i meet problems.

    Good luck!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘custom datas (from an other db) displayed in profile custom fieds’ is closed to new replies.
Skip to toolbar