PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Classifieds How do I...? (http://www.photopost.com/forum/classifieds-how-do-i/)
-   -   Charge for ads with < x posts? (http://www.photopost.com/forum/classifieds-how-do-i/139699-charge-ads-x-posts.html)

dwessell April 1st, 2009 11:51 AM

Charge for ads with < x posts?
 
Hi,

I know this isn't a feature, but I'm hoping you can point me in the right direction.. I'd like to charge for ads, if the users has < x posts.. Would that be something simple to mod?

Thanks
David

Chuck S April 1st, 2009 12:18 PM

well you would definately have to mod the code for sure. Just thinking but possible in your uploadproduct script you would have to query how many posts a user has and then add to the conditionals to pay the restriction on the user post total someway.

dwessell April 1st, 2009 12:21 PM

I know I'm taking the lazy road here in asking, so please forgive me.. I'm not at a spot where I can get into the code, but just had the idea..

Is the uploadproduct script the only place that I would have to mod? That is, is the payment information composed there as well?

Without looking at the code (And I know it's retarded to even think about it while not looking at the code).. But I could put a if statement around the payment code.. If posts < x make them pay... etc..

Thanks
David

Quote:

Originally Posted by Chuck S (Post 1244692)
well you would definately have to mod the code for sure. Just thinking but possible in your uploadproduct script you would have to query how many posts a user has and then add to the conditionals to pay the restriction on the user post total someway.


Chuck S April 1st, 2009 12:25 PM

well yeah thats why there are mod forums if other users find your idea interesting and want to assist. I cant say whether thats the only place you want to mod as you would code whatever mod up to act the way you want. ;)

well you would have to query in some manner the user posts and define the variable say $userposts.

But the payment line is this twice in that file

Code:

Content visible to verified customers only.
If you define the variable $userposts you would change those lines like this

Code:

Content visible to verified customers only.


All times are GMT -5. The time now is 01:39 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97