I have a theme which doesn't display the topbar
i'd like to know how to get the message icon to show on my sidebar
so that users can check their notifications.
Also i have the
friend request plugin and it attaches itself to the top bar
how would i go about, making that icon show on my sidebar with
the same function as if it where on the topbar.
Thank You.
i've been having trouble with this.
I know i must check the messages and friend-request mod folder
but specifically what code would i have to move to the sidebar.php so that it would display the icon??
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
still trying to work this out :(
1. For display in extras menu
2. For display in sidebar as link:
Ahh, for overriding...
In your theme's start.php
Then add the aboving code
OR
You need overide messages_notifier function in your plugin/theme:
@RvR
Thanks, but
to be more specific of what i'm trying to do
basically i want to get this
and put it on top of the profile picutre
i tried your code
but it's not showing up on the sidebar :(
like i said before i also have to friend request plugin
and so far the closest i have gotten is
using this code
that's because that code didn't include an icon in the array. use this as a reference
@$('Cim')
lets 4get about the friends
im planning on just echo-ing the friend icon (html) and since it's in an "if you have a friend request then it'll only show when the user has a friend request"
so lets 4get about that..
the trouble is the message icon
i tried your code but the sidebar stayed the same - no friend icon no nothing :(
Thanks for late-night response - it's 2:19am where im at lol
same here, i live in california. but i did look at the messages plugin start.php file. the image is populated by the $class variable which is using css. look at the code
@$('Cim')
been there (start.php) of messages
whenever i have troubles like this i use windows grep to search all the files for relative functions which lead me to start.php
i always get the message :(
Fatal error: Cannot redeclare messages_notifier() (previously declared in /home/content/.*/.*/html/mod/messages/start.php:125) in/home/content/.*/.*/html/views/default/page/layouts/content/sidebar.php on line 44
yeah you're not supposed to put the actual function in your theme's start.php. use the snippet
oops lol
No error but icon not showing :(
- Previous
- 1
- 2
- Next
You must log in to post replies.