× Other Plugins

Events booking (Feature request)

1 year 2 weeks ago
Justin
Posts: 86
More
Topic Author
Events booking (Feature request) #1
Hi

I have a request regarding the event booking plugin, would it be possible to increase the size of the scroll box, we have many courses so it takes some time finding a course using this tiny scroll pane. Also, would it be possible to arrange the courses alphabetically or by category or something to ensure the course are grouped in some way?

Thanks
1 year 1 week ago 1 year 1 week ago by Antonio Durán.
Antonio Durán
Posts: 6927
More
Events booking (Feature request) #2
Hi. Thanks for the suggestions.

1) You can change size by editing file: plugins/eventbooking/joomdleeventbooking/joomdleeventbooking.php
In function:show_courses_select
Change:
        echo '<select  id="joomdle_courses" name="joomdle_courses[]" multiple="true">';
By:
        echo '<select  id="joomdle_courses" name="joomdle_courses[]" multiple="true" size="15">';
Increase 15 if you want it larger.

I willl include this change in next plugin release.

2) Also, would it be possible to arrange the courses alphabetically

I think they already are, no? At least in my local installtion I see them ordered alphabetically by course fullname.
It uses a Joomdle function that returns them alphabetically.
1 year 1 week ago
Justin
Posts: 86
More
Topic Author
Events booking (Feature request) #3
Hi

Thanks, for the solution.

I see for the most part they are in alphabetical I just seem to have some random courses in between that are not.
1 year 1 week ago
Antonio Durán
Posts: 6927
More
Events booking (Feature request) #4
That's really weird... Can you share some course names that you see in the wrong order to see if I can replicate the issue?
5 months 3 weeks ago
Wynand Louw
Posts: 17
More
Events booking (Feature request) #5
Is it possible to make it wider as well? Some of my courses of longer names.
On the Joomla Groups tab in Eb=nets booking, is also too small.
5 months 3 weeks ago
Wynand Louw
Posts: 17
More
Events booking (Feature request) #6
Hello Antonio

When I select multiple events in Events Booking, it only registers the student for one in Moodle. The second one is regsitered on events booking for attendance but not listed in client Moodle courses.

On evnts in Events booking, which group do I select, The student = the name of the course in the Joomla groups?

I need this field musch wider, since it is impossible to see the groups, because groups are created for each course pulled in from Moodle.

Regards
5 months 3 weeks ago
Antonio Durán
Posts: 6927
More
Events booking (Feature request) #7
Hi Wynand.

> When I select multiple events in Events Booking, it only registers the student for one in Moodle.

Can you explain the steps you do to do this? I am not very familiar with this component.

> On evnts in Events booking, which group do I select, The student = the name of the course in the Joomla groups?

This has nothing to do with Joomdle: you don't need to select anything there. That is just a plugin like Joomdle. If you don't need to add users t Joomla groups based on events, you don't need to use it.

> I need this field musch wider, since it is impossible to see the groups, because groups are created for each course pulled in from Moodle.

Ok, I worked on the changes. If you want to make them before we release a new version:
Edit file: plugins/eventbooking/joomdleeventbooking/joomdleeventbooking.php
Replace show_courses_select() function by this one:
    function show_courses_select ($selected_courses)
    {
        require_once(JPATH_ADMINISTRATOR.'/components/com_joomdle/helpers/content.php');

        $items = JoomdleHelperContent::getCourseList ();

        ?>
            <style>
            .dropdown{ 
                width: 700px;
            }
            </style>
        <?php
        echo '<select  class="dropdown" id="joomdle_courses" name="joomdle_courses[]" multiple="true" size="15">';
        foreach ($items as $item)
        {
            $id = $item['remoteid'];
            $name = $item['fullname'];
            echo "<option value='$id'";
            if (in_array ($id,  $selected_courses))
                echo " selected";
            echo ">".$name."</option>";
        }
        echo "</select>";
    }
5 months 3 weeks ago
Wynand Louw
Posts: 17
More
Events booking (Feature request) #8
Antonio

Admin file now looks like the attached picture.
Attachments:
5 months 3 weeks ago
Wynand Louw
Posts: 17
More
Events booking (Feature request) #9
It deos widen the joomdle course selection window but also the joomla adminsitsror Menu goes funny.
Attachments:
5 months 3 weeks ago
Antonio Durán
Posts: 6927
More
Events booking (Feature request) #10
You are right, I didn't notice when I tested.
Try replacing dropdown by dropdown_joomdle in both instances in the code...it seems the class is in conflict.
Cron Job Starts