The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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. |
#2
|
|||
|
|||
I would also like to know how to do this with the new version.
|
#3
|
|||
|
|||
Can no one give me some idea how to do this?
|
#4
|
|||
|
|||
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 |
#5
|
|||
|
|||
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 |
#7
|
||||
|
||||
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).
|
#8
|
|||
|
|||
*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. |
#9
|
|||
|
|||
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 |
#10
|
|||
|
|||
*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. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|