vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   User Points System (https://vborg.vbsupport.ru/showthread.php?t=32060)

mav 03-25-2002 11:54 AM

Yeah I figured it out last night.... All you have to do is add a mySQL update on newthread.php and newreply.php that adds x amount to your custom user field when posting or replying.

The Sorcerer 03-25-2002 08:49 PM

Where do i find this STEP 6: Edit TEMPLATE postbit

ADD Underneath "Posts: $post[posts]<br>"

Like u know there is a file named moderator.php, which file is it in(i.e. templates.php, modertaor.php, etc) which one?

Erwin 03-25-2002 10:18 PM

Quote:

Originally posted by The Sorcerer
Where do i find this STEP 6: Edit TEMPLATE postbit

ADD Underneath "Posts: $post[posts]<br>"

Like u know there is a file named moderator.php, which file is it in(i.e. templates.php, modertaor.php, etc) which one?

:)

It's not a file, it's a TEMPLATE - the title of that step says "Edit TEMPLATE".

You can find the postbit template by going to your Admin CP, clicking on Modify Templates, and Show All. You should see the postbit template then.

WanderBug 04-04-2002 03:18 AM

Installed the hack on 2.2.4. It worked fine.

However, when trying to add a new style, vB gave me the following error message:

Database error in vBulletin Control Panel 2.2.4:

Invalid SQL: INSERT INTO replacementset VALUES (NULL,'New Style')
mysql error: Column count doesn't match value count at row 1

mysql error number: 1136

Does the hack alters the replacementset table?

Reeve of shinra 04-04-2002 03:39 AM

Nope ....

The hack utilizes a customer profile field which is fully supportable in vb, a php which pulls the data from that field and does some math before reinserting it, and a few quick template edits....

Reeve of shinra 04-04-2002 03:40 AM

Actually, you might be having trouble with the points on reply mod that was released, in which case you will need to talk to the poster of it.

WanderBug 04-04-2002 03:55 AM

Thak you :cool:

Erwin 04-04-2002 09:18 AM

Works fine in 2.2.5... :D

heretic 04-04-2002 03:57 PM

I'm curious, can this hack be modified to show commas? the users on my site earn up in the hundred thousands, and was wondering how it can be more readable, so instead of 1234567 it'd be 1,234,567

Vivi Ornitier 04-04-2002 04:12 PM

Hmm, maybe. I think you just need to change the type of mySQL info it holds. Like change it to an integer or something...


All times are GMT. The time now is 08:54 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.01284 seconds
  • Memory Usage 1,734KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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