WordPress.org

Support

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

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

  • 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!

    http://wordpress.org/extend/plugins/g-lock-double-opt-in-manager/

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:

    <ul>
    $rss_itemblock
    <li><a href="#$rss_item_number">$rss_item_title</a></li>
    /$rss_itemblock
    </ul>
    $rss_itemblock
    <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>
    $rss_item_description<br><br>
    <a href="#top">^ Back to top</a><br>
    /$rss_itemblock

    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 ‘[Resolved] [Plugin: G-Lock Double Opt-in Manager] Second $rss_itemblock not working’ is closed to new replies.
Skip to toolbar