vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Good Points System (https://vborg.vbsupport.ru/showthread.php?t=46013)

AzzKickr 11-23-2002 02:27 AM

Good Points System
 
hi i want this hack ---> if user start a thread he has + 10 points if someone reply in his thread +5 if he reply -5 somethig like this...and if he has 0 points he can't reply, and thread-starter can select how many points user need to reply to his thread :cool:
please please please :laugh:

Mathiau 11-23-2002 05:56 AM

^^^

haha, man i have been looking for this for my works forum - the store hacks has most of it - but i need to know how to stop someone from posting / viewing a therad if they don't have enough points.

ithink it is a modify hack that someon did and never posted it.

Logician 11-23-2002 09:52 AM

Quote:

Originally posted by Mathiau
haha, man i have been looking for this for my works forum - the store hacks has most of it - but i need to know how to stop someone from posting / viewing a therad if they don't have enough points.

ithink it is a modify hack that someon did and never posted it.

edit newreply.php, find:

PHP Code:

updateuserforum($threadinfo['forumid']); 

Before that insert:
PHP Code:

if ($bbuserinfo[storep]<AND $threadinfo[forumid]==Y
{
 eval(
"standarderror(\"".gettemplate("error_notehoughstoremoney")."\");");


Replace X with the min store money your members should have to reply in forum Y. Replace Y with your forumid.

Create a new template named "error_notehoughstoremoney".. It will be displayed if user tried to reply in forum Y with money less than X.

Enjoy..

AzzKickr 11-23-2002 10:36 AM

thx Logician but how to make what i request?
nake new thread and u got 10 points, answer in thread and u got -5 points?
and thread-starter can select how many points user need to reply to his thread :ninja:
//sorry my bad english :)

N9ne 11-23-2002 01:01 PM

AzzKickr: Install the store hack, and then apply the modification Logician gave.

AzzKickr 11-23-2002 01:52 PM

ok i will try later :p

Logician 11-23-2002 02:13 PM

as a matter of fact my code covers Mathiau's request

Mathiau 11-23-2002 04:23 PM

^^^
does your code not allow someone to post if they do not have enough points? i didn't think it did - my bad.

also - the points amount is diff for each forums section - any way to admin this in the Admin CP?

So i can say forum 1 u need 10 points to view forum 2 u need 20 points to view etc etc?? how can i set each forum amount of points needed to view it?

Logician 11-23-2002 04:55 PM

Quote:

Originally posted by Mathiau
^^^
does your code not allow someone to post if they do not have enough points? i didn't think it did - my bad.

also - the points amount is diff for each forums section - any way to admin this in the Admin CP?

So i can say forum 1 u need 10 points to view forum 2 u need 20 points to view etc etc?? how can i set each forum amount of points needed to view it?

Integrating it into Admin CP is time consuming. But you can use the exact code to add other forums like:

PHP Code:

if ($bbuserinfo[storep]<AND $threadinfo[forumid]==Y
{ eval(
"standarderror(\"".gettemplate"error_notehoughstoremoney")."\");");}
if (
$bbuserinfo[storep]<AND $threadinfo[forumid]==Z
{ eval(
"standarderror(\"".gettemplate"error_notehoughstoremoney")."\");");}
if (
$bbuserinfo[storep]<AND $threadinfo[forumid]==Q
{ eval(
"standarderror(\"".gettemplate"error_notehoughstoremoney")."\");");} 


Mathiau 11-26-2002 06:27 PM

fantastc m8! i shall try this out!!!


All times are GMT. The time now is 06:45 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.04278 seconds
  • Memory Usage 1,753KB
  • 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
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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