• 1

Read this first!

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 have an active subscription and wish to receive 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.

Thank you!

TOPIC: Sending the user straight to file downloads

Sending the user straight to file downloads 13 years 9 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: 13 years 8 months ago by dylan.humphreys7.
The administrator has disabled public write access.

Re:Sending the user straight to file downloads 13 years 8 months ago #11142

Thank you . Fantastic change. Exactly what I wanted.
Last Edit: 13 years 8 months ago by SiteBento.
The administrator has disabled public write access.
  • 1

Read this first!

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 have an active subscription and wish to receive 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.

Thank you!