Welcome, Guest
Please Login or Register.    Lost Password?

Links "Teams"/"Tournaments" don't work
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Links "Teams"/"Tournaments" don't work
#1391
Links "Teams"/"Tournaments" don't work 1 Year, 6 Months ago Karma: 0
Hi,

On my Checklist, the links "Sign up", "Sign up for event" and "Pay" work fine. The link "Get seat" is disabled. However, the links "Create/Join Teams" and "Sign up for tournaments" don't work.

I mean, after the user has paid, the link for "Create/Join Teams" doesn't show. The text does, but not the link. Same thing for the link "Sign up for tournaments".

What is the problem?

Thanks!

Edit: Oh, and how could I change the code so that the "Pay" links directly to the "Paying page" of the current event where the user can choose which method to pay?
peoriagaming
peoriagaming
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/07/30 21:09 By peoriagaming.
The administrator has disabled public write access.
 
#1392
Re:Links "Teams"/"Tournaments" don't work 1 Year, 6 Months ago Karma: 9
I've just checked the code and the "create/join teams" and "sign up for tournaments" links will only be enabled once the user has chosen a seat.

All the links are defined in /modules/mod_mls_checklist/helper.php.

You will want to change the link for "pay" to something like this:
Code:

index.php?option=com_mls_events&task=enrol&eventid=X&Itemid=Y&signup_step=choose_option
moensch
moensch
Administrator
Posts: 678
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1393
Re:Links "Teams"/"Tournaments" don't work 1 Year, 6 Months ago Karma: 0
Okay for the "pay" link.

So, for the "create/join teams" and "sign up for tournaments" links... how can I make it work so that the user doesn't need to choose à seat? There must be a way to do it...

Edit: On the Tournaments page, how can I modify the "Register" link so that it links to another page that I created myself?

On the mls_tournaments.html.php, I changed this:
Code:

<a href="<?php echo JRoute::_("index.php?option={$option}&amp;task=register&amp;Itemid={$Itemid}&amp;eventid={$event->id}&amp;tournamentid={$row->id}"); ?>"><?php echo JText::_('REGISTER'); ?></a>

to this:
Code:

<a href="<?php echo JRoute::_("index.php/tournaments/register"); ?>"><?php echo JText::_('REGISTER'); ?></a>

However, when I click on the "Register" link located in the "Tournaments" page, it links to "index.php/tournaments/register/tournaments" and not "index.php/tournaments/register". How come?
peoriagaming
peoriagaming
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/07/31 01:47 By peoriagaming.
The administrator has disabled public write access.
 
#1394
Re:Links "Teams"/"Tournaments" don't work 1 Year, 6 Months ago Karma: 9
I intentionally did not over-engineer the checklist module. If you check around the code in helper.php you might find how you can modify it to do what you want it to do.

About your code: The JRoute::_() function call in Joomla converts a normal URL into a SEF URL. But you pass a SEF url in as a parameter which makes it do the wrong thing.

If you directly pass in a SEF URL, drop the JRoute::_() function call around it.
moensch
moensch
Administrator
Posts: 678
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1395
Re:Links "Teams"/"Tournaments" don't work 1 Year, 6 Months ago Karma: 0
Thank you!
Everything is working good now, exactly as I want.
peoriagaming
peoriagaming
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: moensch