Some questions about the [wpuf_dashboard] user dashboard page.

This topic contains 4 reply and 3 voices, and was last updated by Tareq Hasan 10 years, 9 months ago
Viewing 4 Posts - 1 through 4 (of 4 total)
Author Posts
June 12, 2013 at 6:51 pm 4842
Tareq Hasan Hi, Working on the tutorial for you guys as promised to Mahi here: http://wedevs.com/support/topic/post-to-buddypress-actvities/ but while testing I came across some problems / questions.. I have some questions about the [wpuf_dashboard] page..
  • Any chance of adding an edit link next to the delete link in dashboard page?
  • Can the delete link be deactivated? In case I don't want users to delete posts on a particular site, is this a configuration option?
  • I show the [wpuf_dashboard] page in a Buddypress user profile page on /members/members/photogallery/.. Clicking 'delete' redirects to /members/?msg=deleted instead of redirecting to the dashboard page, also it doesn't show a success message of course.. I looked in documentation and WPUF code and seems there is no action hook or way to manipulate or define the return URL, that's a problem for me..
Thanks a lot! Bas
June 12, 2013 at 8:26 pm 4847
Mahi Mahi

Hello Bas,

thanks for your effort. for 1 & 2 there are settings option from WPUF -> Settings -> Dashboard tab , i am not sure how we can show dashboard items under buddypress user profile as i don’t have much exp about buddypress, lets see what @tareq suggest .

June 12, 2013 at 9:44 pm 4857
Tareq Hasan Tareq Hasan

The dashboard was intended to be inserted on a page and it gets the current page/posts URL and append the msg=deleted query string for a delete confirmation message. So I guess the dashboard post delete redirect isn’t suitable for buddypress or you could modify the URL manually.

June 12, 2013 at 9:56 pm 4859
quokka quokka

Hi Tareq,

The dashboard code is in a WP page.
Where should I modify the url manually?
In WPUF plugin code? Hope not 😉

Thanks,
Bas

June 12, 2013 at 10:05 pm 4861
Tareq Hasan Tareq Hasan

Yes, it’s the plugin code. But in a standard circumstance, everything should’ve worked fine.
See /class/frontend-dashboard.php and delete_post function (near line 269).

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