• vipplayer

    (@vipplayer)


    Sorry for the technical issue, I tried to add a button that overwrites the record by updating it with the “pdb-after_submit_update” function but something went wrong. Can you tell me how to implement this feature? Or to say where is the code which is responsible for all admin functions. Also, please tell me, how in-frontend to give the user the same menu, so he could just select the desired him his record and delete / update them?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author xnau webdesign

    (@xnau)

    Form something like that, you should make your changes directly to the database instead of trying to use the ‘pdb-after_submit_update’ filter.

    I don’t have a way to give a similar functionality to a user on the frontend, basically, you’d have to build this all yourself. It’s completely different because in the admin the functions needed are already there. On the frontend, you’d have to build it all from scratch.

    Thread Starter vipplayer

    (@vipplayer)

    If I make my changes to the database when the update comes out everything will be gone. If you write addition, you will work? (if it is correct write)

    Plugin Author xnau webdesign

    (@xnau)

    Yes, the best way to do something like what you describe is to write directly to the database. The plugin has a function

    Participants_Db::write_participant( $data, $id )

    where $data is an associative array of the data you want to write, and $id is the record ID. Or you can write your own database query.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Admin and User list’ is closed to new replies.