Community Support Forums — WordPress® ( Users Helping Users ) — 2011-09-12T19:19:12-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=14205 2011-09-12T19:19:12-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14205&p=34636#p34636 <![CDATA[Re: Conditional widgets?]]> these conditionals are pretty powerful!

Regards

Statistics: Posted by wouthe — September 12th, 2011, 7:19 pm


]]>
2011-09-12T18:18:44-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14205&p=34626#p34626 <![CDATA[Re: Conditional widgets?]]>
By using
Code:
<?php if(is_user_logged_in()){ ?>
    Content for anyone that is logged in, regardless of their Membership Level.
<?php } else { ?>
    Some public content.
<?php } ?>

in the footer, it might be possible to hide the footer for the public.
Let's try this.

Statistics: Posted by wouthe — September 12th, 2011, 6:18 pm


]]>
2011-09-12T13:03:52-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14205&p=34605#p34605 <![CDATA[Re: Conditional widgets?]]>
The easiest way is to use the s2cleantheme. It comes with a footer only visible when logged in.

As I want to start of from a different theme frame, I'll try to implement this feature into my theme. I'm afraid this will not be easy though.
Did anyone try this before?

Thanks.

Statistics: Posted by wouthe — September 12th, 2011, 1:03 pm


]]>
2011-09-12T10:31:32-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14205&p=34600#p34600 <![CDATA[Re: Conditional widgets?]]> Statistics: Posted by cassel — September 12th, 2011, 10:31 am


]]>
2011-09-11T18:25:50-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14205&p=34564#p34564 <![CDATA[Re: Conditional widgets?]]>
I want to do the same thing. Did it work to make your widget conditional?

I want to do it with a 'recent comments' widget. This means that non-members should not be able to see what is said inside, but the widget has to be present in the footer bar.

Thanks.

Statistics: Posted by wouthe — September 11th, 2011, 6:25 pm


]]>
2011-07-23T00:15:40-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14205&p=28971#p28971 <![CDATA[Re: Conditional widgets?]]>
I don't know how to make a widget conditional from the dashboard, but you may try editing the widget using a hook to add the conditions.

Statistics: Posted by Cristián Lávaque — July 23rd, 2011, 12:15 am


]]>
2011-07-22T21:31:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14205&p=28950#p28950 <![CDATA[Conditional widgets?]]>
As another question, are conditionals only useable with member levels and ccaps, or can i use other WP roles, like "admin"?

Statistics: Posted by cassel — July 22nd, 2011, 9:31 pm


]]>