<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>BuddyPress.org | bhekzin | Mentions</title>
	<link>https://buddypress.org/members/bhekzin/activity/mentions/</link>
	<atom:link href="https://buddypress.org/members/bhekzin/activity/mentions/feed/" rel="self" type="application/rss+xml" />
	<description>Activity feed mentioning bhekzin.</description>
	<lastBuildDate>Tue, 07 Apr 2026 22:37:49 +0000</lastBuildDate>
	<generator>https://buddypress.org/?v=</generator>
	<language>en-US</language>
	<ttl>30</ttl>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>2</sy:updateFrequency>
	
						<item>
				<guid isPermaLink="false">2258631a468a2f503d1007b8d3d3856b</guid>
				<title>Henry Wright replied to the topic Add ad code into activity stream in the forum Creating &#038; Extending</title>
				<link>http://buddypress.org/support/topic/add-ad-code-into-activity-stream/#post-182056</link>
				<pubDate>Fri, 25 Apr 2014 13:47:21 +0000</pubDate>

									<content:encoded><![CDATA[<p><a href="http://buddypress.org/members/bhekzin/" rel="nofollow ugc">@bhekzin</a> actually, instead of adding the ad as an activity item, you could just modify the activity loop to insert the ad dynamically on every 8th item. This is how you&#8217;d do that using a <code>for</code> loop:</p>
<p><code>for ( $i = 1; $i &lt; 1000; $i++ ) {<br />
    if ( $i % 8 == 0 ) {<br />
       // this is the 8th item so insert your ad code<br />
    }<br />
}</code></p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">a91f3cb0fd86d9da25404c798d695c10</guid>
				<title>Henry Wright replied to the topic Add ad code into activity stream in the forum Creating &#038; Extending</title>
				<link>http://buddypress.org/support/topic/add-ad-code-into-activity-stream/#post-182052</link>
				<pubDate>Fri, 25 Apr 2014 12:39:03 +0000</pubDate>

									<content:encoded><![CDATA[<p><a href="http://buddypress.org/members/bhekzin/" rel="nofollow ugc">@bhekzin</a> you&#8217;ll need to decide if you&#8217;re going to add an <em>ad</em> after X number of items have been added to the stream or if you&#8217;re going to add an <em>ad</em> every X number of seconds (or minutes, or hours). If you choose the interval approach, check out <code>wp_schedule_event</code></p>
<p><a href="https://codex.wordpress.org/Function_Reference/wp_schedule_event" rel="nofollow ugc">https://codex.wordpress.org/Function_Reference/wp_schedule_event</a></p>
]]></content:encoded>
				
				
							</item>
		
	</channel>
</rss>