The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Notifications on Nav Bar?

3 posters

Go down

Notifications on Nav Bar? Empty Notifications on Nav Bar?

Post by Alan Barry 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
Alan Barry
Forumember

Posts : 25
Reputation : 1
Language : English

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

Back to top Go down

Notifications on Nav Bar? Empty Re: Notifications on Nav Bar?

Post by Ape 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.


Notifications on Nav Bar? Left1212Notifications on Nav Bar? Center11Notifications on Nav Bar? Right112
Notifications on Nav Bar? Ape_b110
Notifications on Nav Bar? Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19084
Reputation : 1988
Language : fluent in dork / mumbojumbo & English haha

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

Back to top Go down

Notifications on Nav Bar? Empty Re: Notifications on Nav Bar?

Post by levy 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
levy
Hyperactive

Male Posts : 2632
Reputation : 350
Language : English, Romanian
Location : Romania

https://portofolio.goodforum.net/

Back to top Go down

Notifications on Nav Bar? Empty Re: Notifications on Nav Bar?

Post by Ape August 2nd 2015, 10:55 pm

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


Notifications on Nav Bar? Left1212Notifications on Nav Bar? Center11Notifications on Nav Bar? Right112
Notifications on Nav Bar? Ape_b110
Notifications on Nav Bar? Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19084
Reputation : 1988
Language : fluent in dork / mumbojumbo & English haha

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

Back to top Go down

Notifications on Nav Bar? Empty Re: Notifications on Nav Bar?

Post by levy 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
levy
Hyperactive

Male Posts : 2632
Reputation : 350
Language : English, Romanian
Location : Romania

https://portofolio.goodforum.net/

Back to top Go down

Back to top

- Similar topics

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