vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   SR Away/Status Hack 1.0.0 (https://vborg.vbsupport.ru/showthread.php?t=113626)

ForYou 04-21-2006 01:56 PM

Hello ,

Can the users add they status , I mean the user write what will show in member profile and postbi ,

Regards

Kihon Kata 04-21-2006 02:50 PM

A few additions that I would like to see for future upgrades on this would be:
  • Ability for admins to EDIT user's status from ACP
  • Ability for admins to LOCK user's status from ACP
  • Usergroup permissions
  • Ability for use custom status

Tyegurl 04-21-2006 02:54 PM

isn't the text box area or custom status? the drop down part i mean....above the submit? can't you customize there?

Kihon Kata 04-21-2006 02:56 PM

Quote:

Originally Posted by Tyegurl
isn't the text box area or custom status? the drop down part i mean....above the submit? can't you customize there?

Yes, but that is only for the mouse hovering over the link.

theodonnells 04-21-2006 03:26 PM

When a user changes their status, it is logging the user off.also seems to be hanging a bit while opening forums/misc.php.

Gio~Logist 04-21-2006 04:10 PM

The ability for users to enter their own status is just a matter of you changing the drop down to something like
Code:

<input type="text" size="45" maxlength="MAXIMUM LIMIT HERE" name="status">
As for the vbadvanced, like i said, it will be looked into. However, it's hard to make something hoping that it will be compatible with all hacks on your site till you figure out why it won't be compatible with the hack in the first place. Global.php is called in all files and that's where the plugin is. Therefore, i do not see why this problem occurs. However, it will be looked into.

If you are having a problem searching for $vbphrase[posts]: $post[posts] <br> then just search for $vbphrase[posts]: $post[posts] and place it after the next <br> or </div>

If your users are getting logged off after filling this out, it may be a problem with your misc.php or cookie settings.

Kihon Kata 04-21-2006 04:36 PM

if a user selected a status then the admin decided to change the name of the status, it still shows the old name. How can one update this?

Bandit8007 04-21-2006 04:50 PM

Awesome hack. Worked perfect. Thanks!

kall 04-21-2006 06:03 PM

Is there a 'Maximum Length of Input' setting?

Or, how do you get around people who might type some horrendously long entry?

*edit* Ahh, I see a post on this page... any reason why that is not in the vbulletin options for the hack?

apdcanari 04-21-2006 06:09 PM

It's possible to show in "whosonlinebit" ?

Gio~Logist 04-21-2006 06:36 PM

Quote:

Originally Posted by kall
Is there a 'Maximum Length of Input' setting?

Or, how do you get around people who might type some horrendously long entry?

*edit* Ahh, I see a post on this page... any reason why that is not in the vbulletin options for the hack?

I believe that the limit for the status is about 200 characters, and the limit for the message is about 250 (in the database, this is hot much can be stored).

Gio~Logist 04-21-2006 06:42 PM

Quote:

Originally Posted by apdcanari
It's possible to show in "whosonlinebit" ?

Not at the moment, as it would need to be added to the query, which would require another plugin or perhaps code modification.


Also, don't forget to click install!

criscokid 04-21-2006 06:43 PM

It would be cool if their status showed up on the "who's online" page.

Gio~Logist 04-21-2006 06:53 PM

Quote:

Originally Posted by criscokid
It would be cool if their status showed up on the "who's online" page.

Try editing online.php and changing:
Code:

$allusers = $db->query_read("
        SELECT user.username, session.useragent, session.location, session.lastactivity, user.userid, user.options, session.host, session.badlocation, session.incalendar, user.aim, user.icq, user.msn, user.yahoo, user.skype,

To this:
Code:

$allusers = $db->query_read("
        SELECT user.username, session.useragent, session.location, session.lastactivity, user.userid, user.options, session.host, session.badlocation, session.incalendar, user.aim, user.icq, user.msn, user.yahoo, user.skype, user.sr_away_status, user.sr_away_message,

Then chang the whosonlinebit template

Add:
Code:

        <if condition="$vboptions[sr_away_onoff]">
                <div>
                        $vbphrase[sr_away_status]: <a href="#" title="$userinfo[sr_away_message]">$userinfo[sr_away_status]</a>
                </div>
        </if>

After:
Code:

$userinfo[musername]

MissKalunji 04-21-2006 07:26 PM

Can someone tell me how many queries does this adds?

Gio~Logist 04-21-2006 07:38 PM

Quote:

Originally Posted by MissKalunji
Can someone tell me how many queries does this adds?

None.

Gio~Logist 04-21-2006 07:38 PM

Quote:

Originally Posted by Mike-D
Gee, that's a nice hack. Exactly what we can need in our forum. Thank you for this great hack, Giovanni https://vborg.vbsupport.ru/
BTW: May I translate your hack in German ? -Mike

MikeD clicked Install

I belive someone already did this.
http://www.vbhacks-germany.com/forum...ead.php?t=3814

PabloAM 04-21-2006 07:40 PM

Quote:

Originally Posted by gio~logist
The ability for users to enter their own status is just a matter of you changing the drop down to something like
Code:

<input type="text" size="45" maxlength="MAXIMUM LIMIT HERE" name="status">
As for the vbadvanced, like i said, it will be looked into. However, it's hard to make something hoping that it will be compatible with all hacks on your site till you figure out why it won't be compatible with the hack in the first place. Global.php is called in all files and that's where the plugin is. Therefore, i do not see why this problem occurs. However, it will be looked into.

If you are having a problem searching for $vbphrase[posts]: $post[posts] <br> then just search for $vbphrase[posts]: $post[posts] and place it after the next <br> or </div>

If your users are getting logged off after filling this out, it may be a problem with your misc.php or cookie settings.

OKI, When you know like fixing the problem. please reporte me.

Sorry by my english :(

Kihon Kata 04-21-2006 10:27 PM

I'll ask this again:

if a user selected a status then the admin decided to change the name of the status, it still shows the old name. How can one update this?

MissKalunji 04-21-2006 10:55 PM

Quote:

Originally Posted by gio~logist
None.

thanks

NR Fatal 04-22-2006 12:18 AM

Gio, that link worked me, I made all the edits and such. Now I have another problem, well, I have Vbadvanced so you know the problem but i'll give ya a screenshot to see the problem. The drop down menu is empty, I've set up a few options in the admincp for it. what do ya think?

Gio~Logist 04-22-2006 01:19 AM

Quote:

Originally Posted by Kihon Kata
I'll ask this again:

if a user selected a status then the admin decided to change the name of the status, it still shows the old name. How can one update this?

Nothing can be done for this, unless you manually run an update query like
Code:

$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user
                                                SET sr_away_status = 'what you want here'
                                                WHERE sr_away_status = 'what it used to be'
                                                ");


Gio~Logist 04-22-2006 01:21 AM

Quote:

Originally Posted by NR Fatal
Gio, that link worked me, I made all the edits and such. Now I have another problem, well, I have Vbadvanced so you know the problem but i'll give ya a screenshot to see the problem. The drop down menu is empty, I've set up a few options in the admincp for it. what do ya think?

Yes, that's a problem with vbadvanced itself. I am still looking for the solution. Like i said before, hacks are made to be compatible with vbulletin itself. I can't always consider what hacks you may have installed. Even so, this hack effects global.php which is pulled in every file on your site. Therefore, theoretically, it should work. However, this will be looked into, and i will try my best to make it vba compatible (as i have vba on my site as well).

zane99 04-22-2006 11:00 AM

Quote:

Originally Posted by zane99
OK everything works fine but it doesnt show up in postbit

i tried finding $vbphrase[posts]: $post[posts] <br>

but couldnt but i found $vbphrase[posts]: $post[posts]

so i tried adding the code under there but nothing.

Help Please

can no1 help?:surprised:

PabloAM 04-22-2006 11:20 AM

Quote:

Originally Posted by gio~logist
Yes, that's a problem with vbadvanced itself. I am still looking for the solution. Like i said before, hacks are made to be compatible with vbulletin itself. I can't always consider what hacks you may have installed. Even so, this hack effects global.php which is pulled in every file on your site. Therefore, theoretically, it should work. However, this will be looked into, and i will try my best to make it vba compatible (as i have vba on my site as well).

You are the master, You will fix, sure ;)

NR Fatal 04-22-2006 09:43 PM

Quote:

Originally Posted by zane99
can no1 help?:surprised:

u said you found
PHP Code:

$vbphrase[posts]: $post[posts

you have to add it AFTER the </div> tag

like this
PHP Code:

$vbphrase[posts]: $post[posts]
        </
div>
<if 
condition="$post[sr_away_status] != 'none'">
<if 
condition="$vboptions[sr_away_onoff]">
        <
div>
            
$vbphrase[sr_away_status]: <a href="#" title="$post[sr_away_message]">$post[sr_away_status]</a>
    </if>
</if>                    
</
div


NR Fatal 04-22-2006 09:44 PM

Quote:

Originally Posted by gio~logist
Yes, that's a problem with vbadvanced itself. I am still looking for the solution. Like i said before, hacks are made to be compatible with vbulletin itself. I can't always consider what hacks you may have installed. Even so, this hack effects global.php which is pulled in every file on your site. Therefore, theoretically, it should work. However, this will be looked into, and i will try my best to make it vba compatible (as i have vba on my site as well).

No doubt man, i'm sure you'll get it :)

zane99 04-23-2006 12:56 PM

Quote:

Originally Posted by NR Fatal
u said you found
PHP Code:

$vbphrase[posts]: $post[posts

you have to add it AFTER the </div> tag

like this
PHP Code:

$vbphrase[posts]: $post[posts]
        </
div>
<if 
condition="$post[sr_away_status] != 'none'">
<if 
condition="$vboptions[sr_away_onoff]">
        <
div>
            
$vbphrase[sr_away_status]: <a href="#" title="$post[sr_away_message]">$post[sr_away_status]</a>
    </if>
</if>                    
</
div




OK this is wat my code looks like as i have a few other postbit add ons too...

$vbphrase[posts]: $post[posts]

Code:

<if condition="$post[field5] != ''"><div>
                                        Country: <img src="images/flags/$post[fieldX].gif" title="$post[fieldX]" align="center">
                                </div></if>
| <if condition="$bbuserinfo['usergroupid'] == '6'"><a href="ushop.php?do=a&aid=9&username=$post[username]" target="_blank">$vbphrase[ucs_points]</a><else />$vbphrase[ucs_points]</if>: $post[points] (<a href="ushop.php?do=a&aid=1&username=$post[username]" target="_blank">Donate</a>)
                                        </div>

                                        <if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower] </if><div>$post[reputationdisplay]</div></if>


                                        <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
                                </div>


Now then ive tried adding the
Code:

<if condition="$vboptions[sr_away_onoff]">
                <div>
                        $vbphrase[sr_away_status]: <a href="#" title="$post[sr_away_message]">$post[sr_away_status]</a>
                </div>
        </if>

in a few places in there but nothing....

redlabour 06-01-2006 08:49 PM

Thx - great Hack ! ;)

Lady Divus 06-01-2006 10:41 PM

Very Nice Hack. I installed it and it works perfectly. Thank you for sharing -

Lady Divus *Clicks Install*

redlabour 06-08-2006 04:08 PM

Will it work in the Future with vBulletin 3.6 ?

Lqd 06-09-2006 02:17 AM

Nice hack, installed!

Maybe a nice idea to add: rel="nofollow"
to the postbit link?

Lqd 06-09-2006 03:02 PM

Once I change this:

<input type="text" size="21" maxlength="21" name="status">

The dropdown menu loses functionality. Any idea's why?

Pamela 06-16-2006 06:16 AM

*clicks install*

Works great! Thanks!!! :banana:

futuredood 06-28-2006 04:09 PM

wow great.. gonna try out user custom status, would be great.

akanevsky 06-28-2006 04:14 PM

Nice hack.

futuredood 06-29-2006 01:26 AM

is their any way to get this working in their memberinfo or usercp?

Eq4bits 06-29-2006 09:50 PM

Zane
You may have to make the edit(s) to the postbit_legacy template

Eq4bits 06-29-2006 09:55 PM

gio~logist:
I tried the 'whosonline' code changes you posted in post #54 (editing online.php & template edit for whosonlinebits) but didn't add the status under the usersname in whos online table... just added the word 'Status' below User Name and above the sort button in the thead/gradient.

is there a way to add the word 'Message' above the textarea that is below the dropdown? am assuming that's where one inputs further explaination that shows up as 'Message' in the userprofile....

htscpl 07-03-2006 11:31 AM

Great mod, *** clicks install ***


(edit) Found I have a small problem... when setting status the forum home page refreshes and it looks like I've been signed out ? I can refresh again or change pages and everything is alright. Any idea as to the cause of this ? It is not a big deal for me but may confuse some of my members.

Henry


All times are GMT. The time now is 01:32 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01460 seconds
  • Memory Usage 1,853KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (9)bbcode_code_printable
  • (4)bbcode_php_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete