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 - ICash, Simple, stand alone point system. (https://vborg.vbsupport.ru/showthread.php?t=119086)

hippiesimz 03-04-2007 12:48 PM

hi there.. im running vb 3.63 , no problem with the installation, everything works perfectly, but i had some problem, i tried to give people point everytime they make a thread its working, but it doesnt work when they post a reply. can anyone help me or does anybody have the same problem with me ? thanks.

Blaine0002 03-04-2007 12:50 PM

it is actually very easy to add points for different actions people do ont he forums, i am going to cover voting on a poll.
Create a new plugin and call it : ICash Poll
The hooklocation should probably be : pollvotedata_postsave
and the code should look somthing like this
PHP Code:

$amount '1';
$vbulletin->db->query("update " TABLE_PREFIX "user set {$vbulletin->options['icashf']}={$vbulletin->options['icashf']}+'{$amount}' where userid='{$vbulletin->userinfo['userid']}'"); 

now just set the $amount variable to the amount you want to give to the voter.

simple as that, you simply have to know what hook is located where.

if you wanted to subtract points all you would need to do is change + to - in the php code.

Have fun and feel free to post your plugins :)

Zagis 03-04-2007 01:35 PM

Quote:

Originally Posted by Blaine0002 (Post 1193510)
Zagis, i posted earlier in the thread that you simply need to change the hook location to newpost_complete instead of newpost_process

Sorry Blaine, I didn't noticed that you answered earlier.
Any way, the hook location is newpost_complete but the main problem now is that ICash does not work after the vB 3.6.5 upgrade...

Blaine0002 03-04-2007 01:58 PM

great.... are you sure about this? i dont have a renewed liscense so i can not investigate further >_<

Zagis 03-04-2007 03:29 PM

I had a few complains so I tested a couple of times. If someone else has the same prob with ICash on vB 3.6.5, please post...;)

razor69 03-04-2007 11:48 PM

Is there any way to import UCash users and their points?

Blaine0002 03-05-2007 01:31 AM

no need to import, just find out the row that ucash used for it and change the settings to it in the admincp

razor69 03-05-2007 01:37 AM

Quote:

Originally Posted by Blaine0002 (Post 1195883)
no need to import, just find out the row that ucash used for it and change the settings to it in the admincp

Thanks for the quick reply! I am trying to ensure that users keep all their points they have acrued in Ucash.

fitnesshealth 03-05-2007 06:00 AM

Hi,

I've upgraded from 1.01 to 1.02.

Any idea why points still remain the same after replying in a thread when "points per character" is disabled?

My settings:
- Points per thread/post is activated in Icash settings.
- Points per reply has also been set under Forum manager.
- Nothing in the code is modified.

Please advise.

Zagis 03-05-2007 12:31 PM

Quote:

Originally Posted by Zagis (Post 1195465)
Any way, the hook location is newpost_complete but the main problem now is that ICash does not work after the vB 3.6.5 upgrade...

:rolleyes: I've upgraded vB to 3.6.5 and right after ICash from 1.01 to 1.02 so I'm not quite sure what exactly is the reason that I'm having the same problem with "fitnesshealth"


All times are GMT. The time now is 11:19 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.01813 seconds
  • Memory Usage 1,745KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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