Personals
-
Happy Holidays all,
I would like to purchase a plan for wpadverts to setup for personals on my site. Can this be setup to allow only one ad per member allowed and remove references to a cost or sale value from ads?
Thanks much,Brian
-
Hi,
thanks for trying WPAdverts, by default there is no limit on the number of ads users can post, with the Pro+ package you can use Memberships extension and limit the usage.That being said if the users will post the Ads for free then you can just get a Pro package and let me know I will create for you a simple snippet that will limit the number of postings without any additional costs.
As for the prices you can use the Custom Fields extension to remove the Price field, when the price will not be filled then the prices will not show anywhere on site.
Thanks Greg, Would you also be able to limit some additional information from being displayed and perhaps even being collected? I will want to not display a user’s email or phone number also. I really am hoping to allow users to find each other though a filter and search and then utilize other communications available on the site for interacting.
One additional thought or perhaps concern is when using the location map feature is having a user’s home address being displayed on a map. If possible I think limiting the location to the city or town level would be me sufficient for general location purposes. I’m not sure if that is possible though.
Thanks much
Hi,
with the Custom Fields extension you can add, edit and remove fields from [adverts_add] form, the fields that are removed will of course not be displayed in the frontend :).Aside of hiding the email and phone number you can enable Contact Form module the users will then not be able to see the contact information but will be able to contact each other via the contact form.
With the Maps and Locations extension you can create a predefined list of locations, then the users will be able to select from the list (for example their town) instead of typing the whole address.
That being said if the users will post the Ads for free then you can just get a Pro package and let me know I will create for you a simple snippet that will limit the number of postings without any additional costs.
Hi Greg,
Circling back to the request for a code snippet to limit the number of ads which can be placed by a member to one. Can you assist when you have the time?
Thanks, BrianHi,
there are few ways to do, i am pasting below the code that you can add in your theme functions.php file.It will show a message “Each user can have one published Ad only” instead of [adverts_add] form if a user has at least one Ad published.
add_filter( "adverts_action_", "one_ad_per_user_only"); function one_ad_per_user_only( $content ) { if( count_user_posts( get_current_user_id(), "advert", true ) ) { wp_enqueue_style( 'adverts-frontend' ); wp_enqueue_style( 'adverts-icons' ); wp_enqueue_style( 'adverts-icons-animate' ); $flash = array( "error" => array(), "info" => array() ); $flash["error"][] = array( "message" => "Each user can have one published Ad only", "icon" => "adverts-icon-cancel" ); ob_start(); adverts_flash( $flash ); return ob_get_clean(); } else { return $content; } }You also wanted to hide the any reference to payments. I understand that you do not want to charge users at all? If so then you can just disable the Payments module in wp-admin / Classifieds / Options panel.
Thanks much Greg, I appreciate your support!
The topic ‘Personals’ is closed to new replies.