vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Away message for users (https://vborg.vbsupport.ru/showthread.php?t=33099)

carpman 08-07-2002 07:48 AM

Hello, need a lillte clarification on this hack.

I have $onlinestatus in postbit template which show

Online
or
Offline

If i install this hack can i get it to change 'offline' to 'away' if user sets themselves as being 'away'.

Would look silly having 'offline' and 'away' message.

cheers

Boofo 08-07-2002 08:02 AM

When you install the hack, it adds it to the functions.php so it will show the away message accordingly in the postbit. :)

[QUOTE]Originally posted by carpman
Hello, need a lillte clarification on this hack.

I have $onlinestatus in postbit template which show

Online
or
Offline

If i install this hack can i get it to change 'offline' to 'away' if user sets themselves as being 'away'.

Would look silly having 'offline' and 'away' message.


cheers

PhoenixBB 08-12-2002 08:46 AM

I'm using 2.2.6 and I can't get it working. I keep getting a parse error in Usercp.php line 382. Line 382 is just ?>

There is code differences to that in the installer script. Dunno if that is causing the problem. The code is actually

if ($buddy['lastactivity'] > $datecut and !$buddy['invisible'] and $buddy['lastvisit'] != $buddy['lastactivity']) {
$onoff="on";
} else {
$onoff="off";
}

As there was no mention of userid==6 stuff I left that out.

I've spent 2 days trying to suss it to no avail. I thought installing the weather hack and vbpad might have been more difficult but they went smoothly compared to this. :(

Anyone know why I'm getting that parse error?

ZiRu$ 08-14-2002 04:27 AM

can i get a TEXT installation for version 1.2.........thx

Boofo 08-14-2002 04:33 AM

https://vborg.vbsupport.ru/showthrea...017#post257017

[QUOTE]Originally posted by ZiRu$
can i get a TEXT installation for version 1.2.........thx

ZiRu$ 08-14-2002 04:50 PM

thx man

Boofo 08-14-2002 04:56 PM

You're very welcome there, sir. ;)

marc49 08-14-2002 07:58 PM

ok, this thread is 20 pages long so maybe this has been answered already but I am getting this error

Quote:

Database error in vBulletin Control Panel 2.2.5:

Invalid SQL: SELECT *,FROM_UNIXTIME(joindate) AS joindate,FROM_UNIXTIME(lastvisit) AS lastvisit,FROM_UNIXTIME(lastactivity) AS lastactivity,FROM_UNIXTIME(lastpost) AS lastpost,FROM_UNIXTIME(awaydate) AS awaydate


avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar
FROM user
LEFT JOIN avatar ON avatar.avatarid=user.avatarid
LEFT JOIN customavatar ON customavatar.userid=user.userid
WHERE user.userid=103
mysql error: You have an error in your SQL syntax near 'avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar
' at line 4

mysql error number: 1064

Date: Wednesday 14th of August 2002 02:53:11 PM
Script: http://www.mysite.com/admin/user.php...dit&userid=103
Referer: mysite.com/admin/user.php
I am running 2.2.5


*EDIT*

Never mind, I started looking through the pages while I was waiting for a reply and I think I got it fixed.

Boofo 08-14-2002 08:59 PM

I think you need a comma after FROM_UNIXTIME(awaydate) AS awaydate like this:

FROM_UNIXTIME(awaydate) AS awaydate,

|DarkManX| 08-15-2002 06:46 PM

how can i put the away icon in the sig??


All times are GMT. The time now is 12:44 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.01828 seconds
  • Memory Usage 1,737KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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