vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Usergroup Hack for Topic Starter wanted (https://vborg.vbsupport.ru/showthread.php?t=41463)

Bad666 07-24-2002 10:43 AM

Usergroup Hack for Topic Starter wanted
 
I need a hack who shows only the Usergroup if a user of this Group starts a thread. Some boards have an Link Control center to add User to grpups
the username inside the posting should be (maybe?) shown like this Group@username.

Any ideas?

Bad666 07-25-2002 02:59 PM

No ideas?

Logician 07-25-2002 03:25 PM

I didnt get what you mean? Are you trying to display the thread to only users whose usergroup is same with thread starter?

Bad666 07-25-2002 04:50 PM

Nope
I want to create separate groups, just like clangroups.
If user xyz starts a threat only the groupname should be shown in the forum, but in the thread his name should be like xyz@clan

Logician 07-25-2002 05:51 PM

edit forumdisplay.php, find:

PHP Code:

      $thread['postedby'] = "<a href=\"member.php?s=$session[sessionhash]&action=getinfo&userid=$thread[postuserid]\">$thread[postusername]</a>"

before that add:

PHP Code:

if (strpos($thread[postusername], "@")>0) {$thread[postusername]=substr($thread[postusername], strpos($thread[postusername], "@")+1);} 

Make sure all clan members have usernames in this format:

username@clanname

Bad666 07-25-2002 07:57 PM

Thx
I?ll test this out ;)


All times are GMT. The time now is 09:01 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.01067 seconds
  • Memory Usage 1,720KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete