MyBB-Plugins Forums

Full Version: Custom Status 1.8
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Everyone can download this plugin but only subscribers can reply to this thread and get support. Click here to subscribe.

Description
This plugin allows certain user groups to set a custom status from the user cp (or index) which is shown on the index page, profile and posts.

This plugin was known as Custom Online Status back in the MyBB 1.4 days and I decided to port it and change the way it works.

The POSTBIT feature is disabled by default, to enable it:
---------------------------------------------
You can use {$post['custom_status']} anywhere in the postbit and postbit_classic templates - IT IS NOT EDITED BY DEFAULT.
{$post['custom_status_shortened']} is also available if you want to show only 10 characters followed by three dots. (this is useful if you don't want to break the design)
Example of usage: <a title="{$lang->custom_status_status} {$post['custom_status']}"><strong>{$post['custom_status_shortened']}</strong></a>
---------------------------------------------

The SIDEBOX feature is disabled by default, to enable it:
---------------------------------------------
Replace {$forums} with: (index template)
<table width="100%" border="0" align="center">
<tr>
<td valign="top" width="70%">
{$forums}
</td>
<td valign="top" width="30%">
{$custom_status_index}
</td>
</tr>
</table>

Don't forget to delete the existing {$custom_status_index}!
---------------------------------------------

Screenshots
[Image: PvR9Nnzs.png] [Image: Vr68sFds.png] [Image: 3WGTgrKs.png] [Image: 1zDWOYZs.png] [Image: NhxElzAs.png]


Change Log
* 1.8
Added 1.8 compatibility.

* 1.7
Fixed XSS vulnerability - it was sanitising the wrong variable, my bad.

* 1.6
Ported to MyBB 1.6.
No longer has the custom online status, that means you cannot replace the "Location" name, it only has the "What am I doing" feature.
Added box to index with latest status changes.
Added postbit feature - you must add the code manually as explained above.

* 1.5
Fixed a permisions problem.

* 1.4
Fixed one bug related to the index page.
Fixed a permissions problems.

* 1.3
Now, you can add the status veriable to the postbit if you want.
Fixed a bug that would make AJAX not to work after the first time you change your status via AJAX, if you didn't refresh the page.
Added a bar to the index page (if the setting "What am I doing? Behaviour" is set to yes).

* 1.2
Fixed one bug.
Added a link which is displayed as "(Change)" after the custom status in profiles. If you click the link, a popup box will appear and you'll have to enter the new status. It will save your new status via AJAX.

* 1.1
Added a new setting that allows admins to choose if they want the plugin to replace the online status or work as "What am I doing?" field, which is displayed below the online status in the profile.

* 1.0
Initial Release

Upgrading to 1.7
Replace all files.

Download
Plugin is attached to this post.

If you find any bugs, please report them please. (if you're not a subscriber, fee free to PM me for bug reports, not for support)

No Permission

Unfortunately you do not have sufficient rights to view replies in this thread.