Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-17-2005, 09:13 AM
KBV KBV is offline
 
Join Date: Aug 2004
Location: Oslo, Norway
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Usergroup Post Color

Hey, I was wondering if anyone could make a hack that makes all posts made by the admin usergroup show up in a different color. Like on the Blizzard forums where all blizzard staff posts are shown in blue and now white.

Thank you.
Reply With Quote
  #2  
Old 02-17-2005, 09:40 AM
Deaths Deaths is offline
 
Join Date: Oct 2004
Location: Europe, Belgium
Posts: 679
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It would't be a hack, I guess it would be more of a template mod .

I think this would work, but I cant check :

In your postbit template, find:

PHP Code:
$post[message
Now, replace with:

PHP Code:
<if condition="$post[usergroupid]=6">
<
font color="#XXXXXX">
$post[message]
</
font>
</if> 
Good luck, and let me know if it worked
Reply With Quote
  #3  
Old 02-17-2005, 09:45 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i would suggest you try:
PHP Code:
<if condition="$post[usergroupid]=6"
<
font color="#XXXXXX"
</if>
$post[message
<if 
condition="$post[usergroupid]=6"
</
font
</if> 
Ot post would never show up anymore if not usergroup = 6
Reply With Quote
  #4  
Old 02-17-2005, 11:16 AM
KBV KBV is offline
 
Join Date: Aug 2004
Location: Oslo, Norway
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works, but everyone gets that color. :P

PHP Code:
<!-- message -->
<
div>
<if 
condition="$post[usergroupid]==6">
<
div style="color: #CC0000">
</if>
$post[message]
<if 
condition="$post[usergroupid]==6">
</
div>
</if> 
</
div>
<!-- / 
message --> 
This worked like a charm, it lacked a second = I also changed the font tag to style so that it's XHTML compatible.

If you want to exclude forums use
PHP Code:
<!-- message -->
<
div>
<if 
condition="$post[usergroupid]==6 AND $forum[forumid]!=XX">
<
div style="color: #CC0000">
</if>
$post[message]
<if 
condition="$post[usergroupid]==6 AND $forum[forumid]!=XX">
</
div>
</if> 
</
div>
<!-- / 
message --> 
https://vborg.vbsupport.ru/showthrea...189#post613189
Reply With Quote
  #5  
Old 02-17-2005, 03:15 PM
Deaths Deaths is offline
 
Join Date: Oct 2004
Location: Europe, Belgium
Posts: 679
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarcoH64
i would suggest you try:
PHP Code:
<if condition="$post[usergroupid]=6"
<
font color="#XXXXXX"
</if>
$post[message
<if 
condition="$post[usergroupid]=6"
</
font
</if> 
Ot post would never show up anymore if not usergroup = 6
Ah, yes, I completely forgot about that!

Heh, sleepy me
Reply With Quote
  #6  
Old 06-17-2008, 10:46 AM
beduino's Avatar
beduino beduino is offline
 
Join Date: Dec 2005
Location: Rio de Janeiro
Posts: 280
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tks for this thread

joao barroca
aka beduino
Reply With Quote
  #7  
Old 06-17-2008, 02:22 PM
zero_ZX zero_ZX is offline
 
Join Date: Sep 2007
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can any one help me, if i want to put a background image on it (like a water mark)?
And i last, is it possible to add a image next to a post title if an admin posted in it?
Thanks in advanced guys/girls!
Reply With Quote
  #8  
Old 09-06-2008, 04:51 AM
Mastergumble Mastergumble is offline
 
Join Date: Sep 2008
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I didn't got this working for me :/

What i want to change is the background color of the post for admin/moderators

Any help on how to do it ?
Reply With Quote
  #9  
Old 12-31-2009, 04:23 PM
DataHero DataHero is offline
 
Join Date: Jun 2009
Location: NL
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Pardon me for the major bump.

This didn't work here either. The top code that KBV posted ("=" instead of "==") results in the case where all users have this specified colour when posting. I tried the one Marco posted, but that one did not work in terms of colour (nor individually, I think).

It'd be greatly appreciated if I could get some assistance on this matter.

EDIT - nevermind, figured it out. Thanks anyway, nontheless.
Reply With Quote
  #10  
Old 11-07-2010, 04:57 PM
r00028304 r00028304 is offline
 
Join Date: Aug 2010
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone know how o make this work for vb 4.0.8 - can't find "$post[message] "
Reply With Quote
Reply


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 06:45 AM.


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.05625 seconds
  • Memory Usage 2,272KB
  • Queries Executed 11 (?)
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
  • (6)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete