vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Colored Thread Title for Moderator Forums (https://vborg.vbsupport.ru/showthread.php?t=65027)

joeychgo 05-12-2004 11:23 AM

Colored Thread Title for Moderator Forums
 
Id like to make it so posts made in my admin/moderator forums come up a different color when "new posts" is clicked - alerting my mods that new message is there for them to read..................

I cant imagine this to be too difficult? But I dont have a clue hoe to do it.........

Xenon 05-12-2004 11:30 AM

well, very easy i think.

open your threadbittemplate

then where you can find:
HTML Code:

<td class="alt1">
add something like
HTML Code:

<td class="alt1" <if condition="$thread[forumid] == xx">style="color: red;"</if>>
something like that should do the trick :)

Boofo 05-12-2004 11:46 AM

There's 3 of them in there. Would you do it to all of them?

Xenon 05-12-2004 11:49 AM

well, that's up to you, where exactly you change something, i just posted the how to do to mark them a bit more ;)

Boofo 05-12-2004 11:51 AM

I tried it on the last one (the title) and it didn't work. I must have messed something up. ;)

joeychgo 05-12-2004 07:58 PM

Quote:

Originally Posted by Xenon
well, very easy i think.

open your threadbittemplate

then where you can find:
HTML Code:

<td class="alt1">
add something like
HTML Code:

<td class="alt1" <if condition="$thread[forumid] == xx">style="color: red;"</if>>
something like that should do the trick :)



I did this - and nothing happened, at least nothing I was looking for or noticed.

When you click "NEW POSTS" you get a listing of the new posts -- what I would like is to change the color of the threads listed there that originate from the moderator forum.

:)

joeychgo 05-13-2004 04:56 PM

any ideas?

Xenon 05-13-2004 05:04 PM

try to replace

HTML Code:

$thread[title]
with
HTML Code:

<if condition="$thread[forumid] == xx"><font color="red">$thread[title]</font>
<else />$thread[title]</if>


Boofo 05-13-2004 05:43 PM

Would that be $$thread[threadtitle] or $thread[forumtitle]? There is no $thread[title] in the threadbit, not in mine, anyway. ;)

Xenon 05-13-2004 05:52 PM

threadtitle ;)

excuse me, for not knowing every template out of mind :p

joeychgo 05-13-2004 08:24 PM

Quote:

Originally Posted by Xenon
try to replace

HTML Code:

$thread[title]
with
HTML Code:

<if condition="$thread[forumid] == xx"><font color="red">$thread[title]</font>
<else />$thread[title]</if>



That took the title out entirely of some posts but not only the ones in the forumid specified.......

Xenon 05-13-2004 08:41 PM

read the post above, it's thredttitle, not title..

ap0c 05-13-2004 09:24 PM

works fine too, thanks

Boofo 05-13-2004 09:31 PM

Quote:

Originally Posted by Xenon
threadtitle ;)

excuse me, for not knowing every template out of mind :p

Then I guess someone needs to do some template studying, huh? :p

joeychgo 05-13-2004 10:58 PM

1 Attachment(s)
Quote:

Originally Posted by Xenon
read the post above, it's thredttitle, not title..

I went to the threadbit template --

I looked for
Code:

$thread[threadtitle]
and replaced it with this
Code:

<if condition="$thread[forumid] == 50"><font color="red">$thread[title]</font>

I found two instances of
Code:

$thread[threadtitle]
if I replace both instances with the code listed above, I get what you see in the screenshot....... If I replace only one of the two instances - I get some of the listings normal and some screwy (like the screenshot below) What you see below is the posts without titels, only the authors are listed

ap0c 05-14-2004 09:17 AM

HTML Code:

<if condition="$thread[forumid] == xx"><font color="red">$thread[threadtitle]</font>
<else />$thread[threadtitle]</if>

place after <strong>

joeychgo 05-14-2004 10:13 AM

Quote:

Originally Posted by ap0c
HTML Code:

<if condition="$thread[forumid] == xx"><font color="red">$thread[threadtitle]</font>
<else />$thread[threadtitle]</if>

place after <strong>




this did nothing either - am I suppose to do this alone or in conjunction with the other???

ap0c 05-15-2004 06:55 PM

Quote:

Originally Posted by joeychgo
this did nothing either - am I suppose to do this alone or in conjunction with the other???

try this:
1) edit the threadbit template
2)find :
Code:

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

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

then just replace the xx in $thread[forumid] == xx with the forum id of your choice

jisung 06-25-2004 07:55 AM

where should I start to look to have this hack in 2.2.8?
TIA

Xenon 06-25-2004 11:43 AM

the easiest way would be to install logician's template conditional hack, then this would be possible in quite the same way :)

jisung 06-27-2004 04:35 PM

Xenon,
Got idea.
Thanks!

Xenon 06-28-2004 08:56 PM

:)

you're welcome


All times are GMT. The time now is 01:42 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.01345 seconds
  • Memory Usage 1,767KB
  • 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
  • (5)bbcode_code_printable
  • (10)bbcode_html_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (22)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