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.

Message for unregistered members - 2nd time

View previous topic View next topic Go down

Solved Message for unregistered members - 2nd time

Post by HrvojeP on February 21st 2015, 6:20 pm

Technical Details

Forum version : phpBB3
Position : Founder
Concerned browser(s) : Mozilla Firefox
Who the problem concerns : All members
When the problem appeared : This is not crucial problem, but forum would look better
Forum link : http://drvenibrodovi.forumotion.eu/

Description of problem

This problem has been discussed one year ago. I did not succeed to solve the problem as suggested there. It was necessary to insert some code in the template overall-header instead code not found there, and add some CSS code.

Here is the link for last year discussion:
Login message

I did not try solution with widget, I want to implement the solution with template. This is what I want:


Can somebody offer the help, please?

Kind regards,
Hrvoje


Last edited by HrvojeP on February 21st 2015, 8:34 pm; edited 1 time in total

HrvojeP
Forumember

Male Posts : 128
Reputation : 2
Language : Croatian, English
Location : Croatia

http://drvenibrodovi.forumotion.eu/

Back to top Go down

Solved Re: Message for unregistered members - 2nd time

Post by _Twisted_Mods_ on February 21st 2015, 6:55 pm

goto acp>display>colors>css tab

add the code below then save

Code:
#logged_out_popup{
   background-color: rgba(255,0,0,0.6);
   padding:5px;
   position:fixed;
   bottom:8px;
   left:10px;
color:white;
   font-weight:bold;
   border:1px solid yellow;
   border-radius:5px   
};

then goto acp>modules>Javascript management

make sure Javascript management is turned on it not turn it on then save

create a new Javascript

title:does not matter
placement:in all pages

copy the code below ..then save/submit

Code:
$(function(){
  if(_userdata.session_logged_in==0){
    $('body').append(' <div id="logged_out_popup">Hello guest !<br/>Please <a href="/login">login</a> or <a href="/register">register</a> to gain full access to the forum.</div>');
  };
});

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Message for unregistered members - 2nd time

Post by Worst Nightmare on February 21st 2015, 7:48 pm

nice useful tips above, i will definitely try this

Worst Nightmare
Forumember

Posts : 107
Reputation : 2
Language : English

Back to top Go down

Solved Re: Message for unregistered members - 2nd time

Post by SLGray on February 21st 2015, 8:07 pm

@Worst Nightmare wrote:nice useful tips above, i will definitely try this
Please do not post in a support topic unless you are offering a solution or asking a support question.


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


SLGray
Administrator
Administrator

Male Posts : 36698
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Message for unregistered members - 2nd time

Post by HrvojeP on February 21st 2015, 8:33 pm

It works just perfect! Thank you so much! bye

HrvojeP
Forumember

Male Posts : 128
Reputation : 2
Language : Croatian, English
Location : Croatia

http://drvenibrodovi.forumotion.eu/

Back to top Go down

Solved Re: Message for unregistered members - 2nd time

Post by _Twisted_Mods_ on February 21st 2015, 8:35 pm

Topic solved and archived

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.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