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)

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


All times are GMT. The time now is 08:58 AM.

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.01214 seconds
  • Memory Usage 1,744KB
  • 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
  • (5)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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