PDA

View Full Version : Mini Mods - Simple Status Mod v1.0


javolin14
01-23-2009, 10:00 PM
This is a simple status mod that does not require very much modifying knowledge.
*I know there are other mods that do this, but I have had issues with setting them up so I setup a small status mod for us "not too knowledgeable" people.

Details:
Allows users to edit their current status of what they're doing at the moment.

How to use:
Simply go to your profile edit and update your "Current Status" field and click Save.
*Also you can click the "Update" button in any of your posts which will take you to the edit of your current status.

Installation instructions:

1. Admin CP> User Profile Fields> Add user profile field type single line text: Current Status
to make it clearer for users to pick out input following into TITLE field <font color="#000000" size="3"><b>Current Status</b></font>
2. Set field display order to "0" (zero)
3. Admin CP> Styles & Templates> Style Manager> Edit templates of your style
Edit POSTBIT Search for in postbit: <if condition="$post['usertitle']">
Above paste:
<!------//BEGIN STATUS------>
<!------//BEGIN STATUS------>
<!------//BEGIN STATUS------>
<if condition="$post['field22']">
<div class=smallfont>
$userinfo[username] is $post[field22]
[<a href="profile.php?do=editprofile">Update</a>]

<else />
has not yet set status [<a href="profile.php?do=editprofile">Update</a>]
</div>
</if>

<!------///END STATUS------->
<!------///END STATUS------->
<!------///END STATUS------->
4. Save.


If you have any questions I can support this.
If you have any suggestions on how to improve please by all means give your opinion.

Sweeks
01-23-2009, 11:27 PM
Shame it uses profile fields but great work :)
________
Cheapest vaporizer (http://vaporizer.org/reviews)

javolin14
01-23-2009, 11:30 PM
Yeah, I noticed though that if the user goes to the profile you have the option to "inline" edit a profile field. I'm trying to figure out how to take that inline edit ability and incorporate it into postbit so far I've tried a bunch and can't seem to figure it out, but when I do i'll update this mod.

Sweeks
01-23-2009, 11:44 PM
Great. The other mod was a right mess on to get working for me. I only had it working once for a short while and then it just stopped working suddenly.
________
CREAMPIE FEST (http://www.++++tube.com/video/11618/lyla-takes-five-guys-in-creampie-fest)

Hornstar
01-24-2009, 01:54 AM
this has potential, but it would be good if this displays it in many areas like profile, navbar, postbit, and anywhere else good.

It would also be good if there were usergroup options with which usergroups could use it.

javolin14
01-24-2009, 05:39 AM
Not bad ideas, Pretty much the code can be called from using the $post[field22] vb command. Just need to search navbar in breadcrumbs and then the MAINPROFILE and add it.

Kiros72
01-24-2009, 08:06 AM
I haven't taken a look at the postbit template in a long while, but I just saw this and I've gotta wonder if it's really correct. I'm sure that it works properly, but should it really be this?

<if condition="$post['field22']">
<div class=smallfont>
$userinfo[username] is $post[field22]
[<a href="profile.php?do=editprofile">Update</a>]

<else />
has not yet set status [<a href="profile.php?do=editprofile">Update</a>]
</div>
</if>


I was thinking that it might work better like this:

<div class="smallfont">
<if condition="$post['fieldx']">
is $post[fieldx]
<else />
has not yet set status
</if>
[<a href="profile.php?do=editprofile">Update</a>]
</div>

(... where 'fieldx' is the correct field, like 'field22')

I haven't tested this, but I think it's correct.

sinucello
01-24-2009, 01:00 PM
Hi,

would be cool if this mod could use the Twitter API:
http://apiwiki.twitter.com/
to receive the vB status from a Twitter account.

Facebook, Skype, Xing everybody does it.

all the best,
Sacha

tiekie
01-24-2009, 01:32 PM
Cool dude

javolin14
01-24-2009, 02:50 PM
I haven't taken a look at the postbit template in a long while, but I just saw this and I've gotta wonder if it's really correct. I'm sure that it works properly, but should it really be this?

<if condition="$post['field22']">
<div class=smallfont>
$userinfo[username] is $post[field22]
[<a href="profile.php?do=editprofile">Update</a>]

<else />
has not yet set status [<a href="profile.php?do=editprofile">Update</a>]
</div>
</if>


I was thinking that it might work better like this:

<div class="smallfont">
<if condition="$post['fieldx']">
is $post[fieldx]
<else />
has not yet set status
</if>
[<a href="profile.php?do=editprofile">Update</a>]
</div>

(... where 'fieldx' is the correct field, like 'field22')

I haven't tested this, but I think it's correct.

Pretty much works the same, i've moved the coding around like you had it, and it doesn't change anything other than the "div class=smallfont" it doesn't work before the <if so either way works. And yes the "field22" will change it would be for anyone else "fieldx" where x is the field # I guess I assumed everyone would understand. But thanks!

mindfawk
02-15-2009, 01:11 PM
Is there a way this could be placed in the header bit thingy as well? You know where it shows;

Welcome, mindfawk.
You last visited: Today at 12:42 AM
has not yet set status [Update]
Private Messages: Unread 0, Total 10.

mindfawk
02-16-2009, 11:08 PM
Bumping

jlew24asu
02-17-2009, 12:35 AM
how is this different from the facebook status mod