View Single Post
  #7  
Old 03-08-2013, 10:45 AM
nirvana43's Avatar
nirvana43 nirvana43 is offline
 
Join Date: Oct 2007
Location: Pune, India
Posts: 361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello Dear,

Following edit is for CMS only -
Open template : vbcms_searchresult_article_general
Remove/Comment following code in that template :
PHP Code:
<ul class="threadstats threadreplies td alt">
                       <
li class="stats">
                               {
vb:rawphrase comments}: {vb:raw replycount}
                       </
li>
               </
ul
It will remove that column. Now you want to shift alternate colors. For this, simply add css class "alt" to the next code block and remove css class "alt" from last code block.
You can simply do the following -
Search for :
PHP Code:
threadlastpost td 
Replace with :
PHP Code:
threadlastpost td alt 

Search for :
PHP Code:
threadpostedin td alt 
Replace with :
PHP Code:
threadpostedin td 




To remove same column from the forum posts search results -
Open template : search_threadbit
Remove/Comment following code in that template :
PHP Code:
<ul class="threadstats td alt" title="<vb:if condition="$thread['dot_count'] > 0">{vb:rawphrase have_x_posts_in_thread_last_y, {vb:raw thread.dot_count}, {vb:raw thread.dot_lastpost}}</vb:if>">
            <
li>{vb:rawphrase replies}: <class="understate" href="misc.php?do=whoposted&amp;t={vb:raw thread.threadid}" onclick="who({vb:raw thread.threadid}); return false;">{vb:raw thread.replycount}</a></li>
            <
br /> 
        </
ul
Now again to shift alternate column colors -
Search for :
PHP Code:
threadlastpost td 
replace with :
PHP Code:
threadlastpost td alt 

Search for :
PHP Code:
threadpostedin td alt 
Replace with :
PHP Code:
threadpostedin td 


Now to remove same column from forumdisplay -
Open template : FORUMDISPLAY
Remove/Comment following code in that template :
PHP Code:
<span class="threadstats td">{vb:rawphrase replies} {vb:raw sortarrow.replycount}</span
Remove/Comment following code in that template :
PHP Code:
<span class="threadstats td"><a href="{vb:link forum, {vb:raw foruminfo}, {vb:raw pageinfo_replycount}}" rel="nofollow">{vb:rawphrase replies}{vb:raw sortarrow.replycount}</a></span

Open template : threadbit
Remove/Comment following code in that template :
Code:
<ul class="threadstats td alt" title="<vb:if condition="$thread['dot_count'] > 0">{vb:rawphrase have_x_posts_in_thread_last_y, {vb:raw thread.dot_count}, {vb:raw thread.dot_lastpost}}</vb:if>">
			<vb:if condition="$show['threadmoved']">
				<li>&nbsp;</li>
				<li>&nbsp;</li>
			<vb:else />
				<li>{vb:rawphrase replies}: <a href="misc.php?do=whoposted&amp;t={vb:raw thread.threadid}" onclick="who({vb:raw thread.threadid}); return false;" class="understate">{vb:raw thread.replycount}</a></li>
				<li style="visibility:hidden;">{vb:rawphrase views}: {vb:raw thread.views}</li>
			</vb:if>
			<li class="hidden">{vb:rawphrase rating}{vb:raw thread.rating} / 5</li>
		</ul>
Search for :
PHP Code:
threadlastpost td 
Replace with :
PHP Code:
threadlastpost td alt 
Search for :
PHP Code:
threadimod td alt 
replace with :
PHP Code:
threadimod td 

I hope this helps..
Cheers!!

Aditya Hajare
Reply With Quote
Благодарность от:
Lynne
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01320 seconds
  • Memory Usage 1,825KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (16)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_box_bit
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete