Support » Plugin: G-Lock Double Opt-in Manager » [Plugin: G-Lock Double Opt-in Manager] Second $rss_itemblock not working

  • Resolved aWEBthatWORKS


    I’m having a strange problem with version 2.6.2. I’ve got a newsletter set-up with two $rss_itemblock items, one at the top with a list of all the items, and then a second one which prints the full blog post. I have tested this using 2.5.0, and it is working fine, but not in the newer version.

    I’ve tested both blocks on their own, and they work fine.

    Is anyone else having this problem? Any quick fixes?
    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Okay, I’m stumped. I’ve done a bunch of testing using version 2.6.2, and I’m not sure what the problem is. It seems like sometimes I can use two blocks, but not all the time.

    Basically, I’m trying to use these two blocks:

    <li><a href="#$rss_item_number">$rss_item_title</a></li>
    <hr style="border: 1px solid #578179" noshade><br>
    <a name="$rss_item_number"></a><b><a href="$rss_item_link"><font size="4">$rss_item_title</font></a></b><br>
    <a href="#top">^ Back to top</a><br>

    Whichever one I put first seems to work okay, but the second one doesn’t. If I repeat both blocks twice, whichever one works at the top, works again lower down.

    I also seem to be able to make tweaks to the display code (ie. change unordered list to ordered list), but if I change the variables I’m using, it causes that block to stop working (unless it is the first one).

    Any help would be hugely appreciated.

    I’ve finally figured this out, posting the answer in case it helps anyone else. Looks like I’d done this fix in the last version, and then forgotten and upgraded without adding the fix back in.

    Basically, in glsft-optin.php on line 3974, after:

    $tpl = str_replace($m[0],$rtpl,$tpl);

    Add in:
    `if (preg_match($patt,$tpl,$m)) {
    $tpl = gsom_fillRssLoopTemplate($tpl,$vars);

    That seems to solve it. Would be nice to have this added into the plugin?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: G-Lock Double Opt-in Manager] Second $rss_itemblock not working’ is closed to new replies.