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)

Ignite 04-02-2002 04:20 AM

Ok, I fixed my old problem but now I have a new one.

The icon that show if the user is away or not is to the left to the "profile", "pm", "email", "www", "search" & "buddy" icon instead of in the correct box that has the name and stuff in it.

69-FLy-gUy 04-02-2002 07:14 AM

did you upload the image

Ignite 04-02-2002 07:05 PM

yeah, but its on the wrong side....

Birdie501 04-06-2002 01:52 PM

Hi,

did somebody install this hack on version 2.2.5?

I did and get an parse error in member.php on line (about) 1370!

Can somebody help me?

Thanks.

Regars
Birdie501

Birdie501 04-06-2002 02:08 PM

Hi,

i found the error:

In the installation instructions you should change step 4 in member.php

You have to insert the code not after
PHP Code:

eval("\$referrals = \"".gettemplate("getinfo_referrals")."\";");
  } 

but after:
PHP Code:

eval("\$referrals = \"".gettemplate("getinfo_referrals")."\";");
  }
else {
        
$referrals '';
    } 

so that it looks like this

PHP Code:

eval("\$referrals = \"".gettemplate("getinfo_referrals")."\";");
  }
else {
        
$referrals '';
    }
  
// Leave Away Message in Profile (v1.2)
    
if ($userinfo[away]=="1") {
        
$sincedate vbdate($dateformat$userinfo[awaydate]);
      if (
$userinfo[returndate]=="0000-00-00") {
          
$returndate "Unbekannt";
      } else {
            
$returnaway explode("-"$userinfo[returndate]);
            
$returndate vbdate($dateformatmktime(0,0,0,$returnaway[1],$returnaway[2],$returnaway[0]));
        }
        eval(
"\$away .= \"".gettemplate("getinfo_away")."\";");
    } else {
        
$away "";
    }
  
// Leave Away Message in Profile (v1.2) 

Regards
Birdie501 :)

Birdie501 04-06-2002 02:55 PM

Hi,

i just found another error: in Admin Cp if i want to change a template it shows this error:

Warning: Missing argument 7 for makechoosercode() in /homepages/test/admin/adminfunctions.php on line 312

????????

What to do?

Thanks!

ariaforums 04-10-2002 07:40 AM

Well the hack works OK for the users but Im getting this error when I tyr to change user stuff in the Admins CP:

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=36
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

cityofangelus 04-19-2002 09:42 AM

Hi all

Can someone tell me if this hack is OK with 2.2.5 as I keep getting a parse error in member.php on line 1383

I have installed this on older versions without any problems and I have tried to go through the upgrade three times and still the same parse error..

Can someone help me out

Thanks

Lucy

cityofangelus 04-19-2002 09:57 AM

Ok I have sorted it...

Worth pointing out that the mistake was in the install script though it told me to enter the last change in the member.php in the wrong place..

Step 4 of 4 in the member PHP told me to add the code here:

eval("\$referrals = \"".gettemplate("getinfo_referrals")."\";");
}

It needed to be after:

eval("\$referrals = \"".gettemplate("getinfo_referrals")."\";");
} else {
$referrals = '';
}

Just though I would let you know about that :D

Lucy

jjj0923 04-21-2002 03:50 PM

this is a great hack. I have it installed and love it.

I use the Online/Offline hack so I had to change the _away template to display the word "Away".

One thing that would be really nice is to be able to also display "Return Date" under "Away".

Is there an easy way to get index.php to evaluate $returndate in the event that the date is not 'unknown'????

This would be great.

thanks in advance.

- jeff

jjj0923 04-22-2002 06:29 PM

I'm moving this one back to the top. I spend a number of hours this weekend onyl to come up empty handed. I REALLY want to show the date of return on the thread screen (showthread.php). I have code that retrieve the date of return and will display it properly via an echo from index.php or functions.php and place the date of return in a variable called $returningdate but I'll be darned if I can get it to show up in the left <td> of the postings screen. Will somebody please help me out?

thanks

- jeff

tkeil69575 04-24-2002 09:17 AM

hi bira - nice hack, got it working perfectly for 2.2.5. Just, had an Idea. Wouldnt it be nice if the admin got a mail saying that a user has switched his/her status to "away". Any ideas on how I could implement that?

regards Tina

rascal 04-24-2002 11:58 AM

Got this error

Parse error: parse error in www\member.php on line 1390

Anyone can assist?

Attached is the file.

jjj0923 04-24-2002 02:50 PM

rascal - your problem is that you were supposed to replace lines 1390- 1392 with the new code and you inserted the new code instead.

delete lines 1390-1392 and it will work (assuming you did not make any other mistakes installing this hack code).

rascal 04-24-2002 05:29 PM

Got it.
Thanks jj!

tanster 04-26-2002 07:25 PM

Hello,

I'm not sure when this started happening, but one of my users found this problem recently -- the 'return date' is one day behind.

1. Go to 'Edit Profile' and choose that I'm away, enter a reason, and choose the 'return date' to be 6/21/02.
2. Save the changes.
3. If I then display my profile, it shows all the 'away' information correctly except the return date, which appears as 6/20/02.

Do you have any ideas on how to troubleshoot this? Should I uninstall and reinstall?

Thanks for any insight you can provide!

:) Jennie

bandersen 04-27-2002 05:06 PM

Nice hack - I installed it! I am getting a parse error in line 1496, member.php. Hope someone can help. Most likely its a minor thing I do not see myself!
I am on 2.2.5.. I have read the thread here and checked off the error for 2.2.5 and the other errors (they were fixed already in my download), included the comma etc. I can access everything in the Admin Panel, but when I enter usercp and click on change profile or change option... that parse error shows in the member.php.

I have attached the file - some of it. Anyone have an idea....

Thanks!!

ps. in the PHP Editor I get this error message:

Parse error: parse error, unexpected $ in A:\member on line 1496

Boofo 04-28-2002 11:09 AM

jjj0293,

The hack I got says that you are supposed to INSERT the code above that point, not replace it. I had the same problem and I just moved the following code above the hack and it took care of the parse error.

else {
$referrals = '';
}

That won't mess anything up will it? I can't see how the referrals would work without it.

Boofo 04-29-2002 10:08 PM

I installed this hack and it is working fine now except that it shows 1 day off in the profile for what was picked in the options. Also, you can pick Feb 31 which will take it to mar 3 in the display.

bandersen 05-04-2002 11:58 AM

Please help someone...

I get a parse error message "unexpected $" in my member.php (when running it in the PHP Editor). In the browser it just says.. parse error. In the last line... no where near the installed code. Everything worked ok before this.
I am on 2.2.5... and I did see the error in the install for that.

Did anyone else get this message? No new members here until this is fixed....

bandersen 05-04-2002 12:59 PM

I figured it out. Had to place a } in between two of the installs... as they came next to each other. At least on my member.php ( I have the store hack in there too).

Edit... nope.. something else happend... If I enter the user profile... I have lost all the data filled in there... and trying to submit something I end up on a blank member.php page. When I look at a thread....I do not see the "username" displayed all nice and clean... but the full description of the "Cutom User Text: this is the description of the..........".

I revert back to the "unexpected $"....

I really need some help on this one, please :(

Edit: I redid the member.php from the original file... went into Admin and manually changed my own settings back to normal... everything seem to work now!

Ihsahn 05-13-2002 01:59 PM

[QUOTE]Originally posted by tanster
Hello,

I'm not sure when this started happening, but one of my users found this problem recently -- the 'return date' is one day behind.

1. Go to 'Edit Profile' and choose that I'm away, enter a reason, and choose the 'return date' to be 6/21/02.
2. Save the changes.
3. If I then display my profile, it shows all the 'away' information correctly except the return date, which appears as 6/20/02.

Do you have any ideas on how to troubleshoot this? Should I uninstall and reinstall?

Thanks for any insight you can provide!

:) Jennie

Ihsahn 05-15-2002 02:12 PM

nevermind i found the mistake ... :)

Boofo 05-15-2002 04:17 PM

What mistake did you find to fix it?

Ihsahn 05-16-2002 11:05 AM

Mistake: "the 'return date' is one day behind"
Solution: i just change my Start of the week & my Time offset and it's ok ...

That's all ...
/Ihsahn

Highlander 05-17-2002 05:38 AM

Hi,

i just downloaded this cool hack, but in some threads i read to change some codes in some files...and when i open this attachment..there is no installing instruction..only two files..(install_awayuser.php + away.gif)..so i just typed in my browser this yxz.php..but i get an parse error on line 98..he dont want to make me happy...i just cant install this hack..maybe someone knows what is wrong..i get the portal installed too..maybe there is something wrong !

scsa20 05-17-2002 06:09 AM

just upload install_awayuser.php to your admin folder then go to http://www.yoursite.com/yourforums/a...l_awayuser.php then follow the instruction after that, it should be easy after words ;)

Highlander 05-17-2002 09:53 AM

i did so..but i got error on line blabla .. i think it was the 98..

Arjun 05-17-2002 06:00 PM

where does the script show the away image?

GOD-Dblade 05-18-2002 03:38 AM

bad ass hack...good job

Keyser S?ze 05-19-2002 02:22 AM

having a problem, i got lesanes store installed and the newthread/new reply gets messed up when i replace that past, so what code would i use to use both?

sorry if this has been asked before, but 232 replies is alot :p


thanks

Mone' 05-30-2002 03:06 AM

Great hack bira just installed on vb 2.2.6 and is working so well :)

( thx "cityofangelus" for pointing the installer mistake )

Keyser S?ze 05-31-2002 03:37 PM

[QUOTE]Originally posted by IceMalee
having a problem, i got lesanes store installed and the newthread/new reply gets messed up when i replace that past, so what code would i use to use both?

sorry if this has been asked before, but 232 replies is alot :p


thanks

Keyser S?ze 06-01-2002 04:12 AM

cannot get this to work for some reason, i click on "edit profile" and it acts like its goig to work, i see the profile, but then it jumps to a dead screen with nothing on it

anyone up late and want to help me out?

-update- on another style, it refreshes itself like every 3 secs,

Boofo 06-01-2002 06:58 PM

How would you do this for a memberlist online status column?

[QUOTE]Originally posted by Wolf42


Ok, I got it for myself :D

Find
PHP Code:

$templatesused="postbit_online,postbit_offline,showgroups,showgroups_groups,showgroups_adminbit,postbit_sendpm,showgroups_bit,showgroups_forumbit,showgroups_forumsplit,postbit_avatar"

and replace with
PHP Code:

$templatesused="postbit_online,postbit_offline,postbit_away,showgroups,showgroups_groups,showgroups_adminbit,postbit_sendpm,showgroups_bit,showgroups_forumbit,showgroups_forumsplit,postbit_avatar"

Find
PHP Code:

if ($user['lastactivity'] > $datecut and !$user['invisible'] and $user['lastactivity'] != $user['lastvisit']) {
        eval(
"\$onlinestatus = \"".gettemplate("postbit_online")."\";");
    } else {
        eval(
"\$onlinestatus = \"".gettemplate("postbit_offline")."\";");
    } 

an replace with
PHP Code:

if ($user[away]=="1") {
        eval(
"\$onlinestatus = \"".gettemplate("postbit_away")."\";");
        } else {
    if (
$user['lastactivity'] > $datecut and !$user['invisible'] and $user['lastactivity'] != $user['lastvisit']) {
        eval(
"\$onlinestatus = \"".gettemplate("postbit_online")."\";");
    } else {
        eval(
"\$onlinestatus = \"".gettemplate("postbit_offline")."\";");
    }


Find
PHP Code:

// get administrators & super moderators **********************************************************
$users $DB_site->query("
    SELECT
        
$locationfieldselect usergroup.title, user.username, user.userid, user.invisible, user.receivepm,
        user.usergroupid, user.lastactivity, user.lastvisit 

and replace with
PHP Code:

// get administrators & super moderators **********************************************************
$users $DB_site->query("
    SELECT
        
$locationfieldselect usergroup.title, user.username, user.userid, user.invisible, user.receivepm,
        user.usergroupid, user.lastactivity, user.lastvisit,user.away 

Find
PHP Code:

// get moderators **********************************************************
$users $DB_site->query("
    SELECT
        
$fieldselect forum.forumid, forum.title AS forumtitle,
        user.username, user.userid, user.invisible, user.receivepm, user.lastactivity, user.lastvisit 

and replace with
PHP Code:

// get moderators **********************************************************
$users $DB_site->query("
    SELECT
        
$fieldselect forum.forumid, forum.title AS forumtitle,
        user.username, user.userid, user.invisible, user.receivepm, user.lastactivity, user.lastvisit,user.away 

I just added user.away twice, added postbit_away in templatesused and modified the code like the funktions.php.

It is working well on my board.

Boofo 06-01-2002 07:07 PM

here's how my private autoreply looks. Can someone please help me figure out why it is doing this?

Auto Reply: RE: RE: Gender
Hi Boofo,

I have been away since Today (GCSE Exams ) and will read your message when I return on Jun 18, 2002.

[size=1 ]This is an auto-reply generated by the bearfacts2.com Forum Messaging System.[/size ]

I had to add spaces just before the ] because the code wouldn't show right in here. In the message, there is no spaces before the last bracket. And also, if I try to take the space out between the awaymessage and the ) I get a parse error when I send a message. What have I got set wrong on my site that won't let the size function work in the message? The color function works fine.

Boofo 06-01-2002 07:18 PM

Can someone please help me add the ability to have the away status icon show in the privmsg template? Here is the code I need to edit from the private template.

Code:

unset($onlinestatus);
        if ($post['lastactivity'] > $datecut and !$post['invisible'] and $post['lastvisit'] != $post['lastactivity']) {
          eval("\$onlinestatus = \"".gettemplate("postbit_online")."\";");
        } else {
          eval("\$onlinestatus = \"".gettemplate("postbit_offline")."\";");
        }

I want it to show in private messages like it does in the postbit.

Keyser S?ze 06-01-2002 09:43 PM

this was working fine for about a hour, i didnt do a thing, then without me doing anything stopped working again

same problem

aidler 06-02-2002 09:54 PM

OK, great hack. But why isn't there a detailed explanation what has chanced so one can do it manually. I upgraded to 2.2.6 and now I can't reintegrate the modifications for this hack into my templates because I don't know the necessary modifications. Now what??

Keyser S?ze 06-03-2002 12:08 AM

u know i wanted the same thing, because i dont really like these auto installers for the simple reason of if there is a problem, it makes it hard to hunt down, so i made this, its just a txt copy of the installer

now let me be clear, all i did was copy/paste in the right spots, i didnt make this in any way, all credit goes to bira


All times are GMT. The time now is 03:20 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.01886 seconds
  • Memory Usage 1,866KB
  • 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
  • (11)bbcode_php_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
  • (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