• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Insert image for calendar field

Insert image for calendar field 15 years 11 months ago #7429

  • vndesign
  • vndesign's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Is it possible to insert an image for calendar field like this:



rather than just (...) or text label?


Attachments:
Last Edit: 15 years 11 months ago by vndesign.
The administrator has disabled public write access.

Re:Insert image for calendar field 15 years 11 months ago #7432

  • bogdan
  • bogdan's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 122
  • Thank you received: 4
Hello ,

This can be done by altering the source code. If you want that please go to /components/com_rsform/controller/functions.php and at line 615 replace :
<input id="btn'.$calendars[$componentId].'" type="button" value="'.$data['POPUPLABEL'].'" onclick="showHideCalendar(\'cal'.$calendars[$componentId].'Container\');" class="btnCal" '.$data['ADDITIONALATTRIBUTES'].' />

with
<img src="your/path/image.png" id="btn'.$calendars[$componentId].'" onclick="showHideCalendar(\'cal'.$calendars[$componentId].'Container\');" class="btnCal" '.$data['ADDITIONALATTRIBUTES'].' />
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here

RSJoomla! Development Team
The administrator has disabled public write access.

Re:Insert image for calendar field 15 years 11 months ago #7437

  • vndesign
  • vndesign's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Parse error: syntax error, unexpected T_STRING in /../components/com_rsform/controller/functions.php on line 615
The administrator has disabled public write access.

Re:Insert image for calendar field 15 years 11 months ago #7439

This worked with me

<img src="your/path/image.png" id="btn'.$calendars[$componentId].'"
type="button" value="'.$data.'"
onclick="showHideCalendar('cal'.$calendars[$componentId].'Container');"
class="btnCal" '.$data.' />
The administrator has disabled public write access.

Re:Insert image for calendar field 15 years 11 months ago #7440

I´m sorry
Not that one...
This one instead
<img src="your/path/image.png" id="btn'.$calendars[$componentId].'" 
type="button" value="'.$data['POPUPLABEL'].'" 
onclick="showHideCalendar(\'cal'.$calendars[$componentId].'Container\');" 
class="btnCal" '.$data['ADDITIONALATTRIBUTES'].' />
The administrator has disabled public write access.

Re:Insert image for calendar field 15 years 11 months ago #7444

  • vndesign
  • vndesign's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
still no good. i've submitted a ticket for this issue.
thank you very much for your help!
The administrator has disabled public write access.

Re:Insert image for calendar field 6 years 10 months ago #38263

  • yabsattar
  • yabsattar's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 1
Did you solve this issue? I have the same problem. I couldn't find functions.php file.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!