The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
How can i color only the name Started By name but name to be colored
look at picture , just the black marked username depending by usergroup Thanks in advance |
#2
|
||||
|
||||
![]()
That whole line "Started by xxxx, date" is under the class of label. So, if you use CSS to change the class label to another color, that whole like will get changed. Therefore, you would need to edit the template to add a class only around those two words.
To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. (Sometimes the template is the one mentioned at the very top of the page source.) |
#3
|
||||
|
||||
![]()
Here's what you can do:
1.) Create a new phrase: Language: MASTER LANGUAGE Phrase Type: GLOBAL Product: vBulletin Varname: m_started_by_x_y_z_a Text: HTML Code:
<span class="label">Started by <a href="{1}" class="username understate" title="Started by {2} on {4} {5}">{3}</a>{6}, {4} {5}</span> 2.) Create new plugins: First plugin: Product: vBulletin Hook Location: threadbit_display Title: Username Markup In Threadbit (threadbit) Execution Order: 5 Plugin PHP Code: PHP Code:
Click "Save" Second Plugin: Product: vBulletin Hook Location: search_results_threadbit Title: Username Markup In Threadbit (search_results) Execution Order: 5 Plugin PHP Code: PHP Code:
Click "Save" 3.) Edit templates (for each style you want to change): threadbit, threadbit_deleted, search_threadbit Find each instance of: HTML Code:
{vb:rawphrase started_by_x_y_z_a, {vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}, {vb:raw thread.postusername}, {vb:raw thread.startdate}, {vb:raw thread.starttime}, {vb:stylevar dirmark}} HTML Code:
{vb:rawphrase m_started_by_x_y_z_a, {vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}, {vb:raw thread.postusername}, {vb:raw thread.postmusername}, {vb:raw thread.startdate}, {vb:raw thread.starttime}, {vb:stylevar dirmark}} |
Благодарность от: | ||
Lynne |
#4
|
||||
|
||||
![]() Quote:
|
#5
|
||||
|
||||
![]()
What was the result?
|
#6
|
||||
|
||||
![]()
The usernames are still in the default color of white ....
|
#7
|
||||
|
||||
![]() Quote:
![]() |
#8
|
||||
|
||||
![]() Quote:
Ah yes? :erm: .... ![]() --------------- Added [DATE]1451683811[/DATE] at [TIME]1451683811[/TIME] --------------- Thanks Mark ..works good lol .. |
#9
|
||||
|
||||
![]() Quote:
![]() |
#10
|
||||
|
||||
![]()
Good stuff !!!! thank you Mark !!!
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|