vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Change User Group By post Count (https://vborg.vbsupport.ru/showthread.php?t=43170)

wolfe 09-04-2002 11:01 PM

that worked but now it shows

My Usergroup id is 10
My Post Count is 9

@ the top :(

Logician 09-04-2002 11:15 PM

Quote:

that worked but now it shows
yes it is supposed to show this, because these lines for debugging purposes only (=tracking the problems). :)

And it showed me that there is nothing wrong with the code, you werent just trying with either a correct usergroupid or post number..

You can now delete the code you added..Your hack is working ok..

wolfe 09-04-2002 11:16 PM

:) niceone d00d you da man :D

g-force2k2 09-05-2002 12:07 AM

nice work Logician ;) thats what i usually do to test my stuff to... if somethign isn't working i'll echo it and see whats up with my variables :) brilliant as always... regards...

btw good thing you recognized the usergroupid = 2 :p i would've felt dumb ;)

g-force2k2

wolfe 09-06-2002 12:10 AM

now i took that out it don't work :(

Logician 09-06-2002 06:06 AM

Quote:

Originally posted by wolfe
now i took that out it don't work :(
wolfe it's impossible because these lines are absolutely irrelevant to what the hack is doing.

Try this:
Set a user's post count to 9 via PHPmyAdmin.
Login as him.
Post 4 messages.
And after each post check if the usergroup has changed.

You'll get how the hack works then. You are always missing the fact that hack will change his usergroup ONLY when user has exactly 10 posts (and he posts a new one). So if you try when he has 20 posts it will not work. If you want it otherwise you can use

PHP Code:

if($bbuserinfo[posts] >= 10 AND $bbuserinfo[usergroupid]==2) { 

line instead (as a first line).

[D]Vincent 09-06-2002 06:22 AM

WHy would you want to do that? Why not just use the user title thing instead? That's what I did and since members wanted a Custom Title also I made a profile field for Custom Title and just added that profile field to be displayed under the user title.

Logician 09-06-2002 09:27 AM

Quote:

Originally posted by [D]Vincent
WHy would you want to do that? Why not just use the user title thing instead? That's what I did and since members wanted a Custom Title also I made a profile field for Custom Title and just added that profile field to be displayed under the user title.
I think he is not trying to assign a custom title. His goal may be to grant them other features via their new group like PM rights/access to certain forums/right to post in certain boards by access masks etc.

wolfe 09-06-2002 11:11 AM

yeah thats it also d0d say this code here

Code:

if ($post[posts] > 1000)
        { $pips = "<img src=\"images/pip21.gif\" border=0>"; }
elseif ($post[posts] > 950)
        { $pips = "<img src=\"images/pip20.gif\" border=0>"; }
elseif ($post[posts] > 900)
        { $pips = "<img src=\"images/pip19.gif\" border=0>"; }

will the top one chage to the pip21 when on 1000 or 1001

wolfe 09-06-2002 11:13 AM

also is there a way to make it for all member if someone is deleted in the admin CP it make them a ignore user and they are ignored to everyone else :D


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