vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Forum Home Enhancements - Remove guest welcome / first visit message (https://vborg.vbsupport.ru/showthread.php?t=203154)

Pip 01-25-2009 10:00 PM

Remove guest welcome / first visit message
 
1 Attachment(s)
Hi,

this is only a little one but everybody starts from the scratch :)
I spent some time to search for that issue so I think it's of value to documentate it for others looking for the same issue.

--------------------

What ...?

vb shows to unregistered users a guest welcome message (first visit) on the Forum Home.
Quote:

Welcome to the Forum
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.


Why ....?


Maybe you just like to have that message gone or use the Notice system (Display this notice if > user belongs to usergroup "unregistered / not logged in"

Quote:

since vb offers the Notice system I prefer to use that instead of the "guest welcome message". Especially as you can use the Notices on every page (-> search engines reffering to threads) and the guest welcome message is only shown on the forum home
How ...?
  • Go to your Admin Control Panel
  • Open the "Styles & Templates" > "Style Manager"
  • Select "Edit templates"
    • you have to repeat that step for every parent style
  • Find the "FORUMHOME" template and edit it
  • Find this block
    Code:

    <if condition="$show['guest']">
    <!-- guest welcome message -->
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <tr>
        <td class="tcat"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
    </tr>
    <tr>
        <td class="alt1">
            <phrase 1="faq.php$session[sessionurl_q]" 2="register.php$session[sessionurl_q]">$vbphrase[first_visit_message]</phrase>
        </td>
    </tr>
    </table>
    <!-- / guest welcome message -->
    <br />
    </if>

  • Remove it & save the template

lazydesis 01-26-2009 04:48 PM

hehe simple :) but i think thats a very good way to tell the guests who visit your forum what the site is about ..

it may not be a good idea to remove that ..

Pip 01-26-2009 04:54 PM

well, I totaly agree with that. But since vb offers the Notice system I prefer to use that instead of the "guest welcome message". Especially as you can use the Notices on every page (-> search engines reffering to threads) and the guest welcome message is only shown on the forum home

imaroot 01-30-2009 02:26 AM

thanks for sharing this :D

mk craig 42 02-10-2009 08:59 PM

yeah i agree with pip, i want to use the notice system instead of the first visit message, thanks alot for this pip. :)

Hostboard 02-10-2009 09:35 PM

Actualy I was thinking about doing this the other day since I use the notice system to post welcome and other messages based on conditionals and this was redundent.

Though I highly recommend you use TMS to do ALL template edits :)
https://vborg.vbsupport.ru/showthread.php?t=152931

80's 06-17-2009 06:56 PM

I was exactly lookig for this, Thank you.

merk_aus 11-14-2010 05:06 AM

Thanks for this - it is definately a great addon for my sites.


All times are GMT. The time now is 07:06 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.01076 seconds
  • Memory Usage 1,727KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete