vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Forum Leaders Usertitle (https://vborg.vbsupport.ru/showthread.php?t=138733)

crashb555 02-07-2007 05:28 PM

Forum Leaders Usertitle
 
Hey :)
I was wondering if you are able to create a mod that will make it so it shows a special "assigned" usertitle to the Forum Leaders page, for example, I have edited by templates for the forum leaders to show a members usertitle on that page rather than location, so for example:
crashb555
Forum Administrator - my random usertitle

I want it so I can give them a special usertitle in the Admin CP which means that on the Forum Leaders it will give them that usertitle rather than one they made themselves so they can have a usertitle like My Random usertitle - forum admin on their profile/posts but on the leaders page they have Forum Administrator.

Is it hard to make, or does anybody know where I can find this hack already?

Thanks :D

Cyricx 02-08-2007 06:04 PM

You could likely do this by assigning user ranks for that usergroup.

I'm not certain if the forum leaders page shows ranks, but that should be an easy template modification.

Have you tried that?

crashb555 02-09-2007 01:27 PM

I have done that one before, but if someone in that group has a different job title but is still in that group like: Forum Administrator and Forum Manager but they would stilll both be in the Forum Administrators group then it wouldn't work.
Basically a mod where it adds another usertitle to the database for a user to show on the forum leaders page, there may be a way to do it by editing the database and the admincp/users.php page but its too complicated for me to figure out.

Cyricx 02-09-2007 01:39 PM

I think I say something like this for 3.5

It was "additional user title", it had been made to display in the postbit. But I think it could be tweaked to show on the forum leaders page.

I'll take a peek and see if I can find it and tweak it today.

crashb555 02-09-2007 01:51 PM

It would just be putting the code on the forum leaders rather than on the postbit.

That would be wicked if you could do that :) im guessing it will work on 3.6.x if you tweak it?

Cyricx 02-09-2007 02:30 PM

O rock! You can do it much easier then I thought :)

Create a new profilefield in the admincp that is NOT editable by the user.

(that will create a field that only you can change through the admincp)

And then go into your templates, specifically the showgroups_usergroupbit

and add the following where you want it

<if condition="$user['fieldXX']">$user[fieldXX]</if>

Be sure to replace the XX with the field number in question :)

crashb555 02-09-2007 02:57 PM

Wow, thats a good idea :)
Just setting it up now.
Thanks a lot :D


All times are GMT. The time now is 01:45 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.01625 seconds
  • Memory Usage 1,716KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (7)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