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)
-   -   uCash 1.1.1 (https://vborg.vbsupport.ru/showthread.php?t=90855)

Annie^.^ 01-24-2006 11:17 PM

ok where do I add that code?

X-Files 01-25-2006 12:22 AM

Quote:

Originally Posted by Annie^.^
ok where do I add that code?

In the AdminCP.

Plugin System --> Plugin Manager

Find:

Hook Location : newpost_process
uCash - New Post

Click on it to edit the php code.

Hope this helps.

Annie^.^ 01-25-2006 12:42 AM

Thnaks I will give it a try. Did that solve the problem for you?

X-Files 01-25-2006 12:45 AM

Quote:

Originally Posted by Annie^.^
Thnaks I will give it a try. Did that solve the problem for you?

It seems to work fine for me.

Annie^.^ 01-25-2006 10:41 AM

That did the trick.

I have couple of questions. Is it just on my forum, but when I delete a post it doesn't dedact the point.

Is there a way to deny points to certain forums?

Thanks guys

X-Files 01-25-2006 10:53 AM

Quote:

Originally Posted by Annie^.^
That did the trick.

I have couple of questions. Is it just on my forum, but when I delete a post it doesn't deduct the point.

Is there a way to deny points to certain forums?

Thanks guys

That is another issue we have. I may try and see if I can find and hack the hook for deleting a post. I am not a vBulletin expert by no means. I know enough to get by. Mostly doing simple things.

I think you can deny points but I am not sure off the top of my head.

Annie^.^ 01-25-2006 01:51 PM

This didn't work for me at all. The points doesn't show. Any ideas why? I use 3.5.3

Quote:

Originally Posted by X-Files
I have an interesting question.

Upgraded to vB 3.5.2
Upgrded uCash to 1.1.1

The points are displaying in the user profile correctly. If I try and use this
Code:

$userinfo[points]
method to display the points in the navbar it does not take but if I use
Code:

$userinfo[ucash]
it displays but with the decimal points. Any ideas on how to display the points for a user in the navbar without the decimal points.

example:
Welcome, X-Files. You have 16617.99 chips!
You last visited: Today at 10:11 AM
Private Messages: Unread 0, Total 258.

Code:

<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong>&nbsp;You have $userinfo[ucash] chips!<br />


X-Files 01-25-2006 02:03 PM

Quote:

Originally Posted by Annie^.^
This didn't work for me at all. The points doesn't show. Any ideas why? I use 3.5.3

Here is the navbar I have now.
Code:

<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong>&nbsp;You have $bbuserinfo[points] chips!<br />
Found this:
Code:

<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
Added this before the <br />;
Code:

&nbsp;You have $bbuserinfo[points] chips!
If you have the default install I think this should work.
Code:

$bbuserinfo[points]
If not you need to find out the field in the user table that holds the points.

Mine looks like this now.
Code:

Welcome, X-Files. You have 32,997 chips!
You last visited: Today at 10:46 AM
Private Messages: Unread 0, Total 328.


Annie^.^ 01-25-2006 02:24 PM

Thanks now it's working good.

I had this:
Quote:

$userinfo[ucash]
I replaced it to this:
Quote:

$bbuserinfo[ucash]
Thanks a lot


Now all I need to find out is how to restrict points to ceratin forum categories.

TamCaVBoy3 01-25-2006 03:01 PM

may be make this mod so that you use the points to buy threads


All times are GMT. The time now is 08:27 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.01527 seconds
  • Memory Usage 1,744KB
  • 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
  • (8)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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