Hi, could you give me some pointers as to how I can implement this on my site. I have everything installed and all the settings dealt with too. I use a user_profile.tpl.php file to customise user pages (user/1) which is where I presume Invite links would normally appear. Using that template, I obviously can't see anything!

so could you give me the URLs necessary for the major actions possible with Invite.

Comments

smk-ka’s picture

No, Invite 1.x only displays a regular menu item which links to the invite page, but nothing on the user profile.

Just as a side note, for Invite 2.x (currently alpha) the local tasks (tabs) that were visible on the invite page have been moved to the user profile, however the navigation menu item is still in place.

esllou’s picture

well I don't use Menu module either, so I still don't know which URLs to use to access any Invite functions.

smk-ka’s picture

Oh, well, the one and only front end url is http://www.example.com/invite.

esllou’s picture

ok, thanks. I take it logged-out users can't access this URL...or will it depend on my allowing them to do that in the permissions settings?

smk-ka’s picture

...plus the following first level tabs: invite/add and invite/list.
And the second level tabs beneath invite/list are: invite/list/accepted, invite/list/pending, and invite/list/expired.

smk-ka’s picture

It's your job to check sufficient permissions. Take a look at the menu definition in invite_menu(), there you'll find the required permissions for each path (either send or track invitations).

esllou’s picture

yeah, thanks, I'm quite used to using conditional php code in my menu to show items...or not.

I imagine something like

<?php if (user_access('send invitations')) : ?>
<a href="/invite">Invite Friend!</a>
<?php endif; ?>

will suffice?

smk-ka’s picture

Looks good.

ckng’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Cleaning out old issues.