MySubscriptions, Donation Bar, MyDownloads, MyAchievements and support for our free and paid plugins. All that for $7!
Advertise Here!
Are you looking to advertise on this forum? Please read this announcement thread.
Are you looking to advertise on this forum? Please read this announcement thread.
|
Custom Status 1.7
|
|
12-30-2010, 04:44 AM
(This post was last modified: 01-26-2011 07:10 AM by Pirata Nervo.)
Post: #1
|
|||
|
|||
|
Custom Status 1.7
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 Change Log * 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) |
|||
|
12-31-2010, 09:08 PM
Post: #2
|
|||
|
|||
|
RE: Custom Status 1.6
awesome!!
tested and works fine so far but too bad it's not possible to add it to the proportal http://www.beatdj.net/foros/portal.php check it out it just outputs {$custom_status_index} ![]() |
|||
|
12-31-2010, 10:45 PM
Post: #3
|
|||
|
|||
|
RE: Custom Status 1.6
Because it doesn't hook to portal, I do not plan to add that anyway. But you can just duplicate the index_start hook line at the top and rename it to portal_start, it should work, unless the portal requires something else.
|
|||
|
01-01-2011, 12:48 AM
Post: #4
|
|||
|
|||
|
RE: Custom Status 1.6
thx i will try it once i've arrived home
by the way where can i change the Shortened status limit from 10 to 15? ![]() |
|||
|
01-01-2011, 12:53 AM
Post: #5
|
|||
|
|||
|
RE: Custom Status 1.6
You can change in the actual code, search for substr and you'll see 10 there as an argument. Change it to 15
|
|||
|
01-01-2011, 07:31 AM
Post: #6
|
|||
|
|||
|
RE: Custom Status 1.6
$plugins->add_hook("postbit", "custom_status_postbit");
$plugins->add_hook("index_start", "custom_status_index"); $plugins->add_hook("portal_start", "custom_status_index"); it didn't work =( ![]() |
|||
|
01-02-2011, 04:21 AM
Post: #7
|
|||
|
|||
|
RE: Custom Status 1.6
And what are you putting in the portal template?
|
|||
|
01-02-2011, 09:29 AM
Post: #8
|
|||
|
|||
RE: Custom Status 1.6
![]() |
|||
|
01-03-2011, 01:17 AM
Post: #9
|
|||
|
|||
|
RE: Custom Status 1.6
You're not supposed to put it in a box Glas, you must put it in the portal template.
|
|||
|
01-03-2011, 02:08 AM
Post: #10
|
|||
|
|||
|
RE: Custom Status 1.6
proportal uses it's own templates
and they do not appear intemplate sets only in their menu <.< ![]() |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)


![[Image: s.png]](http://mybb-plugins.com/images/s.png)



![[Image: glas.png]](http://mybbwebhost.com/u/glas.png)
