Results 1 to 10 of 10

Thread: Click to show content on custom fields

  1. #1
    Thread Starter
    Veteran Fanatic's Avatar
    Join Date
    Jul 2010
    Location
    Canada
    Posts
    885
    Thanks
    309
    Thanked 57 Times in 51 Posts

    Click to show content on custom fields

    Is there a plugin out there that allows us to HIDE certain aspects of a post, in this case, a custom field?

    Using ClassiPress, the custom fields are exposed by default to any user browsing the content of the site, in most cases, emails and numbers are exposed as well based on the form filled out.
    Example: custom field: email (click to view email)

    Sites such as Kijiji have an option to hide the content unless the user clicks on it, or even better, restrict the field to registered users only, by doing so, you're eliminating the auto bots that scan websites for vulnerable content such as emails and other related info to the users, obviously, the end user has the option of displaying their email at their discretion, just trying to be proactive with this approach.

    Anyone know a good one out there that actually works with custom posts or custom fields?

  2. #2
    rubencio's Avatar
    Join Date
    May 2010
    Location
    Spain
    Posts
    3,804
    Thanks
    268
    Thanked 316 Times in 278 Posts
    Hi Fanatic,
    This is something can be done via the CSS if you just want visitors do not see some custom fields (in this case it is still vulnerable for auto bots), or handling with the php code but this requires some time to be properely achieved.
    Regards,

    r u b e n c i o . c o m


    Since 2010 providing AppThemes solutions,
    Plugins and the best childthemes...



  3. #3
    Thread Starter
    Veteran Fanatic's Avatar
    Join Date
    Jul 2010
    Location
    Canada
    Posts
    885
    Thanks
    309
    Thanked 57 Times in 51 Posts
    Hey Ruben,
    I understand the css approach (hiding it all together) but I was referring to something that allows the visitor to click on the field to view info, since the initial state would be hidden, something like: Click here to view email or click here to view number.
    I was hoping a plugin out there would make it easier to accomplish.

    Any child themes of yours ready for CP 3.0.5 and up yet??

  4. #4
    rubencio's Avatar
    Join Date
    May 2010
    Location
    Spain
    Posts
    3,804
    Thanks
    268
    Thanked 316 Times in 278 Posts
    Hey Fanatic,

    A lot of them really... actually ALL developed last two months ... but all custom made ones!
    I've had no time last weeks to develop anything in order to sale it at my online store.
    So, everything it is custom made.

    Concerning this thread, this can be achieved changing the php involved, but of course requires some time.

    Regards,

    r u b e n c i o . c o m


    Since 2010 providing AppThemes solutions,
    Plugins and the best childthemes...



  5. #5
    Thread Starter
    Veteran Fanatic's Avatar
    Join Date
    Jul 2010
    Location
    Canada
    Posts
    885
    Thanks
    309
    Thanked 57 Times in 51 Posts
    No doubt it will require sometime if applied manually, hence posting this thread under the plugin exchange post hoping to find a plugin that does the job, I was told certain member management plugins can deliver such results, will see.

    As for your custom themes: super nice! Where's your custom showcase link?? I saw 2 of them that I liked in your ClassiPress child themes snapshot but couldn't locate them on your site. (http://classipro.com/childthemes/total-custom/) is broken (404 error)

  6. #6
    rubencio's Avatar
    Join Date
    May 2010
    Location
    Spain
    Posts
    3,804
    Thanks
    268
    Thanked 316 Times in 278 Posts
    Hey Fanatic,
    Thank you for letting me know this. Now it is fixed!
    Best regards,

    r u b e n c i o . c o m


    Since 2010 providing AppThemes solutions,
    Plugins and the best childthemes...



  7. #7
    Thread Starter
    Veteran Fanatic's Avatar
    Join Date
    Jul 2010
    Location
    Canada
    Posts
    885
    Thanks
    309
    Thanked 57 Times in 51 Posts
    No its not lol I thought it was my cache but still got the 404 error using a different browser

  8. #8
    rubencio's Avatar
    Join Date
    May 2010
    Location
    Spain
    Posts
    3,804
    Thanks
    268
    Thanked 316 Times in 278 Posts
    SORRY! You are sooooo right!
    I've checked all link inside my website and this is not appearing for me... where did you find this link? Maybe an old one?
    Best regards,

    Quote Originally Posted by Fanatic View Post
    No its not lol I thought it was my cache but still got the 404 error using a different browser

    r u b e n c i o . c o m


    Since 2010 providing AppThemes solutions,
    Plugins and the best childthemes...



  9. #9
    Thread Starter
    Veteran Fanatic's Avatar
    Join Date
    Jul 2010
    Location
    Canada
    Posts
    885
    Thanks
    309
    Thanked 57 Times in 51 Posts
    I think you posted it on here at some point, either way, I was looking for the one in the top left corner of this post's image (http://forums.appthemes.com/fit-all-...516/#post35960), this is getting off topic as its the wrong thread, moving to your original post.

  10. #10
    Senior Member toms's Avatar
    Join Date
    Aug 2010
    Location
    United Kingdom
    Posts
    147
    Thanks
    7
    Thanked 4 Times in 4 Posts
    Hey, I have this type of functionaility in guestlistclubs.com on the club pages sidebar - in the "Members Only" tab the information is hidden until they have logged in... here's the code I used:

    <?php if(is_user_logged_in()){ ?>


    <ul>
    <h2>Members Area</h2>
    <?php $key="gc_members"; echo get_post_meta($post->ID, $key, true); ?>
    </ul>
    <br/>
    <ul>
    <h2>Guestlist Contacts</h2>
    <?php $key="gc_guestlist"; echo get_post_meta($post->ID, $key, true); ?>
    </ul>
    <br/>
    <ul>
    <h2>Nearest Restaurants</h2>
    <?php $key="gc_restaurant"; echo get_post_meta($post->ID, $key, true); ?>
    </ul>

    <div class="clr"></div>

    <?php } else { ?>

    <ul>
    Please login to see tips about this club!
    </ul>

    <div class="clr"></div>
    <?php } ?>

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Show age from date of birth custom fields.
    By mark1975 in forum ClassiPress General Discussion
    Replies: 3
    Last Post: February 4th, 2011, 08:16 AM
  2. Custom Fields in Custom Forms are not working...
    By alexuz0751 in forum Report ClassiPress Bugs
    Replies: 4
    Last Post: December 31st, 2010, 05:15 PM
  3. Custom Fields do not show up when viewing Add
    By ash2dust in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: December 26th, 2010, 09:42 PM
  4. We want to show the custom fields from the Ads listed in the current categorie
    By mr_green in forum ClassiPress General Discussion
    Replies: 4
    Last Post: December 16th, 2010, 06:33 AM