jrAction_form

flamegate
flamegate
@decksharks
11 years ago
19 posts
Is there any chance for {jrAction_form} to call in a custom template?

i would like build a custom user dashboard in my custom skin.

i place this tag {jrAction_form} but no form is shown.
updated by @decksharks: 12/15/13 09:47:22AM
brian
@brian
11 years ago
10,148 posts
You should be able to place it anywhere you want - the only way it won't show is if the Activity Stream module is not active OR actions are not allowed in the quota, so check both of those.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
flamegate
flamegate
@decksharks
11 years ago
19 posts
i looked at the settings.
active and setup for the quota.

on the profiles are the form. *hmmm*

but on my custon dashboard.tpl nothing. but the stream is loading but not the form to post an activity
brian
@brian
11 years ago
10,148 posts
How is your dashboard being loaded? If you are trying to load it via a skin template (i.e. yoursite.com/template) then it is not going to work, as there is no "active profile" when viewing a skin template.

Your best bet is to make a small, custom module - create a profile.php script, and load your dashboard from within (the profile.php script is like the default router for profile pages for a module).

So for example, create a module - say "dkDashboard" with a module url of "dash", and in the profile.php you would have a "dashboard" function - i.e.

function profile_view_dkDashboard_dashboard($_profile,$_post,$_user,$_conf)
{ return jrCore_parse_template('dashboard.tpl', $_user, 'dkDashboard'); }

Then put "dashboard.tpl" in the modules "templates" directory.

Then, your users would access the dashboard like:

http://yoursite.com/profile-name/dash/dashboard

and that would render the dashboard.

Make sure and check out the developer docs for an overview on the module directory structure:

http://www.jamroom.net/the-jamroom-network/documentation/development/26/creating-a-module

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
flamegate
flamegate
@decksharks
11 years ago
19 posts
thats cool it works :)

thx brain!

is there any way to deactivate the profile_header?
brian
@brian
11 years ago
10,148 posts
Not in the profile - what you would need to do is instead of returning the output of the jrCore_parse_template, you would need to display it and then just exit() - that's kind of a hack (since it keeps the shutdown functions from running), but it should work.

We have a core function called jrCore_set_no_header_or_footer() that we should extend to the profile - i.e. jrProfile_set_no_header_or_footer() so you can take care of that yourself if needed.

I'll look into adding that for a future release.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags