Unfortunately, the username and password you have entered do not match!

Registration

Unfortunately, this username is already taken!

Unfortunately, this e-mail address is already used!

Please retype the verification code.

All fields are required

Sending the user straight to file downloads

Welcome, Guest
Username Password: Remember me

Sending the user straight to file downloads
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Sending the user straight to file downloads

Sending the user straight to file downloads 1 year, 10 months ago #10929

If you set up a menu option to point at the users memberships, then it will (somewhat predictably) show a list of memberships that the user is subscribed to. The user then has to click on the membership to show the files that are exposed by that membership.

This code change will only show the list of memberships if the user is subscribed to more than one. Otherwise, it just forwards the user straight on to the membership detail page, where shared folders are listed.

This works with rsmembership v1.0.0 rev 11

In /views/mymemberships/view.html.php, add this code in at line 22 in function display()

 
$memberships_list=$this->get('memberships');
if(count($memberships_list)==1 & $memberships_list[0]->status==0) {
// theres only one membership, and its been authorised, so just forward them
// to the shared content page.
$itemid=JRequest::getVar("Itemid","","get");
$mainframe->redirect('index.php?option=com_rsmembership&view=mymembership&cid=' .
$memberships_list[0]->id . "&Itemid=" . $itemid);
return;
}


It goes just after
$params = clone($mainframe->getParams('com_rsmembership'));


It makes for less clicking by the user
www.lunarhotel.co.uk
EmailAsUsername - get rid of usernames from Joomla - Ideal for Ecommerce Sites
Last Edit: 1 year, 9 months ago by Dylan Humphreys.

Re:Sending the user straight to file downloads 1 year, 9 months ago #11142

Thank you . Fantastic change. Exactly what I wanted.
Last Edit: 1 year, 9 months ago by Karol Jankowski.

Re:Sending the user straight to file downloads 5 hours, 1 minute ago #0

Hello,
This is an automatically generated message.
We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you wish to receive our support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here: http://www.rsjoomla.com/support-policy.html.

Thank You!
PLEASE NOTE: This topic is NOT locked and you can add replies to it. Other users are free to reply as well. This message has been generated by a bot and has no effect on the topic whatsoever.
Last Edit: 1 year, 9 months ago by Karol Jankowski.
  • Page:
  • 1
Time to create page: 0.80 seconds
Feedback