[1.8 Release] Forum Info v1.0
Description: This hack gives you a basic tool to review the status of information on your board.
Example: Inactive Members, Total staff, total u2us, total read u2us, total members, board build, board version, how many are online, Total Threads, total posts, total active forums, total forums
Original Code Designed By: Eagle1
New Code Design By: Firewalker @ xmbsource.co.uk
Note: Posting or Distributing this hack without the consent of the author is not permitted.
Note 2: Backup all effected files bthis hack for your own safety before proceeding please!
-----------------------------------------------------------------------------------------------------------------------
Step 1:
Open File: English.lang.php (or other lang file if different)
Find Code:
?>
Add Code Above & Save:
//Forum Info Lang Start
$lang_finfo_foruminfo = "Forum Info";
$lang_finfo_boardvers = "Board Version:";
$lang_finfo_boardbld = "Board Build:";
$lang_finfo_totalforums = "Total Forums:";
$lang_finfo_activeforums = "Active Forums:";
$lang_finfo_totalmems = "Total Members:";
$lang_finfo_totalthreads = "Total Threads:";
$lang_finfo_totalposts = "Total Posts:";
$lang_finfo_totalu2us = "Total U2Us:";
$lang_finfo_guestsonline = "Guests Online:";
$lang_finfo_membersonline = "Members Online:";
$lang_finfo_admins = "Administrators:";
$lang_finfo_mods = "Moderators:";
$lang_finfo_inactive = "Inactive Members:";
$lang_finfo_readu2us = "Total Read U2Us:";
$lang_finfo_supadmins = "Super Administrators:";
$lang_finfo_supmods = "Super Moderators:";
//Forum Info Lang End
-----------------------------------------------------------------------------------------------------------------------
Step 2:
Open File: tools.php
Find Code At Very Bottom:
end_time();
eval("$footer = "".template("footer")."";");
echo $footer;
?>
Add Code Above:
if($action == 'foruminfo') {
$query = $db->query("SELECT COUNT(*) FROM $table_members");
$members = $db->result($query, 0);
$query = $db->query("SELECT COUNT(*) FROM $table_threads");
$threads = $db->result($query, 0);
$query = $db->query("SELECT COUNT(*) FROM $table_posts");
$posts = $db->result($query, 0);
$query = $db->query("SELECT COUNT(*) FROM $table_u2u");
$u2us = $db->result($query, 0);
$query = $db->query("SELECT COUNT(*) FROM $table_whosonline WHERE username LIKE 'xguest123'");
$gonline = $db->result($query, 0);
$query = $db->query("SELECT COUNT(*) FROM $table_whosonline WHERE username NOT LIKE 'xguest123'");
$monline = $db->result($query, 0);
$query = $db->query("SELECT COUNT(*) FROM $table_members WHERE status = 'Moderator'");
$modmems = $db->result($query, 0);
$query = $db->query("SELECT COUNT(*) FROM $table_members WHERE status = 'Administrator'");
$adminmems = $db->result($query, 0);
$query = $db->query("SELECT COUNT(*) FROM $table_forums WHERE type='forum'");
$forums = $db->result($query, 0);
$queryc = $db->query("SELECT COUNT(*) fid FROM $table_forums WHERE fup='$fid'");
$forums = $db->result($query, 0);
$query = $db->query("SELECT COUNT(*) FROM $table_forums WHERE type='forum' AND status='on'");
$forumsa = $db->result($query, 0);
$query = $db->query("SELECT COUNT(*) FROM $table_members WHERE postnum = '0'");
$inactive = $db->result($query, 0);
$query = $db->query("SELECT COUNT(*) FROM $table_u2u WHERE readstatus='yes'");
$readu2us = $db->result($query, 0);
$query = $db->query("SELECT COUNT(*) FROM $table_members WHERE status = 'Super Moderator'");
$supmodmems = $db->result($query, 0);
$query = $db->query("SELECT COUNT(*) FROM $table_members WHERE status = 'Super Administrator'");
$supadminmems = $db->result($query, 0);
?>
=$lang_finfo_boardvers?> |
=$versiongeneral?> |
=$lang_finfo_boardbld?> |
=$versionbuild?> |
$lang_finfo_totalforums?> |
=$forums?> |
=$lang_finfo_activeforums?> |
=$forumsa?> |
=$lang_finfo_totalmems?> |
=$members?> |
=$lang_finfo_totalthreads?> |
=$threads?> |
=$lang_finfo_totalposts?> |
=$posts?> |
=$lang_finfo_totalu2us?> |
=$u2us?> |
=$lang_finfo_guestsonline?> |
=$gonline?> |
=$lang_finfo_membersonline?> |
=$monline?> |
=$lang_finfo_admins?> |
=$adminmems?> |
=$lang_finfo_mods? |
=$modmems?> |
=$lang_finfo_inactive?> |
=$inactive?> |
=$lang_finfo_readu2us?> |
=$readu2us?> |
=$lang_finfo_supadmins?> |
=$supadminmems?> |
=$lang_finfo_supmods?> |
=$supmodmems?> |
|
}
Find Code:
=$lang_cplog?>
Add Code After:
- =$lang_finfo_foruminfo?>
-----------------------------------------------------------------------------------------------------------------------
Step 3:
Open File: cp.php
Find Code:
=$lang_cplog?>
Add Code After:
- =$lang_finfo_foruminfo?>
-----------------------------------------------------------------------------------------------------------------------
Step 4:
Open File: cp2.php
Find Code:
=$lang_cplog?>
Add Code After:
- =$lang_finfo_foruminfo?>
-----------------------------------------------------------------------------------------------------------------------
Step 5:
Now assuming you backed up all the effected files by this hack you may now proceed to upload the new files to your board over the old ones.
Now go to http://whateveryourdomainis.com/yourforum/tools.php?action=foruminfo
?=$tablespace?>?=$lang_finfo_foruminfo?>?=$lang_finfo_boardvers?>?=$versiongeneral?>?=$lang_finfo_boardbld?>?=$versionbuild?>?$lang_finfo_totalforums?>?=$forums?>?=$lang_finfo_activeforums?>?=$forumsa?>?=$lang_finfo_totalmems?>?=$members?>?=$lang_finfo_totalthreads?>?=$threads?>?=$lang_finfo_totalposts?>?=$posts?>?=$lang_finfo_totalu2us?>?=$u2us?>?=$lang_finfo_guestsonline?>?=$gonline?>?=$lang_finfo_membersonline?>?=$monline?>?=$lang_finfo_admins?>?=$adminmems?>?=$modmems?>?=$lang_finfo_inactive?>?=$inactive?>?=$lang_finfo_readu2us?>?=$readu2us?>?=$lang_finfo_supadmins?>?=$supadminmems?>?=$lang_finfo_supmods?>?=$supmodmems?>?=$lang_cplog?>?=$lang_finfo_foruminfo?>?=$lang_cplog?>?=$lang_finfo_foruminfo?>?=$lang_cplog?>?=$lang_finfo_foruminfo?>
Posted by astrasoul7 at 09:24 AM on October 25, 2003.
This is just a fix will take out the spaces in member sig
and will look better ..
If you don't like just uninstall it..
To Do..
Edit VIEWTHREAD.PHP
FIND :
if($post[usesig] == "yes") {
$post[sig] = postify($post[sig], '', $sigbbcode, $forum[allowsmilies], $SETTINGS[sightml], '', $forum[allowimgcode]);
eval("$post[message] .= "".template("viewthread_post_sig")."";");
}
REPLACE WITH:
$rowspan = "rowspan="3"";
if($post[usesig] == "yes") {
$post[sig] = postify($post[sig], '', $sigbbcode, $forum[allowsmilies], $SETTINGS[sightml], '', $forum[allowimgcode]);
eval("$usersig = "".template("viewthread_post_sig")."";");
$rowspan = "rowspan="4"";
}else{
unset($usersig);
}
EDIT VIEWTHREAD_POST TEMPLATE
FIND:
REPLACE IT WITH:
|
FIND:
|
$post[subject]$post[message]
|
ADD BELOW :
$usersig
EDIT VIEWTHREAD_POST_SIG TEMPLATE
REPLACE EVERYTHING WITH
$post[sig]
|
ENJOY iT!
Posted by astrasoul7 at 09:25 AM on October 25, 2003.
October 26th, 2003
Posted by astrasoul7 at 01:40 PM on October 26, 2003.

My mom and sister's "family" depress me.
So after work yesterday i went to CBS for an hour then went to the movies with my bro and Clownly and some other guys. We saw scarey movie 3. And i got home at about 12:30am. I got off of work at like 8:30pm. So this morining my mom fucking yells at me so much about how we should not have been out all night.
But i'm out all night when i work at night.. and then she goes off on what if she would have needed to use the car, and i'm like "where would you go at 11:00 pm?" and she like "thats not the point" and screams and yells at me some more.
I don't get it,
So why did she give naggaroth the mini van, to keep? Yea nag finally moved the fuck out, but they are at the house everyday dropping off their kids, making beji (my grandma) watch them. and shes old. and its not fair to her. so i stand up and say thats wrong and i get shot down by everyone..
I begin to wonder if its even worth the trouble anymore. I work 5 days a week, 10 hours per day then goto school 4 days a week. and yet its a crime if i go out to see a movie. that women is a control freak.
October 28th, 2003
Posted by astrasoul7 at 05:40 PM on October 28, 2003.
i saw a spider in my room, i'm not afird of spiders and don't find them yucky or anything, but it was big so i was kinda just watching it crawl around. Last night the heating wouldn't turn on and it was really cold, so my brother fixed it by himself, for the first time without my dad their to tell him or show him or anything. And while i was laying in bed thinking about that i thought about how i raked the leaves all by myself this year, without my dad telling me or me helping him. It was a bit sad.
October 29th, 2003
Posted by astrasoul7 at 09:09 PM on October 29, 2003.
a lot, its been hurting almost all day, so have my lungs. my ulcers have goten worse i've now got internal bleeding. time to call my doc. i don't like docs and hospitals.
oh what will become of me?
|