MyBB Community Forums

Full Version: [Tutorial] Welcome Message
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
This has probably been done before. But here is a cool way to match a vBulletin Guest message.

First go to your ACP>Templates and Themes>>Templates>>>Your theme>>>>Index Template

Now look for:
{$header}

Right below that, add>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr><td class="thead"><strong>Welcome Guest!</strong></td></tr>
<tr><td class="trow1">
<span class="smalltext">

If this is your first visit, be sure to check out the <a href="http://yoursite.tld/misc.php?action=help">Help/FAQ</a> page by clicking the link above.
You may have to <a href="http://yoursite.tld/member.php?action=register">register</a> 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.


</span>
</td></tr>
</table><br/>

Here is a demo>
http://madzula.com

Note: have that code between {$header} and {$forum}.

__________________________________________

If for some reason you don't know how to use permission like I don't know how. (Anyone wants to step up and knows how to add permission, this would be a good time to reply and I'll add it along with your Username for credit, thank you!)

Anyway, if you want it shown just for Guest, please follow these instructions.>

ACP>Templates and Themes>>Templates>>>Your theme>>>>Header Templates>>>>>header_welcomeblock_guest

Add that code above, on the very bottom of the Guest templates. (It was modified, be sure to check it again.)

All I added was a custom message and a custom title for you Smile

Note: Some people may have not realize, but in the content area I have put a link there as an example called "http://yoursite.tld," make sure to edit that before post it up on your site or people will get 404 errors or unwanted site.

Enjoy!

Updated: 08/25/2009
Hmm, looks pretty nice. How is it similar to vB's one?
vBulletin shows a similar-looking message for guests. Nice job. Smile
You edit the index template. Why not use the header_welcomeblock_guest Template ??

In your's case, the message will be displayed to all , including guests + members. Confused
ghazal is right. If you put in the index template everyone can see it. That is unless you use the PHP in Templates plugin made by Yumi. Smile
(2009-08-24, 12:41 AM)Hero Wrote: [ -> ]Hmm, looks pretty nice. How is it similar to vB's one?

Updated!



To answer your question, I guess it looks similar because of the same way it looks.
If you put a collapsible box then it would be really nice the current. Smile

Any way thanks for your efforts.
Can I also put it on footer?
Good tutorial, though Nickman made this into a mod so you don't have to edit anything yourself.

http://mybbsource.com/mods.php?act=view&id=35
(2009-08-24, 06:53 PM)Mr blue Wrote: [ -> ]Can I also put it on footer?

Yes you can.

However it will will be shown to all user groups because it needs to be in the Index templates between {$forum} and {$footer}

But you can put other content besides a welcome, like affiliates maybe, or something useful like an ad.

OR

Go to footer templates and add there where the footer is.
Pages: 1 2