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
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 Offline
Wizard

Registered: 01/10/00
Posts: 5133
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: 25452
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 
Who's Online
0 registered (), 20 Guests and 9 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
How to hide sub forums from summary page
by blaaskaak
Today at 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
David DelMonte, nick1, Begbie, cenk, MATTO
13363 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks