Previous Thread
Next Thread
Print Thread
Rate Thread
#138058 09/30/2001 10:25 PM
Joined: Sep 2001
Posts: 16
Junior Member
Junior Member
Offline
Joined: Sep 2001
Posts: 16
Well...I must be crazy laugh

******************************************************************************
* DESCRIPTION: Shows a complete action history for each topic
* Actions logged are:
* Topic Created,
* Topic Read (Who by, and when),
* Replied to Topic,
* Topic Modified,
* Message Deleted,
* Topic Moved,
* Topic Closed,
* Topic Re-Opened.
*
* This hack also adds a hit counter and
* includes IP Based Flood Protection!
******************************************************************************
* WRITEN BY: Damoclese [email protected]
* DATE: 30.09.2001
* VERSION: 1.0
* IDEA BY: DjKriSSe
* TESTERS: DjKriSSe, ImW2001, BrAiNsTeW
******************************************************************************
* REQUIREMENTS: A full version of UBB 6.05 (tested)
* COMPATABILITY: 6.04c (tested), 6.04d, 6.04e, 6.04f (untested, but should work)
******************************************************************************

Demo: Here
(Please do not post outside of topic! Thanks)


Download: Topic History v1.0

This is still an early beta, so needs testing with for compatability with various mods!

Please leave a reply here if you find any problems!
laugh

P.S. This is my first proper mod for UBB, so go easy on me! wink

[ 10-01-2001: Message edited by: Damoclese ]

Sponsored Links
Joined: Dec 2000
Posts: 371
Member
Member
Offline
Joined: Dec 2000
Posts: 371
I have installed it on ubb 6.04d and it does nothing. It shows the "views" but it stays "0" no matter how many hits there are.

Joined: Sep 2001
Posts: 16
Junior Member
Junior Member
Offline
Joined: Sep 2001
Posts: 16
K...I left something out of the instructions....will update and post again when fixed...! laugh

Sorry! frown

[ 10-01-2001: Message edited by: Damoclese ]

[ 10-01-2001: Message edited by: Damoclese ]

Joined: Sep 2001
Posts: 16
Junior Member
Junior Member
Offline
Joined: Sep 2001
Posts: 16
Right! I have just updated the file, and tested a fresh install on 6.04c (whos online was the only mod installed, but I dont think it would mess it up!)

It worked with no problems!


P.S. Dont forget to clear you boards cache!

Let me know if you are still having problems! laugh

P.S. For those that have alread downloaded and installed the bugged version, just do the following:

Code
code:

and then fush your cash! laugh

[ 10-01-2001: Message edited by: Damoclese ]

[ 10-01-2001: Message edited by: Damoclese ]

Joined: Dec 2000
Posts: 371
Member
Member
Offline
Joined: Dec 2000
Posts: 371
Ok, i can see the topic history now, but still no hit notification by the topics. The "views" stay at zero!

Sponsored Links
#138063 10/01/2001 10:08 AM
Joined: Sep 2001
Posts: 16
Junior Member
Junior Member
Offline
Joined: Sep 2001
Posts: 16
hmmm.....well...it works perfectly on the install I did, Make sure you cleared your cache, and double check every step! Please let me know if you are still having probs!

Are you getting the history entries being updated?
Also, there should be 2 extra files being created in the NonCGIPath/Forum(#) directory....one will be (topic number)-hist.cgi (the history log, and the other will be (topic number)-hits.cgi (the hit counter file! please make sure that bothe are being created, and have a look at them and see if there is any content in there! Thx! laugh

Hmmm...Just realised that if you dont have a file called Vars_Wordlets_Mods file, this mod requires the Mod Wordlet devkit!....I will update the instructions to sort this out! I dont think this is your problem though, otherwise you would have told me you couldn't find the file laugh

[ 10-01-2001: Message edited by: Damoclese ]

#138064 10/01/2001 10:36 AM
Joined: Dec 2000
Posts: 371
Member
Member
Offline
Joined: Dec 2000
Posts: 371
The file vars_wordlets_mods is installed, but i saw an other problem that has to do with CHMOD. I found out that the NonCGIPath/Forum(#) was CHMOD 550, permission denied. Maybe this is it! I can't chmod anything now and i have notified the provider. Stay tuned. smile

#138065 10/01/2001 11:00 AM
Joined: Sep 2001
Posts: 16
Junior Member
Junior Member
Offline
Joined: Sep 2001
Posts: 16
Sorry if I am speaking out of place, but you do realise that the (#) in Forum(#) stands for the number of the forum directory you are looking at!

e.g. Forum1 etc.

[ 10-01-2001: Message edited by: Damoclese ]

Joined: Sep 2001
Posts: 16
Junior Member
Junior Member
Offline
Joined: Sep 2001
Posts: 16
Demo is now available....

See it in action Here

please do not post outside of topic! Thanks laugh

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Very nice hack, but isn't it gonna take tons of cpu usage/ram/whatever for big boards?

But I'm still gonna install it in my (small) board laugh

Sponsored Links
Joined: Dec 2000
Posts: 371
Member
Member
Offline
Joined: Dec 2000
Posts: 371
[QUOTE]Originally posted by Damoclese:
[QB]Sorry if I am speaking out of place, but you do realise that the (#) in Forum(#) stands for the number of the forum directory you are looking at!

e.g. Forum1 etc.

Yep, i know that! wink
But i can't get in the dirs (forum 1 etc.)
I can't open them, chmod them etc. because 550 permission denied.

I saw the demo and the notification "read" was also present...! This was not visible either after placing the hack. Maybe it has the same reason as the failure of the hit notification.

[ 10-01-2001: Message edited by: Variables ]

Joined: Sep 2001
Posts: 16
Junior Member
Junior Member
Offline
Joined: Sep 2001
Posts: 16
Thx LK! As I said, this is only my first hack, so I will (hopefully with help from others) improve it and make it slightly more streamlined!

Variables : hee hee..ok m8! laugh

Well...good luck with your Hosts!

BTW....I left out an icon from the first release, so just grab it from my demo board, or redownload the hack! laugh The missing icon was History_Deleted.gif!

[ 10-01-2001: Message edited by: Damoclese ]

Joined: Dec 2000
Posts: 371
Member
Member
Offline
Joined: Dec 2000
Posts: 371
Hm, i could open one forum dir and saw that only hist-cgi was created. ???

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Bug: it shows login name instead of public name.

Fix: after " local($action, $user_number, $username, $in{f}, $in{t}) = @_;", put " $username = &get_public_name($user_number);" (ubb_topic_history.cgi).

Joined: Sep 2001
Posts: 16
Junior Member
Junior Member
Offline
Joined: Sep 2001
Posts: 16
hmmm...well the -hits.cgi file will only be created when there are actual hits!

If you have installed the hack exactly as stated in the instuctions, then there must be some other problem! Get the permissions sorted first, then, if you are still having problems, email me and I'll see what I can do!

One other thing....What other hacks do you have installed?

Joined: Sep 2001
Posts: 16
Junior Member
Junior Member
Offline
Joined: Sep 2001
Posts: 16
Thx LK laugh

Hack file updated!

Joined: Dec 2000
Posts: 371
Member
Member
Offline
Joined: Dec 2000
Posts: 371
The hacks i've installed are:

ubb codebuttons

who's online

icon hack

hypercells

edit hack

IP hack

preview

cosmetic hack

anchor hack

avatar

memberlist

ubb poll

statistic hack

chat

custom status hack

print page hack

Aim/ICQ

StickyThreads

Mood selector

Glowing names

Systran translation

Icon pulldown menu

Thread integrated Poll

Kalender

Email autoreply

Quick reply hack 2

Smilie2 hack

IP icon

Newsfader

Photo album

Rate topic

Star status hack

Flag/astro

Chatbutton in display

Galaga hack

IP on intro

Mod dropdown

Time-date on intro

MSN hack

avatar addon hack

Posting History

------------------------------------

The hits simply don't show up and also the notification "read" in the link is not visible.
It's maybe obvious that it has something to do with one of the other hacks on the ubb.

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
A better idea:
Find:
Code
code:
Replace with:
Code
code:
Also, you don't have to put $username when you call the Write_Topic_History or in line 32 (then you'll have to change the array numbers in lines 144/145).

[ 10-01-2001: Message edited by: LK ]

Joined: Sep 2001
Posts: 16
Junior Member
Junior Member
Offline
Joined: Sep 2001
Posts: 16
Thx again LK....Better for conserving disk space! laugh

The actual code would have to be
Code
code:

otherwise, if you are a guest, you would have problems! laugh


Hack is now updated!
[ 10-01-2001: Message edited by: Damoclese ]

[ 10-01-2001: Message edited by: Damoclese ]

Joined: Dec 2000
Posts: 371
Member
Member
Offline
Joined: Dec 2000
Posts: 371
Error: Could not write to this file: History_Floodcheck.cgi
Permission denied

???

Joined: Apr 2001
Posts: 711
Spotlight Winner
Spotlight Winner
Offline
Joined: Apr 2001
Posts: 711
CHMOD that file to 777.

Joined: Dec 2000
Posts: 371
Member
Member
Offline
Joined: Dec 2000
Posts: 371
Yeah ok, but there is no such file! frown

wait a minute...i saw a Floodcheck.cgi in the banlist dir.

The hack works perfect now damoclese! Tnx. wink

[ 10-01-2001: Message edited by: Variables ]

Joined: Apr 2001
Posts: 711
Spotlight Winner
Spotlight Winner
Offline
Joined: Apr 2001
Posts: 711
laugh

Joined: Dec 2000
Posts: 371
Member
Member
Offline
Joined: Dec 2000
Posts: 371
Error: Could not open file for writing.

This message shows up on sereval topics that have 0 views. Very wierd.

And also this: Sorry, there are no new posts today....by Daily topics.

[ 10-01-2001: Message edited by: Variables ]

Joined: Sep 2001
Posts: 16
Junior Member
Junior Member
Offline
Joined: Sep 2001
Posts: 16
it must be something to do with your permissions....

That is the only thing I can think of! frown

Joined: Dec 2000
Posts: 371
Member
Member
Offline
Joined: Dec 2000
Posts: 371
I guess it does damoclese, it has nothing to do with your hack. The server owner recieved my mail and has all the forums in the non-cgi dir chmod'ed 777...but it looks that other dirs are chmod (???) to. How can i chmod what to make the topics viewable again and writable without making a "open house" of the cgi files?

Joined: Sep 2001
Posts: 16
Junior Member
Junior Member
Offline
Joined: Sep 2001
Posts: 16
hmmm...to be honest I am not sure, It all depends on which directories you are talking about!

My hack only writes to files in the Forum(#) directories and the BanLists dir. It will not mess up anything else, unless it is either not installed correctly, or is clashing with another hack! frown

I have another board (ver6.05), apart from my test board, which has got over 20 hacks on....and it still works perfectly!) smile

For other peoples benefit I will list the hacks that I know my hack works perfectly ok with:

12 mods per forum
Last post in profile
Latest threads
Pagenumbers
Sig Preview
Sticky Threads
UbbNews
ViewPMinfo
Whos Online
Anchor hack
DropDownMods
Memberlist
Newsfader
Preview Post
Smilies
Statshack
Ubbcode
Megamod
Rate topic
Country flags
Email Replies
Hidden Forum

laugh laugh

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Found another bug, everybody can see titles and who watched private topics.

Fix:
After
Code
code:
Add
Code
code:

#138086 10/04/2001 11:25 AM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Interesting modification... looks like it would take a lot of disk space smile


- Allen wavey
- What Drives You?
Joined: May 2001
Posts: 2,798
Member
Member
Offline
Joined: May 2001
Posts: 2,798
Look really interesting.. But maybe an option to only have it in a certain forum, not everyone. And maybe only Administrators or Mods can have it so when they post the thread they have an option to get it logged?

Also might want to think about putting in on 6.1 too... Just incase people like it...

[ 10-05-2001: Message edited by: Tech-Ni-Kal ]

Joined: Sep 2001
Posts: 16
Junior Member
Junior Member
Offline
Joined: Sep 2001
Posts: 16
Sorry about not being around for a while, My wife and I have just had our first child, and as you can imagine, all hell is breaking loose wink !

I will continue to develop this hack once things have settled down again! smile

Joined: Oct 2001
Posts: 1
gev Offline
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 1
ok im having major problems with this thing. first, it gave me an error about not being able to write to a file, i looked in teh code, and i moved some stuff around and fixed it. this was happening when you wanted to view a topic. now i cant view the history or see how many hits it got. i checked the history and teh hits files it was supposed to amke and it didn't. any suggestions? Board is at www.whosefault.com

oh i forgot... when i click on "view this topics histroy", it says you are trying to reach a page that does not exist ???

help please

[ 11-12-2001: Message edited by: gev ]

Joined: Nov 2000
Posts: 652
Member
Member
Offline
Joined: Nov 2000
Posts: 652
I am getting the same problem as gev, can someone please help fast!

Joined: Nov 2000
Posts: 652
Member
Member
Offline
Joined: Nov 2000
Posts: 652
NeverMind, you failed to mention in your instructions to make a file in your Noncgi banlist folder named History_Floodcheck.cgi and chmod it to 666 that fixed the problem, works great now.

Joined: Apr 2001
Posts: 20
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 20
hi,

nice work!!!
but i have a problem with the date and time variables in german. can i modify the

e.g.
12-17-2001 in 17.12.2001
and
02:27 PM in 14:27

????

please help!

Joined: Oct 2001
Posts: 5
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 5
quote:
Originally posted by LK:
Found another bug, everybody can see titles and who watched private topics.

Fix:
After
code:
	@this_forum = &GetForumRecord($in{f});

Add
code:
	if ($this_forum[6] eq 'private') {
&check_private_access($in{f}, $this_forum[12]);
}





LK where do i have to edit this file to kill the bug ?

thank you

Marlon B

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
I think it's ubb_topic_history.cgi

Joined: Oct 2001
Posts: 5
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 5
Thank you Damoclese and LK 4 the fixes !
the hack is working perfectly on ubb 605

Now that the hacks work perfectly i realize why is so server consuming gor every message that get's view you get 2 extra files a hit and a history cgi files !!!
that's a lot of files if your board is big.

apart of that i really like it.
would be good to restrict to view the topic history to admin and mod only....

MArlon B

[ 12-19-2001 05:51 PM: Message edited by: *-=Marlon**B=-* ]

Joined: Oct 2001
Posts: 5
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 5
i almost forgot were do i find the IP Based Flood Protection OPtion ?

Joined: May 2001
Posts: 12
Junior Member
Junior Member
Offline
Joined: May 2001
Posts: 12
hi

can u add top topic hack?


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
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
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)