* mans_bx how to make a this tag codes?

<meta property="og:image" content="this is auto url images">
<meta property="og:image:width" content="500">
<meta property="og:image:height" content="281">

Pls you can do
2017-04-28 14:51 (edited 2017-04-28 14:52 by mans_bx ) · (0)
* Graham * mans_bx What is this in the context of ??
what image and where
2017-04-28 23:33 (edited 2017-04-28 23:34 by Graham ) · (0)
* Waplocus * mans_bx your elucidation is too vague.
2017-04-29 04:42 · (0)
* mans_bx Each blog must have a meta tag as above, its function to display images when sharing through social facebook. I hope you understand with my question?
2017-04-29 04:54
*
* 20170429_205439.jpg · image/jpeg · 168.87KB
(edited 2017-04-29 04:59 by mans_bx ) · (0)
* mans_bx images is availible in post blog and auto detect image when sharer to facebook. sorry bad english because i form asia
2017-04-29 04:58 · (0)
* Graham * mans_bx
I cannot think of an easy way to do this automatically and you would not be able to get the size anyway
but this would work if you are willing to do the work of creating text files to hold the meta tags for each post

In the _headtags file or in the <head> of your blog page using the text editor
add this code
<!--parser:xtscript-->
get __xtblog_entry
if $__xtblog_entry
call source $file=/data/$__xtblog_entry
endif
<!--/parser:xtscript-->

Copy code
Then create a folder called data
look at the url of your blog post and you will see a number like 11302369 it is unique for each post
in the data folder create a plain text file using that number as the name of the file
add your meta tags for that post in that file
the xtscript will get that value and include the source of that file into the <head> of the page that contains that blog post

To make it a little easier you can create a template file so that you just have to enter the size and image url
create a folder named file_presets and in that folder create a plain text file with the template of your meta tags in it
once you have reloaded xtgem that template file will appear in the menu of 'create new file'
2017-04-29 06:27 (edited 2017-04-29 07:01 by Graham ) · (0)
* mans_bx pls use example sir help
2017-04-29 16:10 · (0)
* Graham * mans_bx
this is not about the actual sharing code just how to add the meta tags to select which image to use
Here is a demo of the principle (not the actual tags just a demo of how you could add them)
here is a post
note it has a line of text above it saying 'This is the content of the meta file'
http://bpage.xtgem.com/index/__xtblog_entry/11302727-mote-park-lake?__xtblog_block_id=1#xt_blog
and here is the file that would contain the meta tags
It uses the blog post id number as the name of the file
http://bpage.xtgem.com/data/11302727
here is another
http://bpage.xtgem.com/index/__xtblog_entry/11302761-maidstone?__xtblog_block_id=1#xt_blog
and it's data file
http://bpage.xtgem.com/data/11302761
2017-04-29 23:34 (edited 2017-04-30 00:19 by Graham ) · (0)
* mans_bx * Graham nothing found image?
2017-04-30 04:39
*
* Screenshot_2017-04-30-20-36-51.jpg · image/jpeg · 131.55KB
· (0)
* Graham * mans_bx There are no tags on that page it is a demo of the method of adding your own tags
2017-04-30 07:30 (edited 2017-04-30 07:31 by Graham ) · (0)

Online: Guests: 1