vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Turtle Dollars (includes addons) (https://vborg.vbsupport.ru/showthread.php?t=50222)

filburt1 03-14-2003 10:00 PM

Turtle Dollars (includes addons)
 
Note: there is one installation step specific to vB 2.3.0. If you are using an earlier version it might require some creativity on your part to install this hack.

Addons: Top 10 List

This hack is based on Sun's Java support forums' "Duke Dollars." This allows you to place a "dollar" offer when posting a thread, and when you get a helpful reply, give that member some of your "money." If memory serves, this can equate to buying trinkets at Sun's store. In vB it's mostly for pride although it may be possible to integrate this into other hacks like the infamous Store hack. The user's funds are always stored in $bbuserinfo['dollars'].

User-side, the user can offer a given number of dollars for any thread they post. If nobody replies or only they reply, they can retract the offer (this can be changed from the user CP). To award a user with the dollars, he has to click the "Award" button in the postbit. The thread will then be marked has having no dollar offer. Threads with dollar offers are marked in forumdisplay with an icon. When the award is given, the funds are subtracted from the thread poster's account and added to the awardee's funds. The user's funds are shown in his user CP.

Admin-side, an admin can designate which forums can allow dollar offers (by default they all will when installing this hack; when changing this setting only future threads are affected). An admin can also manually edit user accounts and can view the top 10 richest members. In addition, a given user's account can be completely emptied (useful when banning). There are also options for minimum allowed, maximum allowed, and default dollar awards.

Moderators, supermoderators, and administrators can always override some options. They can cancel offers by any member. However they are subject to the same "rules of economics" as any member (rewarding a member will always deduct from their funds and give to the member).

All images included have their PSD counterparts included in layered form and are based on the vBulletin graphics developer kit.

Screenshots are included in a zip below.

This hack comes with a powerful install script that runs the necessary queries for you. It also creates all custom templates. However it is up to you to do the file edits and template edits (included in the instructions).

Please reply with any comments you have. Just a "it's working" is appreciated.

filburt1 03-15-2003 08:34 PM

Very well, here are some screenshots. There are also tons of errors and redirectors that I didn't grab.

Dean C 03-15-2003 08:36 PM

This sounds very good turtle ...

- miSt

filburt1 03-15-2003 08:36 PM

Should look good too. Just uploaded screenshots.

VeoMorphine 03-15-2003 08:39 PM

It's Working :P

Mephisteus 03-15-2003 08:41 PM

great! Definetly gonna install this

Great stuff

filburt1 03-15-2003 08:54 PM

Quote:

Today at 05:39 PM VeoMorphine said this in Post #5
It's Working :P

Please test everything out, too, like trying to bypass all the checks and get free money and such (for example, using negative values) :)

Dean C 03-15-2003 08:56 PM

Wow @ this - you must have put so much time,

This may just replace my points system :p

- miSt

filburt1 03-15-2003 08:57 PM

Took two days but the idea of doing it had been nagging at me for a long time.

DrkFusion 03-15-2003 09:04 PM

So umm, how do I withdraw my money? Is there a print button :p

*Looking Great*

Mephisteus 03-15-2003 09:27 PM

I'm working on an integration with lesane's store for this now :)

[EDIT]
I have succeeded! I will put it in an readme file :P

[EDIT]
srry, found an major bug :P

N9ne 03-15-2003 09:44 PM

WOW

I love the idea of this, will you be porting this over to vB3 when it's released to save me time? :p because i'm going to have a huge points setup on that with my code, Lesane's store hack code (well some of it), and just random code lol, and integrating this into it would be great...

N9ne 03-15-2003 09:45 PM

Quote:

Today at 11:27 PM DarkSSJ3 said this in Post #11
I'm working on an integration with lesane's store for this now :)

[EDIT]
I have succeeded! I will put it in an readme file :P


You change all references to $bbuserinfo['dollars'] or $bbuserinfo[dollars] or $userinfo[dollars] to have storep instead of dollars.

filburt1 03-15-2003 09:46 PM

I'd consider porting it but not until vB 3.0.1 or so (i.e., a revision or two after the final comes out).

Mephisteus 03-15-2003 09:46 PM

Quote:

Today at 12:45 AM N9ne said this in Post #13



You change all references to $bbuserinfo['dollars'] or $bbuserinfo[dollars] or $userinfo[dollars] to have storep instead of dollars.


indeed, but when someone replies I loose ALL of my store points and he has only the ones he earned in that thread

[EDIT]
never mind, got it :P

Quote:

$DB_site->query("UPDATE user SET storep = IF(userid = $fromuserid, storep - $transfer, storep + $transfer) WHERE userid IN ($fromuserid, $touserid)");

filburt1 03-15-2003 09:54 PM

Fixed typo in instructions (wrong filename for uploading)

filburt1 03-15-2003 11:22 PM

Anybody else successfully (or unsuccessfully) tested this?

Erwin 03-16-2003 03:36 AM

I like the idea... might come up with my own version for my site. :)

Mephisteus 03-16-2003 08:16 AM

I could easily integrate it with lesane's store, it works like a dream :)

Koopa 03-16-2003 09:27 AM

Very good idea, I'll probably install this hack :)

filburt1 03-16-2003 02:15 PM

I find it hard to believe that it's working perfectly for everybody...has anybody tried to hack (get dollars by defeating the system) it yet?

filburt1 03-16-2003 05:20 PM

For those who think this is too complicated, I'm almost done with a much powerful install script that can do all of the custom templates for you.

Davey 03-16-2003 06:05 PM

Just let me install PHPdev and I'll test this hack out locally on 2.3.0.

Dave.

filburt1 03-16-2003 06:23 PM

Screenshot of the new install script in action:

filburt1 03-16-2003 07:10 PM

Out of beta.

corsacrazy 03-16-2003 07:16 PM

sorry 4 rudeness etc but ive read the hack info but im still unsure y u have done this ie wot does it do ? what are benifits etc ?

filburt1 03-16-2003 07:17 PM

Here's a very rough basic concept: http://forum.java.sun.com/rewardFaq.jsp

Breaker 03-16-2003 07:19 PM

great hack, will install wen i have the time :D

Mr. Brian 03-16-2003 07:32 PM

I tried to install it but seem like i'm still encountered problems here..

Or is it due to the eariler bug not clear yet..?

Code:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/xxxxx/public_html/forum/admin/functions.php on line 860



Code:

Fatal error: Call to undefined function: vbsetcookie() in /home/soccerwi/public_html/forum/admin/sessions.php on line 183

Anyone can able to help.. :tired:

filburt1 03-16-2003 07:35 PM

You must have a really hacked or really old vB because my mods are nowhere near line 860.

Mr. Brian 03-16-2003 07:52 PM

That's why till now I still can't figure it out as what's the main causes... haiz...

Automated 03-16-2003 08:38 PM

nice idea!

dstruct2k 03-16-2003 10:37 PM

So has anyone integrated this successfully with Lesane's Store hack, or is it just another points system? I really like the concept, but I really don't have to time to be messing around with PHP and SQL right now....

squawell 03-17-2003 06:13 AM

nice hack!!just installed....

and one question...

how should i do can store the dollar in bank??if i use the bank hack......

DPoole 03-17-2003 08:21 AM

does this work on 2.2.8

cant even run the installer - i click Start Installation and it sits and looks at me like a love sick puppie :)

filburt1 03-17-2003 10:46 AM

It was designed for 2.3.0. Use in other versions at your own risk.

squawell 03-17-2003 01:34 PM

filburt1 i have a question in ur instruction the admin/forum.php is part..

this part is for edit forum
PHP Code:

 makeyesnocode("Count posts made in this forum towards user post counts?","countposts",$forum[countposts]); 

but we dont need to add same code to when u add new forum part??

like this code below
PHP Code:

 makeyesnocode("Count posts made in this forum towards user post counts?","countposts",1); 


filburt1 03-17-2003 02:05 PM

Good point. Will make the edit when I get home.

DPoole 03-17-2003 06:03 PM

ok upgraded and when running it on me local host to test it the Installer in Admin folder does nothing at all - is this correct ?

any chance of a text file for this so i can do the installer by hand
would be appreciated

filburt1 03-17-2003 09:35 PM

What exactly does the installer show?


All times are GMT. The time now is 04:46 PM.

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.01934 seconds
  • Memory Usage 1,809KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (4)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