Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 07-16-2009, 06:15 AM
goshalim goshalim is offline
 
Join Date: Oct 2007
Posts: 470
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default colours for user groups.

I have set up for each usergroup to have a different colour .
Admin - red
Super Mod - Blue
Mod - green
etc

Its is shown below but its not working on the post .

When i see on the forum LAst post by ....... the colour there is shown as normal like for Register users .

Also in Post thanks or groan .

How can i change this ??

Thanks again all for your help
Reply With Quote
  #2  
Old 07-16-2009, 08:42 AM
James Birkett James Birkett is offline
 
Join Date: Jun 2009
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey goshalim,
By default, vBulletin has put the plaintext of the username on the Forum Home templates. This can easily be edited by editing the template.
To show usernames in plaintext - the code is: $user['username'];
To show the usernames with markup - the code is: $user['musername'];
So, what you need to do is call $user['musername'] rather than $user['username'].
Reply With Quote
  #3  
Old 07-16-2009, 08:48 AM
goshalim goshalim is offline
 
Join Date: Oct 2007
Posts: 470
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks JAmes

Can you be liltle bit more specific where to go and add these codes which you gave me please.
I am not an expert but i work hard by myself

Thank you again
Reply With Quote
  #4  
Old 07-16-2009, 10:34 AM
James Birkett James Birkett is offline
 
Join Date: Jun 2009
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello again golashim,
Sorry for the delayed reply. To the point:
If you enable commenting on the source (vBulletin options -> General Settings -> Add Template Name in HTML Comments -> Yes) this comments each part of the source with each template it uses (i.e. forumhome, forumdisplay etc). Now, if we look for the part that displays the last posted user, we get this:
Code:
<phrase 1="member.php?$session[sessionurl]find=lastposter&amp;f=$lastpostinfo[forumid]" 2="$lastpostinfo[lastposter]">$vbphrase[by_x]</phrase>
It displays the last poster using the variable:
PHP Code:
$lastpostinfo[lastposter
which means we need to edit this to get it to display the mark-up username. I've not done this before so i'll look around and get back to you.


EDIT:
That method could work above (again I haven't tried it) but I've been looking at a modification that displays the mark-up usernames on forumdisplay and it looks like it manipulates ['postusername'] into posting the mark-up username instead. I will play around with this and get back to you.
Reply With Quote
  #5  
Old 07-17-2009, 01:50 AM
NLP-er's Avatar
NLP-er NLP-er is offline
 
Join Date: Aug 2008
Location: Wrocław
Posts: 1,353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've just made it for you:
https://vborg.vbsupport.ru/showthread.php?p=1850276

Just install - no template modifications

Mark as installed would be appreciated
Reply With Quote
  #6  
Old 07-17-2009, 01:55 AM
goshalim goshalim is offline
 
Join Date: Oct 2007
Posts: 470
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi NLP-er

Thank you so much but I am having a small problem.

Iam using 3.7.3 which is not compatible.

CAn ypou do someting for this please .

Again thnak youso much even for trying doing something like this.

Thanks
Reply With Quote
  #7  
Old 07-17-2009, 02:08 AM
NLP-er's Avatar
NLP-er NLP-er is offline
 
Join Date: Aug 2008
Location: Wrocław
Posts: 1,353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by goshalim View Post
Hi NLP-er

Thank you so much but I am having a small problem.

Iam using 3.7.3 which is not compatible.

CAn ypou do someting for this please .

Again thnak youso much even for trying doing something like this.

Thanks
Please discuss this in mod thread I will gladly answer you there - it will be helpful for future users Also I will not monitor this thread anymore, so just please paste this question in mod thread
Reply With Quote
  #8  
Old 07-17-2009, 02:13 AM
goshalim goshalim is offline
 
Join Date: Oct 2007
Posts: 470
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks , allready did !!!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:40 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07820 seconds
  • Memory Usage 2,229KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete