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.

COL NIL SATIS 02-25-2011 06:42 PM

Awesome,works great and looks way better..thanks for this OldSchoolDSL mate

COL NIL SATIS 02-25-2011 08:11 PM

Mate,just got rid of the house and forum bit too and that is sweet ...thank you !!!

votes = 5 stars !!!!!!

davidg 03-06-2011 05:27 PM

very nice mod now my board looks better

OldSchoolDSL 03-06-2011 06:02 PM

Quote:

Originally Posted by davidg (Post 2170291)
very nice mod now my board looks better

I'm glad you like it and that its working for you.

* Please remember to click installed. I keep track and update modifications based on member feedback and on how many find it useful.

alaska_av8r 03-07-2011 01:23 AM

I love the idea but when I did it to my forums it did some bad things that maybe you can help me with:

look here: http://www.boatinghowto.com/showthre...rbor-Boat-Show

My Join us on facebook, youtube and twitter were put in my advertising slot and it jammed them up against my breadcrumbs on the same line.

Can you help?

tim

OldSchoolDSL 03-07-2011 02:02 AM

Quote:

Originally Posted by alaska_av8r (Post 2170408)
I love the idea but when I did it to my forums it did some bad things that maybe you can help me with:

look here: http://www.boatinghowto.com/showthre...rbor-Boat-Show

My Join us on facebook, youtube and twitter were put in my advertising slot and it jammed them up against my breadcrumbs on the same line.

Can you help?

tim

Sorry, but that is another modification and outside the realm of support for this modification.

My best guess is you want to use the "center" option and not the remove option for your Forum Title & Welcome Message. You should (maybe) able to still remove the "House" icon and the word "Forum" though (maybe).

alaska_av8r 03-07-2011 09:31 PM

The links instead of an advertisement aren't a modification, or at least to me they aren't. Instead of html opening a graphic for an advertisement, the html just says join us at...blah blah...So I am assuming that if I did have an advertisement it would do the same thing.

It did not do this until I edited the code as you described, so that code edit is the causing factor.

But you can disregard the assistance, I will put the original code back in.

thanks anyway.

beckham_250 03-09-2011 10:40 AM

thanks my friend

JHayama 03-10-2011 09:03 PM

Quote:

Now if I can also get rid of that House and "Forum" I'd be happy too!
Is there also a way to get rid of that "Home" and arrow in the cms and "blog" and arrow in the blog?
Thanks

OldSchoolDSL 03-12-2011 03:18 PM

Quote:

Originally Posted by JHayama (Post 2172052)
Is there also a way to get rid of that "Home" and arrow in the cms and "blog" and arrow in the blog?
Thanks

Not without removing your quick navigation.

bp323 09-14-2011 04:30 AM

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!

OldSchoolDSL 11-30-2011 06:31 PM

Quote:

Originally Posted by bp323 (Post 2245697)
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
:o
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) :o

doctorsexy 11-30-2011 07:05 PM

Works good...Thank You

OldSchoolDSL 12-15-2011 11:25 PM

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.

thompson 12-18-2011 10:25 AM

thanks. like this.

OldSchoolDSL 12-28-2011 04:59 PM

Tested working

4.1.10

Notice: You will need to re-apply after upgrading.

Tr4visT 01-26-2012 07:23 PM

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>

OldSchoolDSL 01-26-2012 08:03 PM

Quote:

Originally Posted by Tr4visT (Post 2292792)
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.

Tr4visT 01-26-2012 08:05 PM

Hey Old School, thanks for the reply.

When you say "rebuilding the theme" what exactly does that mean?

OldSchoolDSL 01-26-2012 08:09 PM

Quote:

Originally Posted by Tr4visT (Post 2292811)
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

Tr4visT 01-26-2012 08:12 PM

Right but what happens to my skin, is it going to screw anything up by rebuilding it?

OldSchoolDSL 01-26-2012 08:17 PM

Quote:

Originally Posted by Tr4visT (Post 2292817)
Right but what happens to my skin, is it going to screw anything up by rebuilding it?

It shouldn't.

It just forces the system to "refresh" the skin from start (with your made edits)

Worse case I've ever seen is the CMS looks a little odd in which case you go do the following

AdminCP > vBulletin CMS > Verify and Repair Node Table

If you're really that worried, you should have remembered to follow step 1 in all my modifications (backup 1st, always).

Tr4visT 01-26-2012 08:19 PM

Yeah I am doing a back up right now before I try it :)

Tr4visT 01-26-2012 10:00 PM

Hmm.. cleared the cache, rebuilt the skin and still no change. Not sure what could be the problem.

OldSchoolDSL 01-26-2012 10:16 PM

Quote:

Originally Posted by Tr4visT (Post 2292857)
Hmm.. cleared the cache, rebuilt the skin and still no change. Not sure what could be the problem.

My only advise would be to try this


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>

Try adding the comment tags above and below.

If this does not work, please contact the skin author or investigate if you have any other modifications that add or subtract in that part of your site.

LifesGreatestGift 01-27-2012 12:41 AM

has this code been updated from using <center> yet? maybe margin:0 auto; or text-align:center; ?

OldSchoolDSL 01-27-2012 01:09 AM

Quote:

Originally Posted by LifesGreatestGift (Post 2292895)
has this code been updated from using <center> yet? maybe margin:0 auto; or text-align:center; ?

Originally, I used center as to make it compatible with older browsers (and smart phones). Also to void conflicts for some past popular skins.

If you wish to suggest an alternative code, please provide it and I'll review it.

Tr4visT 01-27-2012 01:57 AM

Quote:

Originally Posted by OldSchoolDSL (Post 2292862)
My only advise would be to try this


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>

Try adding the comment tags above and below.

If this does not work, please contact the skin author or investigate if you have any other modifications that add or subtract in that part of your site.


Copied and pasted it, cleared cache again and rebuilt it. Still no luck and unfortunately CompleteVB is not proving to have the best customer service. I have been trying to get my login info sent out for 3 days, their "forgot your username & password" does not work... Odd that the change to delete the house and forum worked but removing the Welcome box does not.

LifesGreatestGift 01-27-2012 01:57 AM

Code:

        <div id="pagetitle" style="text-align:center;">
                <h1>{vb:raw vboptions.bbtitle}</h1>
                <p id="welcomemessage" class="description">{vb:rawphrase welcome_to_the_x, {vb:raw vboptions.bbtitle}}</p>
        </div>


OldSchoolDSL 01-27-2012 03:31 AM

Quote:

Originally Posted by LifesGreatestGift (Post 2292914)
Code:

        <div id="pagetitle" style="text-align:center;">
                <h1>{vb:raw vboptions.bbtitle}</h1>
                <p id="welcomemessage" class="description">{vb:rawphrase welcome_to_the_x, {vb:raw vboptions.bbtitle}}</p>
        </div>


Interesting alternative. Only thing about that is vBulletin will suggest you revert upon upgrade, as it will not merge that code.

I think that was another reason why I stuck with center code. To avoid the confusion for noobs about that.

But that is a good alternative.


All times are GMT. The time now is 06:11 PM.

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.01508 seconds
  • Memory Usage 1,890KB
  • 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
  • (5)bbcode_code_printable
  • (16)bbcode_php_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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