The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to add username var to thread title for VB Garage?
I use the modification VB Pro Garage Timeslips.
When a user adds a new vehicle to their garage, a new post is automatically made in a certian forum. You can customize the title, and the body, of this post. By default they are as follows: Title: A new vehicle has been created in the garage! Body: {username} has created a new vehicle in the garage. Go check out their {vehicle}! I want to use the {username} variable in the title as well, to make the title look like this. {username} added their {vehicle} to their garage. , but the variables do not work. It shows up like this: Anyone know how to make this work? |
#2
|
|||
|
|||
I believe I've tracked it down to this code from the file garage_func_var.php
I need to add the {username} var to the $title somehow, just like the $pagetext has the str_replace of {username} Anyone help me out with what coding is needed to make this work? PHP Code:
|
#3
|
|||
|
|||
Note:
"garage_post_subject" is "{username} added their {vehicle} to their garage" from the database "garage_post_text" is "{username} has created a new vehicle in the garage. Go check out their {vehicle}!" from the database as well |
#4
|
||||
|
||||
This should help you out a bit. From one of my old modifications.....
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|