Community Support Forums — WordPress® ( Users Helping Users ) — 2011-12-31T07:04:20-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=16508 2011-12-31T07:04:20-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16508&p=59333#p59333 <![CDATA[Re: Seperators no longer work since update]]>

Statistics: Posted by Cristián Lávaque — December 31st, 2011, 7:04 am


]]>
2011-12-31T00:16:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16508&p=59316#p59316 <![CDATA[Re: Seperators no longer work since update]]>
Cristián Lávaque wrote:
There's nothing in that code that has to do with s2Member.

Oh dear! My apologies.

At first I thought "nothing to do with S2Member". What's he talking about? Then it dawned on me: WRONG $%#@% PLUGIN!

I had just assumed that anything to do with users browsing, users online, etc was related to S2Member.

When you woke me up I went to doublecheck and discovered that the plug-in I should have been querying is WP-UserOnline.

Found the solution and all is well again.

Thanks for your patience.

Statistics: Posted by Rosie-L — December 31st, 2011, 12:16 am


]]>
2011-12-30T03:50:02-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16508&p=59214#p59214 <![CDATA[Re: Seperators no longer work since update]]>
Now, reading your code I wonder if <hr style="margin-right:40px;"> is where the parsing is going odd. Try removing those lines and see if that gets rid fo the %GUESTS_SEPERATOR%%BOTS_SEPERATOR%.

I hope that helps. :)

Statistics: Posted by Cristián Lávaque — December 30th, 2011, 3:50 am


]]>
2011-12-29T22:00:56-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16508&p=59172#p59172 <![CDATA[Re: Seperators no longer work since update]]>
It gets my name right, and "Most Users Ever Online" looks pretty reasonable. Is also appears to get the number of users online/browsing this page correct.

The call to "get_users_browsing_site()" is returning my current login name (Administrator). If I logout as Administrator and login as an ordinary user it still gets that part right. Same with "get_users_browsing_page()".

It's just not returning valid values for %GUESTS_SEPERATOR% and %BOTS_SEPERATOR%.

The HTML which I quoted in my opening post is clearly simple enough.

It looks very much like the functions aren't returning what they're supposed to return, and I'm sceptical that a plug-in can cause the result of a function to be partly right and partly wrong.

Statistics: Posted by Rosie-L — December 29th, 2011, 10:00 pm


]]>
2011-12-24T09:55:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16508&p=58713#p58713 <![CDATA[Re: Seperators no longer work since update]]>
The problem is with the parsing of those tags. Since you're using this code in Thesis OpenHook, my first suspicion would be that a change in the way WordPress/Thesis handles code in that section.

The only way to figure out exactly what's causing this is to try switching the theme to the default and to try disabling all your plugins (except s2Member) to see if any of those are causing a conflict.

Can you try that?

Statistics: Posted by Raam Dev — December 24th, 2011, 9:55 am


]]>
2011-12-24T00:51:19-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16508&p=58701#p58701 <![CDATA[Re: Seperators no longer work since update]]>
I've had so much on lately that I kept forgetting to look into it until now.

Statistics: Posted by Rosie-L — December 24th, 2011, 12:51 am


]]>
2011-12-24T00:09:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16508&p=58695#p58695 <![CDATA[Re: Seperators no longer work since update]]>
I'm looking into this and will get back to you. Was there anything else you updated recently? Did you update Thesis recently?

Statistics: Posted by Raam Dev — December 24th, 2011, 12:09 am


]]>
2011-12-23T21:52:58-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16508&p=58683#p58683 <![CDATA[Seperators no longer work since update]]> S2Member: Version: 111220; Stable tag: 111220; Framework: WS-P-110523
WordPress: 3.3
Thesis: 1.8

Hi.

The block of code below used to work fine on one of my Wordpress/Thesis sites, but after one of your updates it now displays this:

1 User Online
Users: Administrator%GUESTS_SEPERATOR%%BOTS_SEPERATOR%
1 User Browsing This Page.
Users: Administrator%GUESTS_SEPERATOR%%BOTS_SEPERATOR%
Most Users Ever Online:
19 On November 6, 2011 @ 2:44 AM


Yes, the page actually shows the text:
%GUESTS_SEPERATOR%%BOTS_SEPERATOR%

The code below is and always has been placed in Thesis OpenHook, Before Sidebars:

Code:
<!-- ---------------- -->
<DIV style="font-family:Arial; font-size:18px; text-align:center; font-weight:bold;">
   <br>
      <p style="padding-bottom:8px;">Current Website Activity</p>
</DIV>

<DIV style="font-family: Arial; font-size: 14px; margin-left:40px;">
<?php if (function_exists('users_online')): ?>
   <p><div id="useronline-count"><?php users_online(); ?></div></p>
<?php endif; ?>

<?php if (function_exists('get_users_browsing_site')): ?>
   <div id="useronline-browsing-site">
      <?php echo get_users_browsing_site(); ?>
   </div>
<?php endif; ?>

<hr style="margin-right:40px;">

<?php if (function_exists('get_users_browsing_page')): ?>
   <div id="useronline-browsing-page">
      <?php echo get_users_browsing_page(); ?>
   </div>
<?php endif; ?>

<hr style="margin-right:40px;">

<?php if (function_exists('get_most_users_online')): ?>
   <p style="margin-left:0px; font-weight:bold;">Most Users Ever Online:</p>
   <p style="text-align:center;"><?php echo get_most_users_online(); ?> On <?php echo get_most_users_online_date(); ?></p>
<?php endif; ?>

<hr style="margin-right:40px;">

</DIV>
<!-- ---------------- -->

Statistics: Posted by Rosie-L — December 23rd, 2011, 9:52 pm


]]>