Jump to content
WebFlake

[TuT] Custom Guest Message


TJ.

Recommended Posts

Hello WebFlake,

 

This is for those who do not have the mod where they can do this:

-snip-

admin panel > System Settings > DevFuse > Guest Message > Guest message text

And type whatever you want using the built in editor .

 

Back with yet another tutorial. This time, I will be showing you how you can customize your guest welcome message. I will be showing how to change this

YdJf0O7.pngto this

AXo0IEl.png

 

Interested? Read on!
This tutorial will require access to the Look & Feel section of your Admin Control Panel (ACP) and minimal to no coding knowledge.

 

Within your ACP, we're going to navigate over to Look & Feel > Manage Skin Sets & Templates > Manage Templates in {yourSkinName} > Templates > Global Templates > globalTemplate

Look around the area of <!-- ::: MAIN CONTENT AREA ::: --> for this chunk of code:

<if test="($this->settings['guestMessage']=='yes') AND !($this->memberData['member_id'])">
<div class='guestMessage'>
<div class='guestHeader'>Welcome to {$this->settings['board_name']}</div>
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.<br />
<a href='{parse url="app=core&amp;module=global&amp;section=login" base="public"}' class='guestButton'>Login to Account</a> <a href='{parse url="app=core&amp;module=global&amp;section=register" base="public"}' class='guestButton'>Create an Account</a>
</div>
</if>

After locating the code, we are ready to begin modifying it.

Our title is located on the third line between <div class='guestHeader'> and </div>. When editing this, let's remember {$this->settings['board_name']} is the name of our board to keep it intact if we wish to have our board name displayed in the guest welcome message.

To edit the body of the message, we're simply going to edit everything between the </div> in our title and the <br /> tag. In other words, all of this you are able to freely edit:

Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.

To edit the words "Login to Account" we simply edit where it says "Login to Account".

Same method goes for "Create an Account", simply edit where it says "Create an Account".

 

Things to note:

*This message is only displayed to members who are not logged in.

*This is my 100th post :3

  • Upvote 4
Link to comment
Share on other sites

  • 4 weeks later...
  • 1 month later...
  • 2 months later...

While using apps for these kinds of things may be easier, this is a tutorial on how to add a guest message per skin.

So for those of us who create custom skins and whatnot and want to add more and more features to them to make them more appealing, this is one of the things you can add to your list.

  • Upvote 1

Need some IPB, MyBB, or HTML/CSS work done? Check out my thread!
:smiley:

Link to comment
Share on other sites

  • 2 years later...
×
×
  • Create New...