Results 1 to 1 of 1

Thread: Checking if author have a MEMBERSHIP PACK or not

  1. #1
    Thread Starter
    Member nathanmuniz's Avatar
    Join Date
    Jan 2012
    Posts
    81
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Checking if author have a MEMBERSHIP PACK or not

    Hello guys!

    I have an idea in my mind but I don't have enough experience in code to do it.

    I just want to make a simple CHECK, the algorithm should be like this for example:

    if the_author have a MEMBERSHIP PACK
    the system can put the <a href>
    if the_author don't have a MEMBERSHIP PACK
    just show the_author DISPLAY_NAME

    the ideia is... if the user buy a membership pack he/she will have a PROFILE page... if he/she don't have a membership pack I will put this CHECK in all "LINKS" on the code of classipress to remove the <a href> to the profile page.

    PHP Code:
    <ul class="member">

                        <li><span><?php _e('Listed by:','appthemes');?></span>
                            <?php
                                
    // check to see if ad is legacy or not
                                
    if ( get_post_meta($post->ID'name'true) ) {
                                    if ( 
    get_the_author() != '' ) { ?>
                                        <a href="<?php echo get_author_posts_url(get_the_author_id()); ?>"><?php the_author_meta('display_name'); ?></a>
                                <?php
                                    
    } else {
                                        echo 
    get_post_meta($post->ID'name'true);
                                    } 
    ?>

                          <?php } else { ?>
                                        <a href="<?php echo get_author_posts_urlget_the_author_meta('ID') ); ?>"><?php the_author_meta('display_name'); ?></a>
                            <?php
                                
    }
                            
    ?>
                        </li>
    Can someone help me? I think it is easy to do, but as I said... I don't have experince to do this =/

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. coupon membership pack
    By tiger09019 in forum Report ClassiPress Bugs
    Replies: 5
    Last Post: March 19th, 2013, 11:28 PM
  2. Membership Pack Error
    By interactivegm in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: January 6th, 2012, 06:20 AM
  3. Membership pack + Feature Listings.
    By Bredvig in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: October 23rd, 2011, 03:52 AM
  4. Membership Pack Integration
    By toms in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: October 13th, 2011, 03:08 PM
  5. [MOD NEEDED] Hide Dashboard Membership Pack
    By hanniabu in forum ClassiPress General Discussion
    Replies: 1
    Last Post: August 1st, 2011, 03:44 PM