Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)

Reply
 
Thread Tools Display Modes
  #1  
Old 11-23-2002, 02:27 AM
AzzKickr's Avatar
AzzKickr AzzKickr is offline
 
Join Date: Sep 2002
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
please please please :laugh:
Reply With Quote
  #2  
Old 11-23-2002, 05:56 AM
Mathiau's Avatar
Mathiau Mathiau is offline
 
Join Date: Jan 2002
Location: Costa Rica and toronto
Posts: 227
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^^^

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.
Reply With Quote
  #3  
Old 11-23-2002, 09:52 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
  #4  
Old 11-23-2002, 10:36 AM
AzzKickr's Avatar
AzzKickr AzzKickr is offline
 
Join Date: Sep 2002
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 11-23-2002, 01:01 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

AzzKickr: Install the store hack, and then apply the modification Logician gave.
Reply With Quote
  #6  
Old 11-23-2002, 01:52 PM
AzzKickr's Avatar
AzzKickr AzzKickr is offline
 
Join Date: Sep 2002
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok i will try later
Reply With Quote
  #7  
Old 11-23-2002, 02:13 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

as a matter of fact my code covers Mathiau's request
Reply With Quote
  #8  
Old 11-23-2002, 04:23 PM
Mathiau's Avatar
Mathiau Mathiau is offline
 
Join Date: Jan 2002
Location: Costa Rica and toronto
Posts: 227
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^^^
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?
Reply With Quote
  #9  
Old 11-23-2002, 04:55 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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")."\");");} 
Reply With Quote
  #10  
Old 11-26-2002, 06:27 PM
Mathiau's Avatar
Mathiau Mathiau is offline
 
Join Date: Jan 2002
Location: Costa Rica and toronto
Posts: 227
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

fantastc m8! i shall try this out!!!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:22 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04089 seconds
  • Memory Usage 2,259KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete