vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Help with modding how usernames display. (https://vborg.vbsupport.ru/showthread.php?t=130876)

TomParad0x 11-05-2006 11:21 PM

Help with modding how usernames display.
 
Basically, we run a radio station website ( http://haxradio.com ). We want to make it so our users that are listening to the show have an icon of some kind next to their name. We know how to mod the shoutcast to update a database for it, but i cant find where VB determines how a username looks.

Can some one direct me to the file / function / veriable (s) that controls how usernames look?

Also, i cant figure out what actually executes an MySQL query in the files, IE: I want to get a field "listening" in a table somewhere, how would i go about doing this?

Lastly, if i am modding this in the plugin management thing, what hook do i use?

I know PHP to actually *write* the plugin, but i am new to the vBulletin code layout.

Thanks, TomParad0x.

Reeve of shinra 11-05-2006 11:32 PM

Wait... are you looking to add an icon next to the username or are you trying to change how the username looks or both?

Just to make your life easy,
1 - create a new product and associate your plugins and phrases with it

2. - create a new plugin using the global start hook location so you can access this anywhere on the site.

3. - look at the postbit template and add your html for the icon there.

ie:

<if condition = listening>
html for listening to radio station
<else />
html for not listening
</if>

TomParad0x 11-05-2006 11:53 PM

Well, basically we want it to display a small icon by their name ( like a headphone set or something ) when they are listening, so the first one.

@ The other info. Thanks, i will look into that :)

edit: Where might i find the postbit template?

Reeve of shinra 11-06-2006 12:18 AM

HTML Code:

                        <div>
                                <if condition="$post['field5'] = ''yes">
                                        <img src="path_to_img_here" />
                                </if>
                        </div>
                                <br />



All times are GMT. The time now is 01:11 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.00928 seconds
  • Memory Usage 1,718KB
  • 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)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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