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 Linked In Posts. (https://vborg.vbsupport.ru/showthread.php?t=199967)

smooth-c 12-28-2008 08:46 AM

Username Linked In Posts.
 
Is it possible to create a mod where when a members username is typed, once posted the username will be linked to their profile?

This would be soo much easier than hyperlinking every time.

Marco van Herwaarden 12-28-2008 08:50 AM

Possible yes. But how do you picture this? Just type the members name, or do you want to use a BB-code for it?

smooth-c 12-28-2008 08:54 AM

Just when typed :)

Dismounted 12-28-2008 08:55 AM

vB.org has a "BB Code Implementation" of this.

[name]Dismounted[/name]
[name]Dismounted[/name]

Marco van Herwaarden 12-28-2008 09:00 AM

Just when typed would be a performence killer i think. It would need to split each post up by words, then check for each word if it is maybe a membername (1 query for each word in the post). And it would not work with membernames that contain spaces or such.

smooth-c 12-28-2008 09:01 AM

Ah ok - didn't think of the performance aspect of this request. Where can I find the BB Code Implementation of this Dismounted?

Marco van Herwaarden 12-28-2008 09:05 AM

You can use the standard buildin BB-Code "[ name]":

This:
"Hello [name]smooth-c[/name]"

Will result in:
Hello [name]smooth-c[/name]

Marco van Herwaarden 12-28-2008 09:08 AM

Hmm actually this is not a default BB-code.

But you can easily create one with the following replacement text:

Code:

<a href="member.php?action=getinfo&username={param}">{param}</a>


All times are GMT. The time now is 01:55 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.00964 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)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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