<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: changing the background color of a post</title>
		<link>https://legacy.forums.gravityhelp.com/topic/changing-the-background-color-of-a-post</link>
		<description>Gravity Support Forums Topic: changing the background color of a post</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 03:26:16 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/changing-the-background-color-of-a-post" rel="self" type="application/rss+xml" />

		<item>
			<title>scott@adszoom.com on "changing the background color of a post"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/changing-the-background-color-of-a-post#post-71768</link>
			<pubDate>Mon, 20 Aug 2012 16:43:49 +0000</pubDate>
			<dc:creator>scott@adszoom.com</dc:creator>
			<guid isPermaLink="false">71768@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;hay thanks Chris Ill let you know on that and post the final proofed code here of corse working on this now &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/i-form-for-1-region-makes-it-easier-for-searchers-to-find-local-stuff&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/i-form-for-1-region-makes-it-easier-for-searchers-to-find-local-stuff&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;just wrote a revised comment after reading all day in your forums
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "changing the background color of a post"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/changing-the-background-color-of-a-post#post-71658</link>
			<pubDate>Mon, 20 Aug 2012 01:26:32 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">71658@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Scott, take a look a this code. &#60;a href=&#34;http://pastebin.com/N5xsg7sN&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/N5xsg7sN&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I'm flying blind without the plugin, since it's a paid one, but I think based on your last post, this code might work.  The only thing I am not sure about is if there can be more that one membership level for a member?  The wishlist function returns an array of membership levels, so I just do 3 separate checks to see if 365, 180 or weekly are in the array of membership levels returned.  If any of them are, then that specific class is added to the body class.  So, in theory, if the user had all three membership levels, the body class could end up looking like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[html]
&#38;lt;body class=&#38;quot;home page page-id-12345 year-member half-year-member week-member&#38;quot;&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;with all three classes present.  You'd have to work some magic with your CSS to ensure the right styling wins in that case (if that's even a possibility.)&#60;/p&#62;
&#60;p&#62;Let me know if that works.  If you put it online, please post a link to the site or email me at &#60;a href=&#34;mailto:chris@rocketgenius.com&#34;&#62;chris@rocketgenius.com&#60;/a&#62; - thanks,.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>scott@adszoom.com on "changing the background color of a post"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/changing-the-background-color-of-a-post#post-70696</link>
			<pubDate>Sat, 11 Aug 2012 11:35:25 +0000</pubDate>
			<dc:creator>scott@adszoom.com</dc:creator>
			<guid isPermaLink="false">70696@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;pre&#62;&#60;code&#62;What version of WLM are you running? If you’re running the latest v2.71.1330 or greater than you can just do this:
function function_name() {
global $current_user;
$user_id = $current_user-&#38;gt;ID;
$levels = wlmapi_get_member_levels($user_id);
$levels = $levels[&#38;#39;levels&#38;#39;][&#38;#39;level&#38;#39;];

//Then, run your if statement
if ( in_array(365, $levels)) {
//Do stuff
}
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;just got this back from wish list finally &#60;/p&#62;
&#60;p&#62;there are 3 lev &#60;/p&#62;
&#60;p&#62;2.0 weekly&#60;br /&#62;
2.0 180&#60;br /&#62;
2.0 365
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "changing the background color of a post"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/changing-the-background-color-of-a-post#post-67624</link>
			<pubDate>Mon, 23 Jul 2012 20:15:26 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">67624@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for bumping this topic Scott.  I lost the tab when my browser crashed.  I'll take a look at it again for you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>scott@adszoom.com on "changing the background color of a post"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/changing-the-background-color-of-a-post#post-66679</link>
			<pubDate>Tue, 17 Jul 2012 12:54:00 +0000</pubDate>
			<dc:creator>scott@adszoom.com</dc:creator>
			<guid isPermaLink="false">66679@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;have had 0 luck with this just posted in the paid WL forum for answers. Have you had time to look at this?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>scott@adszoom.com on "changing the background color of a post"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/changing-the-background-color-of-a-post#post-66258</link>
			<pubDate>Sat, 14 Jul 2012 12:31:13 +0000</pubDate>
			<dc:creator>scott@adszoom.com</dc:creator>
			<guid isPermaLink="false">66258@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hay Chris i have bin looking around for the keys for this issue and the only stuff i found was what i sent, If that was not what your looking for ? Is there any other resources I can read up on? Or is there a different way to do this?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>scott@adszoom.com on "changing the background color of a post"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/changing-the-background-color-of-a-post#post-66104</link>
			<pubDate>Fri, 13 Jul 2012 10:31:00 +0000</pubDate>
			<dc:creator>scott@adszoom.com</dc:creator>
			<guid isPermaLink="false">66104@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;did you need any other info for now?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>scott@adszoom.com on "changing the background color of a post"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/changing-the-background-color-of-a-post#post-66049</link>
			<pubDate>Thu, 12 Jul 2012 23:42:47 +0000</pubDate>
			<dc:creator>scott@adszoom.com</dc:creator>
			<guid isPermaLink="false">66049@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;ya i think the keys are here but i don't know what you need &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://wishlistproducts.com/wp-content/uploads/2011/07/wlmapi2doc.pdf&#34; rel=&#34;nofollow&#34;&#62;http://wishlistproducts.com/wp-content/uploads/2011/07/wlmapi2doc.pdf&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>scott@adszoom.com on "changing the background color of a post"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/changing-the-background-color-of-a-post#post-66048</link>
			<pubDate>Thu, 12 Jul 2012 23:28:39 +0000</pubDate>
			<dc:creator>scott@adszoom.com</dc:creator>
			<guid isPermaLink="false">66048@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;here is a bit of code that they say works for a reference to you dose it help? &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// get the current user level from WP more important is global $user.
$user = wp_get_current_user();

// Get user levels from WishlistMembers
$levels = WLMAPI::GetUserLevels($user-&#38;gt;ID);

//then run the check for the level you want like this:
if(in_array(&#38;#39;silver&#38;#39;, $levels)){
  //  PRINT OUT THE silver LEVEL stuff here
}
elseif (in_array(&#38;#39;gold&#38;#39;, $levels)){
   // PRINT OUT THE gold LEVEL stuff here
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>scott@adszoom.com on "changing the background color of a post"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/changing-the-background-color-of-a-post#post-66047</link>
			<pubDate>Thu, 12 Jul 2012 23:26:41 +0000</pubDate>
			<dc:creator>scott@adszoom.com</dc:creator>
			<guid isPermaLink="false">66047@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hay Chris here is i think what your looking for ::? &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://wishlistproducts.com/api/api2/&#34; rel=&#34;nofollow&#34;&#62;http://wishlistproducts.com/api/api2/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;there are 2 doc's and has all the distinguishing info between the member classes..&#60;/p&#62;
&#60;p&#62;3 total membership classes the problem im running into is that the that this plug-in create  these for each member level &#34;wpm_access[1296320588]&#34; and &#34;wpm_level[1296320588]&#34;&#60;br /&#62;
so i dont think this is the info your requesting ? &#60;/p&#62;
&#60;p&#62;1)&#60;br /&#62;
free : level_id   1331304156&#60;br /&#62;
2)&#60;br /&#62;
2.0_weekly_unlimited_ads&#60;br /&#62;
3)&#60;br /&#62;
2.0_180_days_unlimited_ads&#60;br /&#62;
4)&#60;br /&#62;
2.0_365_days_unlimited_ads : level_id 1331304053
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
