vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Forum Display Enhancements - Center or remove - Forum Title & Welcome Message (https://vborg.vbsupport.ru/showthread.php?t=257765)

OldSchoolDSL 01-24-2011 10:00 PM

Center or remove - Forum Title & Welcome Message
 
1 Attachment(s)
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 (Post 2165743)
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

UncoderMom 01-25-2011 02:42 PM

Nice! Cant stand that big GAP up there!!

LRT 02-23-2011 12:59 AM

Where is the FORUMHOME file that I need to edit? I cannot find it.:confused:

wolfey 02-23-2011 10:39 AM

You can easily find it by clicking on
AdminCP>Styles&Templates>Search in Templates

Search for: welcomemessage

I was looking how to get rid of this message last week!

Thanks!

Now if I can also get rid of that House and "Forum" I'd be happy too!

matrixmark 02-23-2011 12:25 PM

Quote:

Originally Posted by wolfey (Post 2165743)

Now if I can also get rid of that House and "Forum" I'd be happy too!

Amen to that :D would make it look much better :D

OldSchoolDSL 02-23-2011 02:44 PM

Quote:

Originally Posted by wolfey (Post 2165743)
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:

Delete everything there except for

PHP Code:

{vb:raw navbits.breadcrumb

So the surrounding code will look like this when done....

PHP Code:

<div id="breadcrumb" class="breadcrumb">
    

        {
vb:raw navbits.breadcrumb}
    <
hr />
</
div

This will remove the "Home" icon and the word "Forum" on your Forum Homepage, but still keep your quick navigation links within your forums.

FUN FACT: Removing this seems to speed up the page load. I would suspect its because it queries less in the CSS for browsers to decode.

wolfey 02-23-2011 03:22 PM

NICE!!!

Awesome... Worked great

Thank you!

matrixmark 02-23-2011 07:56 PM

Awesomeness!!! thanks very much and this really does speed the page load up :D

Danasy 02-24-2011 12:27 AM

:up: Installed! Thanks

CMSTemplateZ 02-24-2011 04:33 AM

Nice Mod :) Cheers, will certainly give this a workout in the coming days.


All times are GMT. The time now is 07:44 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.01618 seconds
  • Memory Usage 1,779KB
  • 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
  • (14)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete