Fb Share Button

Questions and answers about change of functions, design, hosting etc.

Moderators: Koduc, Xpycm

Forum rules
Pay attention! Forum is not a means for guaranteed support of clients and users. An answer as well as a quick answer is not supposed on the forum. We post messages as soon as possible.

The message limit on the forum is 3 messages per day.
If you want to say "thank you" then use the function "Give good reputation point", which is a green icon "plus" under the nickname of the person, who answered the message.

Fb Share Button

Postby Ashwini » 08 Sep 2015, 10:57

When i update the property description , updated description is not display on the fb share window , it show the old description with html tag
Attachments
img2.PNG
share window description
img2.PNG (6.4 KiB) Viewed 6227 times
img1.PNG
img1.PNG (21.46 KiB) Viewed 6227 times
Ashwini
Passer
 
Posts: 44
Joined: 03 Aug 2015, 12:41
Reputation point: 0

Re: Fb Share Button

Postby Xpycm » 08 Sep 2015, 12:37

protected\modules\apartments\controllers\MainController.php file

In this file replace
Code: Select all
if ($apartment->getStrByLang("title"))
    
Yii::app()->clientScript->registerMetaTag($apartment->getStrByLang("title"),null,null,array('property'=>'og:title'));

if(
$apartment->getStrByLang("description"))
    
Yii::app()->clientScript->registerMetaTag($apartment->getStrByLang("description"),null,null,array('property'=>'og:description')); 


with
Code: Select all
if ($apartment->getStrByLang("title"))
    
Yii::app()->clientScript->registerMetaTag(strip_tags($apartment->getStrByLang("title")),null,null,array('property'=>'og:title'));

if(
$apartment->getStrByLang("description"))
    
Yii::app()->clientScript->registerMetaTag(strip_tags($apartment->getStrByLang("description")),null,null,array('property'=>'og:description')); 
Dropbox
Open Real Estate CMS: FAQ | FAQ 2 | FAQ 3
Image
Xpycm
Web Developer
Web Developer
 
Posts: 281
Joined: 30 Dec 2011, 11:06
Reputation point: 2


Return to Questions and help for changes

Who is online

Users browsing this forum: No registered users and 17 guests

cron