India
|
Edited by Ananthavas at 2013-11-8 19:28
In most cases, it is inconvenient for mobile users, to view notifications on Mobile, since discuz! doesn't have Notices Option on it's mobile version...
Here is a small(simple  work around to display Notices Option + Indicator whenever a new Notification comes..
The feature can be obtained by editing header.htm file, which is located at yoursite.com/template/default/mobile/common/
The steps are as follows:
* Edit Header.htm which is located on /template/default/mobile/common/
(Before editing, keep a backup of the original file for safety)
* Look for the following lines which can be found at last..
Copy the Code * On the above codes, I had written this: YOU CAN INSERT THE CODES HERE
Just replace it with the following code:- <span class="pipe">|</span><a href="home.php?mod=space&do=notice&mobile=no" id="myprompt"{if $_G[member][newprompt]} class="new"{/if}>{lang remind}<!--{if $_G[member][newprompt]}-->($_G[member][newprompt])<!--{/if}--></a>
Copy the Code Here, the statement: id="myprompt"{if $_G[member][newprompt]} class="new"{/if}>{lang remind}<!--{if $_G[member][newprompt]}-->($_G[member][newprompt]) is for indicating the new notices count..
* You are almost done!
Just Save the file & open your website in Mobile mode.. It will display Notices option & whenever you get a new notice, it'll display the count indicator too, just like the below picture.
* If you can't edit the files manually, just download the below attachment & replace the header.htm file in yoursite.com/template/default/mobile/common/ with the header file in the zip archive..
This file is already edited & it includes a link to Search option also..
Enjoy!
*Remember to keep a backup of the file, that you're going to edit!
|
This post contains more resources
You have to Login for download or view attachment(s). No Account? Register
x
|