vb.org Archive

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

Lesane 07-14-2003 02:43 PM

Quote:

07-01-03 at 01:40 AM BigJohnson said this in Post #15
Thanks so much lesane. But one thing. I am just looking at the code for a second and I don't notice this feature.

Say i have 20 points. And i make a new thread. I cannot set the number to be 21 or above or a get an error. The maximum points i can use is only the ammount i have.

It does already do that, look at this code in newthread.php:
PHP Code:

// if points needed to reply higher is then the user's amount of points then display template 'thread_nopoints_ask'
  
if ($points $usermoney) {
   eval(
"standarderror(\"".gettemplate('thread_nopoints_ask')."\");");
  exit();
  } 


Quote:

07-01-03 at 01:40 AM BigJohnson said this in Post #15
But I was thinking u just type the number of points in a field. because the points is bound to go over even 2000.


Open template: forum_coolpoint

And change all the content to the following:

PHP Code:

<tr bgcolor="#1C5780">
    <
td bgcolor="#1C5780"><normalfont><b>Points Needed To Reply: </b></normalfont></td>
    <
td bgcolor="#13486D"><normalfont><input type="text" class="bginput" name="points" value="0" size="40" maxlength="85" tabindex="1"></normalfont><bPut the amount of points also in your message to let us know!</b></normalfont></td>
</
tr

Save template: forum_coolpoint


All times are GMT. The time now is 07:36 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.01046 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)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
  • (1)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