PDA

View Full Version : Profile Enhancements - vBStatus - Facebook Style Status Updates (v5) (vB 3.x)


Attilitus
06-03-2010, 10:00 PM
vBStatus has been released for vB 4.x.x (https://vborg.vbsupport.ru/showthread.php?t=243775)

Compatible with 3.x
vBStatus allows your users to update their status to tell other members what they are doing/thinking at any given time. A user's status is displayed under their names in their postbit, in their User Profile, and anywhere else you choose!

User's can edit their status quickly and easily via AJAX.

Features and Configuration options include:


Admin Option: Turn modification on/off
Admin Option: Ban usergroups from updating their status.
Admin Option: Set a max character count for status messages.
Admin Option: Set the number of characters of a status message displayed per line. (Word wrapping will occur for status messages longer than this defined value.)
Admin Option: Define a standard status prefix to be appended to the start of all status messages after the username. (i.e. Attilitus is doing something.)
Admin Option: Define a default status for users with a blank status.
Admin Option: Define the character set used for encoding status messages. (The default value of this option should work for most character sets.)



Feature: Status messages may be updated in-line.
Feature: All languages and character sets are supported. (Most, if not all, should work with the default encoding option. Others may require some configuration in the admin options.)
Feature: Users may press the Enter key to confirm their status update.
Temporarily Deactivated in v5: Admin Option: Allow defined usergroups to modify other user's status updates. (For moderation purposes)
There are 4 template edits for this hack. The installation readme file will guide you through the entire process.

Special Update Instructions for users of vBStatus v4
This version of vBStatus was mostly written from scratch. Please note that there are two features that are missing from v5 that were present in v4: the ability of members of certain usergroups to modify the status updates of other users, and the ability for users to edit their status in a popup window. If you need those features, don't upgrade yet.

The upgrade process that I suggest is:

Import the new product xml file. Make sure that you check Allow Overwrite.
Remove all template code in templates: postbit, postbit_legacy, memberinfo, and header that is between <!--BEGIN VBSTATUS--> <!--END VBSTATUS--> tags.
Delete your current vbstatus folder and all of its contents.
Install vBStatus v5 as instructed in the installation instructions text file included with the modification.


Version 5.1


Support for non-english characters has been added.
A small modification was made to the installation script to make it more robust.

Upgrade Instructions: Reupload all files (allow overwrite), and reimport the product (allow overwrite). No additional template edits are required to for the upgrade.


Version 5.2


Users may press the Enter key to submit their status.

Upgrade Instructions: Reupload all files (allow overwrite). No additional template edits are required for this upgrade. You may reimport the included product, if you desire, to update the version number to 5.2

Version 5.3


Important security update to fix a cross site scripting exploit.

Upgrade Instructions: Reupload all files in the upload folder to your forum root, and allow overwrite. It is not necessary to re-import the product xml file.

Note: The files available in this thread will always be for the most recent version of the modification.

If you previously used vBStatus in vB 3.x your member's old status messages will be preserved.

Please do not forget to click INSTALL (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=243913)

Attilitus
06-04-2010, 02:03 AM
First post reserved. Please let me know immediately if there are any problems, so that I may resolve them within the first 24 hours of release.

dinodonk
06-04-2010, 02:39 AM
what is the difference with this mod
https://vborg.vbsupport.ru/showthread.php?t=243753

Attilitus
06-04-2010, 02:40 AM
what is the difference with this mod
https://vborg.vbsupport.ru/showthread.php?t=243753
They are not related, aside from the fact that they implement similar functionality. This modification is an upgrade of a modification for vB 3.7 that I developed about 2 years ago. You should judge the differences for yourself.

~Tim

Taurus1
06-04-2010, 05:37 AM
Works great! Thanks.

Temporarily Deactivated in v5: Admin Option: Allow defined usergroups to modify other user's status updates. (For moderation purposes)

Why?? That is something I think is very necessary!

Attilitus
06-04-2010, 05:45 AM
Works great! Thanks.

Temporarily Deactivated in v5: Admin Option: Allow defined usergroups to modify other user's status updates. (For moderation purposes)
Why?? That is something I think is very necessary!
Yes. I agree, but I would not use the adjective "very."

Right now a user's status message is never saved. A user only has a "current" status. If a user persistently uses his status messages inappropriately, then the user could be moved to a usergroup not allowed to use the modification. Otherwise, the user could be asked to change his status and, since status messages are never saved, that offending status message would be gone forever.

Regardless, the feature will be added before I put vBStatus back upon its back-burner. Since it is bad practice to allow any kind of user content without full means of moderating such content. The only reason it was not put into this version is because I developed this version overnight, and wanted to ensure that the features I did implement were implemented well.

~Tim

smnet
06-04-2010, 07:34 AM
Thanks for this Mod!

If only we could combine this mod and DBTech's. I love how DBTech's mod gives you a tab in the profile with a timeline of status updates. I love how this mod allows moderators and admins to edit inappropriate statuses (you need to enable this quick, right now it's the only benefit over the other MOD).

Could you and DBTech collobrate? I know DBTech has collaborated on mods before.

Just an idea.

EddyMaxx
06-04-2010, 02:04 PM
Thanks for this Mod!

If only we could combine this mod and DBTech's. I love how DBTech's mod gives you a tab in the profile with a timeline of status updates. I love how this mod allows moderators and admins to edit inappropriate statuses (you need to enable this quick, right now it's the only benefit over the other MOD).

Could you and DBTech collobrate? I know DBTech has collaborated on mods before.

Just an idea.

100% Agreed!!!

Attilitus
06-04-2010, 03:06 PM
smnet and EddyMaxx,

I don't believe there is anything to be gained through collaboration.

I will likely add a feed of a user's recent status messages if/when I implement a status history system. (If only for the reason that a user must have a centralized place to edit/delete their past status messages.) A profile tab might be the most appropriate place for such a feed, but there may be a better place for it.

~Tim

infnity8x3
06-05-2010, 03:21 AM
Looking forward to updates. I have tested v5 and the core code is better, it just lost some functionality.

Once the admin is able to edit status of other users again. I will update.

Thanks Dev.

FreshFroot
06-07-2010, 05:35 AM
I think a cool feature would be the one you mentioned, with the users status changes for X times.

Also, another neat feature would be to have a box on the forumhome. And, this box would state the latest status updates. This would not be just for 1 member, but say the last 10 status updates would show from all users.

infnity8x3
06-07-2010, 09:47 PM
-=[INSTALLED]=-

Thanks dev.

CharLzarD
06-15-2010, 03:44 AM
This is really nice. Thanks.

Is there anyway to change the text size? It's a little small for my preferences.

mmllc
06-23-2010, 05:44 AM
A conflict was detected in the bitfields. You cannot continue with the installation of this product until this has been fixed. The conflicts found were:

* Bitfield Collision: credits_cantearn = prefixrequired


Any ideas?

mmllc
06-23-2010, 06:02 AM
n/m, got it guys, unrelated issue to your plugin. really like it :-)

Brandon Sheley
07-04-2010, 05:12 AM
nice mod
is there anyway to pull our actual facebook status update into it?

MikesSite
07-07-2010, 01:57 PM
Dev,

I have been using v4 for a while and would like to upgrade to v5. Any idea when Admin will be able to edit status? Would also love a Status History as others suggested.

Thanks.

MikesSite
07-07-2010, 11:13 PM
Does NOT work. No matter what I set the status to it automatically changes the status to Username is "utf-8"

Forced to uninstall and revert back to v4.

Attilitus
07-08-2010, 05:42 PM
MikesSite,

If you provide me a link to your board, then I can tell you why you encountered problems with this version of the modification. (I am assuming that you followed the upgrade instructions, which stated that you must undo all template edits from the previous version of vBStatus before installing v5.)

Also, if your site is the same as that listed in your vBulletin profile, then I know the problem. That site uses the jQuery library which interferes with the operation of other Javascript libraries including Mootools, the library used in v5.

Although Mootools will almost never break another Javascript library, it can be broken by its less considerate peers. There is an easy way to prevent jQuery from breaking the operation of vBStatus. I will implement this change in the next version of the modification.

~Tim

Alfa1
07-09-2010, 01:31 AM
I just upgraded to version 5, and encounter the same problem. Can't edit status, due to jQuery.

Attilitus
07-12-2010, 12:35 AM
You can fix this yourself, if you desire. The easy fix is to go into file vbstatus_javascript, and do the following find and replace:

Find: $(
Replace: document.id(

That should fix your problem. If it doesn't, then let me know.

~Tim

Alfa1
07-12-2010, 01:43 PM
Thanks for your swift reply. There are 18 instances of '$(' in the file. All instances are part of various lines of code. I replaced all and uploaded the file but nothing changed.

Attilitus
07-12-2010, 03:10 PM
Alfa1,

What is your forum's Url? If the modification is currently installed, then I can visit and determine the problem.

~Tim

gorentals
07-13-2010, 03:10 PM
Good Mod, I could care less about history of status messages, who cares anyways? I don't see a purpose of a history of old status messages. That is why I'm not using dbtech's version. Anyways, the more important thing is to have the admin be able to edit members status messages incase situations arise when its needed.

infnity8x3
07-19-2010, 01:16 AM
I know it's unconventional, but if you absolutely have to change a members status you can do a query.

-=[Warning]=- Only try this if you are familiar with using sql queries in vbulletin. Noobs could cause serous damage to there forum messing around with queries -=[Warning]=-

I have tried this and it has worked for me.

READ!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
First things first make a backup of your database!

Then if you are using a prefix add it before "userfield" so if your forums sql prefix is "for" then it will be this "foruserfield" next replace the "X" with the new status you want to replace the old with, and then replace "Y" with the user id of the member who's status you want to change.
UPDATE userfield SET vbstatus_status = 'X' WHERE userid = 'Y';
So if you want to change admins status to WTF it would look like this.
UPDATE userfield SET vbstatus_status = 'WTF' WHERE userid = '1';



Alternatively you could just edit the fields using phpmyadmin.

manzak
07-20-2010, 08:31 AM
I did all the transactions without any problems, could not work. ):
None the problem of editing the template.
Playing with FTP file properties do not do?

Attilitus
07-22-2010, 10:45 PM
manzak,

If you give me your site's Url, then I can determine the problem.

~Tim

davidhso
07-23-2010, 03:24 AM
*fixed..works fine.
thank you

Attilitus
07-23-2010, 03:56 AM
davidhso,

If you give me your site's Url, then I can determine the problem.

~Tim

biggeorge
07-23-2010, 06:20 PM
Installed, but the status will not SAVE. The url is http://www.extremebusa.com/extreme

Any help will be appreciated.

biggeorge
07-25-2010, 11:57 AM
Still waiting for some assistance. I'd like to get this working.

Attilitus
07-25-2010, 11:00 PM
biggeorge,

It appears as though your Pager modification defines the following Javascript function: Browser(). This is overriding the Browser object in mootools. Simply replace all instances of Browser() with pager_Browser(), and vBStatus should work. You can view the problematic code by viewing your website, clicking view source, and searching for "Browser()".

~Tim

Konstantinos
07-27-2010, 08:54 AM
is it possible to display your friends status updates on usercp ? ;)

biggeorge
07-31-2010, 01:51 PM
biggeorge,

It appears as though your Pager modification defines the following Javascript function: Browser(). This is overriding the Browser object in mootools. Simply replace all instances of Browser() with pager_Browser(), and vBStatus should work. You can view the problematic code by viewing your website, clicking view source, and searching for "Browser()".

~Tim

In which template?

Attilitus
08-02-2010, 03:28 AM
In which template?

You will need to figure that out. Try searching for Browser() in the templates section of your admincp. Alternatively, you may try to do a template replacement replacing Browser() with pager_BrowserX() or something similar. Depending on how the Pager modification is coded, a template replacement may or may not work.

~Tim

hackerz5
08-05-2010, 08:08 PM
please check ur script again its vulnerable to XSS injection...

better code secured one ....

don't post anything like this without securing it....

biggeorge
08-06-2010, 05:00 PM
please check ur script again its vulnerable to XSS injection...

better code secured one ....

don't post anything like this without securing it....

Strong words... do share. :cool:

You will need to figure that out. Try searching for Browser() in the templates section of your admincp. Alternatively, you may try to do a template replacement replacing Browser() with pager_BrowserX() or something similar. Depending on how the Pager modification is coded, a template replacement may or may not work.

~Tim

Uninstalled.

jenderal_black
08-06-2010, 05:50 PM
This Mod work for me...thanks....

Attilitus
08-08-2010, 08:33 PM
please check ur script again its vulnerable to XSS injection...

better code secured one ....

don't post anything like this without securing it....

You are correct. The problem is now fixed in v6.

~Tim

Tyran1
08-08-2010, 08:35 PM
The best ist that : https://vborg.vbsupport.ru/showthread.php?t=243753

viper357
08-09-2010, 05:06 PM
Before I install this, can you tell me if there is any possibility we could remove the word "edit" and replace it with a small icon instead?

Attilitus
08-09-2010, 08:04 PM
Before I install this, can you tell me if there is any possibility we could remove the word "edit" and replace it with a small icon instead?
Sure, just replace the text "edit" with the icon image.

~Tim

Mark.B
08-10-2010, 06:38 PM
Have to say, I can't use this new version without an admin edit option.

Would it be possible to have a patch for the xss flaw in older versions?

Attilitus
08-11-2010, 05:51 AM
Have to say, I can't use this new version without an admin edit option.

Would it be possible to have a patch for the xss flaw in older versions?

There is no xss flaw in the older versions of vBStatus present in the vB 3.7 forum.

~Tim

Mark.B
08-12-2010, 09:51 PM
There is no xss flaw in the older versions of vBStatus present in the vB 3.7 forum.

~Tim
Thanks, I think that is what I am using, 3.0 I think.

My vote goes for an admin edit option though for this newer one...when/if you have time of course, I am quite ok using the older one. :) A very popular mod on my site this, thanks.

ibsk8r
08-12-2010, 11:57 PM
Hey, I have installed the product, but why clicking edit does nothing for me?

adreen
08-13-2010, 10:08 PM
same here
nothing happens when i clicked 'Edit'.
tested in chrome and opera.

gorentals
08-13-2010, 10:20 PM
I will install this once the admin can edit status messages. Seems like a good mod exactly what I'm looking for, but I need that option before I will let it lose on my forum. I could see a lot of abuse and not being able to do anything about it well, kinda sux.

Attilitus
08-14-2010, 10:20 PM
ibsk8r,

If you give me your forum url, then I will be able to diagnose your problem.

adreen,

It appears as though you have not downloaded any files from this thread. (I assume there is a reasonable explanation) In any case, if you give me your forum url, then I will be able to diagnose your problem.

~Tim

mikey1991
08-15-2010, 03:57 AM
How would I get a 'Status Feed' like they have on http://www.manlystuff.com/forum/index.php ?

Mo7mD.ZaYOnA
08-16-2010, 01:45 PM
nice mod it's great

but i can't write in it Arabic,,, resin Encoding

look like this


ظ?ط+ظ?ط?:(

mikey1991
08-23-2010, 09:13 AM
How would I get a 'Status Feed' like they have on http://www.manlystuff.com/forum/index.php ?

bump

Sadie Frost
08-28-2010, 05:31 PM
Hey, I have installed the product, but why clicking edit does nothing for me?
Make sure you make the template change to headinclude.

:)

Eryeal
08-29-2010, 04:15 PM
How would I get a 'Status Feed' like they have on http://www.manlystuff.com/forum/index.php ?

Good question - that's a great feature.

SVT242
10-15-2010, 03:32 AM
For some reason the status is not being saved. When you click edit and enter a given status (in english) then click save it appears to save but when the page is refreshed or if you go to another thread you see "utf-8" in place of the status... Any ideas? Here is a link to my site displaying the issue:

http://www.mustangforum.net/forum/testing-123/305-vbstatus-test-thread.html#post1849

SVT242
10-17-2010, 12:15 AM
ttt

viper357
10-20-2010, 11:54 AM
Does this have any effect on server load, queries?

Thanks.

yotsume
10-20-2010, 11:34 PM
I need the facebook statuses that are posted by all members to show in one central location like FBs wall.

Can we get the status of each member to display on a wall page PLEASE!

owner@SDU
11-03-2010, 12:47 PM
Question - displaying status updates on a CMPS.. any ideas how to ??

hazyeyes
11-22-2010, 12:48 AM
Hey dude, Nice edition to my board.

Thanks to the coder. INSTALLED :D

as-i-said
11-25-2010, 09:53 AM
working fine here (www.bikerbabble.com)

'thanks to you' atty:)

haytham
11-26-2010, 03:50 AM
Working fine on 3.8.5. Installed. I think it just needs a little more color or a pic maybe. I need it to look more lively.

haytham
11-26-2010, 09:37 AM
It's showing under user name so why say again " member name then the status" ? It looks odd now. Like "Tom Tom is chatting with a friend". How can I fix this?

snowlion
11-27-2010, 01:32 AM
Did you follow this instruction?

===postbit_legacy and postbit===
find: <if condition="$post['usertitle']">


Find and delete duplicate $post[username]

haytham
11-27-2010, 06:15 AM
Did you follow this instruction?


Find and delete duplicate $post[username]

Thank you. Worked.

jscieza
12-10-2010, 02:29 PM
There is an issue with spanish characters.

This is the status that I'm typing: http://img580.imageshack.us/img580/8544/step1gs.png
And this is what I get after clicking "Save": http://img443.imageshack.us/img443/3856/step2j.png
However it displays correctly after reloading the page: http://img842.imageshack.us/img842/4850/step3g.png

How I can fix that behavior?

Thank you,
Jonathan

Jhonnyf
12-10-2010, 08:45 PM
There is an issue with spanish characters.

This is the status that I'm typing: http://img580.imageshack.us/img580/8544/step1gs.png
And this is what I get after clicking "Save": http://img443.imageshack.us/img443/3856/step2j.png
However it displays correctly after reloading the page: http://img842.imageshack.us/img842/4850/step3g.png

How I can fix that behavior?

Thank you,
Jonathan
apply htmlentities (http://php.net/manual/es/function.htmlentities.php) when return the results via AJAX

jscieza
12-11-2010, 02:32 AM
Hi Jhonnyf and thanks for your kind suggestion.

Unfortunately I'm not a programmer so I don't know what are you talking about but I'm pretty sure that the developer of this mod will take in account your hint in order to fix this issue.

Jhonnyf
12-11-2010, 11:28 AM
Hi Jhonnyf and thanks for your kind suggestion.

Unfortunately I'm not a programmer so I don't know what are you talking about but I'm pretty sure that the developer of this mod will take in account your hint in order to fix this issue.
Open /vbstatus/vbstatus_class.php

find
$status = $this->process_status($status);

and add after that
$return->updated_status = utf8_decode($return->updated_status);


utf8_decode is more convenient than htmlentities at this point

jscieza
12-11-2010, 01:20 PM
It worked like a charm. Thanks Jhonnyf!

Blueracer66
12-20-2010, 11:25 PM
I Installed this on vBulletin 3.8.6 Patch Level 1 and seems to be working fine. I also Nominated it! Thanks for sharing this!

rabster
01-01-2011, 12:23 AM
installed on my forum, could do with the status edit button for mods & admin is this a possible change yet ?

Andrew

career
01-09-2011, 11:10 AM
Is it possible to use jquery instead of mootools.js? I don't use mootools.
And "status edit button for mods & admin" it's good idea.

Thanks.

viper357
01-09-2011, 02:06 PM
Is it possible to use jquery instead of mootools.js? I don't use mootools.
+1

I had to uninstall this mod as mootools seemed to interfere with some other mods I had using javascript/jquery.

career
01-10-2011, 12:43 PM
+1

I had to uninstall this mod as mootools seemed to interfere with some other mods I had using javascript/jquery.

I just don't want to include this script because of it's weight. Over 100 Kb more per page.

jscieza
01-17-2011, 04:05 PM
There is an option called "Maximum characters in Status Updates". It is currently set to 140 and it works in a bad way because I'm allowed to enter more than 140 characters in the status box and when I click "Save" instead of rejecting the status and display an error message like this: "You can only enter $max_chars per status" it is saving the error message as the new status of the member.

I have tried to fix this by chaning this in file 'vbstatus/vbstatus_class.php':

if($charcount>$vbulletin->options['vbstatus_maxchars'])
{
return '[Too Long]';
}


To:

die("my own error message");
print "my own error message";
eval(standard_error("my own error message"));


And none of these three ways was successful. The user isn't getting the error message.

Any ideas?

EDIT: I got an idea! When you're creating a new thread and you didn't enter anything in the title box, you get a popup error message. I believe that a popup will work here too! But I have no idea of how to display a popup error message. Please help!

Thank you,
Jonathan

jscieza
01-24-2011, 01:41 PM
How I can enable this setting?

Administrator Usergroups (INACTIVE)

jscieza
01-24-2011, 01:58 PM
Also I wish you could remove the dependency of mootools.js

Feanor_87
02-07-2011, 05:36 AM
How I can enable this setting?

Administrator Usergroups (INACTIVE)
Anybody know how to enable the above?

It was working in the version prior to this one...

DarkGizmo
02-13-2011, 03:46 PM
I just installed your plugin, i'm using a skin called Grunged, however, I can't edit my status, I did all the updates to the templates, but the Edit button doesn't pop open a textbox to edit the status, it does nothing when you click on the Edit link.....any ideas? :D

SamirDarji
02-14-2011, 07:06 AM
Noting to research later. Awesome to see a specific version for 3.8. :)

vijayninel
02-15-2011, 05:05 AM
This mod is really great. My forum members love it. Thank you very much. :D

SamirDarji
03-01-2011, 06:10 PM
How can the admin option be turned on? Or what would be necessary to get this functionality? Downgrade? I'm on 3.8.6 pl1.

SamirDarji
03-02-2011, 07:38 PM
Alternatively you could just edit the fields using phpmyadmin.This is what I did. Pain in the butt to do it this way though.

iimp
04-04-2011, 02:04 PM
Sorry it's a month bump but i cannot seem to get this to work. Well it works just when i press save or enter it saves but the editable text field doesn't go away.

http://thelobby.info is where it is at :/.

Artes_Marciales
04-11-2011, 06:26 PM
Great Mod!!

Levi75
04-13-2011, 06:55 AM
why letters like á é í ó ú are represented like á .

ricardoNJ
04-30-2011, 02:27 AM
I can not see "save" status.

ricardoNJ
04-30-2011, 02:46 AM
Thanks!

silvermerc
08-27-2011, 02:40 PM
Will a status update for all users be braught into this or not?
Ross

SamirDarji
08-28-2011, 03:06 AM
What do you mean? :confused:

Blueracer66
09-02-2012, 10:27 AM
Just to let you know, version number didn't update from 5.2 to 5.3. :)

ChiNa
09-07-2012, 01:41 PM
Uninstalled again: Does not work on vB 3.8.7 ! When click on EDIT, Nothing happends, think JAVASCRIPT problems,,,, It would be great if there was a fix...

Thanks for such an amazing Idea, but because I know this has been working for some, at least the developer should at least answer all the questions on here..

This is the line, which I think have some problems:<a href="javascript:vbstatus_change_status('status_postbit_ id_$post[postid]','$post[userid]','vbstatus_input_postbit_id_$post[postid]','vbstatus_editbox_postbit_id_$post[postid]','vbstatus_statusbox_postbit_id_$post[postid]')">Edit</a>'

Hope it will get fixed, and hopefully soon..

Blueracer66
09-07-2012, 02:36 PM
Uninstalled again: Does not work on vB 3.8.7 ! When click on EDIT, Nothing happends, think JAVASCRIPT problems,,,, It would be great if there was a fix...

Thanks for such an amazing Idea, but because I know this has been working for some, at least the developer should at least answer all the questions on here..

This is the line, which I think have some problems:<a href="javascript:vbstatus_change_status('status_postbit_ id_$post[postid]','$post[userid]','vbstatus_input_postbit_id_$post[postid]','vbstatus_editbox_postbit_id_$post[postid]','vbstatus_statusbox_postbit_id_$post[postid]')">Edit</a>'

Hope it will get fixed, and hopefully soon..

Hmmm.... It works on my end.

SamirDarji
09-08-2012, 01:41 AM
Works for me too. :confused:

Have you recently made any changes on your board? Upgrade, new plugins, etc?

YankForum
10-27-2012, 09:42 AM
and how to edit some impolite user's status by admin account ?

imported_silkroad
10-28-2012, 02:03 PM
Serious problems with this plugin if admins and mods cannot enforce rules and delete spam by editing status messages. We temporarily mitigated this by limiting changes to members with > 10 posts.

Hey Attilitus (https://vborg.vbsupport.ru/member.php?u=79600)!

Can you please tell us how to get the moderation code working? Did you ever get it working? We looked and it was not obvious how to fix this and make it so we can moderate it properly.

Please.

Thank you.

www.unix.com (http://www.unix.com)

PS: Also, where do we change the width of the edit / input box for when we update a status message? Thanks!

ye22
12-14-2013, 09:33 PM
i am sorry for bumping this old thread but.., i still didn't mange to give admins the ability to edit other users status..
if anyone did mange to do that.., Please share it with us!

----------------Edit----------------
i manged to replace the :
<if condition="$userinfo['userid']==$vbulletin->userinfo['userid']">
with :
<if condition="($post['userid']==$vbulletin->userinfo['userid']) OR ($bbuserinfo[usergroupid]==6)">
to make admins able to see the "Edit" and "Save" buttons.., However, If they edited anyuser it would be changed to them.
Example (As an admin) .. :
if i changed my status to : "Is good." and saved it.. every thing is fine.
but when i want to change someone's else status.. Like from "has no status." to "Is fine." (or anything else..)
That user's(which i changed his status) Only appears(his status) as i changed it to. (The "Is fine." status) until i reload the page.. then his status changes to "has no status." and my status changes to "Is fine." (As if i edited my own status!)
So.., is there anyfix for this?
i think that it is aproblem in the "vbstatus_class.php" file.. :
<?php
require_once('JSON.php');

if(!function_exists ( 'iconv' )){
function iconv($string){
return $string;
}
}

class att_object{
function att_object(){
}
}
class vbstatus_class{
function vbstatus_class()
{
global $att;
global $data;
$this->att = $att;
$this->data = $data;
$this->JSON = new JSON;
}
function process_status($status,$change_encoding=True)
{
global $vbulletin;
if($change_encoding){
$status = iconv('utf-8',$vbulletin->options['vbstatus_charset'],$status);
}

$charcount=strlen ($status);
if($vbulletin->options['vbstatus_maxchars'])
{
if($charcount>$vbulletin->options['vbstatus_maxchars'])
{
return '[Too Long]';
}
}
if($vbulletin->options['vbstatus_wordwrap'])
{
$status=wordwrap($status, $vbulletin->options['vbstatus_wordwrap'], "\n", true);
}
return $status;
}
function change_status($userid,$status)
{
$this->att->required($userid);
$return = new att_object();
$return->updated_status = $this->process_status($status,False);

$status = $this->process_status($status);

//$this->att->required($status);

$this->data->set('user');
$this->data->select('*');
$this->data->where('userid',$userid);
$userinfo = $this->data->execute('select1');
$this->att->required($userinfo);

$this->data->set('userfield');
$this->data->update('vbstatus_status',$status);
$this->data->where('userid',$userinfo['userid']);
$this->data->execute('update');

return $this->JSON->serialize($return);
}


}

?>

However.., i am not sure.. :/
Thanks in advanced.

fxdigi-cash
06-24-2014, 12:23 PM
tried this mod, but didn't work on vb3.8

however, I made other version work on vb.3.8 this version:

https://vborg.vbsupport.ru/showthread.php?t=181283

imported_silkroad
06-18-2017, 01:09 PM
Hmmm.

FYI: vBStatus recently stopped working in our forums.

By "stop working" I mean that users (or admins) cannot edit status messages.

Has anyone else experienced this problem?

www.unix.com (http://www.unix.com)

SamirDarji
06-19-2017, 09:57 AM
I just checked my site and have noticed the same thing. :(

I haven't checked on my site yet, but I'm wondering if a php update or something else server-side broke it. I know I haven't changed anything on my site or added/removed any plugins/hacks. Check yours and see if you can find the root cause.

imported_silkroad
06-20-2017, 04:29 AM
We reinstalled, etc.... but the plugin did not work; so we disabled.

It's a shame, as our users liked this plugin a lot.

Seems like an AJAX problem to me.