View Full Version : Usergroupid, Usergroup & postbit
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 (http://www.vbulletin.com/members/vbulletin.org.php) 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.
Admin
12-13-2001, 04:17 PM
Miratos, all I was asking you was to enter your username in a simple form to denote you are a licensed user of vBulletin.
I'm surprised you find that request so hard to follow.
Thanatos
12-13-2001, 05:59 PM
Incorrect...you asked Miranda to do so...not me. Nowhere did you direct me to do so.
I went to some page and put in my customer information and customer password.
Maybe it's all gone now though. I think I managed to remove it. Not sure.
Admin
12-13-2001, 06:08 PM
I'm sorry, your similar usernames confused me.
Too bad you "managed to remove it" though, you will need it in to get support here. :)
[QUOTE]Originally posted by FireFly
Too bad you "managed to remove it" though,
Thanatos
12-13-2001, 08:07 PM
No problem - had that happen to before.
It's really a catch 22. I've asked for support 2 times in the almost year I've had the software...neither time did it achieve anything...and the ironic part is..its over the same little hack.
I'll see if I can find the original people who wrote the hack and see if they are nice enough to do it again...
but I won't be back for support, I've learned my lesson...I'm gonna pack my toys and go home, not do the $30 renew fee and look for a new bulletin board solution for the next time I need to upgrade.
Have fun & Keep the Faith.
Dalius
12-13-2001, 08:30 PM
[QUOTE]Originally posted by Miratos
No problem - had that happen to before.
It's really a catch 22. I've asked for support 2 times in the almost year I've had the software...neither time did it achieve anything...and the ironic part is..its over the same little hack.
I'll see if I can find the original people who wrote the hack and see if they are nice enough to do it again...
but I won't be back for support, I've learned my lesson...I'm gonna pack my toys and go home, not do the $30 renew fee and look for a new bulletin board solution for the next time I need to upgrade.
Have fun & Keep the Faith.
Thanatos
12-13-2001, 08:44 PM
And for the 2 of you twits who think
1. I am an unregistered/upaid user who never put his information in
and
2. a vbulletin softwarfe pirate
Screw off. you both simply have no clue what you're talking about.
I'd be more then happy to post both my customer # and password - since I can't use the dam product or get support for what I'm trying to accomplish with it.
Dalius
12-13-2001, 08:59 PM
I call you pirate because you talk but dont do
If you have a lisence, ENTER IT AND PROVE US WRONG
Psychdrone
12-14-2001, 12:11 AM
dammit, this is why I don't understand , why you guys, make .org, unavaliable to Guests, and not let people register unless, they have already submitted there license info! :mad: :mad:
Dalius
12-14-2001, 12:44 AM
If they do not own vBulletin, they shouldn't even be here!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.