php forum
php mysql forum
php mysql smarty
 
Page 3 of 4 < 1 2 3 4 >
Topic Options
#202811 - 05/07/04 01:17 AM Re: [6.7] [beta] User Online
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio

   Re: [6.7] [beta] User Online to Del.icio.us Add to del.icio.us
  Digg Re: [6.7] [beta] User Online Digg it
Whoops, thinking about the wrong hack. okay, replace:
require "vars_config.cgi";

with

eval {
do "vars_config.cgi";
};

Top
#202812 - 05/07/04 11:02 AM Re: [6.7] [beta] User Online
PhillipBurum Offline
Member

Registered: 11/02/03
Posts: 155
Ok, so I did that, and then I got the Error for the lext line of code, where it looks for vars_pntf. So I went and replaced it also. Now I get this if I try and run online.cgi by itself...

Code:
 var AllImgs = document.body.getElementsByTagName("img"); function ChangeAll(img) { for(var i=0;
 i <= AllImgs.length; i++) { if(AllImgs[i] && AllImgs[i].id == img) { AllImgs[i].src = '/user_online.gif';
 AllImgs[i].alt = 'Online'; AllImgs[i].title = 'Online'; } // end if } // end for } 
 
And the image doesn't change.
_________________________
United Devices Points: [img]http://www.ubbdev.com/ud/?u=phillip.burum&s=1[/img]

Top
#202813 - 05/07/04 08:15 PM Re: [6.7] [beta] User Online
Gizmo Administrator Online   shocked
Wizard

Registered: 01/10/00
Posts: 5115
Loc: Portland, OR, USA
That is a standard message when you run online.cgi by itself.
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#202814 - 05/07/04 10:31 PM Re: [6.7] [beta] User Online
PhillipBurum Offline
Member

Registered: 11/02/03
Posts: 155
Ok, so I replaced the standard "Require" code with
Code:
 
eval {
do "vars_config.cgi";
};
eval {
do "vars_pntf.cgi";
}; 
ofcourse I get no errors, but it still doesn't work confused
_________________________
United Devices Points: [img]http://www.ubbdev.com/ud/?u=phillip.burum&s=1[/img]

Top
#202815 - 05/07/04 11:33 PM Re: [6.7] [beta] User Online
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
online.cgi doesn't log you. You/or another registered user needs to be on the boards. Also, the user must have hide pntf off.

n/m please check your private messages, phillip.

Top
#202816 - 05/09/04 02:04 PM Re: [6.7] [beta] User Online
GATOR420 Offline
Member

Registered: 01/31/03
Posts: 118
OK, I just tried to install this one and it semi-appears to work except for the big error I get when I click on a topic. Rehacked 3 times now.

"A Runtime Error has occured. Do you wish to debug?

Line:1
Error: Syntax error"

A picture does show up though and says I am offline.
Help? smile
_________________________
-GATOR

"Pain is temporary, Pride is forever"

Top
#202817 - 05/09/04 02:14 PM Re: [6.7] [beta] User Online
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
it can't find vars_config
_________________________
Code monkey like Fritos

Top
#202818 - 05/09/04 02:18 PM Re: [6.7] [beta] User Online
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
Al, it's in the JS code, not the Perl code... Also it's not surely line 1, IE's not so accurate when it comes to line numbers...
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#202819 - 05/09/04 02:26 PM Re: [6.7] [beta] User Online
GATOR420 Offline
Member

Registered: 01/31/03
Posts: 118
After going back over the thread I had to do what Phillip had to do in online.cgi. Wasn't exactly clear, but I figured it out. Replace

require "vars_config.cgi";
require "$vars_config {VariablesPath}/vars_pntf.cgi";

with

eval {
do "vars_config.cgi";
};
eval {
do "vars_pntf.cgi";
};

What's really interesting is that I replaced images, cleared cache, and it's still showing the old image for me being offline... How is that happening? I searched my entire www root directory for images of the same name and the one I want is the only one there???
_________________________
-GATOR

"Pain is temporary, Pride is forever"

Top
#202820 - 05/09/04 02:33 PM Re: [6.7] [beta] User Online
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Quote:
Originally posted by LK:

Al, it's in the JS code, not the Perl code... Also it's not surely line 1, IE's not so accurate when it comes to line numbers...


the javascript is made by the perl, and Firefox gives you great javascript errors.
_________________________
Code monkey like Fritos

Top
#202821 - 05/09/04 04:31 PM Re: [6.7] [beta] User Online
GATOR420 Offline
Member

Registered: 01/31/03
Posts: 118
Hmm... I still can't get this to change status though. I always see offline also. Had another person register just to test and ask if they see me online which they don't, and I didn't see their online status change either. Any ideas?
_________________________
-GATOR

"Pain is temporary, Pride is forever"

Top
#202822 - 05/09/04 05:49 PM Re: [6.7] [beta] User Online
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
Looks like the same thing from Phillip's server. The way i fixed it was, okay do this. Download a fresh copy of the cgi file.

Code:
replace:
use CGI ':standard';
use CGI::Carp qw(fatalsToBrowser set_message);

with:
BEGIN {
	($0 =~ m!(.*)(\|/)[^/\]+!) && unshift(@INC, $1, "$1$2Modules");
	$| = 1;
};
use lib("./Modules", ".");
use UBBCGI qw(:cgi);
use UBBCGI::Carp qw(fatalsToBrowser set_message);

Top
#202823 - 05/09/04 08:28 PM Re: [6.7] [beta] User Online
GATOR420 Offline
Member

Registered: 01/31/03
Posts: 118
Whoo Hoo! It worked! :::does a little dance::: Thanks for your help Brett.
_________________________
-GATOR

"Pain is temporary, Pride is forever"

Top
#202824 - 06/20/04 04:57 PM Re: [6.7] [beta] User Online
Painfool Offline
Member

Registered: 08/14/00
Posts: 182
Here are a couple of Status .gifs you are free to use if you like.




Enjoy!

Top
#202825 - 06/22/04 08:29 AM Re: [6.7] [beta] User Online
havoq Offline
Member

Registered: 09/11/01
Posts: 667
Loc: MI
I'll add to that Painfool wink



_________________________
-Jon
I have a measly [img]http://www.ubbdev.com/ud/?u=chugger93&s=1[/img] points, it's weak, I know wink
Where I continue to hack, even though it's a state of mind

Top
#202826 - 02/10/05 09:52 PM Re: [6.7] [beta] User Online
Tiger66 Offline
Member

Registered: 03/31/04
Posts: 58
Loc: Israel
very kewl smile

Is it possible to change the location of the offline/online images to show under the avatar or next to where it says " IP: Logged" at the bottom?

Top
#202827 - 02/11/05 11:02 AM Re: [6.7] [beta] User Online
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
Yes, you could put the image anywhere.
All in /non-cgi/Templates/public_topic_page.pl

If you want it under the avatar:
Replace:
$AvatarBits


with:
$AvatarBits

$OnlineBits


Or next to ip logged, just add the variable $OnlineBits after $ip_wording

Top
#202828 - 02/11/05 10:25 PM Re: [6.7] [beta] User Online
Tiger66 Offline
Member

Registered: 03/31/04
Posts: 58
Loc: Israel
Thanks thumbsup

Top
#312775 - 01/18/07 11:34 PM Re: [6.7] [beta] User Online [Re: Brett]
Wayne Harris Offline
Lurker

Registered: 01/18/07
Posts: 3
I have added this hack to my UBB 6.7.2.
The online status never changes from offline to online.
I do not receive any error messages.
I am certain that the required files are located in the correct directories.

My website is www.termpro.com (Click on Audio Forum).

I really, really want this feature. Any suggestions would be greatly appreciated.

Sincerely,

Wayne Harris

Top
#312788 - 01/19/07 09:40 AM Re: [6.7] [beta] User Online [Re: Wayne Harris]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25408
Loc: Texas
I'd re-check your changes to the base script files.
_________________________
- Allen wavey
- What Drives You?

Top
Page 3 of 4 < 1 2 3 4 >


Moderator:  Charles, Gizmo 
Top Posters Last 30 Days
AllenAyres 18
Gizmo 12
sirdude 6
GEN 3
tackaberry 2
Philipp 2
willing 2
Who's Online
0 Registered (), 35 Guests and 11 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Team UBBDev Rides Again!
by Gizmo
08/28/08 11:45 PM
Multiple Identity Detector
by MattUK
08/28/08 04:10 PM
[7.3.x] ubb.links
by AllenAyres
08/26/08 09:57 AM
Installing FlashChat with 7.3
by Gizmo
08/23/08 05:36 AM
[7.2.1] - Naked shoutbox
by Iann128
08/22/08 07:27 PM
Nice Ajax Chat
by M4D
08/21/08 10:02 PM
51-card NVIDIA folding rig cranks out 265,200 ppd
by AllenAyres
08/13/08 10:10 PM
New Mods
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.x] AddThis - Social Networking
by Gizmo
08/01/08 01:30 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.3] Dissallow quotes more then 3 levels deep
by blaaskaak
06/09/08 09:01 AM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
Newest Members
welcomeback1, Paug, Tim Keating, anscers, Murphdog
13324 Registered Users

 

 

 
fusionbb message board php hacks