Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
#202555 04/02/2004 7:43 AM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Modification Name: Hit Hack

Author(s): Brett

Description: Shows hits in forum summary/page

Demo: http://www.pavioni.com/ubb/ultimatebb.php

Requirements: UBB 6.7, Mod Wordlets

Download Link: https://www.ubbdev.com/ubb/upload/00006378/HitHack6.7.zip

Credits: LK, e@sy, qasic, cal

IF THE NUMBERS ARE NOT SHOWING UP, PLEASE VERIFY THAT UBB_HITS.CGI IS CHMODed TO 755 - Ian

Sponsored Links
#202556 04/02/2004 11:21 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
thank you smile

I ported it for use on my personal site, but it'll be good to check my results against yours smile


- Allen wavey
- What Drives You?
#202557 04/02/2004 2:44 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
pretty much all I edited was a use vars(%hits) in ultimatebb and it all worked

#202558 04/02/2004 3:18 PM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
there were a couple parts where the find parts were not there, it wasn't that simple. wink

#202559 04/02/2004 3:29 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
"pretty much" wink

Sponsored Links
#202560 04/02/2004 3:31 PM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Ok, havin a little trouble finding the parts in cp_prune.cgi, tipsy

#202561 04/02/2004 3:37 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
did you look at Allen's 6.6 version? he posted it in the 6.4 thread

#202562 04/02/2004 4:00 PM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
No, didn't see that...

#202563 04/02/2004 5:43 PM
Joined: May 2001
Posts: 684
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 684
Hi Brett,

I tested your hit-hack at your test-board and it seems to be that your hack does not work correctly, if I click the same thread 2,3 or 4 times it counts only 1 hit...

A cache problem?

Allens one works fine with cache and ultimatebb.php


Webmaster of d-talk & Kabel-Forum.com
#202564 04/03/2004 6:42 AM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
It's my understanding that it should only see one hit as it's one person viewing the thread... Uniqueness and all...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Sponsored Links
#202565 04/06/2004 11:56 AM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
No, I don't think I built any uniqueness system into Hit Hack...

#202566 04/08/2004 3:44 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
buglet:

Code
*********************
* Open cp2_content.cgi *
*********************

Find: (~275)
=====

# delete topic file
&Unlink("$vars_config{NonCGIPath}/$exact_path/$_.cgi");
needs to be changed to:

Code
*********************
* Open cp2_content.cgi *
*********************

Find: (~1093)
=====

# delete topic file
&Unlink("$vars_config{NonCGIPath}/$exact_path/$topic.cgi");
tho this may only affect 6.7.1 smile


- Allen wavey
- What Drives You?
#202567 04/09/2004 12:27 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3


- Allen wavey
- What Drives You?
#202568 04/09/2004 12:49 PM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Allen, does the MHP include your little buglet for 6.7.1? If so you may need to update if the error was just in 6.7...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
#202569 04/09/2004 2:33 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
I haven't checked 6.7 recently, the mhp uploaded was tested against the 6.7.1 you see installed there smile


- Allen wavey
- What Drives You?
#202570 05/15/2004 3:14 PM
Joined: Sep 2001
Posts: 672
Member
Member
Offline
Joined: Sep 2001
Posts: 672
Anyone know if hit hack will ever support Opera? Not working in the newest ver of opera

#202571 05/15/2004 3:18 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
It should work perfectly. Go to my forums, you don't see the hits?

This is BASIC js, it's more of an Opera supporting the hit hack

#202572 05/15/2004 3:26 PM
Joined: Sep 2001
Posts: 672
Member
Member
Offline
Joined: Sep 2001
Posts: 672
No Ian, I dont see the hits, lol. Open up Opera browser if you have it installed. Im tellin ya, it doesnt show hits

#202573 05/15/2004 4:27 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
would you look again? (you might have to refresh)

#202574 05/15/2004 5:25 PM
Joined: Sep 2001
Posts: 672
Member
Member
Offline
Joined: Sep 2001
Posts: 672
now it works, what'd u do differntly?

#202575 05/15/2004 5:25 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
changed that appendchild(createTextNode()) thing to innerHTML =

#202576 05/15/2004 5:32 PM
Joined: Sep 2001
Posts: 672
Member
Member
Offline
Joined: Sep 2001
Posts: 672
Ok, I'll look into the code later, (leaving for the seinfeld show now) what file is that stored in off hand? Thanks, wink

#202577 05/15/2004 5:38 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
ubb_hits.cgi

#202578 05/16/2004 2:01 AM
Joined: Sep 2001
Posts: 672
Member
Member
Offline
Joined: Sep 2001
Posts: 672
so something like ...

Code
document.getElementById('hit$_').innerHTML="$hits{$_}";n~;
?

#202579 05/16/2004 5:58 AM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
yeah, do that for all the lines that had "createTextNode" in them

#202580 05/16/2004 9:58 AM
Joined: Aug 2000
Posts: 178
Member
Member
Offline
Joined: Aug 2000
Posts: 178
Ian is that a "bug fix" or a one off ?

Should we all do it i guess is the question smile

#202581 05/16/2004 10:19 AM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
It would make it support the big 4 (Mozilla, IE, Opera, Netscape), however, since it's not my mod, it's up to Brett if he wants to add it

#202582 05/16/2004 10:23 AM
Joined: Sep 2001
Posts: 672
Member
Member
Offline
Joined: Sep 2001
Posts: 672
Hmmm, I have 3 lines of total code in ubb_hits.cgi

I've changed all 3 to what you said. For example:

Code
document.getElementById('hitf$forums[$_]').innerHTML="$hits{forum} $vars_wordlets_mods{count_on_click_lowercase}";
Code
document.getElementById('hitt$forums[$_]').innerHTML="$hits{$topics[$_]} $vars_wordlets_mods{count_on_click_lowercase}";n~;
AND

Code
document.getElementById('hit$_').innerHTML="$hits{$_}";n~;
Still cant show up in Opera. Is that correct syntax? I'll keep workin on this one wink

#202583 05/16/2004 10:30 AM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Try this also, forgot the other change I made.

In ubb_hits.cgi
FIND:
Code
if (is_ie5up || is_gecko
ADD AFTER:
Code
 || agt.indexOf("opera")

#202584 05/16/2004 10:41 AM
Joined: Sep 2001
Posts: 672
Member
Member
Offline
Joined: Sep 2001
Posts: 672
Works Perfect tipsy

Thanks for the hack Ian thumbsup

#202585 05/16/2004 11:00 AM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Quote
Originally posted by havoq:

Works Perfect tipsy

Thanks for the hack Ian thumbsup

haha, thank Brett for the hack, thank me for 2 lines of code, one of which Brett taught me tipsy

#202586 05/16/2004 11:12 AM
Joined: Sep 2001
Posts: 672
Member
Member
Offline
Joined: Sep 2001
Posts: 672
lol, well then, props to Brett as well! Thanks buddy wink

#202587 05/20/2004 11:13 PM
Joined: Jul 2002
Posts: 42
Member
Member
Offline
Joined: Jul 2002
Posts: 42
I could probably figure this out for myself, but I would like to change the displayed wording of "Hits" to "Views". wink

Thanks for any help. smile

#202588 05/20/2004 11:18 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
change
Code
	q!count_on_click! => q!Hits!,
q!count_on_click_lowercase! => q!hits!,
to

Code
	q!count_on_click! => q!Views!,
q!count_on_click_lowercase! => q!views!,

#202589 05/20/2004 11:32 PM
Joined: Jul 2002
Posts: 42
Member
Member
Offline
Joined: Jul 2002
Posts: 42
Quote
Originally posted by Ian Spence:

change
Code
	q!count_on_click! => q!Hits!,
q!count_on_click_lowercase! => q!hits!,
to

Code
	q!count_on_click! => q!Views!,
q!count_on_click_lowercase! => q!views!,
Thanks Ian, you totally ROCK! thumbsup

#202590 05/22/2004 4:11 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Brett, anyway to get this to update with mass move?
I just combined 2 of my forums, and all the moved posts had their counters reset

#202591 06/08/2004 11:59 AM
Joined: Feb 2003
Posts: 179
Member
Member
Offline
Joined: Feb 2003
Posts: 179
Quote
Originally posted by Brett:

Requirements: UBB 6.7, Mod Wordlets
I'm having trouble finding "Mod Wordlets" up here... is this a 6.4-6.7 Mod?

#202592 06/08/2004 7:01 PM
Joined: Jan 2003
Posts: 118
Member
Member
Offline
Joined: Jan 2003
Posts: 118
Interesting error. Example... A thread listed in the last post column under a category and in a forum will display 6 hits from the main board.

When I click on the category to view all forums in that category, it will say that thread that was in the last post column has 66 hits.

When I go to view that post in that forum, and then click back to the category, it will say that the thread has 77 hits. When I go back out to the all category listing, it shows that the last post has 7 hits.

Help please? smile

-Thanks again


-GATOR

"Pain is temporary, Pride is forever"
#202593 06/08/2004 7:07 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
appears to be working for me confused

#202594 06/08/2004 7:15 PM
Joined: Jan 2003
Posts: 118
Member
Member
Offline
Joined: Jan 2003
Posts: 118
Ian, I apologize, but that link in the sig is still for the test board, not production. I will PM you the link to that board. This applies to the same board but it got moved and cats and forums added.


-GATOR

"Pain is temporary, Pride is forever"
Page 1 of 3 1 2 3

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
isaac
isaac
California
Posts: 1,157
Joined: July 2001
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
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)