PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Using short codes twice

s2Member Plugin. A Membership plugin for WordPress®.

Using short codes twice

Postby benchefe » January 13th, 2012, 7:12 am

Hi Folks,
long time no see :)

I am working on my new wordpress installation.
Right now I am trying to use a table, surrounded by the [s2If is_user_logged_in() ] table [/s2If].
Now I am using "ccap" conditions:
Code: Select all
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
    <td width="20">3.</td>
    <td width="250">Die Lip-Rolls</td>
    <td width="60" align="center">video</td>
    <td width="72" align="center">Anfänger</td>
    <td width="58" align="center">4,99 €</td>
    <td width="110" align="center">[s2If current_user_can(access_s2member_ccap_v1)] <span class="gruen">bereits gekauft!</span> [/s2If][s2If !current_user_can(access_s2member_ccap_v1)] <span class="lila">jetzt kaufen!</span> [/s2If]</td>
  </tr>

So short codes appear twice...( a kind of double condition).
This causes an error, cause parts of my table are displayed for non logged in users as well...
Is this possible in general?

By the way...
I am working on a translation for german users :) maybe finished in a few days :)

Greetings
You need music for your own website? You need an audio jingle? You need spoken words or special sounds? Let me now. I can create YOUR individual solution!
User avatar
benchefe
Experienced User
Experienced User
 
Posts: 33
Joined: February 11, 2011
Location: Hannover, Germany

Re: Using short codes twice

Postby benchefe » January 13th, 2012, 9:27 am

ups... my fault...found it...

sub conditions work by using
Code: Select all
[_s2If.....]content[/_s2If]


I am getting old.....
You need music for your own website? You need an audio jingle? You need spoken words or special sounds? Let me now. I can create YOUR individual solution!
User avatar
benchefe
Experienced User
Experienced User
 
Posts: 33
Joined: February 11, 2011
Location: Hannover, Germany


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron