vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   soft deleted threads txt (https://vborg.vbsupport.ru/showthread.php?t=219504)

gbox master 07-26-2009 01:12 PM

soft deleted threads txt
 
when a thread is soft deleted the txt of the thread shows like this :
bla bla bla bla bla bla

what i would like is that this txt shows in another color and bold like this

bla bla bla bla bla bla

so is there a way to alter the code ?
is the code for this located in threadbit ?
would be nice if some one knows how to do this :D

Lynne 07-26-2009 01:19 PM

What page/where is it you are talking about seeing the thread text - in showthread after you hit the View Post link? In the User CP > Moderator area? Where?

gbox master 07-26-2009 03:44 PM

its here
like if you soft delete this thread
then when you look at this forum (Programming Discussions) you see the soft deleted threads
and the tx of those is like i say

and this txt i want to change

Quote:

Originally Posted by Lynne (Post 1855884)
What page/where is it you are talking about seeing the thread text - in showthread after you hit the View Post link? In the User CP > Moderator area? Where?


Lynne 07-26-2009 06:37 PM

So you are talking about the thread title of a soft deleted thread on the forumdisplay.php page? An image would have really helped here. (When you say "txt [sic] of the thread", I thought you meant the post text which is why I was confused.)

You need to modify the template for that particular threadbit. To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code.

gbox master 07-26-2009 07:23 PM

1 Attachment(s)
i thought this was about php code change in some template
anyway here are the pictures the white ones i want to change in bold red
like the yellow ones are bold they are used for new postings
for the new postings i had to alter some of the script in threadbit normally they only show bold
now with some change in the code they also have another color

so thats why i was wondering if its possible to have the softdeleted postings who show only as bla bla bla bla bla bla by changing some of the code to have them show like bla bla bla bla bla bla

Quote:

Originally Posted by Lynne (Post 1856053)
So you are talking about the thread title of a soft deleted thread on the forumdisplay.php page? An image would have really helped here. (When you say "txt [sic] of the thread", I thought you meant the post text which is why I was confused.)

You need to modify the template for that particular threadbit. To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code.


Lynne 07-26-2009 07:33 PM

I don't see why you can't just modify that template (as I said above) to make it bold and red:
HTML Code:

<if condition="$show['threadtitle']"><em><span style="color:red; text-weight: bold;">$thread[threadtitle]</span></em></if>

gbox master 07-27-2009 09:52 PM

ok got it and i think i found the template now
its the threadbit template
only the code you say that i should change is not in it

however i found the code for the deleted threads i think
and i want the deleted threads to be red and bold
so should i edit this code ?

Code:

<if condition="$show['deletedthread']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/trashcan_small.gif" alt="<phrase 1="$thread[deletedcount]">$vbphrase[x_deleted_posts]</phrase>" /> </if>
if yes what should i put in this code to make the deleted threads bold and red
something like this ?

Code:

<if condition="$show['deletedthread']"> <span style="color:red; text-weight: bold;">$thread[threadtitle]</span> <img class="inlineimg" src="$stylevar[imgdir_misc]/trashcan_small.gif" alt="<phrase 1="$thread[deletedcount]">$vbphrase[x_deleted_posts]</phrase>" /> </if>
Quote:

Originally Posted by Lynne (Post 1856105)
I don't see why you can't just modify that template (as I said above) to make it bold and red:
HTML Code:

<if condition="$show['threadtitle']"><em><span style="color:red; text-weight: bold;">$thread[threadtitle]</span></em></if>


Link14716 07-27-2009 11:59 PM

The template is threadbit_deleted.

Code:

<em>$thread[threadtitle]</em>
is what you are looking to change to
Code:

<span style="color:red; text-weight: bold;">$thread[threadtitle]</span>

gbox master 07-28-2009 05:55 PM

holy chips this is what i was looking for
incredible the things you guys know pffff

thnx a 1000 times

Quote:

Originally Posted by Link14716 (Post 1856843)
The template is threadbit_deleted.

Code:

<em>$thread[threadtitle]</em>
is what you are looking to change to
Code:

<span style="color:red; text-weight: bold;">$thread[threadtitle]</span>



All times are GMT. The time now is 04:50 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.02501 seconds
  • Memory Usage 1,741KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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