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.

Notifications on Nav Bar?

View previous topic View next topic Go down

Notifications on Nav Bar?

Post by Alan Barry on August 1st 2015, 4:02 pm

Is there a chance of putting Notification (which are currently on the tool bar) somewhere on the Nav Bar?

I have coded the CSS (with the help of forumotion users) that hides/blocks the main forum logo/header. Therefore enabling the Tool bar does nothing. Just ads space to the current forum layout.

I don't want the tool bar. However, I really wants the notifications.

Any suggestions?

Alan Barry
Forumember

Posts : 25
Reputation : 1
Language : English

http://priwy-metin2.forum-board.net

Back to top Go down

Re: Notifications on Nav Bar?

Post by APE on August 1st 2015, 10:47 pm

Sorry This is a problem we can not fix as the tool bar and navbar are not linked the same way so there for im sorry this can not be done right now.




APE
Manager
Manager

Male Posts : 8608
Reputation : 748
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

Re: Notifications on Nav Bar?

Post by levy on August 2nd 2015, 3:10 am

@APE you are wrong, I've done this notification system some time ago.Forumotion Notification system use a PHP Syntax on the #notif_list ID. Based on this, you can extract from Forumotion PHP Base, the whole code, only with this small ID. To make our job easier, you have the link input already done with whole JS. You will see it in a minute, but let's start working.

First of all, you need to activate your toolbar so go into Administration Panel -> Module -> Toolbar -> Configuration -> Activate the toolbar : YES

Now, I tested this into phpBB3, it work with all versions, if you have the phpBB3 it will be easier.

Now, into step two, we need to go into Administration Panel -> Display -> Templates -> General -> Overal_header and search for this small code

Code:
<li>{GENERATED_NAV_BAR}</li>


Exactly after it, just add this small code

Code:
<a id="fa_notifications" class="rightHeaderLink unread">Notifications<span id="notif_unread"></span></a>
<ul id="notif_list">
<li></li>
</ul>

That's all! See? Very easy, now you want to hide the toolbar so we come with some extra CSS work.
Go into Administration Panel -> Display -> Colors -> CSS and add this code

Code:
#fa_toolbar{ display:none; }

#notif_list {
    position: absolute!important;
    background-color: #E0E0E0;
    display: block;
    right: 100px;
    padding: 15px 20px 0 20px;
    border-radius: 5px;
    border: 1px solid #969696;
    box-shadow: 0 0 0 1px #EAEAEA inset, 0 7px 5px -5px #DEDEDE;
}

ul.navlinks{
  border:none;
}

#notif_list hr{
  display:none;
}

This will style your new notifications system a bit, to make it look better.

If you use PunBB, when you search, instead the old code, look for
Code:
<li>{GENERATED_NAV_BAR}</li>
On Invision, go and search
Code:
<li class="clearfix">{GENERATED_NAV_BAR}</li>
On phpBB2, go and search for
Code:
<td align="{MENU_POSITION}"{MENU_NOWRAP}>{GENERATED_NAV_BAR}</td>
It wasn't tested into phpBB2, from my experience on punBB and Invision even without verifying the code I'm sure it will work. I'm not so used on tables and I don't know how they affect the code.

Good luck,
levy

levy
Hyperactive

Male Posts : 2582
Reputation : 345
Language : Romanian, English
Location : criticize artwork, not people!

http://help.forumotion.com/

Back to top Go down

Re: Notifications on Nav Bar?

Post by APE on August 2nd 2015, 10:55 pm

i tested it and it has some bugs in it's not crackable




APE
Manager
Manager

Male Posts : 8608
Reputation : 748
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

Re: Notifications on Nav Bar?

Post by levy on August 2nd 2015, 11:13 pm

The bugs come only from my CSS style with the absolute position. You can style it very easly how you want. The HTML work perfectly, only a <li></li> added wrong.

levy
Hyperactive

Male Posts : 2582
Reputation : 345
Language : Romanian, English
Location : criticize artwork, not people!

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