PDA

View Full Version : Buy Thread: Pay to Post New Thread


calorie
05-24-2006, 10:00 PM
This mod allows you to require payment from registered users prior to letting them post new threads. This mod also utilizes PayPal so you need to use PayPal's IPN and have your board set to accept PayPal payments.

The mod is good for those of you who want to set up some forums where users are required to pay a fee prior to making a new thread, such as for real estate, job postings, sale items, other types of classified ads, etcetera.

If you make any money from using this mod, I expect a cut. LOL, just kidding, but do click install should you use this mod. :D

Daniel
05-25-2006, 01:06 AM
Cool idea, I could use this in the future. Thanks!

domainaddicted
05-25-2006, 01:08 AM
Wow, been looking for this, was thinking about it and boom, thanks so much!

wtrk
05-25-2006, 01:13 AM
its about time somebody made this! thanks calorie, you rock!

FleaBag
05-25-2006, 01:53 AM
Nice addition. Hopefully will be able to sell access to my homepage news forum eventually. :D

Stifler
05-25-2006, 02:06 AM
can you set which forums require purchase from to post and which dont?

calorie
05-25-2006, 02:15 AM
Thanks for the thanks. :)

If there is something desired, just post, and if I have time, I'll see what I can do.

@Stifler: every forum has the on/off option, just check step three (https://vborg.vbsupport.ru/attachment.php?attachmentid=48181&d=1148522188) of the readme.

NiTRoN
05-25-2006, 02:34 AM
Maybe for future development being able to specify levels.. like for $5 u get 10 posts, for $10 u get 25... etc.. Admin would setup these options..

glorify
05-25-2006, 02:49 AM
Perfect for Ticket Brokers wanting to hawk tickets. This hack is in high demand. Would work great with this hack as well:
Extra Thread Fields (https://vborg.vbsupport.ru/showthread.php?t=108888&highlight=extra+thread+fields)

Will this work for 3.5.0?

bada_bing
05-25-2006, 03:03 AM
THis is a cool hack will look into it soon

wtrk
05-25-2006, 03:16 AM
one thing i would like to suggest would be the option to allow or disallow replies to the paid thread or possibly paid replies (at a discount??).

Zachariah
05-25-2006, 03:19 AM
Nice going C !!

ChurchMedia
05-25-2006, 04:04 AM
Excellent! I've been waiting for a hack like this! Thanks!

michaelbenson
05-25-2006, 06:20 AM
I have been waiting for a release like this since the advent of the "Paying The User To Post" modification. Great idea!

/me installs immediately.

projectego
05-25-2006, 07:28 AM
Very cool hack, cheers! ;)

hugh_
05-25-2006, 08:14 AM
Very nice work indeed! Is there a demo anywhere though?

Thanks...

hugh

paul41598
05-25-2006, 11:35 AM
doesnt work for me. After payment, it redirects me back to the forum, I go into the forum, click new topic and asks me for payment again :(

vbuser99
05-25-2006, 04:08 PM
I was waiting for this :knockedout:

Mr Chad
05-25-2006, 04:09 PM
Nice job calorie :)

calorie
05-25-2006, 04:58 PM
Thanks again for the thanks. :D

@glorify: can't check, don't use vB 3.5.0

@hugh_: no demo unless from someone else

@paul41598: is your PayPal account IPN on

Bleys
05-25-2006, 05:30 PM
Been waiting for this for awhile. Thanks! :)

If you're looking for ideas... a credit system would be really cool, where people could buy credits and then use them in multiple forums (i.e., you could buy credits for $1 each, then posts in various forums would cost different amounts of credits) ... that way you could charge different amounts for different forums and people wouldn't feel like they were pigeon holed into one forum. :)

I'm sure that gets more complicated, but that would be a really sweet mod.

paul41598
05-25-2006, 06:21 PM
Thanks again for the thanks. :D
@paul41598: is your PayPal account IPN on


It is on, and always has been. What is the Notification URL: supposed to be?

Right now it points to my forums/ppverify.php ?

Probably from some 3.0.7 series hack that I might have had? dunno

hugh_
05-25-2006, 06:56 PM
Thanks again for the thanks. :D

@glorify: can't check, don't use vB 3.5.0

@hugh_: no demo unless from someone else

@paul41598: is your PayPal account IPN on

Calorie,

Is there any chance of applying this hack to calendar posts as well?

Thanks...

hugh

Snake
05-25-2006, 07:13 PM
I'll be using this kinda like soon so thanks!

calorie
05-25-2006, 07:42 PM
@paul41598: the Notification URL set in your PayPal account doesn't matter, as this mod uses the following:

<!-- in ptpnt_buythread_form template -->
<input type="hidden" name="notify_url" value="$vboptions[bburl]/buythread.php?do=paypal" />

When you get to the page that gives the total, before you click the purchase button, view the HTML source.

Look for the following and make sure the hidden input tags are correct, and if not just edit the template.

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">

If everything looks okay, make sure there isn't anything like a .htaccess file blocking the PayPal IPN postback.

@hugh_: not sure if I'm up for another hack ATM, but maybe later.

paul41598
05-25-2006, 08:02 PM
That did it Calorie. It was because I was testing this on testforums and using htaccess to block it. Its always something obvious huh? Works great. Thanks for the troubleshooting. ;)

hugh_
05-25-2006, 08:49 PM
@paul41598: the Notification URL set in your PayPal account doesn't matter, as this mod uses the following:

<!-- in ptpnt_buythread_form template -->
<input type="hidden" name="notify_url" value="$vboptions[bburl]/buythread.php?do=paypal" />

When you get to the page that gives the total, before you click the purchase button, view the HTML source.

Look for the following and make sure the hidden input tags are correct, and if not just edit the template.

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">

If everything looks okay, make sure there isn't anything like a .htaccess file blocking the PayPal IPN postback.

@hugh_: not sure if I'm up for another hack ATM, but maybe later.

No problem, thanks for considering it!

hugh

Floris
05-25-2006, 09:12 PM
Calorie: as usual > very cool!

Thanks for sharing :)

ramone_johnny
05-26-2006, 02:40 AM
OH man! Ive been looking everywhere for this!!!!

TOP STUFF!

RJ

TomJames
05-26-2006, 06:54 PM
This is prefect! Im testing it now :D hope to implement it soon.

*installs*

ramone_johnny
05-26-2006, 09:58 PM
Err, I just carried out the install, and while everything looks to be ok - nothing happens, althought Im logged in as admin. Could this be why?

Nevermind - I didnt have the bloody option turned on! :p

RJ

angB
05-29-2006, 08:41 PM
Two questions:

Is there a way to add thread rule/purchase policy to this so when they purchased a thread they could agree to the purchase policy?

Is there a way to have vBulletin automatically promote a member to a higher usergroup when they purchase a thread?

Thanks!

furst
05-30-2006, 07:22 AM
I haven't read the 3 pages of this thread so this may have been suggested already.. but don't you think it would be more practical to select only the forums you want this enabled for instead of the other way around?

Great hack btw. Will install this sometime in the future.

klaush
05-30-2006, 12:06 PM
Well, well, well...; one of my top 3 hacks! Thanks!

Is it possible to involve other payments as well? So to give the user the possibility to purchase via his bank account?

jwparker
05-31-2006, 07:36 PM
If a member decides not to use all their purchased threads, is there a time limit for when they can no longer use them?

Awesome hack by the way....

Jed

Virtuosofriend
06-03-2006, 09:12 PM
Well, well, well...; one of my top 3 hacks! Thanks!

Is it possible to involve other payments as well? So to give the user the possibility to purchase via his bank account?
just attach your bank account to your paypal and voila you have bank account and paypal linked together.

Awesome hack by the way.

ramone_johnny
06-06-2006, 01:43 AM
HI guys,
When trying to place a new thread i receive ...

Invalid Payment Processor specified. If you followed a valid link, please notify the administrator

Is this because Ive missed something in the Payment API Manager?

I ran the paypal connection test and it passed.

Could someone please help me out here?

Also could the inclusion of a replacement button happen on forums with this mod applied so that it reads "Place an advertisement now - only $9.95" or something instead of just "new thread"

RJ

calorie
06-06-2006, 02:06 AM
Go to vB ACP -> Paid Subscriptions -> Payment API Manager -> Edit Paypal and make sure the following are set as indicated:

Title: Paypal
Active: Yes
PayPal Email: your paypal email for buy thread payment
Paypal Primary Account Email: your primary paypal email

ramone_johnny
06-06-2006, 03:05 AM
Go to vB ACP -> Paid Subscriptions -> Payment API Manager -> Edit Paypal and make sure the following are set as indicated:

Title: Paypal
Active: Yes
PayPal Email: your paypal email for buy thread payment
Paypal Primary Account Email: your primary paypal email


Sorry to have to clarify but would this be...

PayPal Email: my actual username at my domain name like wiggle@wiggle.com.au?

And the primary - is that the same?

RJ

calorie
06-06-2006, 03:13 AM
Don't know your primary, you'll need to check: PayPal -> Profile -> Email ;)

ramone_johnny
06-06-2006, 03:22 AM
Aha!

That was it - I just had to enter my paypal email account and wala!

Thanks so much for this buddy - great hack!

RJ

ramone_johnny
06-06-2006, 03:24 AM
Im SO EXCITED!!!!

Ca Ching!!!

ramone_johnny
06-06-2006, 04:13 AM
Calorie,
I now have this working but would like some small ammendments if possible.

At the moment the screen reads Price Per Thread 1.00 AUD however could you please change this to $1.00 with the '$' in front of it?

id do this myself - but am new to php (Im an asp/sql server coder)

Thanks buddy,
RJ

ramone_johnny
06-06-2006, 04:25 AM
Oh and replace the new thread button with "Post your Ad now for $9.95" or something.

RJ

masterross
06-06-2006, 11:46 AM
hi,

i've installed this hack
but can you explain me after member made payment how will be activated for posting?

thanks

masterross
06-18-2006, 05:10 PM
Can this hack works with world pay too?

thanks

Slave
06-21-2006, 07:21 AM
Fantastic mod! Thank you :D

Slave
06-21-2006, 07:23 AM
Oh, one question ..

Is there a way of testing the Paypal functionality of this mod without having to have 2 Paypal accounts?

bchertov
06-22-2006, 05:19 AM
I hope your a planning to port this to 3.6 as soon as it goes gold (if not before!)

Princeton
06-25-2006, 06:52 PM
I love this ... great product. :up:

inspiration100
07-01-2006, 08:50 PM
lol, you should default the settings to your paypal, you might just get some money :P. Thanks, and installed!

NetworkTown.Net
07-03-2006, 12:49 PM
Any one got a demo? is this the hack used at sitepoint marketplace ? if so im installing it ;)

Marcus Lau
07-14-2006, 06:20 AM
do u mean that they will be able to make new thread once they made their payment?

dacho
07-14-2006, 06:40 AM
It's work for specific forum or for all board ?

laskos
07-15-2006, 07:51 PM
well i cant get this to work, ive done all the above... has anyone got it to work

laskos
07-15-2006, 08:11 PM
ok got it to ask for payment, but when someone pays it takes them back to the site home page and not where they where wanting to post ?? any ideas

bigtime
08-09-2006, 04:23 AM
Can anyone confirm that this works on 3.60?

Thanks,

Tim

BobbyBig
08-09-2006, 11:56 AM
Great work, will install it today :)

bchertov
08-10-2006, 04:05 AM
Can anyone confirm that this works on 3.60?

Thanks,

TimDitto! And what's become of our kind benefactor, Calorie????

laskos
08-10-2006, 01:00 PM
ok got it to ask for payment, but when someone pays it takes them back to the site home page and not where they where wanting to post ?? any ideas

can anyone tell me how i fix this ???

cihangir
08-15-2006, 05:51 PM
great hack, thanks for sharing it i ;)

i have only a small problem. on my forums the unregistered users have permission to post. but they can post without paying, though this plug-in is already activated. any idea, how to fix this problem?

thanks in advance.

Webs007
08-22-2006, 07:35 AM
Could you mod it so you can apply it to certain forums?

So we could set up a Classifieds Forum... so they have to pay to post only there?

Webs

marlita
09-08-2006, 02:13 PM
Can i use this with 3.6?

R.Solutions
09-13-2006, 03:31 AM
^Agree.

I'd like to know that too. :)

vahid1863
09-15-2006, 09:10 AM
i need buy with e-gold
help me?

Make Money?
09-24-2006, 12:13 AM
Has anyone got this to work with PayPals 'micropayments'?

This would allow 5o cents per thread etc really SMALL payments..

Folks on my forum sell items worth well over $2,000 all the time, but if I asked them for one Dollar for a thread - they would threaten to all jump off tall buildings, leave for good or accuse me of being worse than a war criminal..

:rolleyes:

paul41598
10-09-2006, 11:52 PM
I dunno, I couldn't get it to work on 3.6, but my situation might be special. EVERYTHING works great, right up until I pay and get redirected back to my forums. I get redirected back to the forum home rather than create a new post.

Which doesnt work obviously, cuz when I goto make a new post yet again, I have to pay. :(



N/M, I think it works now... :)

Crazy Serb
11-05-2006, 09:11 AM
can anyone else confirm for sure if this works on 3.6.2?

Hornstar
11-06-2006, 11:25 AM
Request. Integrate this into ebux/ushop/etc Then on the forum, have the option of letting them pay with paypal only, paypal or ebux, ebux only.

This would be cool.

Thanks. :)

Crazy Serb
11-21-2006, 01:35 AM
damn... I have "Event Forums" installed and this doesn't work with that mod... since the Event Forums goes through calendar's "new event" form when submitting a new thread in the forum I want to charge for.

can this mod be modified to work with posts on calendar as well? pretty please?

I'll pay $20 for this modification for v3.6.3...

Crazy Serb
11-23-2006, 04:22 AM
damn... I have "Event Forums" installed and this doesn't work with that mod... since the Event Forums goes through calendar's "new event" form when submitting a new thread in the forum I want to charge for.

can this mod be modified to work with posts on calendar as well? pretty please?

I'll pay $20 for this modification for v3.6.3...

anyone up for it?

dutchbb
11-23-2006, 02:01 PM
Looks like it's working in 3.6.2, i have installed and i can go to the paypal site,, but the pay process isn't tested because I can't pay myself on paypal.

Liquid1ce
11-24-2006, 04:36 PM
bump any chance in lastest vb version

Crazy Serb
11-25-2006, 07:24 PM
damn... I have "Event Forums" installed and this doesn't work with that mod... since the Event Forums goes through calendar's "new event" form when submitting a new thread in the forum I want to charge for.

can this mod be modified to work with posts on calendar as well? pretty please?

I'll pay $20 for this modification for v3.6.3...

going once...

Crazy Serb
11-29-2006, 08:03 PM
damn... I have "Event Forums" installed and this doesn't work with that mod... since the Event Forums goes through calendar's "new event" form when submitting a new thread in the forum I want to charge for.

can this mod be modified to work with posts on calendar as well? pretty please?

I'll pay $20 for this modification for v3.6.3...

going twice...

BobbyBig
12-06-2006, 01:17 AM
Uhm i need that for 3.6.4 , i cant find any similar :/

Crazy Serb
12-09-2006, 08:27 PM
damn... I have "Event Forums" installed and this doesn't work with that mod... since the Event Forums goes through calendar's "new event" form when submitting a new thread in the forum I want to charge for.

can this mod be modified to work with posts on calendar as well? pretty please?

I'll pay $20 for this modification for v3.6.3...

going thr.... anyone?

aite, $40 it is. :D

ansuk
12-12-2006, 06:58 PM
I desperately need this for 3.6.4 and i'll happily pay ?20.00 for it.
Pleeeeeeeeeeeeeeease :D :D :D

ICY ICE
12-15-2006, 04:03 AM
I installed this on 3.6.2
Purchased 1 thread....posted 1 thread
Purchased 5 threads...posted 5 threads

***Now how do I get a refund for a transaction fee on PayPal....LOL


Thanks for the mod.

BTW: Link to website with Buy Thread (http://www.valleyscuba.com/forum/forumdisplay.php?f=48)

Crazy Serb
12-20-2006, 02:37 AM
ok, since nobody is supporting this mod, or nobody is willing to take on this little task of integrating it with vb Event Forums mod...

let me ask it here -> are there any similar hacks to this one in this sea of hacks and mods?

anything that will allow me to charge users some fee for every calendar event posted?

MajorFm.com
12-28-2006, 10:25 PM
ok, since nobody is supporting this mod, or nobody is willing to take on this little task of integrating it with vb Event Forums mod...

let me ask it here -> are there any similar hacks to this one in this sea of hacks and mods?

anything that will allow me to charge users some fee for every calendar event posted?tell you what, i will contribute $20 aswell as i need this mod aswell... but i want a simple import process if im paying for it... :) Keep me updated...

bchertov
02-08-2007, 05:06 PM
Bump - Has anybody used this or something similar to implement Pay-to-Post in 3.6????

Lionel
02-12-2007, 11:15 PM
tell you what, i will contribute $20 aswell as i need this mod aswell... but i want a simple import process if im paying for it... :) Keep me updated...

Just move the redirect of the event forum new_thread_start to number 6, this way buy thread executes first. They are both at the same hook.

Shouldn't be too hard to replicate this plugin for calendar. At new calendar event start check to see if that calendar id is tied up with a forum that has buy thread activated. If it does, then kick in the buy thread option.

laskos
02-25-2007, 04:05 PM
I desperately need this for 3.6.4 and i'll happily pay ?20.00 for it.
Pleeeeeeeeeeeeeeease :D :D :D

sames here....would really love this mod.........

imranbaig
02-28-2007, 08:08 PM
Can this work on specified forum ids only??
Probably wont be so hard? to do this??

echamberlain
04-05-2007, 06:48 PM
I'm trying to implement a paid support section on our forum, to replace our ticketing system.

This mod is running fine on my 3.6.5 installation. Posters that were having problems with the mod, could you explain your issues?


Also, after purchasing thread posts, the default is to redirect back to the forumhome. Here's how to redirect back to the newthread page on a purchase or the forum if not.

Style Manager->Your Style->Edit Templates->ptpnt_buythread_form

Replace:


<input type="hidden" name="return" value="$vboptions[bburl]/$vboptions[forumhome].php" />
<input type="hidden" name="cancel_return" value="$vboptions[bburl]/$vboptions[forumhome].php" />


with:


<input type="hidden" name="return" value="$vboptions[bburl]/newthread.php?do=newthread&f=$foruminfo[forumid]" />
<input type="hidden" name="cancel_return" value="$vboptions[bburl]/forumdisplay.php?$session[sessionurl]f=$foruminfo[forumid]" />

Dean C
10-10-2007, 06:41 PM
Just an FYI for those complaining this doesn't work. It does work, but the reason you have the illusion it doesn't work is because you're admins and threads are by default free ;) Log in as a test user in registered group, and it works fine, although transactions don't appear to be being logged.

P.S. thanks for the post above echamberlain, saved me 5minutes tracking it down myself.

Dean C
10-11-2007, 07:33 AM
Another issue I noticed last night, was the logic for checking if the user is entitled to post any more threads is incorrect :)

stwilson
12-14-2007, 04:10 AM
Has anyone managed to get this code updated???

stwilson
12-14-2007, 04:47 AM
Updated for 3.6.8 is what I meant to ask. Ayone?

Merriweather
01-29-2008, 04:58 PM
Is anyone successfully using this on 3.6.8?

vB Crew
01-29-2008, 08:40 PM
Thanks for the hack calorie! I may install this later.

stwilson
01-31-2008, 02:39 AM
This MOD is killer. Like Merriweather, I'm curious if there are plans to uplift this to 3.7???? When that happens I will be sending over a thank you payment. ;)

lilgezuz
01-31-2008, 11:49 PM
I would also like to have this for 3.6.8 if possible

bigtime
02-17-2008, 04:45 AM
anyone?

Mr. Mooney
02-23-2008, 02:37 AM
Anyone know if this works with 3.7?

jerett
04-24-2008, 03:01 PM
i have installed this on the latest version of VB 3.6.10 and thus far I can not get it to work. Regardless permissions set - when the user click to post a new thread - it simply states that they do not have the permission to post. There is not option to buy anything. It is set in the forum as on.

nitromethane126
05-07-2008, 06:23 AM
Suggested feature: Offer discount based on number of posts. i.e. if someone is new to a forum or doesnt contribute much post-wise then charge $15.00 -- if they post alot of content and help alot of other people with their questions then $7.50.

bigtime
06-08-2008, 04:46 AM
3.71 anyone?

Goodman_2020
06-21-2008, 12:04 AM
i'll love to see this hack for 3.6.8 to 3.7.1 too! pleaaaaaaaaassse (i have it in admincp but nothing appears when i click new thread to test, on my 3.6.9 :( )

phreak79
06-21-2008, 05:29 PM
I'll add to the chorus for such a feature on the latest vB.

Jase2
06-24-2008, 12:09 PM
Hi guys,

I'm looking into this myself. If I end up having it, I'll fix it up for 3.7 then ask Calorie if I can release the updated version.

redg8r
06-28-2008, 02:51 AM
Hi guys,

I'm looking into this myself. If I end up having it, I'll fix it up for 3.7 then ask Calorie if I can release the updated version.

Please Do!
I had this coupled with GARS (I think Calorie took that on too) & it made for a killer Classified ads system without the need to require users to buy a subscription, kinda pay as you go, so-to-speak.

The last release seems to work fine with VB 3.7x other than the security token issue.

Any recommendation on where to add the security token?

Thanks.

Dave Hawley
08-28-2008, 01:57 AM
Great stuff, calorie. Thanks!

MarkoP
10-02-2008, 04:25 AM
Works on my 3.7.2 PL2..

Only thing is I'd love the added ability to take away or give a credit. Paypal is notorious for not reporting back and giving the user credit. As well as other huge problems with paypal. In all these cases it would be nice to enable the user to make their post instead of having to give them a refund every time.

I'd pay someone to do this happily...

MarkoP
10-18-2008, 03:12 PM
Someone please update this for 3.7.3....

How much money do you want?

mmurtha
10-30-2008, 05:47 AM
Did anybody every get this Mod to work in VB 3.7.3?

Or did everyone abandon it? Man, it's a good mod, and I'd hate to see it not get updated.

I also know that some people have installed it on the 3.7.3 version without problems.

I keep getting this error:

Your submission could not be processed because a security token was missing.

This is the only place in the forum I get this error to come up.

If someone has a fix for this problem, I'm willing to pay them.

Anybody?


Thanks ...

Wired1
11-01-2008, 06:36 AM
Did anybody every get this Mod to work in VB 3.7.3?

Or did everyone abandon it? Man, it's a good mod, and I'd hate to see it not get updated.

I also know that some people have installed it on the 3.7.3 version without problems.

I keep getting this error:



This is the only place in the forum I get this error to come up.

If someone has a fix for this problem, I'm willing to pay them.

Anybody?


Thanks ...

If the sec token is the only issue, then search this and Jelsoft's forum, it takes 1 line of code to fix. They introduced that in 3.6.10 IIRC.

mmurtha
11-01-2008, 06:46 AM
If the sec token is the only issue, then search this and Jelsoft's forum, it takes 1 line of code to fix. They introduced that in 3.6.10 IIRC.

Hey Wired,

Yup, sure did, but thanks for the response.

Someone helped me in the discusion forum, and I had it fix about 2 minutes after I posted this message. ;)

onehost
11-03-2008, 02:42 PM
Hey Wired,

Yup, sure did, but thanks for the response.

Someone helped me in the discusion forum, and I had it fix about 2 minutes after I posted this message. ;)

Could you please post the fix here.

mmurtha
11-03-2008, 02:56 PM
Could you please post the fix here.

Sure here it is:

you must update your template

In your Admin CP under Styles & Template select Search In Templates...

Search for:
HTML Code:
Code:
value="$session[sessionhash]"
In every template this occurs in add this line directly after the line containing the above, if it doesn't exist already:

PHP Code:
Code:
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
Save the template.


Courtesy of BulkanW

Hope this helps ...

Mary

stanleys
01-23-2009, 11:33 PM
Are there any other mods similar to this one?

g0dfather1984
02-01-2009, 12:23 AM
Works on 3.8 for me.

Thanks!

stanleys
02-01-2009, 12:33 AM
Works on 3.8 for me.

Thanks!

Did you have to modify the template?

g0dfather1984
02-01-2009, 02:30 AM
Did you have to modify the template?

Yeah, go to this template:

ptpnt_buythread_form

And search for:

"$session[sessionhash]"

Then add this right after:

<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />

stanleys
02-01-2009, 03:32 AM
Thanks g0dfather1984, got it to work.

g0dfather1984
02-01-2009, 05:31 AM
Thanks g0dfather1984, got it to work.

Anytime.

iexcel
03-13-2009, 02:33 AM
Thanks for this plugin. However, when I tried to use it on my forum, after clicking on "Submit", I got:

"Fatal error: Call to a member function shareads() on a non-object in /home/xxx/public_html/forum/includes/functions.php(5721) : eval()'d code on line 11

My vB version is 3.8.1.

Any idea or suggestions?

Thanks in advance.

microdot
04-29-2009, 08:16 PM
Is it possible to set this up so it takes reaccuring payments?

Thanks!

ilrglen
08-13-2009, 08:52 PM
I want to not allow anyone to register unless they have a paid subscription. I do not want people even viewing my site for free. Would this system work for this purpose or is there something in 3.8 that I have missed that would do this without any add-ons? Help!

garyion
08-14-2009, 05:30 PM
Buy Thread / Thread Rental -
are there alternative plugins that do a similar job.

We would like a version that allows the users to post 5 threads across a forum
within a certain prefix "Directory" for a certain amount of time - e.g. 30days - for $9.99

e.g Garyion's Pizza Offer

Through word of mouth etc at the restaurant we want the business to encourage replys & feedback on the offer.
We want them to moderate their own replys
over the month users leave feedback and a useful thread is generated for the Restaurant.
After a month the thread is closed and/or hidden.
The user can reactivate by buying an additional credit.

Ideally we would like the thread closing to trigger a request email sent to the business to reopen the thread for another 30days for $9.99 etc

any ideas?

orcasea
10-02-2009, 08:08 PM
This is awesome!!

Thanks for the mod, it's totally appreciated :)

dutchbb
05-01-2010, 06:10 PM
Is it possible to set this up so it takes reaccuring payments?

Thanks!

+1

Topic should auto close after 1 period, then the buyer needs to pay an additional fee to open it again.

BusterHymens
07-20-2010, 07:10 AM
+1

Topic should auto close after 1 period, then the buyer needs to pay an additional fee to open it again.

Does anyone have anything like this working for VB 4.0.5 I could really use this exact scenario myself.

nick-harper
11-05-2010, 09:50 PM
I am willing to pay for somebody to get this working on vb4?

paulnicholson
11-07-2010, 03:52 PM
Me too. What's the hold up?

cigrafix
02-12-2011, 05:41 PM
Fatal error: Call to a member function shareads() on a non-object in /home/turboop/public_html/forum/includes/functions.php(5721) : eval()'d code on line 11

I get this whenever I try to make a new post!

addamroy
02-25-2011, 10:35 PM
Is this compatible with 4.x versions?? OR at least 4.1.x?? I'd really appreciate it if somebody can tell me whether or not it is.

cigrafix
03-04-2011, 01:42 AM
Anyone???

Lynne
03-10-2011, 03:18 AM
Fatal error: Call to a member function shareads() on a non-object in /home/turboop/public_html/forum/includes/functions.php(5721) : eval()'d code on line 11

I get this whenever I try to make a new post!
That error isn't from this mod - there is no call to a function shareads in this mod.

cigrafix
03-13-2011, 05:25 PM
Lynne now I get a missing security token!

MagicThemeParks
03-13-2011, 06:20 PM
Lynne now I get a missing security token!

Did you try this suggestion on the previous page? https://vborg.vbsupport.ru/showpost.php?p=1730538&postcount=115

bucks.ie
03-13-2011, 06:54 PM
Also, after purchasing thread posts, the default is to redirect back to the forumhome. Here's how to redirect back to the newthread page on a purchase or the forum if not.

Style Manager->Your Style->Edit Templates->ptpnt_buythread_form

Replace:


<input type="hidden" name="return" value="$vboptions[bburl]/$vboptions[forumhome].php" />
<input type="hidden" name="cancel_return" value="$vboptions[bburl]/$vboptions[forumhome].php" />


with:


<input type="hidden" name="return" value="$vboptions[bburl]/newthread.php?do=newthread&f=$foruminfo[forumid]" />
<input type="hidden" name="cancel_return" value="$vboptions[bburl]/forumdisplay.php?$session[sessionurl]f=$foruminfo[forumid]" />


I made the above changes but now i am seeing the "security token issue" again.

I tried this suggestion but still no joy: https://vborg.vbsupport.ru/showpost.php?p=1730538&postcount=115

MagicThemeParks
03-13-2011, 07:10 PM
You may have additional instances to change.

https://vborg.vbsupport.ru/showpost.php?p=1658605&postcount=111

Good luck :up:

cigrafix
03-14-2011, 07:35 PM
Threads being started no $$$ in my paypal account!

Ambassador
06-05-2011, 11:07 PM
compatible with 4.1 version ?

bitwise2000
07-24-2011, 11:26 AM
Has anyone written anything to show the user his credits remaining?

ArtaxGM
08-08-2011, 08:22 PM
Is this compatible with 4.x?

BirdOPrey5
09-09-2011, 05:01 PM
Is this compatible with 4.x?

I have tested this- it does NOT work with VB 4.x.

It works with VB 3.7 and 3.8 if you add the "security token" line as explained earlier in this thread.

N8
11-14-2011, 01:51 AM
Has anyone written anything to show the user his credits remaining?



^ this

bitwise2000
11-14-2011, 03:32 AM
^ this

I wrote a UserCP plug-in that shows all details of ptpnt purchases.

N8
11-14-2011, 08:29 AM
I wrote a UserCP plug-in that shows all details of ptpnt purchases.

Mind posting the code?

bitwise2000
11-14-2011, 11:03 PM
Here's you go. Crude, and should be cleaned up, but it works for my purposes.

I sure wish Calorie would update this mod. It's one of very few things holding me back from vB4

Here's what the output looks like:134403


Here's the script: (I put a link to this in the misc section of the UserCP sidebar.)
<?php


// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT', 'ptpnt_stat');
define('CSRF_PROTECTION', true);

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array('user');

// pre-cache templates used by all actions
$globaltemplates = array('USERCP_SHELL','usercp_nav_folderbit');

// ######################### REQUIRE BACK-END ############################
require_once('./global.php');

// ######################## START MAIN SCRIPT ############################
if ($vbulletin->userinfo['userid'] == 0)
{
print_no_permission();
}

$userid = intval($vbulletin->userinfo['userid']);
$threadstatus = "";

$result=$db->query_read("SELECT f.title AS forum, sum(p.totalthreads) AS 'threads',
sum(p.totalpaid) AS cost, sum(p.livethreads) AS live FROM ptpnt_buythread p left join forum f
on p.forumid=f.forumid where p.userid=" . $userid . " GROUP BY f.forumid");

If (mysql_num_rows($result)){

while( $buy = $db->fetch_array( $result ) ) {
$threadstatus .= "<tr><td>$buy[forum]</td><td>$buy[threads]</td><td>$buy[cost]</td><td>$buy[live]</td></tr></tr>";
}
$result=$db->query_read("SELECT f.title AS forum, p.totalthreads AS 'threads',
p.totalpaid AS cost, From_Unixtime(p.dateline, '%b %d %Y %r') AS purchased
FROM ptpnt_buythread p left join forum f ON p.forumid=f.forumid
WHERE p.userid=" . $userid . " ORDER BY p.dateline desc");

$history = "";
while( $buy = $db->fetch_array( $result ) ) {
$history .= "<tr><td>$buy[forum]</td><td>$buy[threads]</td><td>$buy[cost]</td><td>$buy[purchased]</td></tr></tr>";
}
}

eval('$ptpnt_stat = "' . fetch_template('ptpnt_stat') . '";');

// start the navbar
$navbits = array('usercp.php' . $vbulletin->session->vars['sessionurl_q'] => $vbphrase['user_control_panel']);
$navbits['ptpnt_stat.php' . $vbulletin->session->vars['sessionurl_q']] = 'Purchased Thread Status';
$navbits[''] = 'Purchased Thread Status';

// build the cp nav
require_once(DIR . '/includes/functions_user.php');
construct_usercp_nav();

$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
// eval('$HTML = "' . fetch_template($ptpnt_stat) . '";');
$HTML = $ptpnt_stat;
eval('print_output("' . fetch_template('USERCP_SHELL') . '");');

?>

Here's the template:

<div align="center">
<if condition="$history">
<h2>Thread Credit Status</h2>
<table class='ptpnt'>
<tr>
<th>Forum</th>
<th>Total Credits</th>
<th>Total Cost</th>
<th>Balance</th>
</tr>
$threadstatus
</table>

<h3>Thread Credit Purchase History</h3>

<table class='ptpnt'>
<tr>
<th>Forum</th>
<th>Credits Purchased</th>
<th>Total Cost</th>
<th>Purchase Date</th>
</tr>
$history
</table>

<else />

<h3>You have not purchased any threads.</h3>

</if>
</div>


Here's the query I execute directly when I need to know monthly totals:

SELECT DISTINCT FROM_UNIXTIME(dateline,"%M, %Y")
AS month, sum(totalpaid) as TotalPaid
FROM ptpnt_buythread
GROUP BY month
ORDER BY dateline

N8
11-14-2011, 11:36 PM
Thanks a lot man, I didn't feel like writing that out myself :)


I'm thinking I may hire someone to port this over to VB4 within the next couple months, I'll post the updated code when I have that done.

dcg
02-06-2012, 10:25 PM
If anyone can update this hack for 4.0 please email me at adam@dcg.com, I will gladly pay for it. I will also pay very well as I need this updated.

bitwise2000
02-07-2012, 12:52 AM
I'd contribute as well. It's the last thing keeping me from vB4.

digweb11
02-07-2012, 07:00 PM
Anyone try this using vb4 ? Does it work?

dcg
02-07-2012, 07:15 PM
Anyone try this using vb4 ? Does it work?

I had it modified and it is working perfectly for me on vb4.

bchertov
02-08-2012, 05:41 PM
Very Nice Site, dcg!

ibwt
02-14-2012, 06:05 PM
can someone please post it for 4X

BirdOPrey5
02-14-2012, 10:03 PM
can someone please post it for 4X

The problem is since this mod is not marked "re-usable code" no one who updates it is allowed to post it.

You are free to contact a coder, perhaps in the paid requests forum, and ask someone to update the mod to 4.x for your own use on your own forum. You would not be allowed to redistribute it.

Coop56
02-19-2012, 10:00 PM
We need this mod or a similar one as well. It looks like a lot of people want this created for vBulletin 4.x. Let's get a group together to have this thing coded for vBulletin 4.x. Contact me if you are interested.

Wilcox28
02-24-2012, 05:37 AM
If anyone has this mod updated I would love for you to PM me.

majjed2008
06-03-2012, 10:50 PM
Me also please :
If anyone has this mod updated I would love for you to PM me.

RichieBoy67
07-24-2012, 11:33 PM
I am in need of this as well :)

Lance K
08-06-2012, 12:36 PM
Has anyone found anything like this (or had something coded) for vB 4 yet?

If not, any coder that's able to make it and is for hire shoot me a message. :)

bchertov
08-07-2012, 10:42 PM
I've been interested in this as well. One way of doing it to keep it simple would be to integrate paypal buttons to pay right inside the posting window for selected forums. It needs further design, but it could short circuit a lot of problems.

Guru Samrat
09-05-2012, 09:40 AM
plz upgread this mod for 4.x.x

Lpspider
01-03-2013, 09:37 PM
I'm looking for this for 4.2 also.

ageurtse
01-26-2014, 04:06 PM
If someone have this mod for 3.2 i realy would like to have it.