vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Please help with a very simple hack. (https://vborg.vbsupport.ru/showthread.php?t=50971)

Iguacu 03-29-2003 08:48 PM

Please help with a very simple hack.
 
Ok, this is such a simple hack it just goes to show how sad i am with making them =P

Ok, in my postbits i have a small section that says "Rank:" now, as of right now it will show up a user custom title, what i need it to show is ONLY a usergorup title (Administrator, Moderator, Member). Could someone please do me this favor and help me out with this o.o

flup 03-29-2003 09:05 PM

Just DISABLE the custom titles

Iguacu 03-29-2003 09:07 PM

Well thats great and all but i WANT there to be custom titles in a different part of the postbit.

Avatar
----
title
----
Rank
----

is how it goes.

mr e 03-29-2003 09:23 PM

$bbuserinfo['customtitle'] is the custom title
$bbuserinfo['usertitle'] is the user's rank

Iguacu 03-29-2003 09:49 PM

Umm, ok i put that in and all it did was make EVERYONES rank "Administrator"

o_O

Marzas 03-30-2003 01:27 AM

you mustve edit the code, just place $bbuserinfo['usertitle'] where you want it in the postbt, i dont know why it would say admin to everyone.

Iguacu 03-30-2003 04:07 PM

Ok, i edit the code and remove the " ' " and it places everyones rank as "Administrator" i don't edit the code at all and NOTHING shows up there.

Pollo 03-30-2003 05:29 PM

$bbuserinfo[usertitle] displays admin, yep. I don't know what the code should be, but just confirming what he posted.

amykhar 03-30-2003 06:53 PM

guys, thinks about it. $bbuserinfo is always YOU. Therefore, because you are an admin, it always says admin. For postbit, you want $post[usertitle]

But I think you might have been steered wrong. The customtitle field is an integer that indicates whether or not a custom title has been set. The actual custom title is then stored in the usertitle field of the database.

Amy


All times are GMT. The time now is 12:34 AM.

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.01237 seconds
  • Memory Usage 1,717KB
  • 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
  • (9)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