Cancel Subscription Button -> Timeline - where to find?

More
6 years 8 months ago - 6 years 8 months ago #118468 by Ralf
Hi,

i am just on doing overrides to geht rid of that glosy buttons :) ...
so acutaly i got solved it to change the button style for the details button.

I edited the file ->mytemplate->html->com_eventbooking->common->events_timeline.php

Here i found the part:
Code:
<li> <a class="<?php echo $btnClass; ?> btn-primary" href="<?php echo $detailUrl; ?>"> <?php echo $isMultipleDate ? JText::_('EB_CHOOSE_DATE_LOCATION') : JText::_('EB_DETAILS'); ?> </a> </li>

and changed it to:
Code:
<li> <a class="details-button" href="<?php echo $detailUrl; ?>"> <i class="fa fa-chevron-circle-right" aria-hidden="true"></i> <?php echo $isMultipleDate ? JText::_('EB_CHOOSE_DATE_LOCATION') : JText::_('EB_DETAILS'); ?> </a> </li>

So you see i have just taken out the bootstrap classes and put it my own class. Now i wanna do the same for the "cancel subscription button". But however i can't find it inside this file. Only the javascript function on the end oft the file - but this is only the message alert.

I think it is done by an function or whatever - but can you please tell me which files i have to override also?

As next i will do the changes on the events_default.php and as i seen the same problem i will have here :(

Edit: Just seen that i also can't find the subscribe button - so also the information is needed :(

Thanks for your Information

Best Ralf
Last edit: 6 years 8 months ago by Ralf.

Please Log in or Create an account to join the conversation.

More
6 years 8 months ago #118474 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Cancel Subscription Button -> Timeline - where to find?
Hello

The code for the button is from this file components/com_eventbooking/themes/default/common/buttons.php. Please take a look at it and try to do the modification you need

Tuan

Please Log in or Create an account to join the conversation.

More
6 years 8 months ago - 6 years 8 months ago #118493 by Ralf
Already found it and made my changes. Maybe you can include a general tip to your documentation:

If somebody is searching for files to override and don't know how to find them i had an idea last night and that works perfect:
  1. Search for the language Key!
  2. enable english frontend language
  3. take the value like "Register (Individual)" and search for this value on Event Booking-> Translations
  4. that will give me the translation key: EB_REGISTER_INDIVIDUAL
  5. Now i can search for this key on my local system inside the folder /components/com_eventbooking and it will deliver me all files containing this key

I think this is the easiest way to find most of the files i wanna override :)
Last edit: 6 years 8 months ago by Ralf.
The following user(s) said Thank You: Tuan Pham Ngoc

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc