vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - Nexia's POINTS system (https://vborg.vbsupport.ru/showthread.php?t=143530)

nexialys 04-07-2007 10:41 AM

At popular demand, i'm adding right now a new addon:

nex_points_registration.zip contains 3 settings:
  • Points Given to each User at Registration
  • Points Given to each User when they were invited (referred)
  • Points Given to the Referrers
hookable like the others, so we will be able to track these when the tracker/log will be up!
...i'll update this package when i create a deal in the afternoon!

xchewbaka 04-07-2007 11:35 AM

neaxialys , can you offer at next the ibproarcade addon ? I think many admins waiting for it.

if the arcade addon is out I will test it on a big board with more then 100 000 Pagehits a day and i can uninstall the unsupported vbbux/plaza

Thank you for your good work

KHALIK 04-07-2007 11:38 AM

This is going to be one of the best mods for 3.6.x - of the year 2007

Looking forward to addons such as donate and gifts :)


Fantastic work, nexialys

ktutorials 04-07-2007 12:30 PM

wow mate... whih is the download link for specifing the points based on forum sections....

Nice one mate...

Expecting Donate and Edit members points by admin...

fly 04-07-2007 12:40 PM

is there a shop yet that will allow my users to buy title changes and stuff?

nexialys 04-07-2007 12:54 PM

Quote:

Originally Posted by flypaper (Post 1221854)
is there a shop yet that will allow my users to buy title changes and stuff?

as stated earlier, i'm not the one to code these...

nexialys 04-07-2007 12:56 PM

Quote:

Originally Posted by ktutorials (Post 1221850)
wow mate... whih is the download link for specifing the points based on forum sections....
Nice one mate...
Expecting Donate and Edit members points by admin...

Edit members points by admin is already there (edit a user, go in the bottom of the page!)

Points Per-Forum based is on my list for this week projects!

Donation and Gifts are coming too.. functions are written but not implemented yet! i try to fix the new addons first!

nexialys 04-07-2007 12:57 PM

Quote:

Originally Posted by KHALIK (Post 1221812)
This is going to be one of the best mods for 3.6.x - of the year 2007

This will be possible only when people click Install and "Nominate for MOTM" btw i don't care... i'm happy it works, and i'll be happy with other coders will build some addons to it!

nexialys 04-07-2007 12:58 PM

Quote:

Originally Posted by xchewbaka (Post 1221810)
neaxialys , can you offer at next the ibproarcade addon ? I think many admins waiting for it.
if the arcade addon is out I will test it on a big board with more then 100 000 Pagehits a day and i can uninstall the unsupported vbbux/plaza
Thank you for your good work

This was already discussed a lot... ibProArcade is in the list of possible addons, but actually i work on the core system, not the external addons... other coders will have to code these if you want a hurry!

zardos 04-07-2007 01:25 PM

Nexia.. am no coder but would this edit in the code make the person the referred the user that posted the reply to gain a point also?

Code:

<plugin active="1" executionorder="5">
                        <title>Thread Reply Points</title>
                        <hookname>postdata_postsave</hookname>
                        <phpcode><![CDATA[if (!$this->condition AND $this->fetch_field('userid'))
{
        # default value
        $amount = ($this->info['thread']['postuserid'] == $this->fetch_field('userid')) ? $this->registry->options['nex_points_hook_postdata_postsave_own'] : $this->registry->options['nex_points_hook_postdata_postsave'];
       
        # add features like permissions based on usergroup or per-forum (modify $amount)
        ($hook = vBulletinHook::fetch_hook('nex_points_hook_postdata_postsave')) ? eval($hook) : false;

        # if the $amount is not disabled due to permissions or value per-forum, continue!
        if($amount)
        {
                $this->dbobject->query_write("
                        UPDATE " . TABLE_PREFIX . "user
                        SET nex_points_hand = nex_points_hand + " . $amount . "
                        WHERE userid = " . $this->fetch_field('userid') . "
                       
                        SELECT `username`
            FROM `" . TABLE_PREFIX . "user`
            WHERE `userid` = " . $userinfo['referrerid'] . "
            LIMIT 1
                       
                        UPDATE " . TABLE_PREFIX . "user
                        SET nex_points_hand = nex_points_hand + " . $amount . "
                        WHERE userid = " . $userinfo['referrerid'] . "
                       
                ");
        }
       
       
}]]></phpcode>



All times are GMT. The time now is 09:08 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.01502 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
  • (1)bbcode_code_printable
  • (4)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