Previous Thread
Next Thread
Print Thread
Rate Thread
#51808 01/14/2002 6:00 AM
Joined: Sep 2001
Posts: 8
Junior Member
Junior Member
Offline
Joined: Sep 2001
Posts: 8
this is Gamer's hack "WhosOnline addon" for 6.0, it displays the member's stat "online" or "offline" on the topic page, I try to edit it for 6.1, but there are still some qustuin, I need you help....

online icon
[Linked Image]

offline icon
[Linked Image]

#######################################################
# onlineaddon.txt Version 1.1 #
# addon for Who is Online Version 4.0 #
# #
# Show's in every posting if the user is online #
# #
#######################################################


###################
#Begin of the Hack#
###################


##############################
# open public_topic_page.pl #
##############################

#########
# find #
#########

$show_public_name


#############################
# add this under #
#############################


$show_user_online


#############################
# open ubb_lib_posting.cgi #
#############################

#########
# find #
#########

# more pages in topic to create?
#if ($ContinueAt ne '') {
# &create_topic("$in{f}", "$topic_number", "$ContinueAt", "$NextPage");
#}

} # end create_topic


#############################
# add this above #
#############################

#creat the **online.cgi (Topic Author, Beginer and replier)

$onlinecounter="0";
unlink "$vars_config{NonCGIPath}/cache-$cache_cookie/ubb_files/forums/$exact_path/$page_name.online";

$onlinecounter=$onlinecounter+1;
open (FILE, ">>$vars_config{NonCGIPath}/cache-$cache_cookie/ubb_files/forums/$exact_path/$page_name.online");
&lock;
print FILE ("$show_public_namen");
&unlock;
close (FILE);
chmod (0666, "$vars_config{NonCGIPath}/cache-$cache_cookie/ubb_files/forums/$exact_path/$page_name.online");

$show_user_online="";


####Call the **online.cgi

These Codes are that I need you help me. I don't kown where I can add them in the ubb_get_topic.cgi or ubb_lib.cgi


################
$ThisHTML = &OpenFileAsVar("$vars_config{NonCGIPath}/cache-$cache_cookie/ubb_files/forums/$exact_path/$_[1].cgi");

@useronline = &OpenFileAsArray("$vars_config{NonCGIPath}/cache-$cache_cookie/ubb_files/forums/$exact_path/$_[1].online");
$onlinecounter="0";
foreach $useryes(@useronline){
chomp ($useryes);
$onlinecounter=$onlinecounter+1;
if (-e "$vars_config{MembersPath}/UBB6online.cgi") {
$people = &OpenFileAsVar("$vars_config{MembersPath}/UBB6online.cgi");
if ($people =~ /$useryes/){
$ThisHTML =~ s//This member is Online!/gim;
} else {
$ThisHTML =~ s//This member is Offline!/gim;
}
}
}


print "$ThisHTML"; exit;

#####################

In ubb_get_topic.cgi ,
sub get_topic and sub get_new_topic

In ubb_lib.cgi
sub ServeFromCache

How to hack? I need your help!!!!

[ 01-15-2002 07:51 PM: Message edited by: vent ]

Sponsored Links
Joined: Sep 2001
Posts: 8
Junior Member
Junior Member
Offline
Joined: Sep 2001
Posts: 8
^_^


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)