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)

clamcrusher 07-28-2003 12:45 AM

nevermind birdie501 already solved it on page 14

clamcrusher 07-29-2003 08:02 AM

ok new problem.

fixed the above and now when i try and use admin cp to view a user, or edit a user, or find away users etc....it gives the same error code.

Parse error: parse error, unexpected '{' in /usr/local/psa/home/vhosts/chemical-conversions.com/httpdocs/admin/user.php on line 1733

i tried uninstalling the hacks on user.php and nothing changed, just now the error is on line 1733 instead of line 1746(cause i removed lines from removing the hack code)

here is the code where it sais the error, line 1733 is the line that sais: if ($orderby=="") {


PHP Code:

// ###################### Start findaway #######################
if ($action=="findaway") {
__if ($orderby=="") {
____$orderby="awaydate";
__}
__if ($limitstart=="") {
____$limitstart=0;
__} else {
____$limitstart--;
__}
__if ($limitnumber=="") {
____$limitnumber=99999999;
__}
__$users=$DB_site->query("SELECT user.userid,username,FROM_UNIXTIME(awaydate) AS awaydate,returndate,awayreason,away FROM user WHERE away = 1 ORDER BY $orderby $direction LIMIT $limitstart,$limitnumber");
__$countusers=$DB_site->query_first("SELECT COUNT(*) AS users FROM user WHERE away=1");
__$limitfinish=$limitstart+$limitnumber


Oblivion Knight 08-18-2003 03:20 PM

To save yourself a couple of queries (currently for every instance that someone sets their status as away, a query is added), I'd advise doing the following:

Open: showthread.php

Find:
Code:

postbit_offline,postbit_online
Add BEFORE:
Code:

postbit_away,
Find (again):
Code:

postbit_offline,postbit_online
Add BEFORE:
Code:

postbit_away,

Dan_UPC 10-03-2003 02:20 PM

Thanks bira, this is a really nice hack.

Crank 01-27-2004 12:09 AM

i got user.php erorrs when i installed i would love to use this hack although i had to uninstall.
i couldnt even approve members to the site

Code:

Invalid SQL: SELECT userid
FROM user
WHERE username='wildflower'
AND userid <>
mysql error: You have an error in your SQL syntax near '' at line 4

mysql error number: 1064


i had used the 1.2a the latest version to install this hack and still got this erorr. any one know of a fix. i would love to use this hack.

Pseudomizer 07-15-2004 08:58 AM

Hello @LL,

does this hack work in VB3.0.x ?

Cheers,

jamesk 07-15-2004 05:30 PM

Anyone planning on doing this for vb3?

Gamingforce 07-16-2004 04:35 PM

I will.

Pseudomizer 07-17-2004 06:20 PM

[QUOTE=Gamingforce]I will.

Edison Chen 07-19-2004 01:12 AM

Okay, I have installed the Custom AWOL hack locatedhere as well and it won't allow me to incorporate the hacks together.

For this particular line in the member.php,

Quote:

// +++++++ Custom Who's Online Locations Hack v1.0 [ g-force2k2 ] +++++++
$DB_site->query("UPDATE user SET birthday='".addslashes($birthday)."',signature='". addslashes($signature)."',customtitle='".intval($c ustomtitle)."',usertitle='".addslashes($customtext )."',email='".addslashes(htmlspecialchars($email)) ."',parentemail='".addslashes(htmlspecialchars($pa rentemail))."',coppauser='$coppauser',homepage='". addslashes(htmlspecialchars($homepage))."',icq='". addslashes(htmlspecialchars($icq))."',aim='".addsl ashes(htmlspecialchars($aim))."',yahoo='".addslash es(htmlspecialchars($yahoo))."',usergroupid='$bbus erinfo[usergroupid]',userloc='".addslashes($userloc)."' WHERE userid='$bbuserinfo[userid]'");
// +++++++ Custom Who's Online Locations Hack v1.0 [ g-force2k2 ] +++++++
I can't seem to know where to add the $awaysql for this hack.

Quote:

// Leave Away Message in Profile (v1.2a)
$DB_site->query("UPDATE user SET birthday='".addslashes($birthday)."',signature='". addslashes($signature)."',customtitle='".intval($c ustomtitle)."',usertitle='".addslashes($customtext )."',email='".addslashes(htmlspecialchars($email)) ."',parentemail='".addslashes(htmlspecialchars($pa rentemail))."',coppauser='$coppauser',homepage='". addslashes(htmlspecialchars($homepage))."',icq='". addslashes(htmlspecialchars($icq))."',aim='".addsl ashes(htmlspecialchars($aim))."',yahoo='".addslash es(htmlspecialchars($yahoo))."',usergroupid='$bbus erinfo[usergroupid]' $awaysql WHERE userid='$bbuserinfo[userid]'");
// Leave Away Message in Profile (v1.2a)
I can't seem to incorporate them. Help?

David Coutts 07-24-2004 03:28 AM

I had the same problem with another hack. Just try chucking $awaysql at the end, just before "WHERE userid='$bbuserinfo[userid]", but don't forget to make a backup or whatever. Or you could just delete it. :p It worked for me.

Edison Chen 08-13-2004 01:22 AM

Thanks. It works now. ;)

mholtum 09-14-2004 05:31 PM

Is there away to make this work with 3.0.3?

Alchemist 01-16-2005 01:26 PM

Does anyone know how to fix $year. Because even when I edit the template to fix from 2001-2004 to 2005 - 2009, doesn't work.

Dan_UPC 01-26-2005 12:16 PM

[QUOTE=Alchemist]Does anyone know how to fix $year. Because even when I edit the template to fix from 2001-2004 to 2005 - 2009, doesn't work.

abud999 02-02-2005 10:21 AM

thankz Bira & thankz Lesane

bye

abud999 02-02-2005 10:23 AM

<font size="2">thankz Bira & thankz Lesane

bye
</font>

Cle 03-17-2005 09:10 AM

I've installed this hack on 2.3.5 and it's working great :D Although I have the same problem as described above. I cannot change the Returndate Year. I already tried the tweak of Dan_UPC, but it's not working. Does anybody have an idea?

okidoki73 03-23-2005 08:13 PM

Hi

is it some news on getting this hack to work whit vb 3.0.x ?
i really want it on my forum but the old version will not work for me :(

Sho 03-23-2005 08:39 PM

I wrote a version of this hack for vB3 (all new code - includes away status in postbit & co, PM auto-reply, as well as some additions, like optionally deactivating away mode on the return date, etc.), let me see if I find the time to package it over the holidays.

Boofo 03-26-2005 04:53 AM

[QUOTE=Sho]I wrote a version of this hack for vB3 (all new code - includes away status in postbit & co, PM auto-reply, as well as some additions, like optionally deactivating away mode on the return date, etc.), let me see if I find the time to package it over the holidays.

Sir_Yaro 06-14-2005 08:51 AM

any chance for 3.0.x version ???

Sir_Yaro 06-14-2005 10:56 AM

I found it:
https://vborg.vbsupport.ru/showthrea...threadid=67250

Mum 03-17-2007 07:26 AM

I am trying to find something like this for 3.6.5, any ideas anyone? I've been searching for ages.


All times are GMT. The time now is 01:36 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.01481 seconds
  • Memory Usage 1,776KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (24)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