vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - vBCredits - Ultimate Points System (https://vborg.vbsupport.ru/showthread.php?t=151924)

Atwal 07-17-2007 02:50 AM

this hack is great u should try to get a feature added to it

the thank you hack would be fantastic with this like u get a certain amount of credits for each thank you button instead of the reputation thing that it currently has

AzzidReign 07-17-2007 02:54 AM

Couldn't get it to work Dark :( You can view that link again to see it doesn't work on default.

Darkwaltz4 07-17-2007 04:55 AM

Okay, I downloaded and installed the Thank You Hack. The problem is the patch, which unfortunately will be there until 3.6.8, so, to fix (this is confirmed to work :))

//obsolete

v1.3 will have this update in it. also, this will work on boards without the thankyou hack, and without the thankyou hack's patch either (so it can only be a positive fix) will also work when vb upgrades, but will probably get all the extra ceaning code out

rainyleaves 07-17-2007 06:15 AM

Awesome mod!!!
Thanks :)

carlt 07-17-2007 09:02 AM

Dark,
Thanks for the mod. I know it will be a big help on my forum.

I had a few minor issues after the install and was hoping for some help:)

Just to give you an idea on a 1-10 scale my coding is at about 2 and one of the points might be because I am grading myself:D

The questions I have:

Where do I go to change the credit settings?
How can I get the credits to show in the postbit(I noticed the post but not sure how/where to insert just want it below the post count)?
Not able to sort by credits in memberlist, how can I fix that?


Again thanks for the mod and any help you can give on it.

DeMiNe0 07-17-2007 12:26 PM

Is 1.3 going to have the ability to reward points via profile? (Or atleast another way to award points other then posts and admincp?) The guys who actually pay for the board are making me install the broken vbplaza because there moderators can't give and take points to users who dont post. Help me!! I don't wanna switch lol! :P

I've been trying to figure out how to copy the entire block of code that controls the giving/taking a points based on the user who owns the postid that is passed in the URL, so that it uses a userid that is passed in the URL instead, but i've failed so far.

All i really need to do is be able to use something like credits.php?u=USERID to reward points.

AzzidReign 07-17-2007 03:36 PM

Quote:

Originally Posted by Darkwaltz4 (Post 1293399)
Okay, I downloaded and installed the Thank You Hack. The problem is the patch, which unfortunately will be there until 3.6.8, so, to fix (this is confirmed to work :))

Edit the "Display Credits in Postbit" plugin
Change Hook Location to: postbit_display_start
Change execution order to: 100

Change code to this:
Code:

if ($this->registry->options['credits_public'])
{
 $credits_this = array($post['postid'], $post['userid'], vb_number_format($post['credits'], $this->registry->options['credits_decimals']));
 //clear out postbit if it contains this again. other hacks can take care of their own stuff themselves.
 $template_hook['postbit_userinfo_right'] = str_replace('<div><a href="credits.php?u=' . $GLOBALS['credits_last'][1] . '">' . $vbphrase['credits'] . '</a>: <span id="cdt_' . $GLOBALS['credits_last'][0] . '_' . $GLOBALS['credits_last'][1] . '">' . $GLOBALS['credits_last'][2] . '</span></div>', '', $template_hook['postbit_userinfo_right']) . '<div><a href="credits.php?u=' . $credits_this[1] . '">' . $vbphrase['credits'] . '</a>: <span id="cdt_' . $credits_this[0] . '_' . $credits_this[1] . '">' . $credits_this[2] . '</span></div>';
 $GLOBALS['credits_last'] = $credits_this;
}

v1.3 will have this update in it. also, this will work on boards without the thankyou hack, and without the thankyou hack's patch either (so it can only be a positive fix) will also work when vb upgrades, but will probably get all the extra ceaning code out

Works great! Thanks!

Darkwaltz4 07-17-2007 04:08 PM

Quote:

Originally Posted by carlt (Post 1293501)
Dark,
Thanks for the mod. I know it will be a big help on my forum.

I had a few minor issues after the install and was hoping for some help:)

Just to give you an idea on a 1-10 scale my coding is at about 2 and one of the points might be because I am grading myself:D

The questions I have:

Where do I go to change the credit settings?
How can I get the credits to show in the postbit(I noticed the post but not sure how/where to insert just want it below the post count)?
Not able to sort by credits in memberlist, how can I fix that?


Again thanks for the mod and any help you can give on it.

In the usergroup editor.
If they are not showing up in the postbit, first follow the footnote directions in the Instructions.txt file, and then the patch I just posted.
Do they appear in the memberlist, but not sort by them? Did you edit the memberlist file per the instructions?

Quote:

Originally Posted by DeMiNe0 (Post 1293595)
Is 1.3 going to have the ability to reward points via profile? (Or atleast another way to award points other then posts and admincp?) The guys who actually pay for the board are making me install the broken vbplaza because there moderators can't give and take points to users who dont post. Help me!! I don't wanna switch lol! :P

I've been trying to figure out how to copy the entire block of code that controls the giving/taking a points based on the user who owns the postid that is passed in the URL, so that it uses a userid that is passed in the URL instead, but i've failed so far.

All i really need to do is be able to use something like credits.php?u=USERID to reward points.

I will see what I can get you patchwise, check back soon. You really dont want vbplaza (at least in the current state it is in). I have it installed for testing purposes, and it doesnt use the vb cleaning methods, which is why it was removed for XSS vulnerability

Quote:

Originally Posted by AzzidReign (Post 1293728)
Works great! Thanks!

:D what about you, DS MrSinister?


Also, now that I have the Thank You Hack installed, I went ahead and made a Thank You Hack addon. Will post it in a bit along with other things.

Darkwaltz4 07-17-2007 06:24 PM

Here I have a converter for Nexia Points, and an addon for the Post Thank You Hack!

To use, upload the nexia_to_vbcredits.php to the admincp folder and run it

and import the product product-credits_post_thanks.php, and youre done!

this post will be deleted in v1.3, and these files will be located in their respective folders in the main file. (just wanted to get these out before 1.3)

look for more addons soon. still working on the arcades. btw, i have like 3 different points systems and two arcades running :-p kinda funny.

//note, files removed and placed into main download
5, 8

cheat-master30 07-17-2007 06:30 PM

When you mean the arcades, does that mean basically integration with IB Pro Arcade and credits for high scores/tournament winning/etc? Because if so I certainly want that feature.


All times are GMT. The time now is 05:52 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.02401 seconds
  • Memory Usage 1,752KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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