#375 Is there something changed in the file functions_table.inc ?

None
closed
nobody
None
1
2014-05-22
2013-08-14
Hebus
No

Is the file functions_table.inc from version 1.4.10 the same as 1.4.9 ?
because i altered this file in version 1.4.9 to show somme symbols from extra fields, (see screenshot).

So i just can copy this file to the new version?
At first it looks like it's working but to be certain and not gonna run into other problems i ask this.

ty

1 Attachments

Discussion

  • Campbell Morrison

    Yes, lots has changed. It almost certainly won't be working properly if you're just using the 1.4.9 file. You'll need to re-apply your changes to the 1.4.10 version.

    Campbell

     
    • Comment has been marked as spam. 
      Undo

      You can see all pending comments posted by this user  here

      Anonymous - 2013-08-20

      I re-apply my changes to the 1.4.10 file.
      But i can't get the icons to show up again, i looked over and over again, but i can't see where it's going wrong.
      As an amateur i understand somme what the code but now i'm complete stuck.
      Can somebody, how know the code give it a try ?
      I made a function on top of the script that look if koffie/laptop is 1 when it is it gives an image url in return. The rest of the code is in de the script easy to see find this:
      //my code *

      Knowing me it's gonna be a stupid mistake .

       
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2013-08-19

    Still searching :(

     
    Last edit: Anonymous 2013-08-20
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2013-08-20

    Finally found it, stupid mistake, again :)

     
  • Hebus

    Hebus - 2013-08-20

    The correct working file for this. :)

     
    • Huw

      Huw - 2014-05-20

      Hi Hebus
      I am trying to do something similar to you but render only custom fields (not icons) in the calendar view - i have added my customisations (to show lunch field) these are highlighted by //my code comment however nothing is displaying on my calendar - is there any other file i have to customise to get the mods to show?
      Appreciate any help you can offer

       
  • Campbell Morrison

    The easiest thing to do is to modify the SQL query in functions_table.inc to put the fields that you want into the name field. For example change the query

      $sql = "SELECT R.id AS room_id, start_time, end_time, name, repeat_id,
    

    to

      $sql = "SELECT R.id AS room_id, start_time, end_time, CONCAT(your_field1, ' ', your_field2) AS name, repeat_id,
    

    See also https://sourceforge.net/p/mrbs/support-requests/285/

    Campbell

     
  • Campbell Morrison

    • status: open --> closed
    • Group: -->
     


Anonymous

Cancel  Add attachments