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)

DelFDgfd_gT 05-28-2003 04:09 AM

PHP Code:

Step 3/4.

========
||
FIND||
========

  if (
$posts=="") {
    
$posts=0;
  }
  
==================
||
ABOVE that ADD||
==================

// Leave Away Message in Profile (v1.2a)
  
if ($awaydate!="") {
    
$awaydate="UNIX_TIMESTAMP('".addslashes($awaydate)."')";
  } else {
      
$awaydate="''";
  }
// Leave Away Message in Profile (v1.2a) 

Ok, basically, I cant find
PHP Code:

  if ($posts=="") {
    
$posts=0;
  } 

any thoughts?

Splitfyre 06-23-2003 07:28 PM

Received errors when hacking the user.php file.

Does this hack work in 2.30? Will be going through an uninstall for now and then re-hack at a later date when this function becomes fully stable on 2.30 :bunny:

cYbercOsmOnauT 06-27-2003 09:59 PM

This is a cool hack! I will install it soon (first I need to translate the texts ;))

Frozen Dreams 07-01-2003 03:12 PM

[QUOTE]05-28-03 at 07:09 AM Ramsy de Vos said this in Post #391
PHP Code:

Step 3/4.

========
||
FIND||
========

  if (
$posts=="") {
    
$posts=0;
  }
  
==================
||
ABOVE that ADD||
==================

// Leave Away Message in Profile (v1.2a)
  
if ($awaydate!="") {
    
$awaydate="UNIX_TIMESTAMP('".addslashes($awaydate)."')";
  } else {
      
$awaydate="''";
  }
// Leave Away Message in Profile (v1.2a) 

Ok, basically, I cant find
PHP Code:

  if ($posts=="") {
    
$posts=0;
  } 

any thoughts?

C.Assassin 07-02-2003 12:43 AM

installed on 2.3.0 no probs

Christoff 07-05-2003 04:01 PM

Yup... on 2.3.0 no probs... i like it a lot.
So does m users.
Thread about being away was the biggest one.

cYbercOsmOnauT 07-08-2003 01:09 AM

Great hack!

/me clicks install.

Holidazed 07-08-2003 06:54 PM

This is awesome. Works wonderously.

Suggestions:
Filter the Away messages through the vBB filter system
Multiple away messages.
Admins can edit and/or lock an away message so it cannot be edited.
Add a "Start Date" option so people can set away status in advance. eg. I will be gone from xx-xx-xxx to xx-xx-xxxx.

DarkDraco07 07-24-2003 09:21 PM

i get this error

Database error in vBulletin 2.2.9:

Invalid SQL: UPDATE user SET element='2', birthday='1985-6-4',signature='',customtitle='1',usertitle='Admin / Web Master',email='darkdraco@darknemesis.com',parentem ail='',coppauser='0',homepage='http://www.darknemesis.com',icq='',aim='',yahoo='',usergr oupid='6', ,away='0',awaydate='',returndate='',awayreason='' WHERE userid='1', gender='2', rpgclass='11', rpgrace='13', alignment='3', rpgtype='2', rpggender='2' WHERE userid='1'
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 'away='0',awaydate='',returndate='',awayreason='' WHERE userid='

mysql error number: 1064

Date: Thursday 24th of July 2003 03:22:36 PM
Script: http://www.darknemesis.com/forums/forums/member.php
Referer: http://www.darknemesis.com/forums/me...on=editprofile

clamcrusher 07-28-2003 12:07 AM

i get this error:

Parse error: parse error, unexpected T_ELSE in /usr/local/psa/home/vhosts/chemical-conversions.com/httpdocs/member.php on line 1387



heres my code:

btw-the last "else{" is line 1387


PHP Code:

$refcount $DB_site->query_first("SELECT count(*) AS count
                                       FROM user
                                       WHERE referrerid = '
$userinfo[userid]'");
    
$referrals $refcount[count];
    eval(
"\$referrals = \"".gettemplate("getinfo_referrals")."\";");
  }
// Leave Away Message in Profile (v1.2)
  
if ($userinfo[away]=="1") {
      
$sincedate vbdate($dateformat$userinfo[awaydate]);
    if (
$userinfo[returndate]=="0000-00-00") {
        
$returndate "Unknown";
    } 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)
 
 
else {
        
$referrals '';
    }

  
// get extra profile fields 



All times are GMT. The time now is 01:16 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.01494 seconds
  • Memory Usage 1,763KB
  • 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
  • (5)bbcode_php_printable
  • (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