vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - uCash 4.x (https://vborg.vbsupport.ru/showthread.php?t=227910)

decipher442 02-17-2010 06:38 AM

Do you plan on adding this feature back into ucash?

"Max Posts Per Day: The maximum number of posts per day that awards points."

eternal_ 02-17-2010 02:14 PM

Is there any way to see who has the most points, like in a table of points or something?

eternal_ 02-17-2010 06:42 PM

What add ons will this work with to be able to get a hierarchy listing of members points? I want to compare who has the most points at any given time.

cindy helmond 02-20-2010 01:23 PM

i dont see the points in the topics by avatar ?
i see the points only in the userprofile under avatar , is there a way to get the point on the forum topics near avatar?
thx

Pamela 02-20-2010 11:09 PM

Matthew - Any update on when we might be able to expect uShop for 4.0 to be released? Is it currently in development? :)

decipher442 02-22-2010 02:16 PM

I would like to know this one too, "Is ushop in the making..?" --^

Ray2khax 02-22-2010 09:37 PM

Is there a working ushop for 4.0?

literatestylish 02-23-2010 04:26 PM

How do I get the uCash amount to show up in members postbit_legacy?

EDIT: oops, nevermind!

maidos 02-28-2010 06:21 PM

how is it possible to display ppoints on post legacy?

Link14716 02-28-2010 07:05 PM

Quote:

Originally Posted by Pamela (Post 1987687)
Matthew - Any update on when we might be able to expect uShop for 4.0 to be released? Is it currently in development? :)

I wasn't working on it too much lately, but I'm trying to get the ball rolling now. It still has a long way to go, though. Trying to get everything structured before actually writing the actual front-end.

maidos 02-28-2010 07:11 PM

wondering if u can considering implementing feature to disable pointsystem at specific forum ids?

Link14716 02-28-2010 07:12 PM

Quote:

Originally Posted by maidos (Post 1993891)
how is it possible to display ppoints on post legacy?

Should do it automagically unless they changed the code I was hooking on to. Still works for me on 4.0.2.

maidos 02-28-2010 07:43 PM

hm it doesnt. you have to post to see the point
is it also possible to add points reflecting to amount of posts members already has made?

kpierce 03-01-2010 06:02 PM

Does this include an option to award points for blog posts? If not, is there an add on that does?

kpierce 03-03-2010 08:28 PM

I really need an option to see a list of everyone's points at once.

FlameGun 03-04-2010 12:20 AM

Quote:

Originally Posted by maidos (Post 1993940)
wondering if u can considering implementing feature to disable pointsystem at specific forum ids?

You can disable it by setting the multiplier value to zero in the forum you wish.

sticky 03-11-2010 07:54 AM

I like this a lot but could I have it just with all rep?

As in rep received for creating threads and referring users instead of points?

decipher442 03-12-2010 12:20 AM

Quote:

Originally Posted by maidos (Post 1993961)
hm it doesnt. you have to post to see the point
is it also possible to add points reflecting to amount of posts members already has made?

Yes.. to do this simply go here:

Admincp >> uCash >> uCach manager >> Give Points For Existing Posts

Link14716 03-12-2010 01:27 AM

Quote:

Originally Posted by kpierce (Post 1994625)
Does this include an option to award points for blog posts? If not, is there an add on that does?

Not at this time and I am not sure.

Quote:

Originally Posted by kpierce (Post 1996395)
I really need an option to see a list of everyone's points at once.

I probably won't add this to the addon itself, but you can always run a query similar to this (either "Execute SQL Query" near the bottom of the Admin CP or in phpMyAdmin or similar):

SELECT username, ucash FROM PREFIXuser ORDER BY ucash DESC

Replace PREFIX with your table prefix (or just remove it if you don't have one).

Quote:

Originally Posted by FlameGun (Post 1996521)
You can disable it by setting the multiplier value to zero in the forum you wish.

Correct.

Quote:

Originally Posted by sticky (Post 2001409)
I like this a lot but could I have it just with all rep?

As in rep received for creating threads and referring users instead of points?

In theory, sure. Turn off the other options by giving 0 points for them and change the Points Data Location setting to "TP.user.reputation" (without the quotes, of course).

sticky 03-15-2010 06:03 AM

Quote:

Originally Posted by Link14716 (Post 2001873)

In theory, sure. Turn off the other options by giving 0 points for them and change the Points Data Location setting to "TP.user.reputation" (without the quotes, of course).

Awesome! It is working, the only error seems to be that it is not giving partial points, 0.5 for example.

Link14716 03-15-2010 07:26 AM

Quote:

Originally Posted by sticky (Post 2003900)
Awesome! It is working, the only error seems to be that it is not giving partial points, 0.5 for example.

That has to do with the way reputation is stored in the database (it's an INT which only allows whole numbers). If you want it to accept decimal values like the uCash field can, run this query (adding your table prefix before user if you have one):
[sql] ALTER TABLE user CHANGE reputation reputation DECIMAL(24, 5) NOT NULL DEFAULT '10'[/sql]

I'm not sure what the side effects of doing this are, however. Reputation values might not be "prettied up" everywhere, so you may see people running around with long decimal points at the end of their rep values.

If you want to change it back to vB's default structure for any reason, run this query:
[sql] ALTER TABLE user CHANGE reputation reputation INT(11) NOT NULL DEFAULT '10' [/sql]

sticky 03-15-2010 05:50 PM

Quote:

Originally Posted by Link14716 (Post 2003920)
That has to do with the way reputation is stored in the database (it's an INT which only allows whole numbers). If you want it to accept decimal values like the uCash field can, run this query (adding your table prefix before user if you have one):
[sql] ALTER TABLE user CHANGE reputation reputation DECIMAL(24, 5) NOT NULL DEFAULT '10'[/sql]

I'm not sure what the side effects of doing this are, however. Reputation values might not be "prettied up" everywhere, so you may see people running around with long decimal points at the end of their rep values.

If you want to change it back to vB's default structure for any reason, run this query:
[sql] ALTER TABLE user CHANGE reputation reputation INT(11) NOT NULL DEFAULT '10' [/sql]

Instead of going 5 decimal places could I go two which would probably have a smaller chance of odd side effects?

Link14716 03-16-2010 12:16 AM

Quote:

Originally Posted by sticky (Post 2004206)
Instead of going 5 decimal places could I go two which would probably have a smaller chance of odd side effects?

Yeah, just change the 5 to a 2.

sticky 03-16-2010 12:26 AM

Quote:

Originally Posted by Link14716 (Post 2004459)
Yeah, just change the 5 to a 2.

Thanks, just wanted to make sure :)

sticky 03-16-2010 03:05 AM

Quote:

Originally Posted by Link14716 (Post 2003920)
That has to do with the way reputation is stored in the database (it's an INT which only allows whole numbers). If you want it to accept decimal values like the uCash field can, run this query (adding your table prefix before user if you have one):
[sql] ALTER TABLE user CHANGE reputation reputation DECIMAL(24, 5) NOT NULL DEFAULT '10'[/sql]

I'm not sure what the side effects of doing this are, however. Reputation values might not be "prettied up" everywhere, so you may see people running around with long decimal points at the end of their rep values.

If you want to change it back to vB's default structure for any reason, run this query:
[sql] ALTER TABLE user CHANGE reputation reputation INT(11) NOT NULL DEFAULT '10' [/sql]

Hey, it worked!

You freaking rule!

sticky 03-16-2010 04:48 AM

Quote:

Originally Posted by Link14716 (Post 2004459)
Yeah, just change the 5 to a 2.

One glitch I noticed.

When switching the Rep system to decimal value if a user has, say, 2.6, and I give them +1, it will just make it a whole number, 3.0, and they will lose the decimal value, it won't add it making it 3.6.

Any idea?

Link14716 03-16-2010 05:14 AM

Quote:

Originally Posted by sticky (Post 2004577)
One glitch I noticed.

When switching the Rep system to decimal value if a user has, say, 2.6, and I give them +1, it will just make it a whole number, 3.0, and they will lose the decimal value, it won't add it making it 3.6.

Any idea?

Actually, yes I do. The user data manager runs an intval() on reputation, dropping the decimal point. Easiest way to deal with this is probably a code change, just remember that you'll have to re-apply it whenever you upgrade vBulletin.

In /includes/class_dm_user.php, find:
PHP Code:

$reputation intval($reputation); 

Replace with:
PHP Code:

$reputation strval($reputation) + 0

Save, close, upload, etc.

There's probably a way to make a clever plugin achieve the same goal, but that should get the job done for now.

sticky 03-16-2010 05:50 AM

Quote:

Originally Posted by Link14716 (Post 2004582)
Actually, yes I do. The user data manager runs an intval() on reputation, dropping the decimal point. Easiest way to deal with this is probably a code change, just remember that you'll have to re-apply it whenever you upgrade vBulletin.

In /includes/class_dm_user.php, find:
PHP Code:

$reputation intval($reputation); 

Replace with:
PHP Code:

$reputation strval($reputation) + 0

Save, close, upload, etc.

There's probably a way to make a clever plugin achieve the same goal, but that should get the job done for now.

It worked! You sir, are a genius.

Absolutely amazing! Other mod writers would tell me something along the lines of "I won't support that" or a different discouraging remark if messing outside the mod's initial parameters.

Thank you so much!

paulbhoy 03-18-2010 09:32 PM

you are using this code to display the users points in the postbit, "{vb:raw template_hook.postbit_userinfo_right_after_posts}"

I was wondering if there is any other way to display the amount of points a user has.

because that line of code also controls the blog entries, and I dont want to display the blog entries, so I have that line of code commented out.

anyway to either display the amount of points differently, or somehow take out the blogs from that template with out effecting the points.

Link14716 03-19-2010 08:26 AM

Quote:

Originally Posted by paulbhoy (Post 2006098)
you are using this code to display the users points in the postbit, "{vb:raw template_hook.postbit_userinfo_right_after_posts}"

I was wondering if there is any other way to display the amount of points a user has.

because that line of code also controls the blog entries, and I dont want to display the blog entries, so I have that line of code commented out.

anyway to either display the amount of points differently, or somehow take out the blogs from that template with out effecting the points.

Uncomment that line, go to Plugins & Products -> Plugin Manager and disable the "Postbit: Add links to blog" plugin by unchecking its box and clicking "Save Active Status" at the bottom. If you want to, you can also uncheck the other blog plugins prefixed with "Postbit:", but that's the main one.

unicorn2433 03-20-2010 01:37 AM

Thank you installed today and love it:)

Is there a link to another mod to have it integrate with ibproarcade?

Rick7C2 03-21-2010 07:38 PM

Do you think you could integrate uCash with cpalead.com That way I can have my members complete surveys to get uCash points. Im not 100% sure but I think all that would have to be made is a post back script file.

Here is some info I grabbed from cpalead.com

Postback-Variables


Postback Example

They have a Postback Tester tool on there site but unfortunately I cant share that as I don't have access to the php file. You will either have to sign up at cpalead.com

unicorn2433 03-31-2010 05:35 PM

I have an additional usergroup with some admin features. Is there a way to make it so certain usergroups can not access ucash manager in control panel?

Dzi13 04-03-2010 10:01 AM

I have made ibProArcade integration (PM me if you are interested so we can make a deal)

ZuFett 04-05-2010 10:35 PM

a little question:

it is possible to get X points, if a user click a link? (vote-link)

kylek 04-06-2010 02:00 AM

Nice and easy install and setup, thanks!

Rick7C2 04-11-2010 03:04 PM

BUMP!

Quote:

Originally Posted by Rick7C2 (Post 2007725)
Do you think you could integrate uCash with cpalead.com That way I can have my members complete surveys to get uCash points. Im not 100% sure but I think all that would have to be made is a post back script file.

Here is some info I grabbed from cpalead.com

Postback-Variables


Postback Example

They have a Postback Tester tool on there site but unfortunately I cant share that as I don't have access to the php file. You will either have to sign up at cpalead.com


unicorn2433 04-14-2010 02:50 PM

Quote:

Originally Posted by Dzi13 (Post 2015067)
I have made ibProArcade integration (PM me if you are interested so we can make a deal)

Sent you a PM. I have my arcade turned off until I can charge user points and have them win points using arcade.
As well as set up permissions for who can use it:)

04wayne 04-19-2010 03:41 PM

Is it possible to use this as a 'shop system' of sorts? So that with a certain number of currency, each poster, can say...buy something. Like an increased avatar size, or a custom status, or a longer signature...?

To do this, I'd need to be able to edit each poster's total manually, and adjust...taking from them the cash they've used to purchase whatever. Is it possible?

gruftiradio 04-19-2010 04:13 PM

Search to the Point Market AddOn. It works very well with uCash.


All times are GMT. The time now is 12:58 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.01606 seconds
  • Memory Usage 1,844KB
  • 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
  • (4)bbcode_php_printable
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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