Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 07-29-2010, 06:49 PM
lemonadesoda lemonadesoda is offline
 
Join Date: Nov 2009
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Just a simple question - how to remove "statistics" from Forum Home

Apologies for what might be a trivial question; I am a non-programmer, although happy to Notepad++ edit under directions.

How do I remove the "Statistics" from Forum Home, especially this: "Welcome to our newest member...". I want a cleaner look and feel and don't need this (mostly) irrelevant information for users. I, as admin, might be interested in the Stats, but I don't want the clutter for others.

Thanks in advance!
Reply With Quote
  #2  
Old 07-29-2010, 06:53 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lemonadesoda View Post
Apologies for what might be a trivial question; I am a non-programmer, although happy to Notepad++ edit under directions.

How do I remove the "Statistics" from Forum Home, especially this: "Welcome to our newest member...". I want a cleaner look and feel and don't need this (mostly) irrelevant information for users. I, as admin, might be interested in the Stats, but I don't want the clutter for others.

Thanks in advance!
To remove "Welcome to our newest member..." find the following code at the FORUMHOME template and either comment it out or remove it.

HTML Code:
<p>{vb:rawphrase welcome_to_our_newest_member_x, {vb:link member, {vb:raw newuserinfo}}, {vb:raw newuserinfo.username}}</p>
Whereas to remove the whole stats block, at the same template, find the following code at the FORUMHOME template and either comment it out or remove it.

HTML Code:
<div id="wgo_stats" class="wgo_subblock">
				<h3><img src="{vb:stylevar imgdir_misc}/forum_stats.png" alt="{vb:rawphrase x_statistics, {vb:raw vboptions.bbtitle}}" />{vb:rawphrase x_statistics, {vb:raw vboptions.bbtitle}}</h3>
				<div>
					<dl>
						<dt>{vb:rawphrase threads}</dt>
							<dd>{vb:raw totalthreads}</dd>
						<dt>{vb:rawphrase posts}</dt>
							<dd>{vb:raw totalposts}</dd>
						<dt>{vb:rawphrase members}</dt>
							<dd>{vb:raw numbermembers}</dd>
						<vb:if condition="$show['activemembers']">
                                                <dt>{vb:rawphrase active_members}</dt>
                                                         <dd>{vb:raw activemembers}</dd>
                                                </vb:if>
					</dl>
					<p>{vb:rawphrase welcome_to_our_newest_member_x, {vb:link member, {vb:raw newuserinfo}}, {vb:raw newuserinfo.username}}</p>
					{vb:raw template_hook.forumhome_wgo_stats}
				</div>
			</div>
Reply With Quote
  #3  
Old 07-29-2010, 07:24 PM
lemonadesoda lemonadesoda is offline
 
Join Date: Nov 2009
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the quick reply Borbole! Much appreciated. I'm fixing the template right now.

Could you also point me to the code extraction/comment-out needed to remove the "Icon legend" and "Posting Permissions" blocks in Forum view.
Reply With Quote
  #4  
Old 07-29-2010, 07:30 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lemonadesoda View Post
Thanks for the quick reply Borbole! Much appreciated. I'm fixing the template right now.

Could you also point me to the code extraction/comment-out needed to remove the "Icon legend" and "Posting Permissions" blocks in Forum view.
To remove the Icon Legend, same template again, find the following code at the FORUMHOME template and either comment it out or remove it.

HTML Code:
<div id="wgo_legend" class="wgo_subblock">
				<h3><img src="{vb:stylevar imgdir_misc}/legend.png" alt="{vb:rawphrase icon_legend}" />{vb:rawphrase icon_legend}</h3>
				<div>
					<dl id="icon_legends" class="icon_legends">
						<dt><img src="{vb:stylevar imgdir_statusicon}/forum_new-16.png" alt="{vb:rawphrase new_posts_forum}" /></dt><dd>{vb:rawphrase new_posts_forum}</dd>
						<dt><img src="{vb:stylevar imgdir_statusicon}/forum_old-16.png" alt="{vb:rawphrase no_new_posts_forum}" /></dt><dd>{vb:rawphrase no_new_posts_forum}</dd>
						<dt><img src="{vb:stylevar imgdir_statusicon}/category-16.png" alt="{vb:rawphrase category_forum}" /></dt><dd>{vb:rawphrase category_forum}</dd>
						<dt><img src="{vb:stylevar imgdir_statusicon}/forum_link-16.png" alt="{vb:rawphrase link_forum}" /></dt><dd>{vb:rawphrase link_forum}</dd>
					<vb:if condition="$vboptions['pt_hasprojectforums']">
						<dt><img src="{vb:stylevar imgdir_statusicon}/project_new-16.png" alt="{vb:rawphrase project_forum}" /></dt><dd>{vb:rawphrase project_forum}</dd>
					</vb:if>
					</dl>
				</div>
			</div>
Reply With Quote
  #5  
Old 07-29-2010, 07:53 PM
lemonadesoda lemonadesoda is offline
 
Join Date: Nov 2009
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I also found your useful post here: https://vborg.vbsupport.ru/showthread.php?t=240891

However, oh dear, I can't find the FORUMHOME template. Where is it? I can't find anything on my server /forum/ subdirectories except this file vbulletin-style.xml in /forum/install which is a 2+MB file. Surely, vB doesn't parse this installer file constantly?

I think I must have got lost somewhere.
Reply With Quote
  #6  
Old 07-29-2010, 08:09 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lemonadesoda View Post
I also found your useful post here: https://vborg.vbsupport.ru/showthread.php?t=240891

However, oh dear, I can't find the FORUMHOME template. Where is it? I can't find anything on my server /forum/ subdirectories except this file vbulletin-style.xml in /forum/install which is a 2+MB file. Surely, vB doesn't parse this installer file constantly?

I think I must have got lost somewhere.
The easiest way would be to go to your Acp->Styles & Templates->Style Manager->Choose your style and from the drop down list choose: Edit Templates->FORUMHOME. Then do the edits there and save the changes.
Reply With Quote
  #7  
Old 07-29-2010, 08:20 PM
lemonadesoda lemonadesoda is offline
 
Join Date: Nov 2009
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh, thanks. That was simple!

Although it does make me think where and how the templates are stored on my webserver. Never mind though, your instructions were great, and I've got it working! (And the info/clutter removed). Thanks again.
Reply With Quote
  #8  
Old 07-29-2010, 08:30 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lemonadesoda View Post
Oh, thanks. That was simple!

Although it does make me think where and how the templates are stored on my webserver. Never mind though, your instructions were great, and I've got it working! (And the info/clutter removed). Thanks again.
You are welcome. Glad to have been of help
Reply With Quote
  #9  
Old 07-29-2010, 08:47 PM
lemonadesoda lemonadesoda is offline
 
Join Date: Nov 2009
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For anyone else following this thread, and wanting to also clean up their forum pages, then here are the other edits I made:

To remove Icon Legend and Posting Permissions from the Forum, I editted FORUMDISPLAY and commented the following

Code:
<!-- BLANK HERE
	<div class="options_block_container">
	<div class="options_block">
		<div class="collapse">
			<a class="collapse" id="collapse_forum_icon_legend" href="{vb:raw relpath}#top"><img src="{vb:stylevar imgdir_button}/collapse{vb:raw vbcollapse.collapseimg_info_options}_40b.png" alt="" /></a>
			<h4><span class="optiontitle">{vb:rawphrase icon_legend}</span></h4>
		</div>
		<div id="forum_icon_legend" class="forum_info_block">
			<dl id="icon_legends" class="forum_info_subblock icon_legends">
				<dt><img src="{vb:stylevar imgdir_statusicon}/thread_new-16.png" alt="{vb:rawphrase new_posts}" /></dt><dd>{vb:rawphrase new_posts}</dd>
				<dt><img src="{vb:stylevar imgdir_statusicon}/thread-16-{vb:stylevar right}.png" alt="{vb:rawphrase no_new_posts}" /></dt><dd>{vb:rawphrase no_new_posts}</dd>
				<vb:if condition="$vboptions['usehotthreads']">
				<dt><img src="{vb:stylevar imgdir_statusicon}/thread_hot_new-16.png" alt="{vb:rawphrase more_than_x_replies_or_y_views, {vb:raw vboptions.hotnumberposts}, {vb:raw vboptions.hotnumberviews}}" /></dt><dd>{vb:rawphrase hot_thread_with_new_posts}</dd>
				<dt><img src="{vb:stylevar imgdir_statusicon}/thread_hot-16.png" alt="{vb:rawphrase more_than_x_replies_or_y_views, {vb:raw vboptions.hotnumberposts}, {vb:raw vboptions.hotnumberviews}}" /></dt><dd>{vb:rawphrase hot_thread_with_no_new_posts}</dd>
				</vb:if>
				<dt><img src="{vb:stylevar imgdir_statusicon}/thread_lock-16.png" alt="{vb:rawphrase closed_thread}" /></dt><dd>{vb:rawphrase thread_is_closed}</dd>
				<dt><img src="{vb:stylevar imgdir_statusicon}/thread_dot-16-{vb:stylevar right}.png" alt="{vb:rawphrase thread_contains_a_message_written_by_you}" /></dt><dd>{vb:rawphrase you_have_posted_in_this_thread}</dd>
			</dl>
		</div>
	</div>
        
	<vb:if condition="$show['threadslist']">
	<div class="options_block2">
		<div class="collapse">
			<a class="collapse" id="collapse_posting_rules" href="{vb:raw relpath}#top"><img src="{vb:stylevar imgdir_button}/collapse{vb:raw vbcollapse.collapseimg_info_options}_40b.png" alt="" /></a>
			<h4><span class="optiontitle">{vb:rawphrase posting_rules}</span></h4>
		</div>
		<div id="posting_rules" class="forum_info_block">{vb:raw forumrules}</div>
	</div>
	</vb:if>
        TO HERE -->
	</div>
--------------- Added [DATE]1280441003[/DATE] at [TIME]1280441003[/TIME] ---------------

And to remove posting permissions from Thread View, edit the SHOWTHREAD template as follows:

Code:
</div>
		</vb:if>
                <!-- FROM HERE
		<div class="options_block">
			<h4 class="collapse">
				<a class="collapse" id="collapse_posting_rules" href="{vb:raw relpath}#top"><img src="{vb:stylevar imgdir_button}/collapse{vb:raw vbcollapse.collapseimg_info_options}_40b.png" alt="" /></a>
				<span class="optiontitle">{vb:rawphrase posting_rules}</span>
			</h4>
			<div id="posting_rules" class="thread_info_block">
				{vb:raw forumrules}
			</div>
		</div>
                --TO HERE>

	</div>
Reply With Quote
  #10  
Old 08-01-2010, 06:03 PM
fulvio fulvio is offline
 
Join Date: Nov 2007
Location: Milan (the sunny Italy)
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for all.
Whitch CSS I have to edit, and whitch code I have to submit for enlarge the box of bookmark

I attach a screenshot. of my site

www.lepedanevibranti.it/forum

Sorry for my terrible english
Attached Images
File Type: jpg Cattura.jpg (25.7 KB, 0 views)
Reply With Quote
Reply

Thread Tools
Display Modes

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 02:27 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05937 seconds
  • Memory Usage 2,298KB
  • Queries Executed 14 (?)
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
  • (2)bbcode_code
  • (3)bbcode_html
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete