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)
-   -   Give Points from the Postbit for Ebux (https://vborg.vbsupport.ru/showthread.php?t=108740)

yingzhou 12-14-2006 10:13 PM

Quote:

Originally Posted by Reeve of shinra (Post 1095967)
I am installing the latest vbplaza for vb 3.6.2 and will likely update this hack if any changes are necessary... no promises on how long it might take but it should be in the next week or two.

Cant wait for it! THANK YOU very much!:D :D

Reeve of shinra 01-09-2007 03:50 AM

sorry folks, just got around to playing around with the script and it works pretty much as-is with vb 3.6.4 but I noticed a few things...

1. upload points.php to your /forum/ folder for now... I need to add a cd/ before calling global.php at the top line. Not sure how I missed that earlier. =p

2. when you update the postbit template, be sure to update the patch to points.php. If you installed this to your /forum folder, then you can use this.

HTML Code:

<!-- begin points mod -->
<if condition="is_member_of($bbuserinfo, 5, 6, 7)">
        <div>
                               
        <!-- </form> -->
<!--gets around an error -->

        <form action="./points.php" method="post" name="gilform">
                                               
        <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 />
        </div>
        <div class="smallfont">
        Post Points: $post[pointspd]
        </div>                               
</if>
<!-- / end points mod -->


timja 10-23-2007 10:42 AM

I don't use ebux or ucash or any other mod/hack like this. Can I still use your point system? (does it work standalone?)

Reeve of shinra 10-24-2007 03:43 AM

yep, in fact I use it stand alone as well on 3.6.8.

Since you are NOT using an existing points system, you will need to do the following:

Admincp -- Maintenance -- Execute SQL query.
Change 'user' to 'tableprefix_user' if you need to.

Code:

ALTER TABLE `user` ADD `points` INT( 10 ) DEFAULT '0' NOT NULL ;
Then just follow the instructions. Ignore any version issues that you get. If you have trouble - hit me up on aim.

timja 10-24-2007 12:30 PM

Very kind of you. I shall try this later today.


All times are GMT. The time now is 03:32 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.01214 seconds
  • Memory Usage 1,728KB
  • 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
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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