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.

How to hide part of the FM notification bar in Guest view

View previous topic View next topic Go down

Solved How to hide part of the FM notification bar in Guest view

Post by Guest on December 12th 2014, 8:54 am

Hi!

How can I hide part of the FM notification bar in Guest view? The part I want to hide is in the figure below:



This is for my fcnl.actieforum.com by the way, and as you know, I've got also a FM toolbar sitting in HTML for chat, so it's got to work in both.

Samantha.

Guest
Guest


Back to top Go down

Solved Re: How to hide part of the FM notification bar in Guest view

Post by SLGray on December 12th 2014, 9:15 am

You can not remove/hide the copyright to the far left. You can only use credits to change what the text says.

http://help.forumotion.com/t137076-personalize-the-entire-toolbar-with-css


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


SLGray
Administrator
Administrator

Male Posts : 36657
Reputation : 2443
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: How to hide part of the FM notification bar in Guest view

Post by Ange Tuteur on December 12th 2014, 9:31 am

For the search and share, you can use this script :
Code:
$(function() {
  if (_userdata.session_logged_in == 1) $('#fa_search, #fa_share').attr('style','display:none !important');
});

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: How to hide part of the FM notification bar in Guest view

Post by Guest on December 12th 2014, 9:37 am

@Ange Tuteur wrote:For the search and share, you can use this script :
Code:
$(function() {
 if (_userdata.session_logged_in == 1) $('#fa_search, #fa_share').attr('style','display:none !important');
});

Hmm... I added that to a new JS, but that didn't work too well. Nothing's happening, I'm afraid.

Guest
Guest


Back to top Go down

Solved Re: How to hide part of the FM notification bar in Guest view

Post by Ange Tuteur on December 12th 2014, 7:37 pm

Oups I made a mistake. Try now
Code:
$(function(){$(function(){
  if (_userdata.session_logged_in == 0) $('#fa_search, #fa_share').attr('style','display:none !important');
})});

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: How to hide part of the FM notification bar in Guest view

Post by Guest on December 12th 2014, 7:49 pm

@Ange Tuteur wrote:Oups I made a mistake. Try now
Code:
$(function(){$(function(){
 if (_userdata.session_logged_in == 0) $('#fa_search, #fa_share').attr('style','display:none !important');
})});

I like the French 'Oups' part. It made me smile! Smile Yeah, that's how you do that, Sunny! Now get that into the HTML below too, please, and we're done. And then, you've earned yourself a digi-kiss by me :rose: ! Hello


Code:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
<script src="http://illiweb.com/rs3/85/frm/lang/nl.js" type="text/javascript"></script>
<script src="/37564.js" type="text/javascript"></script>
<style>
#avacweb_chat iframe {
width: 100%;
Height: 100%
}
</style>
<div style="width: 100%; height: 100%;" id="chatholder">
</div>

<!-- START init_fa_toolbar -->
<script type="text/javascript" src="http://illiweb.com/rs3/85/frm/jquery/cookie/jquery.cookie.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/85/frm/jquery/toolbar/FAToolbar.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/85/frm/json/json2.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/85/frm/jquery/printf/printf.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/85/frm/jquery/dotdotdot/jquery.dotdotdot-1.5.6.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/85/frm/jquery/notif/FA.js"></script>
<iframe id="fa_data" src="/" style="display:none"></iframe>
<div id="fa_style" style="display:none;"></div>
<script type="text/javascript">
var _userdata = new Object(),
_lang = new Object(),
_board = new Object(),
fa_data = document.getElementById('fa_data');
fa_data.onload = function() {
var fa = fa_data.contentWindow,
fa_style = fa.document.getElementsByTagName('STYLE');

for (var i = 0; i < fa_style.length; i++)
if (/#fa_toolbar/.test(fa_style[i].innerHTML)) document.getElementById('fa_style').appendChild(fa_style[i]);
for (var a in fa._userdata) _userdata[a] = fa._userdata[a];
for (var b in fa._lang) _lang[b] = fa._lang[b];
for (var c in fa._board) _board[c] = fa._board[c];

$(document).ready(Toolbar.init);

jQuery(function() {
if (!_userdata.session_logged_in) {
return false;
}
var _ToolBar = setInterval(function() {
if (document.getElementById('fa_welcome') !== null) {
clearInterval(_ToolBar);
jQuery('a[href$="logout=1"]').attr('href', jQuery('#logout').attr('href'));

jQuery('a[href*="logout=1"]').click(function(event) {
localStorage.setItem("logout", 1);
});
}
}, 1000);
});
}
</script>
<!-- END init_fa_toolbar -->

<STYLE TYPE="text/css">
<!-- body {
background-image: url('http://i39.servimg.com/u/f39/19/05/73/25/sorryc11.jpg');
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center;
}
#fa_toolbar {
font-family: Verdana, Helvetica, Arial, sans-serif !important;
font-weight: 700 !important;
font-size: 0.9em !important;
}
#fa_toolbar span {
font-family: Verdana, Helvetica, Arial, sans-serif !important;
font-weight: 700 !important;
font-size: 0.9em !important;
}
#fa_toolbar a {
font-family: Verdana, Helvetica, Arial, sans-serif !important;
font-weight: 700 !important;
font-size: 0.9em !important;
}
#fa_right {
font-family: Verdana, Helvetica, Arial, sans-serif !important;
font-weight: 700 !important;
font-size: 0.9em !important;
}
#fa_mail {
display: none!important
}
-->
</STYLE>

Guest
Guest


Back to top Go down

Solved Re: How to hide part of the FM notification bar in Guest view

Post by Ange Tuteur on December 12th 2014, 8:24 pm

Here you are :
Code:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
<script src="http://illiweb.com/rs3/85/frm/lang/nl.js" type="text/javascript"></script>
<script src="/37564.js" type="text/javascript"></script>
<style>
  #avacweb_chat iframe {
  width: 100%;
  Height: 100%
  }
</style>
<div style="width: 100%; height: 100%;" id="chatholder">
</div>

<!-- START init_fa_toolbar -->
<script type="text/javascript" src="http://illiweb.com/rs3/85/frm/jquery/cookie/jquery.cookie.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/85/frm/jquery/toolbar/FAToolbar.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/85/frm/json/json2.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/85/frm/jquery/printf/printf.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/85/frm/jquery/dotdotdot/jquery.dotdotdot-1.5.6.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/85/frm/jquery/notif/FA.js"></script>
<iframe id="fa_data" src="/" style="display:none"></iframe>
<div id="fa_style" style="display:none;"></div>
<script type="text/javascript">
  var _userdata = new Object(),
  _lang = new Object(),
  _board = new Object(),
  fa_data = document.getElementById('fa_data');
  fa_data.onload = function() {
  var fa = fa_data.contentWindow,
  fa_style = fa.document.getElementsByTagName('STYLE');

  for (var i = 0; i < fa_style.length; i++)
  if (/#fa_toolbar/.test(fa_style[i].innerHTML)) document.getElementById('fa_style').appendChild(fa_style[i]);
  for (var a in fa._userdata) _userdata[a] = fa._userdata[a];
  for (var b in fa._lang) _lang[b] = fa._lang[b];
  for (var c in fa._board) _board[c] = fa._board[c];

  $(document).ready(Toolbar.init);

  jQuery(function() {
  if (!_userdata.session_logged_in) {
  return false;
  }
  var _ToolBar = setInterval(function() {
  if (document.getElementById('fa_welcome') !== null) {
  clearInterval(_ToolBar);
  jQuery('a[href$="logout=1"]').attr('href', jQuery('#logout').attr('href'));

  jQuery('a[href*="logout=1"]').click(function(event) {
  localStorage.setItem("logout", 1);
  });
  }
  }, 1000);
  });
  if (_userdata.session_logged_in == 0) $('#fa_search, #fa_share').attr('style','display:none !important');
  }
</script>
<!-- END init_fa_toolbar -->

<STYLE TYPE="text/css">
  <!-- body {
  background-image: url('http://i39.servimg.com/u/f39/19/05/73/25/sorryc11.jpg');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  }
  #fa_toolbar {
  font-family: Verdana, Helvetica, Arial, sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.9em !important;
  }
  #fa_toolbar span {
  font-family: Verdana, Helvetica, Arial, sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.9em !important;
  }
  #fa_toolbar a {
  font-family: Verdana, Helvetica, Arial, sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.9em !important;
  }
  #fa_right {
  font-family: Verdana, Helvetica, Arial, sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.9em !important;
  }
  #fa_mail {
  display: none!important
  }
  -->
</STYLE>

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: How to hide part of the FM notification bar in Guest view

Post by Guest on December 12th 2014, 8:27 pm



Fabulous! Hope I made u smile too today! Wink

Topic mangled between the other hopeless posts and archived, please!

Guest
Guest


Back to top Go down

Solved Re: How to hide part of the FM notification bar in Guest view

Post by Ange Tuteur on December 12th 2014, 8:34 pm

You're welcome Razz

Topic archived

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

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