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)

mADmAX` 12-13-2001 06:50 AM

It is checked, but is not working for me...

KuraFire 12-13-2001 07:17 AM

Thanks Bira, I'm gonna add the admin bit to the hack, great work, I'll let ya know if someone goes wrong, if not, then I'll be very silently and very happy :)

Thanks a lot for a great hack! ^_^

Tarion 12-13-2001 09:45 AM

an exelent hack, bira wonderfull work :)

Nemesis77 12-13-2001 09:45 PM

[QUOTE]mADmAX & Nemesis77: Go to the Admin Control Panel -> Options -> Forum Home Page Options, and select 'yes' for 'Display logged in users on home page'

bira 12-13-2001 09:48 PM

Maybe someone else will be able to tell you what should be checked. I don't use this option at all in postbit on my BB, so I don't know how to help you, sorry :o

Sadie Frost 12-14-2001 01:50 AM

Hiya - great hack! It's only my second one, but it worked like a charm :)

Could someone please help me with a very stupid question - how do I add members' away status to what's displayed under the avatar?

:)

Shane 12-14-2001 06:05 AM

"Excellent..."... Mongomery Burns

Tarion 12-14-2001 08:20 AM

Bira: how can I get a complet list of the members who has marked as away??? like the staff list or in the memberlist with an extra link in the navbar.

Can you explane me how can i do that!

THX for this great hack.

Lesane 12-14-2001 09:18 AM

[QUOTE]Originally posted by TheComputerGuy
I get this
Database error in vBulletin 2.2.0:

Invalid SQL: UPDATE user SET birthday='0',signature='',customtitle='0',usertitl e='Administrator',email='chrisdildy@hotmail.com',p arentemail='',coppauser='0',homepage='',icq='',aim ='',yahoo='',usergroupid='6' WHERE userid='1', ,away='1',awaydate='1008201008',returndate='01-12-13',awayreason='Testing this old thing out :)' WHERE userid='1'
mysql error: You have an error in your SQL syntax near ' ,away='1',awaydate='1008201008',returndate='01-12-13',awayreason='Testing this ' at line 1

mysql error number: 1064

Date: Wednesday 12th of December 2001 06:50:08 PM
Script: http://www.webmafiaforums.com/***/***/member.php
Referer: http://www.webmafiaforums.com/****/m...on=editprofile



when I mark myself away in the admin cp it works great..but the usercp.com or it is the memeber.php that I get this error when I hit submit...

bira 12-14-2001 11:21 AM

No lesane. It won't work.

He placed the Away SQL part AFTER the 'WHERE'. It will never work.

The instructions were to find a line like (cut for shortness):

$DB_site->query("UPDATE user SET birthday='".addslashes($birthday)."', ........... ,usergroupid='$bbuserinfo[usergroupid]' WHERE userid='$bbuserinfo[userid]'

And change it to (cut for shortness):

$DB_site->query("UPDATE user SET birthday='".addslashes($birthday)."', ........... ,usergroupid='$bbuserinfo[usergroupid]' [high]$awaysql[/high] WHERE userid='$bbuserinfo[userid]'

TheComputerGuy didn't copy and paste the entire line, he simply placed $awaysql in the WRONG location (after the WHERE). That's why he has errors, and removing the coma (which shouldn't exist there anyway) won't help.

It would help, if he made sure he installed things as required :D


All times are GMT. The time now is 10:32 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.01448 seconds
  • Memory Usage 1,736KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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