vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   User Points System (https://vborg.vbsupport.ru/showthread.php?t=64316)

kall 07-08-2004 01:13 AM

*confused*

Is this a Points System, or some form of addon for an existing Points System?

Reeve of shinra 07-08-2004 02:36 AM

Kall. Its its own points system but you can use it as an add on for the ustore / upoint system and probably a few other hacks. We give out the points manually so this just made it simpler... its something we were using that we figured a few people might need or want.

ChrisBaktis 07-08-2004 08:02 PM

Question for you.

I want to add 2 different kind of points to a members account - one for buying things in our shop and one for contest points. Is it possible install this twice so I can add 2 differnent points to members accounts?

Reeve of shinra 07-09-2004 03:22 AM

Yeah. The simple way would be to install the hack a second time but change a the file name and template thats called.

Here's the start but I need to look over the php file itself to see what variables need to be changed.

* In step 2 change the name of gillog.txt to gillog2.txt

* In step 3 rename gilupdate.php to gilupdate2.php

* In step 5 add this instead:

PHP Code:

// ##### UserPoints Mod Options #####
    
if ($bbuserinfo[usergroupid]==OR $bbuserinfo[usergroupid]==OR $bbuserinfo[usergroupid]==7)
    {      
      eval(
'$gilBox2 .= "' fetch_template('postbit_gilbox2') . '";');
    }
    else
    {
      
$gilBox2 "";
    } 
// #### End of UserPoints Mod Hack #### 

* step 7 name the new template postbit_gilbox2 and insert this:

PHP Code:

<br />
<
form action="modcp/gilupdate2.php" method="post">
<
input type="hidden" name="action" value="private204">
<
input type="hidden" name="postid" value="$post[postid]">
<
input type="hidden" name="userid" value="$post[userid]">
<
input type="text" name="amount" size="3">&nbsp;
<
input type="image" src="images/coin.gif" border="0" name="submit" alt="Give Points" onClick="javascript:alert('Points Paid!');">
</
form>

<
br />
<
br />
Points Given$post[gilpaid2

step 9: use $gilBox2 instead of $gilBox

step 10:
ALTER TABLE `post` ADD `gilpaid2` TINYINT DEFAULT '0' NOT NULL ;

ChrisBaktis 07-10-2004 12:08 PM

Thank you - works great!

EnriqueHavoc 08-26-2004 01:44 AM

wait.. so is this working on 3.03?

Reeve of shinra 08-26-2004 02:08 AM

works fine on vb3.0.3.

EnriqueHavoc 09-01-2004 04:13 AM

awesome hack, thanks reeve :)

Crookedfoot 09-12-2004 06:11 PM

A modification question.

Is there a way to place the update fields for this on another page such as the Profile page, or a custom drop box in each post?

Here is why I ask.
For our forum we used to have the similar hack by Palmer ofShinra when we ran vb2.3.5, we loved it.
We had adapted it to six different fields for keeping track of tournaments and special titles.
To make it accessable to Staff Members and Admins I didn't install the controls to the postbit, and gave the appropriate URLs to those that needed it so people wouldn't make unauthorized changes.

I like how this version logs and can be set to specific groups, but with six fields, that's six white boxes with coins in every post.

No offence, but that is ugly if your an admin and you see that many boxes.

So far I haven't had much luck getting a working control into the Profile page, and my associate is still trying to get a drop box to work as well.

The only other option that comes to mind is to place this on one skin not used by those that need the controls and then they switch to it when needed.

Reeve of shinra 09-13-2004 12:29 AM

There is an addon for the upoints hack that lets you do mass updates for users in the same format as the old vb2 points hack which may suit you better. I will check on adding this to the profile page though.


All times are GMT. The time now is 03: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.01394 seconds
  • Memory Usage 1,746KB
  • 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_php_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
  • (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