Hi Flynax,
Is there anyway to assign meta picture for each page? Like: search-on-map, comparison, register?
It would look better when sharing those page on social network.
Thanks
Printable View
Hi Flynax,
Is there anyway to assign meta picture for each page? Like: search-on-map, comparison, register?
It would look better when sharing those page on social network.
Thanks
Hello Wei,
If you use Social Meta Data plugin you can set it in Basic Settings > Social Meta Data > Logo name
You can try this:
go to plugins > socialMetaData > rlSocialMetaData.class.php
find:
change it like that:PHP Code:
Only registered members can view the code.
replace YOUR_PAGE_KEY and YOUR_IMAGE with the names of your page and image respectivelyPHP Code:
Only registered members can view the code.
Hi Rudi,
Since the new update Social Meta Data version 1.2.6, the code is no longer work. From your previous solution in file rlSocialMetaData.class.php
Instead of:
Now they haveCode:Only registered members can view the code.
So I made the change upon your previous suggestion to thisCode:Only registered members can view the code.
But it not working. Upon inspect social meta picture for page with key: house_for_sale, and car_for_saleCode:Only registered members can view the code.
The data still show the default setting at socialMetaData/{$config['smd_logo']}
It seems that the plugin does not recognize if ($page_info['Key'] == 'car_for_sale')
Could you please revise the code?
Thank you so much
Hello Wei,
before the line if ($image) {
add your code:
PHP Code:
Only registered members can view the code.
[QUOTE=Rudi;33001]Hello Wei,
before the line if ($image) {
add your code:
/QUOTE]PHP Code:
Only registered members can view the code.
That works great Rudi. Thank you so much.
Can we also have it work for listing type page and category page like:
Code:Only registered members can view the code.
Put the condition for category to the first place like:
PHP Code:
Only registered members can view the code.
Hi Rudi seriously $category['Key'] and $listing_type['Key'] were just me making up. I thought the correct code were different? I tried it at the first time, too. But it not working. I have listing type key: for_rent, so I did try earlier
And it did not work, so I look at admincp > page and recalled that they have a page here for every listing type. And found that page for my listing type: for_rent, the page key is: lt_for_rent, so I used your code ealierCode:Only registered members can view the code.
And it works, so for listing type page it is solved. But for category page, I'm still stuck :(((Code:Only registered members can view the code.
I tried
But it not working. :(((Code:Only registered members can view the code.