vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   highlighted posts for usergroup (https://vborg.vbsupport.ru/showthread.php?t=73308)

dethfire 12-26-2004 04:30 AM

highlighted posts for usergroup
 
I am thinking of trying to make a hack where if a user of a certain usergroup posts a thread the thread will become highlighted in the forum view. Any ideas to get me started?

deathemperor 12-27-2004 08:54 AM

this could be easily done via templates conditions.

dethfire 12-27-2004 03:54 PM

Quote:

Originally Posted by deathemperor
this could be easily done via templates conditions.

do you know what template and what variable to test?

deathemperor 12-28-2004 05:01 AM

in threadbit

search for:

<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]"><if condition="$show['gotonewpost']"><strong>$thread[threadtitle]</strong><else />$thread[threadtitle]</if></a>

replace with

<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]"><if condition="$show['gotonewpost']"><strong><if condition="is_member_of($thread,5)"><span color="red"> $thread[threadtitle]</span><else />$thread[threadtitle]</if></strong><else /><if condition="is_member_of($thread,5)"><span color="red"> $thread[threadtitle]</span><else />$thread[threadtitle]</if></if></a>

this changes the threatitle to red if it's of members of usergroupid 5, I didn't test it though

dethfire 12-29-2004 02:32 AM

Quote:

Originally Posted by deathemperor
in threadbit

search for:


<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]"><if condition="$show['gotonewpost']"><strong>$thread[threadtitle]</strong><else />$thread[threadtitle]</if></a>


replace with


<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]"><if condition="$show['gotonewpost']"><strong><if condition="is_member_of($thread,5)"><span color="red"> $thread[threadtitle]</span><else />$thread[threadtitle]</if></strong><else /><if condition="is_member_of($thread,5)"><span color="red"> $thread[threadtitle]</span><else />$thread[threadtitle]</if></if></a>

this changes the threatitle to red if it's of members of usergroupid 5, I didn't test it though


hmmm yeah it doesn't work for me

dethfire 12-31-2004 06:11 PM

anyone know why this doesn't work, does it work for anyone else?

dethfire 01-10-2005 05:53 AM

has anyone tried it, anyone see anything wrong with the code, seems strange to me


All times are GMT. The time now is 08:38 AM.

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.01767 seconds
  • Memory Usage 1,722KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete