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)

StarBuG 01-22-2002 02:44 PM

I installed it and anything seems to work fine but now i recognised a problem!

After a users returndate he is still away!
No changes..

Hmm any suggestions would be nice :D

Greetings

StarBuG

Russ 01-22-2002 09:52 PM

But....

Admin CP editing a user gets this message

Database error in vBulletin Control Panel 2.2.1:

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=1
mysql error: You have an error in your SQL syntax near 'avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar
' at line 2

mysql error number: 1064

Date: Tuesday 22nd of January 2002 06:43:14 PM
Script: http://buffy.phpwebhosting.com/forum...=edit&userid=1
Referer: http://buffy.phpwebhosting.com/forums/admin/?


Could you tell me what I need to edit.. i tried the suggest you have earlier on page 5 of this thread, but it didn't seem to make a difference.

Cheers.

Wolf42 01-23-2002 05:11 AM

[QUOTE]Originally posted by Russ
But....

Admin CP editing a user gets this message

Database error in vBulletin Control Panel 2.2.1:

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=1
mysql error: You have an error in your SQL syntax near 'avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar
' at line 2

mysql error number: 1064

Date: Tuesday 22nd of January 2002 06:43:14 PM
Script: http://buffy.phpwebhosting.com/forum...=edit&userid=1
Referer: http://buffy.phpwebhosting.com/forums/admin/?


Could you tell me what I need to edit.. i tried the suggest you have earlier on page 5 of this thread, but it didn't seem to make a difference.

Cheers.

Joshua Clinard 01-25-2002 05:44 AM

I know this is a long thread, but can someone answer my question?

PhotoGenie 01-27-2002 05:51 PM

I am having the same problem as a few others with the away icon not showing in post. Online status is on and everything else seems to be ok.. Ijust dont see the icon.. Great hack though.:)

PhotoGenie 01-29-2002 12:55 PM

My mistake on the last error but now I'm getting this error when I go to user options at the bottom of members profile..

Database error in vBulletin Control Panel 2.2.1:

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=27
mysql error: You have an error in your SQL syntax near 'avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar
' at line 2

mysql error number: 1064

Date: Tuesday 29th of January 2002 08:40:47 AM
Script: http://www.a2zautoforums.com/admin/u...edit&userid=27
Referer: http://www.a2zautoforums.com/admin/i...%26userid%3D27

I noticed a couple of other post with the same problem. Has anyone created a fix yet or figured out how to fix this?

Thanks:)

Please disregard this post the problem was the coma after:

FROM_UNIXTIME(awaydate) AS awaydate

was missing. Hasn't been updated in the install script.

PhotoGenie 02-01-2002 03:00 AM

I upgraded to 2.2.2 and tried twice install this hack twice. I backed up my php files before i started installing the hack so I had fresh files each time. I couldn't get anything to show at all anywhere. I know I'm seeing 2.2.2 at the beginning of this post, lol.. I managed to get it installed on 2.2.1 and it worked perfectly.. Its a real nice addition. Just not for me right now.:(

Linus 02-01-2002 11:48 AM

[QUOTE]Originally posted by PhotoGenie
My mistake on the last error but now I'm getting this error when I go to user options at the bottom of members profile..

Database error in vBulletin Control Panel 2.2.1:

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=27
mysql error: You have an error in your SQL syntax near 'avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar
' at line 2

mysql error number: 1064

Date: Tuesday 29th of January 2002 08:40:47 AM
Script: http://www.a2zautoforums.com/admin/u...edit&userid=27
Referer: http://www.a2zautoforums.com/admin/i...%26userid%3D27

I noticed a couple of other post with the same problem. Has anyone created a fix yet or figured out how to fix this?

Thanks:)

Please disregard this post the problem was the coma after:

FROM_UNIXTIME(awaydate) AS awaydate

was missing. Hasn't been updated in the install script.

Linus 02-01-2002 12:02 PM

[QUOTE]Originally posted by bira
sorry, try adding a coma , after "FROM_UNIXTIME(awaydate) AS awaydate"

PhotoGenie 02-01-2002 10:04 PM

Yep Linus.. My problem too.. I corrected it the first time I installed it but the second time I had forgotten it... Seems thats really the only problem in the installer.. Mine is working now though :) .. I really like this hack.

Tim Wheatley 02-02-2002 12:42 AM

Database error in vBulletin 2.2.2:

Invalid SQL: UPDATE user SET birthday='1979-6-21',signature='Tim Wheatley,
Racesim Central Administrator,
Experienced Finest Cider Taster.
\"<a href=\"http://forum.racesimcentral.com/showthread.php?s=&threadid=13465\">Oh the gingerbread men are comming for me take me away mother. lock me in the basement and feed me pins.</a>\" - Guvnor, 22.JAN.02<br>',customtitle='0',usertitle='Administ rator',email='tim.wheatley1@ntlworld.com',parentem ail='',coppauser='0',homepage='http://forum.racesimcentral.com/showthread.php?s=&amp;threadid=15014',icq='1087280 3',aim='',yahoo='',usergroupid='6' ,away='0',awaydate='',returndate='',awayreason='' WHERE userid='2',country='England' WHERE userid='2'
mysql error: You have an error in your SQL syntax near 'country='England' WHERE userid='2'' at line 1

mysql error number: 1064

Date: Saturday 02nd of February 2002 03:42:33 AM
Script: http://forum.racesimcentral.com/member.php
Referer: http://forum.racesimcentral.com/memb...on=editprofile



Any ideas?

Tim Wheatley 02-02-2002 12:45 AM

Obviously it's this line, and it's this hack and the 'country' hack conflicting, but I have NO idea how I need to put them to have them both functioning... anyone?

$DB_site->query("UPDATE user SET birthday='".addslashes($birthday)."',signature='". addslashes($signature)."',cust omtitle='$customtitle',usertitle='".addslashes($cu stomtext)."',email='".addslash es(htmlspecialchars($email))."',parentemail='".add slashes(htmlspecialchars($pare ntemail))."',coppauser='$coppauser',homepage='".ad dslashes(htmlspecialchars($hom epage))."',icq='".addslashes(htmlspecialchars($icq ))."',aim='".addslashes(htmlsp ecialchars($aim))."',yahoo='".addslashes(htmlspeci alchars($yahoo))."',usergroupi d='$bbuserinfo[usergroupid]' $awaysql WHERE userid='$bbuserinfo[userid]',country='".addslashes($country)."' WHERE userid='$bbuserinfo[userid]'");

pestilence 02-02-2002 05:15 AM

Great hack bira so usefull to my forums since they are for a gaming clan..thanx :)

PhotoGenie 02-03-2002 01:16 PM

[QUOTE]Originally posted by Tim Wheatley
Database error in vBulletin 2.2.2:

Invalid SQL: UPDATE user SET birthday='1979-6-21',signature='Tim Wheatley,
Racesim Central Administrator,
Experienced Finest Cider Taster.
\"<a href=\"http://forum.racesimcentral.com/showthread.php?s=&threadid=13465\">Oh the gingerbread men are comming for me take me away mother. lock me in the basement and feed me pins.</a>\" - Guvnor, 22.JAN.02<br>',customtitle='0',usertitle='Administ rator',email='tim.wheatley1@ntlworld.com',parentem ail='',coppauser='0',homepage='http://forum.racesimcentral.com/showthread.php?s=&amp;threadid=15014',icq='1087280 3',aim='',yahoo='',usergroupid='6' ,away='0',awaydate='',returndate='',awayreason='' WHERE userid='2',country='England' WHERE userid='2'
mysql error: You have an error in your SQL syntax near 'country='England' WHERE userid='2'' at line 1


mysql error number: 1064

Date: Saturday 02nd of February 2002 03:42:33 AM
Script: http://forum.racesimcentral.com/member.php
Referer: http://forum.racesimcentral.com/memb...on=editprofile



Any ideas?

Lucky 02-05-2002 04:09 AM

Works awesome with 2.2.2

KISS 02-05-2002 10:34 AM

Just Installed the Hack. And It seems all worked fine, except for the fact that for some reason in posts where it should show the Pic if member is away it shows nothing.

I checked every thing and seems everything was setup right. The rest of it works fine, can set away in UserCP and it sets and if PM is sent it sends the auto reply. So it seems everything else is working.

Just nothing shows under the Avatars in posts..... Any clues?

Thanks though

PhotoGenie 02-05-2002 01:43 PM

Read back a few post about the missing coma, that will fix it for you..

Wolf42 02-07-2002 05:07 PM

[QUOTE]Originally posted by Wolf42
Thx, great hack, ...

but one question: What changes do I have to make in the "showgroups.php" to the forum-staff is away or not?

PhotoGenie 02-10-2002 10:39 PM

Great Hack.. Only problem I seem to have is everytime I go through members on the main page to edit user options I find an away since date in their options of 1969-12-31 18:00:00 .. I have no idea where its coming from but I have to remove it before I can save anything or I get errors.. Does anybody know what might be causing this.. Other than that it works perfect.. Thanks for a great hack!

neal 02-10-2002 10:57 PM

Getting these two errors:

Parse error: parse error in /home/teenaged/public_html/admin/functions.php on line 810

Fatal error: Call to undefined function: vbsetcookie() in /home/teenaged/public_html/admin/sessions.php on line 181

boss 02-13-2002 01:17 PM

Thx for this hack Bira

Wolf42 02-14-2002 07:37 AM

[QUOTE]Originally posted by Tim Wheatley
Obviously it's this line, and it's this hack and the 'country' hack conflicting, but I have NO idea how I need to put them to have them both functioning... anyone?

$DB_site->query("UPDATE user SET birthday='".addslashes($birthday)."',signature='". addslashes($signature)."',customtitle='$customtitl e',usertitle='".addslashes($customtext)."',email=' ".addslashes(htmlspecialchars($email))."',parentem ail='".addslashes(htmlspecialchars($parentemail)). "',coppauser='$coppauser',homepage='".addslashes(h tmlspecialchars($homepage))."',icq='".addslashes(h tmlspecialchars($icq))."',aim='".addslashes(htmlsp ecialchars($aim))."',yahoo='".addslashes(htmlspeci alchars($yahoo))."',usergroupid='$bbuserinfo[usergroupid]' $awaysql WHERE userid='$bbuserinfo[userid]',country='".addslashes($country)."' WHERE userid='$bbuserinfo[userid]'");

tanster 03-13-2002 04:00 AM

Being new to vBulletin (just got it installed last month), I have to admit I was darn well terrified getting through that long list of manual code changes -- lol, I barely breathed until I was finished! :D

But your instructions were impeccable and the feature is fantastic.

Thanks so much! My users are going to love this.

:) Jennie

Harryli 03-21-2002 11:32 PM

I have a Problem, using 2.2.4

In admin/user.php there is no

$DB_site->query("UPDATE user SET birthday='$birthday'

just a

$DB_site->query("UPDATE user SET birthday='$birthday',options='$options',usergroupi d='$usergroupid',username='".a ddslashes(htmlspecialchars($ausername))."'$pwdincl ude,email='".addslashes(htmlsp ecialchars($email))."',styleid='$userstyleid',pare ntemail='".addslashes(htmlspec ialchars($parentemail))."',coppauser=$coppauser,ho mepage='".addslashes(htmlspeci alchars($homepage))."',icq='".addslashes(htmlspeci alchars($icq))."',aim='".addsl ashes(htmlspecialchars($aim))."',yahoo='".addslash es(htmlspecialchars($yahoo))." ',signature='".addslashes($signature)."',adminemai l=$adminemail,showemail=$showe mail,invisible=$invisible,usertitle='".addslashes( $usertitle)."',customtitle=$cu stomtitle,joindate=$joindate,cookieuser=$cookieuse r,nosessionhash=$nosessionhash ,daysprune='$daysprune',lastvisit=$lastvisit,lasta ctivity=$lastactivity,lastpost =$lastpost,posts='$posts',timezoneoffset='$timezon eoffset',emailnotification=$em ailnotification,receivepm='$receivepm',emailonpm=' $emailonpm',ipaddress='".addsl ashes($aipaddress)."',pmpopup=IF(pmpopup=2 AND $pmpopup=1,pmpopup,'$pmpopup') WHERE userid=$userid");

so I changed it to

$DB_site->query("UPDATE user SET away='$away',awaydate=$awaydate,returndate='$retur ndate',awayreason='".addslashe s(htmlspecialchars($awayreason))."',birthday='$bir thday',options='$options',user groupid='$usergroupid',username='".addslashes(html specialchars($ausername))."'$p wdinclude,email='".addslashes(htmlspecialchars($em ail))."',styleid='$userstyleid ',parentemail='".addslashes(htmlspecialchars($pare ntemail))."',coppauser=$coppau ser,homepage='".addslashes(htmlspecialchars($homep age))."',icq='".addslashes(htm lspecialchars($icq))."',aim='".addslashes(htmlspec ialchars($aim))."',yahoo='".ad dslashes(htmlspecialchars($yahoo))."',signature='" .addslashes($signature)."',adm inemail=$adminemail,showemail=$showemail,invisible =$invisible,usertitle='".addsl ashes($usertitle)."',customtitle=$customtitle,join date=$joindate,cookieuser=$coo kieuser,nosessionhash=$nosessionhash,daysprune='$d aysprune',lastvisit=$lastvisit ,lastactivity=$lastactivity,lastpost=$lastpost,pos ts='$posts',timezoneoffset='$t imezoneoffset',emailnotification=$emailnotificatio n,receivepm='$receivepm',email onpm='$emailonpm',ipaddress='".addslashes($aipaddr ess)."',pmpopup=IF(pmpopup=2 AND $pmpopup=1,pmpopup,'$pmpopup') WHERE userid=$userid");

but the Birthday now is stuck at 01.01.1970...

N!ck 03-22-2002 02:24 AM

i installed and everything appears to work fine but it won't show the away thing in the user cp under "profile"? ideas? tips? thanks

N!ck 03-22-2002 12:32 PM

any?

N!ck 03-22-2002 01:53 PM

never mind...got it :) nice hack

Liz 03-23-2002 04:02 PM

I'm having a problem, I didn't install this hack, but I uploaded that file to my file manager...after I did that I can't get into my CP.

Warning: Cannot add header information - headers already sent by (output started at /home/xxxbo/public_html/admin/sessions.php:399) in /home/xxx-bo/public_html/admin/global.php on line 136

Warning: Cannot add header information - headers already sent by (output started at /home/xxx-bo/public_html/admin/sessions.php:399) in /home/xxx-bo/public_html/admin/global.php on line 162

Hang on a sec

and then it brings me back to the login page...
Any ideas on what's wrong??

BlueWolf 03-23-2002 05:04 PM

I have a Problem, using 2.2.4 also!

about 3 files did not have the code requested to be change...
Can you fix, I really like to have this hack, is very interesting.

members.php
functions.php
admin.php

N!ck 03-24-2002 01:55 PM

*rolls eyes* all it takes is some common sense

google54 03-24-2002 01:56 PM

i get this wrong

Fatal error: Call to undefined function: gettemplate() in /home/opticacr/public_html/vbulletin/upload/member.php3 on line 324

what have i done for fault ?

google54 03-24-2002 02:02 PM

my member.php3 looks like this

} else {
$awaystatus = "select whether you are away or not";
$away0checked = "checked";
}
eval("\$awaytext = \"".gettemplate("modifyprofile_away")."\";");
eval("dooutput(\"".gettemplate("modifyprofile")."\ ");");

// ############################### start update profile ###

atrl 03-25-2002 09:48 PM

Bira I Installed this hackand I get the message when I try to edit my users in the CP, (Im kinda new at vbulletin)

Database error in vBulletin Control Panel 2.2.4:

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=10
mysql error: You have an error in your SQL syntax near 'avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar
' at line 2

mysql error number: 1064

Date: Monday 25th of March 2002 03:42:38 PM

Harryli 03-27-2002 11:26 PM

Bump :D My Users are still set to 1970... is it possible that it has something to do with the above I noted??

69-FLy-gUy 03-28-2002 06:47 AM

i am having the same proibem that nicksaunders had. anyone help?

Ignite 03-31-2002 10:24 PM

i coudn't find the getinfo template or the modifyprofile template*
*EDITED*
Ok, this really screwed up my Admin CP, I cant even acess somethings now. How can i unistall it the link at the php doesnt work. This is killing my site.

Ignite 03-31-2002 10:41 PM

ok, now i am so pissed. I can't even access my Admin CP, at all. I really really need somones help now. THIS IS URGENT! I HAVE to be able to access my admin CP. Please help me. I really really really need it.

Ignite 03-31-2002 11:21 PM

please I despartly need help

Ignite 04-01-2002 12:28 AM

can someone please tell me how to uninstall this thing?

Ignite 04-01-2002 01:59 AM

if no one knows, can you tell me who does, I can't express the importance of this, how would you like to be w/o access ro you Admin CP???


All times are GMT. The time now is 01:12 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.01504 seconds
  • Memory Usage 1,844KB
  • 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)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