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.

Thanks
avatar
Rosana
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.

avatar
SLGray
Administrator
Administrator

Male Posts : 40855
Reputation : 2773
Language : English
Location : United States

https://fmthemes.forumotion.com/

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:

Code:
jQuery(function () {

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

        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:

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("http://i45.servimg.com/u/f45/17/45/19/77/gradie10.jpg") 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
avatar
YoshiGM
Forumember

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

http://asistencia.foroactivo.com/u21373

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
avatar
YanZKinG
Forumember

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

http://destroymus4.forumotion.com/

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





avatar
Luffy
Manager
Manager

Male Posts : 4866
Reputation : 492
Language : Greek, English
Location : Greece

http://thinktank.forumotion.com/

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