Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-26-2009, 02:12 PM
gbox master gbox master is offline
 
Join Date: Dec 2007
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 07-26-2009, 02:19 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #3  
Old 07-26-2009, 04:44 PM
gbox master gbox master is offline
 
Join Date: Dec 2007
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 View Post
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?
Reply With Quote
  #4  
Old 07-26-2009, 07:37 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 07-26-2009, 08:23 PM
gbox master gbox master is offline
 
Join Date: Dec 2007
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 View Post
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.
Attached Images
File Type: jpg text2.jpg (8.6 KB, 0 views)
File Type: jpg text.jpg (18.5 KB, 0 views)
Reply With Quote
  #6  
Old 07-26-2009, 08:33 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #7  
Old 07-27-2009, 10:52 PM
gbox master gbox master is offline
 
Join Date: Dec 2007
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 View Post
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>
Reply With Quote
  #8  
Old 07-28-2009, 12:59 AM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #9  
Old 07-28-2009, 06:55 PM
gbox master gbox master is offline
 
Join Date: Dec 2007
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 View Post
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>
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 04:20 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.04591 seconds
  • Memory Usage 2,269KB
  • Queries Executed 12 (?)
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_code
  • (2)bbcode_html
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)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
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete