The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Parsing username in member profile's field
Hello,
Is there a trick in the book that allows to parse the username into the text that shows on member's profile from a database's [custom] field? Example of database storage: This song was written by $username in 1998 So far, I was fooling around with Phrases and BBCode, but no success Thank you all. |
#2
|
||||
|
||||
Not sure if this will help but:
https://vborg.vbsupport.ru/showthread.php?t=98904 |
#3
|
||||
|
||||
Thanks for your help. Unfortunately, this vB3.5 post is about parsing title, description, and select-control options. It doesn't address (and I'm not surprised) parsing data stored in a text field.
Quote:
|
#4
|
||||
|
||||
How about this?
https://vborg.vbsupport.ru/showthread.php?t=98904 |
#5
|
||||
|
||||
I'm gratified for your ongoing support. However, this mod parses an expression into a fix string in the translation table. I'll be able to use this technique for another purpose altogether but not bot dynamic display of username in the text that is retrieved from the database.
|
#6
|
|||
|
|||
If you get your users to use something like [minicode]{username}[/minicode] in their custom field, then you can just do a str_replace() (using a plugin in the appropriate place) on the output.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|