vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Postbit Icon change and thread color (https://vborg.vbsupport.ru/showthread.php?t=298586)

SwalyAaron 05-30-2013 10:45 AM

Postbit Icon change and thread color
 
Found this hook for the thread color change but honestly don't know where it would go

This is for changing the color of thread title
Code:

if ($thread['postuserid'] == 1) {$thread['threadtitle'] = '<span style="color: #8B0000;">' . $thread['threadtitle'] . '</span>';}
Vb3.8


And now I'm trying to make it so when ever user 1 posts in a thread, or usergroup doesn't matter. The postbit icon changes to one that I chose. I know this is possible and would like a solution =].


Lastly (related to the thread title change) how do I change the "latest post by "username"" color if posted by an admin, a userid, or a specific usergroup.

SwalyAaron 06-08-2013 08:22 PM

Anyone figure this out? =]

SwalyAaron 06-17-2013 05:01 AM

==]

kh99 06-17-2013 10:04 AM

What hook are you using for the code you posted?

exel 06-18-2013 06:51 PM

Try threadbit_display, that should do it.

I would recommend you do it via templates, though.
It's easy.

SwalyAaron 06-19-2013 08:58 PM

Quote:

Originally Posted by kh99 (Post 2428670)
What hook are you using for the code you posted?

Trying to figure out which hook to use, I found this in a thread but did not mention a hook :s
Quote:

Originally Posted by exel (Post 2428972)
Try threadbit_display, that should do it.

I would recommend you do it via templates, though.
It's easy.

Awesome the hook worked, even manged to change username.


Now I'm trying to make it display the color in forum homepage :S and trying to get the Postbit icon to change automatically when user id = 1 posts in a thread

SwalyAaron 06-24-2013 09:40 PM

=]]

SwalyAaron 06-29-2013 07:03 AM

=]]

SwalyAaron 07-07-2013 07:58 PM

=]]

exel 07-09-2013 05:45 PM

What exactly are you trying to do?


All times are GMT. The time now is 08:54 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01119 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete