Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • kpmediadesigner

    (@kpmediadesigner)

    I’m trying to do the same thing. Here is my plan:
    – Register a couple hidden fields to hold the dates ( basically what you recommended ).
    – Make my own HTML calendar with PHP
    – Use javascript to update the hidden input values before submitting.
    – Finally my own custom validator to make sure the dates are in the futures and such.

    Unless you had another recommendation, like the ability to add my own fields type with a filter or something.

    Thread Starter kpmediadesigner

    (@kpmediadesigner)

    You are the best! Thank you.
    Just for the future, is there somewhere in the documentation that I could have figured that out from? I want to try and figure this stuff out myself so I don’t keep bothering you with it. Either way top-notch support.

    Thread Starter kpmediadesigner

    (@kpmediadesigner)

    Oh and to answer your question on paid users, I’m using the profile builder plugin that has a paid memberships addon, and then just pulling the metadata with $wpdb to find the subscription of the user from an ID.

    Thread Starter kpmediadesigner

    (@kpmediadesigner)

    That code snipped is perfect. Yup, that was what I needed there.

    So I want the username field to only show after the post has actually been created. If they are adding it for the 1st time and it isn’t already saved in the database I don’t want to display it (as its meant to hand over authorship to Joe, and it doesn’t make sense to hand over authorship to a post before the post actually exists I’m thinking).

    WHen BIll makes the post I have a shortcode that will send Joe a notification that someone in his area made the post. Joe will then contact bill through the info I provide in the notification and tell Bill to enter his username and give him authorship. Having the field there before this point may confuse new users, so I want to hide it.

    Thread Starter kpmediadesigner

    (@kpmediadesigner)

    Let me try and make it super clear:
    -I want to allow the advert poster ( lets call him Bill ) to make a post.
    -The post is only visible to Bill even if he wants to share it.
    -Bill can go back and edit the post to fill in a field that asks for another users username ( Lets call the user Joe ).
    -When Bill enters Joe’s username It makes Joe the new author of the advert post, so Joe can make changes. ( I’m doing this in a custom validator ).
    – Joe can then mark the post to be publically visible. ( I can do this part myself, so actually getting it marked for being public isn’t a big deal, but if you have a nice clean way to do it I’m all ears ).

    I know it seems weird, but when it’s done it will totally make sense. I was wondering if its possible to only show the field requesting a username after you have already published the post and gone back to make an edit (Joe’s username in this case).

    Basically Paid users need to take over for free users (Joe is a paid user and Bill is free) before the post is public. Thats the goal anyways.

    Thread Starter kpmediadesigner

    (@kpmediadesigner)

    Ok thank you for that bit of code. However, the user cannot still make edits. I go to the manage ads page and it displayed this message:
    “You do not have any Ads posted yet.”

    But if I change the ad I just posted on from “Status: Pending Review” to ” Status: Published” it does appear on the same page upon refresh. If I can allow the user to make edits still with it pending review that’s basically what I’m looking for.

    Thread Starter kpmediadesigner

    (@kpmediadesigner)

    That’s way better than what I was going to do. Perfect! Sorry, I took so long to respond. I have been working on this major project constantly for a couple of months now. Big help thank you!

    Thread Starter kpmediadesigner

    (@kpmediadesigner)

    Ok new plan. I’m going to make each have a validator to check post for the value of the Select field and make my own is_required validator. I’ll post code once I get it working for anyone else who it may help.

Viewing 8 replies - 1 through 8 (of 8 total)