Jump to content
MakeWebGames

Notification center


spikereloaded
 Share

Recommended Posts

Hey people.

This is a mod i made using an expandable bar and just modified it a bit. its basically a tab that sits at the bottom of the players screen, when moused over, it exapnds to show details such as recent mailbox messages, recent announcements and recent events. It also shows a "new notification" text when a new mail, event or announcement is received.

So first of all add this to your header.php

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

next make a file called expstickybar.js and add this to it

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

next make a file called expstickybar.css and paste this in

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

and finally make a page called stickybarcontent.php, add in the code to connect to your database, but DON'T include globals. then add the following code.

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

The settings of the notification center can be changed within the CSS page as well as at the end of the JS file.

Here's a screenshot!

[ATTACH=CONFIG]254[/ATTACH]

Now please go easy as this was one of my first mods so the code may not be tidy or entirely correct, but it works well! let me know what you think!

Now upload all the files and you should have a working notification center. (ps. the development section is one i've added myself so you may want to take that out or add a developments table to your db)

1508969837_ScreenShot2012-01-27at12_10_27.png.7a77a000ce79bd9d1f4409d0ad96726b.png

Edited by spikereloaded
Link to comment
Share on other sites

  • 7 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...