vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   [username] bbcodes (https://vborg.vbsupport.ru/showthread.php?t=138486)

Gray Matter 02-05-2007 02:34 AM

[username] bbcodes
 
I've spent more than an hour searching vb.org/vb.com for something like this and I've come up with not a thing. :(

What I'm looking for is just a simple bbcode that would be something like [username]#[/username] or something where # is someone's user ID. When this was used, the result would be the username of the person whose user ID is between the brackets. I'd also like something like this for a link to their profile ([profilelink]#[/profilelink] or something) and a link to PM them.

The reason I'm looking for this is because the staff members at my board constantly insist on changing their usernames and we have quite a few threads that list the staff in various ways so just listing them like this would be easier than having to edit all of the threads when someone changed their name.

I've thought of doing this with replacement variables but that's pretty choppy and just inconvenient, so here I am. :)

Bratz-Designs 02-05-2007 03:33 AM

Title
Code:

Member
Tag
Code:

member
Replacement
Code:

<b><a href="member.php?do=getinfo&username={param}">{param}</a></b>
Example
Code:

[member]Bratzer[/member]
Leave the rest!


This BB code should do the trick for looking up members, i am not really sure if you can use it when they change the usernames.....

Gray Matter 02-05-2007 06:17 PM

That's based off of a user's username, I want it based off of the user ID.


All times are GMT. The time now is 04:51 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.01044 seconds
  • Memory Usage 1,710KB
  • 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
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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