The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.

Create a free forum like this one.

Welcom Message?

View previous topic View next topic Go down

In progress Welcom Message?

Post by Rosana on August 31st 2017, 1:16 am

Is it possible to put a welcome/info message on the login page that is not visible on the main forum page after you have logged in? I've seen this on other forums.

New Member

Posts : 5
Reputation : 1
Language : English

Back to top Go down

In progress Re: Welcom Message?

Post by SLGray on August 31st 2017, 2:04 am

AP > General > Rules and FAQ > Additional Rules
Add what you want in the text editor box and click save.

After reading the first post again, I noticed that you said log in page, not registration page.

Last edited by SLGray on August 31st 2017, 4:41 am; edited 1 time in total

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


Male Posts : 41457
Reputation : 2850
Language : English
Location : United States

Back to top Go down

In progress Re: Welcom Message?

Post by YoshiGM on August 31st 2017, 4:38 am

Hello @Rosana, try using this Javascript:

jQuery(function () {

        /* ZONE CAN BE MODIFIED */
        var html_head_welcome = "Loading forum, please wait...";
        var html_body_welcome = "Welcome back! ";
        var seconds = 2;

        var mycookiename = "fa_" + (document.location.hostname).replace(/\./g, "_") + "_sid";
        var welcomedonecookiename = "fa_" + (document.location.hostname).replace(/\./g, "_") + "_welcomedone";
        var ver_sel = new Array();
        ver_sel["phpbb2"] = ".bodylinewidth";
        ver_sel["phpbb3"] = ".conteneur_minwidth_IE";
        ver_sel["punbb"] = ".minwidth_IE";
        ver_sel["invision"] = ".minwidth_IE";

        if (my_getcookie(mycookiename) == null) {
            my_setcookie(welcomedonecookiename, 0);
        } else {
            if (my_getcookie(welcomedonecookiename) == 0) {
                jQuery("body").prepend("<div id='div_welcome'><div id='div_welcome_header'>" + html_head_welcome + "</div><div id='div_welcome_body'>" + html_body_welcome + "</div></div>");
                jQuery(ver_sel[fa__version()]).fadeTo("slow", 0.15).delay(seconds * 1000).fadeTo("fast", 1);
                jQuery("#div_welcome").delay(seconds * 1000).fadeTo("fast", 0);
                my_setcookie(welcomedonecookiename, 1, true);

    function fa__version() {
        if (jQuery("body").length) {
            if (jQuery("#i_logo").length) return "phpbb2";
            else if (jQuery("#logo-desc").length) return "phpbb3";
            else if (jQuery("#pun-logo").length) return "punbb";
            else if (jQuery("#logostrip").length) return "invision";
            else return "phpbb2";
        } else return -1;

Place: In All Pages

Now you need to set up the custom text for the welcome messages in those variables:

•var html_head_welcome - Title of the welcome message.
•var html_body_welcome - Text of the welcome message
•var seconds = 2 - Number of seconds that the message appears after the forum loads complete.

Then, add this CSS code:

  #div_welcome {
        background-color: white;
        border: 1px solid black;
        border-radius: 10px;
        display: block;
        left: 35%;
        position: absolute;
        right: auto;
        text-align: left;
        top: 150px;
        width: 400px;
    #div_welcome_header {
        background: url("") repeat scroll 0 0 transparent;
        border-radius: 9px 9px 0 0;
        color: white;
        padding-left: 10px;
        padding-bottom: 2px;
        text-align: left;
    #div_welcome_body {
        color: #2e2e2e;
        background: url("IMAGE ON WELCOME MESSAGE") no-repeat left center;
        color: #2E2E2E;
        padding: 20px 10px 20px 60px;

And here you need to edit the IMAGE ON WELCOME MESSAGE, for the image that you want to show in the welcome message.

Hope it helps you Wink

Male Posts : 684
Reputation : 96
Language : Spanish, English & Italian (16%)
Location : Mexico

Back to top Go down

In progress Re: Welcom Message?

Post by YanZKinG on September 1st 2017, 4:57 am

Hi, I've tried this to my forum but i think its not working on ModernBB theme.  Confused

Male Posts : 25
Reputation : 3
Language : English, Filipino
Location : Philippines

Back to top Go down

In progress Re: Welcom Message?

Post by Luffy on September 3rd 2017, 5:24 pm

@YanZKinG wrote:Hi, I've tried this to my forum but i think its not working on ModernBB theme.  Confused
The code is not for ModernBB so it's logical not to work for it since it is a completely different version. If you're facing a problem, i suggest to you to create a new topic for it! Wink


Male Posts : 4947
Reputation : 508
Language : Greek, English
Location : Greece

Back to top Go down

View previous topic View next topic Back to top

Permissions in this forum:
You cannot reply to topics in this forum