vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Usergroupid, Usergroup & postbit (https://vborg.vbsupport.ru/showthread.php?t=33132)

Thanatos 12-11-2001 10:05 PM

Long ago there was a posted hack that allowed you to add in the usergroupid/usergroup into the postbit so that every user that posts in your forums would also reflect what usergroup they belonged to.

This worked fine for vbulletin 2.x to 2.03, but when upgraded to 2.2.x the hack no longer worked, despite following the instructions as I had previously.

I figure the problem is, I don't know what files to put everything to make it work correctly. I need some help in getting this to work correctly please.

I do not know php, but I can easily cut and paste code in files if I am told what code to copy and in what file/where to paste it.

Could one of you Wizards ~please~ update this for me?

_____________

Edited out the code because it wasn't useful anyway.

_____________

Thank you.

Miranda 12-12-2001 11:36 AM

I would also like to know how to do this with the new version.

Thanatos 12-12-2001 08:46 PM

Can no one give me some idea how to do this?

Scott MacVicar 12-12-2001 09:54 PM

ok its not showthread.php the function which makes the post is contained, at least i think

open
/admin/function.php

look for the following around line 141
$post[icon]="<img src=\"$post[iconpath]\" alt=\"$post[icontitle]\" border=\"0\">";
}

below it add
$usergroup = $DB_site->query_first("SELECT title FROM usergroup WHERE usergroupid='$post[usergroupid]'");

and in member.php line 1144
$usergroupperms = getpermissions(0, $userinfo['userid'], $userinfo['usergroupid']);

below it add
$usergroup = $DB_site->query_first("SELECT title FROM usergroup WHERE usergroupid='$userinfo[usergroupid]'");

you can use $usegroup[title] now

Thanatos 12-12-2001 10:39 PM

I put the exact lines exactly where you specified and receive this error:

Fatal error: Call to a member function on a non-object in /home/XXXXXX/public_html/forums/admin/functions.php on line 142


and I've no idea what that means...but it takes the boards down :)

Admin 12-13-2001 05:03 AM

Miranda, please go to this page and enter your username, to show you are licensed. (you will need to use your customer number and password to access that page)
Thank you.

Admin 12-13-2001 05:18 AM

As for the error, $DB_site isn't globalized in getpostbit() function because you're not supposed to use queries in there (adds a lot of load).

Thanatos 12-13-2001 12:26 PM

*sighs*

nevermind then, my mistake for asking for help.

PPN - thanks for trying to help someone that has no ability or skill when it comes to programming style languages.

Scott MacVicar 12-13-2001 02:47 PM

sorry chen, I didn't think non liscenced members could post here.

why would they need to request anything when they don't have a board to use it on :D

Thanatos 12-13-2001 04:04 PM

*I* am licensed - for all its apparently worth.

You don't ever see any posts from me...because this is the only hack I've ever used or needed. It's the only one I've ever tried to get or ask for help on.

I'll find another board system that does what I want it to that will not require me pulling my hair out trying to figure out how to program in Php & mysql.


All times are GMT. The time now is 01:03 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.01592 seconds
  • Memory Usage 1,726KB
  • 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
  • (1)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