Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-11-2001, 10:05 PM
Thanatos Thanatos is offline
 
Join Date: Dec 2001
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #2  
Old 12-12-2001, 11:36 AM
Miranda Miranda is offline
 
Join Date: Dec 2001
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would also like to know how to do this with the new version.
Reply With Quote
  #3  
Old 12-12-2001, 08:46 PM
Thanatos Thanatos is offline
 
Join Date: Dec 2001
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can no one give me some idea how to do this?
Reply With Quote
  #4  
Old 12-12-2001, 09:54 PM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 12-12-2001, 10:39 PM
Thanatos Thanatos is offline
 
Join Date: Dec 2001
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 12-13-2001, 05:03 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 12-13-2001, 05:18 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #8  
Old 12-13-2001, 12:26 PM
Thanatos Thanatos is offline
 
Join Date: Dec 2001
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*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.
Reply With Quote
  #9  
Old 12-13-2001, 02:47 PM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #10  
Old 12-13-2001, 04:04 PM
Thanatos Thanatos is offline
 
Join Date: Dec 2001
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:31 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05358 seconds
  • Memory Usage 2,254KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete