vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Buy Thread: Pay to Post New Thread (https://vborg.vbsupport.ru/showthread.php?t=116605)

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

Quote:

Originally Posted by microdot (Post 1801367)
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

Quote:

Originally Posted by dutchbb (Post 2030233)
+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

Quote:

Originally Posted by cigrafix (Post 2161839)
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

Quote:

Originally Posted by cigrafix (Post 2172936)
Lynne now I get a missing security token!

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

bucks.ie 03-13-2011 06:54 PM

Quote:

Originally Posted by echamberlain (Post 1220564)

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:

HTML Code:

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

with:

HTML Code:

<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....&postcount=115

MagicThemeParks 03-13-2011 07:10 PM

You may have additional instances to change.

https://vborg.vbsupport.ru/showpost....&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

Quote:

Originally Posted by ArtaxGM (Post 2231024)
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

Quote:

Originally Posted by bitwise2000 (Post 2224267)
Has anyone written anything to show the user his credits remaining?



^ this

bitwise2000 11-14-2011 03:32 AM

Quote:

Originally Posted by N8 (Post 2267706)
^ this

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

N8 11-14-2011 08:29 AM

Quote:

Originally Posted by bitwise2000 (Post 2267718)
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:Attachment 134403


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

<?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:

Code:

<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:
Code:

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

Quote:

Originally Posted by digweb11 (Post 2297234)
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

Quote:

Originally Posted by ibwt (Post 2299680)
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.


All times are GMT. The time now is 04:06 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01404 seconds
  • Memory Usage 1,829KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_html_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete