Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Center or remove - Forum Title & Welcome Message Details »»
Center or remove - Forum Title & Welcome Message
Version: 1.2, by OldSchoolDSL OldSchoolDSL is offline
Developer Last Online: Jul 2017 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 4.1.0 Rating:
Released: 01-24-2011 Last Update: Never Installs: 82
Template Edits
Re-useable Code Translations  
No support by the author.

This small modification will allow you to either center or removed vBulletin's small default forum title & welcome message.

Credit goes to myself & CoreyLTH

You should always BACKUP your database before making changes.


To Center:


In ForumHome look for

PHP Code:
<div id="pagetitle"
<
h1>{vb:raw vboptions.bbtitle}</h1>
<
p id="welcomemessage" class="description">{vb:rawphrase welcome_to_the_x, {vb:raw vboptions.bbtitle}}</p>
</
div
Replace with:

PHP Code:
<center> <div id="pagetitle"
        <
h1>{vb:raw vboptions.bbtitle}</h1
        <
p id="welcomemessage" class="description">{vb:rawphrase welcome_to_the_x, {vb:raw vboptions.bbtitle}}</p
    </
div> </center
To Remove:


In FORUMHOME

Look for:

PHP Code:
<div id="pagetitle"
<
h1>{vb:raw vboptions.bbtitle}</h1>
<
p id="welcomemessage" class="description">{vb:rawphrase welcome_to_the_x, {vb:raw vboptions.bbtitle}}</p>
</
div
And wrap it around wih

PHP Code:
<vb:comment>  </vb:comment
So when done it will look like

PHP Code:
<vb:comment> <div id="pagetitle"
<
h1>{vb:raw vboptions.bbtitle}</h1>
<
p id="welcomemessage" class="description">{vb:rawphrase welcome_to_the_x, {vb:raw vboptions.bbtitle}}</p>
</
div>  </vb:comment

v1.1 = UPDATE 02-23-2011

Quote:
Originally Posted by wolfey View Post
Now if I can also get rid of that House and "Forum" I'd be happy too!

IMPORTANT: Always backup your database before making any edits.

In navbar look for:

PHP Code:
<ul class="floatcontainer">
        <
li class="navbithome"><a href="index.php{vb:raw session.sessionurl_q}" accesskey="1"><img src="{vb:stylevar imgdir_misc}/navbit-home.png" alt="{vb:rawphrase home}" /></a></li>

        {
vb:raw navbits.breadcrumb}
        {
vb:raw navbits.lastelement}
    </
ul
READ CLOSELY:

Wrap everything around it with

PHP Code:
<vb:comment> </vb:comment
except for

PHP Code:
{vb:raw navbits.breadcrumb
So the surrounding code will look like this when done....

PHP Code:
<vb:comment> <ul class="floatcontainer">
        <
li class="navbithome"><a href="index.php{vb:raw session.sessionurl_q}" accesskey="1"><img src="{vb:stylevar imgdir_misc}/navbit-home.png" alt="{vb:rawphrase home}" /></a></li> </vb:comment>

        {
vb:raw navbits.breadcrumb}
        <
vb:comment> {vb:raw navbits.lastelement}
    </
ul> </vb:comment
This will remove the "Home" icon and the word "Forum" on your Forum Homepage, but still keep your quick navigation links within your forums.

Optional - Grammar correction

This really will depend on your own liking and the name of your site. Bit if you want to change the welcome message from,

"Welcome to the X"

And change it to

"Welcome to X"

Go to:

AdminCP > Languages & Phrases > Search in Phrases

Search for

PHP Code:
welcome_to_the_x 
Using the Phrase Text and Phrase Variable Name search, option.

There should only find 1 per language installed

Change it to

PHP Code:
PHP Code:
Welcome to {1

If you're tired of vBulletin you should upgrade to Woltlab Burning Board http://www.woltlab.com

Screenshots

File Type: jpg Untitled.jpg (32.1 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
bp323

Comments
  #22  
Old 09-14-2011, 04:30 AM
bp323 bp323 is offline
 
Join Date: May 2006
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very cool mod! altho i didn't use it to do anything but figure out how to change it from repeating the title twice & removing the "the" from the welcome message

now it says
"welcome to"
forum title

Vs the old

forum title
welcome to the "forum title"
^ redundant & looked horrendous

Thanks again!
Reply With Quote
  #23  
Old 11-30-2011, 06:31 PM
OldSchoolDSL OldSchoolDSL is offline
 
Join Date: Oct 2010
Posts: 1,196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bp323 View Post
very cool mod! altho i didn't use it to do anything but figure out how to change it from repeating the title twice & removing the "the" from the welcome message

now it says
"welcome to"
forum title

Vs the old

forum title
welcome to the "forum title"
^ redundant & looked horrendous

Thanks again!
AdminCP > Languages & Phrases > Search in Phrases

Search for
PHP Code:
welcome_to_the_x 
Using the Phrase Text and Phrase Variable Name search

Edit (should only find 1 per language installed)

Change it to whatever you like. As suggested though.... I want it to say Welcome to SITE NAME
and finally remove the word "the".

So you can put in

PHP Code:
Welcome to {1
Sorry for the delay in my reply or update. I only recently switched back to vBulletin (Oh how I missed it)
Reply With Quote
  #24  
Old 11-30-2011, 07:05 PM
doctorsexy's Avatar
doctorsexy doctorsexy is offline
 
Join Date: Mar 2011
Location: earth
Posts: 383
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works good...Thank You
Reply With Quote
Благодарность от:
OldSchoolDSL
  #25  
Old 12-15-2011, 11:25 PM
OldSchoolDSL OldSchoolDSL is offline
 
Join Date: Oct 2010
Posts: 1,196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

12 - 15 - 2011 - UPDATE
v1.2


Notice: This update need only be applied if you have already reverted your code, typically during a vBulletin upgrade and / or have not already installed this modification.

The changes made will help reduce any possible conflict and help limit the need to revert templates and re-apply for future updates of vBulletin.

Further this update also includes the optional grammar correction, which not everyone may need. But can be applied at any time (this version or previous version of the code)

If none of the above is true for you .... You do not need to update.
Reply With Quote
  #26  
Old 12-18-2011, 10:25 AM
thompson thompson is offline
 
Join Date: Jul 2007
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks. like this.
Reply With Quote
Благодарность от:
OldSchoolDSL
  #27  
Old 12-28-2011, 04:59 PM
OldSchoolDSL OldSchoolDSL is offline
 
Join Date: Oct 2010
Posts: 1,196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tested working

4.1.10

Notice: You will need to re-apply after upgrading.
Reply With Quote
  #28  
Old 01-26-2012, 07:23 PM
Tr4visT Tr4visT is offline
 
Join Date: Dec 2011
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I successfully removed the house and "forum" but for some reason the I cannot get rid of the welcome box/message. This is what mine looks like, any suggestions? Does it matter I am using a Completevb skin?

<vb:comment> <div id="pagetitle">
<h1>{vb:raw vboptions.bbtitle}</h1>
<p id="welcomemessage" class="description">{vb:rawphrase welcome_to_the_x, {vb:raw vboptions.bbtitle}}</p>
</div> </vb:comment>
Reply With Quote
  #29  
Old 01-26-2012, 08:03 PM
OldSchoolDSL OldSchoolDSL is offline
 
Join Date: Oct 2010
Posts: 1,196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Tr4visT View Post
I successfully removed the house and "forum" but for some reason the I cannot get rid of the welcome box/message. This is what mine looks like, any suggestions? Does it matter I am using a Completevb skin?


Code:
<vb:comment> <div id="pagetitle">
		<h1>{vb:raw vboptions.bbtitle}</h1>
		<p id="welcomemessage" class="description">{vb:rawphrase welcome_to_the_x, {vb:raw vboptions.bbtitle}}</p>
	</div>  </vb:comment>
It shouldn't make a difference unless you have another hook for something that relates to it (custom code in the skin).

Try clearing your system cache and rebuilding the theme.
Reply With Quote
  #30  
Old 01-26-2012, 08:05 PM
Tr4visT Tr4visT is offline
 
Join Date: Dec 2011
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Old School, thanks for the reply.

When you say "rebuilding the theme" what exactly does that mean?
Reply With Quote
  #31  
Old 01-26-2012, 08:09 PM
OldSchoolDSL OldSchoolDSL is offline
 
Join Date: Oct 2010
Posts: 1,196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Tr4visT View Post
Hey Old School, thanks for the reply.

When you say "rebuilding the theme" what exactly does that mean?
Clear you system cache (on the server for the forum)

1)


AdminCP > Maintenance > Clear System Cache


2)

Rebuild theme / skin / style (however you wish to call it)

AdminCP > Maintenance > General Update Tools > Rebuild Styles > YES / YES > Rebuild Styles

Repeat step #1
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 07:26 PM.


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.05886 seconds
  • Memory Usage 2,384KB
  • Queries Executed 28 (?)
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)bbcode_code
  • (13)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (3)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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
  • 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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete