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


All times are GMT. The time now is 01:03 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.01433 seconds
  • Memory Usage 1,751KB
  • 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
  • (3)bbcode_php_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