vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   User Away Messages (https://vborg.vbsupport.ru/showthread.php?t=67250)

henken 08-02-2005 05:53 PM

Can this be used on vB 3.0.8 without any problems too?

Yukino_AE 08-18-2005 03:15 AM

Quote:

If a post is made when a user is in away mode, the user is automatically set off away mode.
i installed this hack and it seems good except when i try to post something while being away. it just gives me a db error message.

Database error in vBulletin 3.0.7:

Invalid SQL: UPDATE user SET awaystatus = '0',awaymessage = '',awaysince = '0' WHERE userid = '1'
mysql error: Table 'aex4.user' doesn't exist

mysql error number: 1146

Date: Wednesday 17th of August 2005 09:13:52 PM
Script: http://anime-extreme.net/forum/newthread.php
Referer: http://anime-extreme.net/forum/newth...newthread&f=17
Username: Yukino


but when i got to the forum again it DOES post the thread but it doesn't show in thread count. or posts.

help?

Yukino_AE 08-18-2005 03:17 AM

i did do the original query with the intructions and added my prefix but is this another query that wasn't listed in teh instructions?

ReZ 09-09-2005 02:52 PM

Does this work with version 3.0.7?

Mastar 09-24-2005 05:50 PM

I've installed this on vb3.07?? and the only error i got so far is when I did the fuctions_newpost.php i got an error at line 703 when trying to edit or post a reply and new thread.

Also when I try saving my profile, I get this -->> Database error in vBulletin 3.0.7:

Invalid SQL: UPDATE user SET
birthday = '02-03-1975',
birthday_search = '1975-02-03',
usertitle = 'Visiting Mods/Admins',
customtitle = 2,
parentemail = '',
homepage = '',homepage = '',
awaystatus = ,
awaymessage = '',
awaysince = ,homepage = '',
awaystatus = ,
awaymessage = '',
awaysince = ,
icq = '',
aim = '',
yahoo = '',
msn = '',
usergroupid = 6
WHERE userid = 392

mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '
awaymessage = '',
awaysince = ,homepage = '',
a

mysql error number: 1064

Date: Saturday 24th of September 2005 12:46:29 PM
Script: http://www.wanthelp.com/forums/profile.php
Referer: http://www.Wanthelp/forums/profile.php?do=editprofile
Username: Name
IP Address: 00.00.00.00

Any Help!!??

BoYagoob 10-05-2005 07:53 PM

Is it available for vb 3.5.0 ?

Startinfresh 10-12-2005 07:08 PM

Was wondering the same thing BoYagoob

Scribbller 10-14-2005 03:44 AM

Ok everything is fine but the hack doesnt work I set my self away go back to edit my profile and see that I am not set away thus nothing shows up when I view my own profile. Any ideas why?

PS. I am using 3.0.9

Scribbller 10-14-2005 04:01 AM

Quote:

Originally Posted by Yukino_AE
i installed this hack and it seems good except when i try to post something while being away. it just gives me a db error message.

Database error in vBulletin 3.0.7:

Invalid SQL: UPDATE user SET awaystatus = '0',awaymessage = '',awaysince = '0' WHERE userid = '1'
mysql error: Table 'aex4.user' doesn't exist

mysql error number: 1146

Date: Wednesday 17th of August 2005 09:13:52 PM
Script: http://anime-extreme.net/forum/newthread.php
Referer: http://anime-extreme.net/forum/newth...newthread&f=17
Username: Yukino


but when i got to the forum again it DOES post the thread but it doesn't show in thread count. or posts.

help?

Any solution to this problem?

Scribbller 10-14-2005 04:25 AM

Ok I solved both the problems myself first one well I didnt edit the files completely left out an edit. Second one which Yukino_AE posted you need to change a bit of code in functions_newpost.php the edit tells you to do this
Code:

[FIND]-->
                // ### POST NEW POST ###

[REPLACE WITH]-->
                if ($bbuserinfo['awaystatus'] == '1') {
                        $DB_site->query("UPDATE user SET awaystatus = '0',awaymessage = '',awaysince = '0' WHERE userid = '$bbuserinfo[userid]'");
                }

                // ### POST NEW POST ###

Problem is with the bit highlighted in red so what I did was repace the word user with the name of the table in database eg my user table is called vb_user so the code should now look like
[REPLACE WITH]-->
if ($bbuserinfo['awaystatus'] == '1') {
$DB_site->query("UPDATE vb_user SET awaystatus = '0',awaymessage = '',awaysince = '0' WHERE userid = '$bbuserinfo[userid]'");
}

// ### POST NEW POST ###[/CODE]


All times are GMT. The time now is 09:33 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.01159 seconds
  • Memory Usage 1,740KB
  • 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_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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