Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottomPage: 12
TOPIC: How to get an unregister link to show on frontend.
2009/11/27 09:37 #5039
How to get an unregister link to show on frontend. Print this page
Where is the option to get an Unregister link to show, I am not sure where a logged in user is supposed to see this option and unregister.

Can I do it in the User menu as a link to unregister?
Offline
The administrator has disabled public write access. Top
Greg
 
Fresh Boarder
Posts: 6
graphgraph
2009/11/30 14:17 #5051
Re:How to get an unregister link to show on frontend. Print this page
it is displayed in attendees list in event details
Offline
The administrator has disabled public write access. Top
julienV
 
Moderator
Posts: 961
graphgraph
For all support request, please provide your current versions of joomla, and of the redcomponent extensions.
2009/12/15 16:23 #5147
Re:How to get an unregister link to show on frontend. Print this page
The cancel in the list works fine - is there any way to get it to show up without the registered user list - we don't like to publish everyone that is registered, and would just like people to unregister themselves...

Thanks,
D
Offline
The administrator has disabled public write access. Top
David
 
Fresh Boarder
Posts: 3
graphgraph
2009/12/16 11:55 #5158
Re:How to get an unregister link to show on frontend. Print this page
currently no. Maybe we could optionally filter the attendees list to show only the user's
Offline
The administrator has disabled public write access. Top
julienV
 
Moderator
Posts: 961
graphgraph
For all support request, please provide your current versions of joomla, and of the redcomponent extensions.
2010/01/14 17:37 #5352
Re:How to get an unregister link to show on fronte Print this page
This would be nice as we are a public library and don't want everyone to see who is registered for an event.

julienV wrote:
currently no. Maybe we could optionally filter the attendees list to show only the user's
Offline
The administrator has disabled public write access. Top
eric
 
Junior Boarder
Posts: 27
graphgraph
2010/03/10 18:48 #6150
Re:How to get an unregister link to show on fronte Print this page
I was able to do this by creating an override to the default template and adding the "cancel" link directly - this way you don't have to show anyone else's information.

I used the Joomla override to create a new default.php for the details view.

To the original I added just below the line that reads:
Code:

echo $this->tags->ReplaceTags($this->row->datdescription);


The following code:
Code:


?>
 <div class="register">
    <ul class="user floattext">
     <?php
       //loop through attendees
       foreach ($this->registers as $key => $register)
         {
          if ($register->submitter->waitinglist == 0)
           {
            if ($this->unreg_check && $register->submitter->uid == $this->user->get('id')) {
             echo '<li><ul class="attendee myreg">';
             }
              else {
                echo '<li><ul class="attendee">';
                   }
               foreach ($register->answers as $k => $name) {
               if (stristr($name, '~~~')) $name = str_replace('~~~', '<br />', $name).'<br />';
                        }
if ($this->unreg_check && $register->submitter->uid == $this->user->get('id')) {
  $unreg_url = JRoute::_(RedeventHelperRoute::getDetailsRoute($this->row->slug, $this->row->xref). '&task=delreguser&sid=' .$register->id);
echo '<li><u>'. JHTML::link($unreg_url, JText::_('Click here to cancel your registration'), array('class' => 'unreglink')) .'</u></li>';
          }
        echo '</ul></li>';
         }
        } ?>
   </ul>
 </div>
<?php



Admittedly, this is not my code, but taken from the attendee list where the cancel button shows up! Also, I'm pretty sure this will only work for a single registered user...
Offline
The administrator has disabled public write access. Top
David
 
Fresh Boarder
Posts: 3
graphgraph
Go to topPage: 12