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 6 of 6

Thread: vBET 3.3.2 breaks daily/weekly digests for vBSEO users

  1. #1
    Senior Member
    Join Date
    Nov 2009
    Posts
    168

    Default vBET 3.3.2 breaks daily/weekly digests for vBSEO users

    This code swap in functions_vbseo_creaturl breaks daily/weekly digests:
    PHP Code:
    // FIND
    $vbseo_gcache_thread['seotitle'] = vbseo_filter_replace_text ($ttl);
    // REPLACE it with this code:
    $vbseo_gcache_thread['seotitle'] = vbet_vbseo_filter_replace_text ($ttl); 
    Fix:

    In plugin vBSEO Email Send, replace full contents with:

    PHP Code:
    require_once(DIR '/includes/functions_vbseo.php');

    $GLOBALS['VBSEO_REWRITE_TEXTURLS'] = 1;
    $GLOBALS['FIX_EMAILS'] = 1;

    if(
    function_exists('make_crawlable') && VBSEO_REWRITE_EMAILS)
     
    $message make_crawlable($message);

    unset(
    $GLOBALS['VBSEO_REWRITE_TEXTURLS']);
    unset(
    $GLOBALS['FIX_EMAILS']); 
    In functions_vbseo_createurl.php:

    Find:

    PHP Code:
    $vbseo_gcache_thread['seotitle'] = vbet_vbseo_filter_replace_text ($ttl); 
    Replace with:

    PHP Code:
    if(isset($GLOBALS['FIX_EMAILS'])) {
    $vbseo_gcache_thread['seotitle'] = vbseo_filter_replace_text ($ttl); 
    }
    else {
    $vbseo_gcache_thread['seotitle'] = vbet_vbseo_filter_replace_text ($ttl); 
    }

    Obviously this is a quick and dirty fix, as there must be something wrong with the vbet_vbseo_filter_replace_text function.

    I found this by:
    1. recognizing that daily and weekly forum subscription emails weren't working
    2. checking all hooks in vBulletin's digest files, which led to the mail class
    3. disabling matching vBSEO mail_send plugin & confirming that everything now worked

  2. #2
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    Thanks for note we will check it and fix it

  3. #3
    Senior Member
    Join Date
    Nov 2009
    Posts
    168

    Default

    BTW, should you find a more elegant fix, please let me know!

  4. #4
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    No problem We will find more elegant solution and it will be notified if any changes in vBSEO integration will be necessary.

  5. #5
    Senior Member
    Join Date
    Dec 2009
    Posts
    276

    Default

    thanks for pointing this out!

  6. #6
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    More elegant solution found - will be included in next release. It will not require any additional vBSEO files edition.

    For quick fix:
    1. Edit file /includes/vbenterprisetranslator_functions_vbseo.php
    2. Find:
    PHP Code:
    function vbet_vbseo_filter_replace_text($text$allowchars null$filter_stop_words true$reversable false) { 
    3. Put AFTER:
    PHP Code:
    if(isset($GLOBALS['FIX_EMAILS'])) {
    return 
    vbseo_filter_replace_text ($text$allowchars$filter_stop_words$reversable); 


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
  •