Important: This page is using cookies (cookies). Using this website without turning off cookies in browser, means that you agree for using it.
Buy Now! Features Downloads

Earn with us!

If you would like to start earning money with vBET join to Affiliate Program.
Results 1 to 10 of 11

Thread: VBET Doesn't rewrite Open graph descriptions

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #8

    Default

    Text automatically translated from: Russian to: English
    Translated text
    Thanks for the reply.


    Module code
    Original text
    Open "Graph Description / Tile Override":


    HTML Code:
    require_once(DIR. '/includes/vbenterprisetranslator_functions.php'); require_once(DIR. '/includes/vbenterprisetranslator_functions_utils.php'); global $vbulletin; $forumLanguage = $vbulletin->options['vbenterprisetranslator_forumlanguage']; $language = $_REQUEST['language']; if(!$language) {  $language = $forumLanguage; }  $serie = microtime(true) * 10000;  
    if (THIS_SCRIPT == 'showthread') //For Threads{  global $thread;  $og_array['og:description'] = vbet_translateText($thread['meta_description'], $forumLanguage, $language, $serie);  $og_array['og:title'] = vbet_translateText($thread['title'], $forumLanguage, $language, $serie);}
    if (THIS_SCRIPT == 'entry') //For Blog Entries{  global $vbphrase, $bloginfo;  $ogdesc = strip_bbcode($bloginfo['pagetext'], true, false, false, true);  $ogdesc = htmlspecialchars ($ogdesc);   $ogdesc = preg_replace('!\s+!', ' ', $ogdesc);  $ogdesc = (strlen($ogdesc) > 303) ? substr($ogdesc,0,300).'...' : $ogdesc;  $og_array['og:description'] = vbet_translateText($ogdesc, $forumLanguage, $language, $serie);  $og_array['og:title'] = vbet_translateText($bloginfo['title'], $forumLanguage, $language, $serie);

    Text automatically translated from: Russian to: English
    Translated text
    MySQL errors -- no!
    -- no translation og:description no
    Original text
    Code:
    <meta property="og:description" content="*******
    Last edited by Marcin Kalak; 06-02-17 at 21:39. Reason: REPAIR BBCODE

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •