OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
RealEstateManager component support
Go to bottom Favoured: 0
TOPIC: Can't insert java script code
#41293
bookandgo (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Can't insert java script code 2 Months ago Karma: 0  
Hi,
I am trying to insert java script code on house description (using sourcerer plugin), but it would not work. A part of the code is cut off when saving the changes.

Is there a way to insert it?
 
Logged Logged  
  The administrator has disabled public write access.
#41294
admin (Admin)
Admin
Posts: 6427
graph
User Online Now Click here to see the profile of this user
Re:Can't insert java script code 2 Months ago Karma: 75  
Hello

for add to Joomla Real Estate Manager (ordasoft.com/Real-Estate-Manager-Software-Joomla.html) possibility save in house description Javascript

You need
in Joomla Global settings -> Site-> Default Editor, Please set NONE

in file
{your site}/administrator/components/com_realestatemanager/realestatemanager.php

Please find function
Code:

function saveHouse($option, $task) 


and code
$post = JRequest::get('post', JREQUEST_ALLOWHTML);

Please replace to
Code:

$post = JRequest::get('post', JREQUEST_ALLOWRAW);


Please backup this file first

Regards
Andrew
OrdaSoft team
 
Logged Logged  
  The administrator has disabled public write access.
Go to top
What are you looking for?
Anti-spam question: How many eyes has a typical person?