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)

Reeve of shinra 11-28-2001 11:44 PM

Crinos - do what we do and put something funny in its place.
For example one of our staff has his say - 1,000,000 pesos.

Of course they can always change that but as staff - you should trust them. =)

squawell - that has to do with the hack ... you probably dont have the semi colon at the end of line 19.

Crinos 11-29-2001 12:59 AM

Hmm, well, is there any way to "hide" user points for a specific usergroup? Both in the postbit and getinfo? Thanks :)

Reeve of shinra 11-29-2001 01:36 AM

I think thats possible but I dont know if I have time to check it out ... maybe next week sometime.

Crinos 11-30-2001 05:09 AM

Kewl! I'll be waiting eagerly then ... Thanks!

Palmer ofShinra 12-01-2001 06:53 AM

Umm... don't expect me to actually conde anything at the moment...

But the way I'm seeing...

Make a new template... call it postbit_points

It consists of one line...

The line you use to display (and link) points normally in postbit.

Replace the part in postbit with $points

In the showthread part of functions.php

Stick this in...

eval("\$points = \"".gettemplate("postbit_points")."\";");

Stick that Eval inside an IF clause that checks $post[usergroupid]

That way people who belong to certain groups won't display Points at all.

Or if you want to hide EVERYONES points from certain usergroups, use $bbuserinfo[usergroupid] instead.

As for getinfo... I really don't know atm...

Tryfwar 12-01-2001 05:30 PM

Please could you explain how to set it up so that only 1 or 2 users could edit the points but everyone else could view them?

Thanks alot in advance,

Tryfwar

Palmer ofShinra 12-01-2001 06:03 PM

Read the thread. It tells you where to change the permissions.

Tryfwar 12-01-2001 07:30 PM

I created a new template called: postbit_points

added the following line:
<a href="moderator.php?s=$session[sessionhash]&action=points&userid=$userinfo[userid]" target=_blank>ELP:</a> $post[field5]

removed that line from postbits and replaced it with $points

edited functions.php and added this to the Start buildpostbit section: (wasn't too sure where exactly to do this as i couldn't find a IF $post[usergroupid])
eval("\$points = \"".gettemplate("postbit_points")."\";");

I then uploaded the new functions.php.

anyway, i can't seem to work out exactly where i should place this line :(

Any hints? :) Thanks

Psychdrone 12-02-2001 01:32 AM

HOw do i make it so that admins/mods, may add text, not just #s in the field?

THanks

And thanks again for the wonderful hack!!

squawell 12-02-2001 02:27 AM

i have a problem with this code:

IF YOU ARE USING VB 2.2.0

Find:
=====================
makenavoption("Build Mailing List","email.php?action=genlist");
=====================

Replace with:
=====================
makenavoption("Build Mailing List","email.php?action=genlist","<br>");
makenavoption("Points","../mod/points.php?s=<?php echo $session[sessionhash]; ?>&action=masspoints");
=====================

but in my admin panel it can't work why??


All times are GMT. The time now is 09:29 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.01027 seconds
  • Memory Usage 1,730KB
  • 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)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