#37435
04/27/2000 6:51 AM
|
Joined: May 2001
Posts: 50
Member
|
Member
Joined: May 2001
Posts: 50 |
This great hack allows you to insert a counter anywhere you'd like to without the need for Server Side Includes. It's incredibly easy to use and install, causes very minimal overhead and even manages to look pretty, too! I've got this hack logging visits on every page and in every post, and I can now keep track of everything on my site and figure out what the lurkers are looking at and which subjects get noticed. For a guy like me (neurotic) that's useful information. I didn't write this hack. This hack was written by cal (my new hero) after I had spent about 5 days solid with CGI and the UBB in particular figuring out how to install it and add the hacks I wanted. The original post is here if you're interested: http://ubbcodehacking.com/ubb/Forum2/HTML/000582.html You can download this hack directly from cal's site: http://www.one37.com/hacks/InlineCount.zip I'll be posting very specific directions on where exactly to add the counter calls to make everything look pretty later today. If you like the hack, e-mail cal and tell him that! ![[Linked Image]](http://ubbcodehacking.com/ubb/smile.gif) - Shocky My Test Board http://www.donmar.ca/cgi-bin/Ultimate.cgi
|
|
|
#37436
04/27/2000 8:08 AM
|
Joined: May 2001
Posts: 50
Member
|
Member
Joined: May 2001
Posts: 50 |
Don't even think about downloading this hack yet. Unfortunately cal missed the fact that the script has errors in it due to the common "| |" problems (the forum adds a space between these when there should be none). Give me an hour or so to play with it and I'll have the final version ready for everyone. Sorry about that!
|
|
|
#37437
04/27/2000 8:14 AM
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
Joined: Aug 2000
Posts: 3,590 |
I downloaded the file before your second post. It didn't work, as you can guess.
I've got another question, didn't you miss: require "UltBB.setup"; because later in the file it says: $data_dir = "$CGIPath/counters"; How should it know where the folder is? May be I'm wrong since i don't know much about the UBB code yet.
|
|
|
#37438
04/27/2000 9:05 AM
|
Joined: Feb 1999
Posts: 1,379
Programmer
|
Programmer
Joined: Feb 1999
Posts: 1,379 |
Quite right, both of you. Hack updated. Just a thought ![[Linked Image]](http://ubbcodehacking.com/ubb/smile.gif)
|
|
|
#37439
04/27/2000 1:11 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 |
Thank you, Cal!I think I might wait until you or shockwave gives me those hints about where to place the counter calls so everything looks all pretty and tidy... ![[Linked Image]](http://ubbcodehacking.com/ubb/smile.gif) Thanks again, ------------------ Allen - http://www.stand318.com
|
|
|
#37440
04/27/2000 1:14 PM
|
Joined: Feb 1999
Posts: 1,379
Programmer
|
Programmer
Joined: Feb 1999
Posts: 1,379 |
Shockwave is working on this I believe. Do you have ICQ Allen? Just a thought ![[Linked Image]](http://ubbcodehacking.com/ubb/smile.gif)
|
|
|
#37441
04/27/2000 2:35 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 |
OK... good. I just installed icq... I had resisted until now.. ![[Linked Image]](http://ubbcodehacking.com/ubb/smile.gif) my icq # is 72322157 ------------------ Allen - http://www.stand318.com
|
|
|
#37442
04/27/2000 3:36 PM
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
Joined: Aug 2000
Posts: 3,590 |
Ok, so I'm trying to figure out a way to display the stats, but beeing that I'm not considering myself as a cgi programmer I'm having some trouble with this... This is the routine in Ultimate.cgi that I want the stats in: The above works, but I want to change the font and distance it from other text on the page. How do I do that? (The stats is displayed right above "contact us | my UBB") Thank you.
|
|
|
#37443
04/27/2000 4:22 PM
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
tanga, this is not the hack there talking about. We are not talking about Stats. lol.
|
|
|
#37444
04/27/2000 4:38 PM
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
Joined: Aug 2000
Posts: 3,590 |
MasterMind, you actually made me look a second and a third time to make sure I posted this right, but sorry, I'm STILL talking about the "Inline count hack" (that display count STATISTICS!) and Shockwave, I read your comments:
|
|
|
#37445
04/27/2000 5: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 must have misunderstood the procedure. I placed the &InsertCount; in my memberline in Ultimate.cgi, like so: http://www.stand318.com/ubbcgi/Ultimate.cgi It prints &InsertCount; ![[Linked Image]](http://ubbcodehacking.com/ubb/smile.gif) I am guessing this must go inside a printHTML or BottomHTML sub/area... can you take a look and tell me what is up? I hope it can be adapted for some simple numbers in that memberline statement. Thanks, ------------------ Allen - http://www.stand318.com
|
|
|
#37446
04/28/2000 3:23 AM
|
Joined: Feb 1999
Posts: 1,379
Programmer
|
Programmer
Joined: Feb 1999
Posts: 1,379 |
&InsertCount; calls a subroutine so it can't be put inside a print block. I might fix this in the near future. Just a thought ![[Linked Image]](http://ubbcodehacking.com/ubb/smile.gif)
|
|
|
#37447
04/30/2000 3:45 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 cal, for changing it. I installed it as written in the instructions, but my counter is "stuck" at 1 - which, I guess, is probably the start number for the hack. I uploaded the callcount.cgi script in ascii, created the "counters" directory and gave it rwxd permissions, still no go. You may see it in "inaction" ![[Linked Image]](http://ubbcodehacking.com/ubb/smile.gif) @: http://www.stand318.com/ubbcgi/Ultimate.cgi hmmmm... I am wondering if this original hack (accessed x times (x today, x this week) can just be added to your inline stats hack. If the fonts can be squeezed down to match the fonts from the inline stats hack, that would look pretty cool, and not take up as much space as the one from here does (the table box would/could be smaller. Anyways.... thankyou again, great as always, ------------------ Allen - http://www.stand318.com
|
|
|
#37448
04/30/2000 4:58 AM
|
Joined: Feb 1999
Posts: 1,379
Programmer
|
Programmer
Joined: Feb 1999
Posts: 1,379 |
I don't think it is stuck - it just wont allow the same IP twice in a row (to stop rigging). I like the idea of combining the two - thanks. Just a thought ![[Linked Image]](http://ubbcodehacking.com/ubb/smile.gif)
|
|
|
#37449
04/30/2000 5:19 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 |
![[Linked Image]](http://ubbcodehacking.com/ubb/biggrin.gif) I forgot you mentioned that it wouldn't allow the ip to count more than once in a row... heheh.. it is working well. Thank you again... ------------------ Allen - http://www.stand318.com
|
|
|
#37450
05/16/2000 2:47 PM
|
Joined: Jan 2000
Posts: 7
Junior Member
|
Junior Member
Joined: Jan 2000
Posts: 7 |
Hello, Is it possible with this hack to show page views for a thread on forumdisplay.cgi? ------------------ James L. Murray VirtueTech, Inc. EMAIL: info@virtuetech.com WWW: http://www.virtuetech.com
|
|
|
#37451
05/17/2000 12:11 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 |
It would appear so. You can see it in action on Mutt's site: http://sternfannetwork.com/ubb/Forum1/HTML/000020.shtml The deal is, I am not sure it is Cal's hack, and Mutt also had to get his ubb to make .shtml files instead of .html. ------------------ Allen - http://www.stand318.com
|
|
|
#37452
05/18/2000 10:23 AM
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
Joined: Aug 2000
Posts: 3,590 |
ShockWave, As you mentioned earlier: Any chance of getting my hands on these directions? The hack is awesome and it deserves to be shown on my page. cheers
|
|
|
#37453
05/20/2000 7:51 AM
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
Joined: Aug 2000
Posts: 3,590 |
AllenAyres I had the same problem when I post the counter beside the topic subject and It prints &InsertCount; .. i read the threads but i didn't see how you fixed that .. will you please help on how to fix this problem ..
thanks in advance
Have a nice day
|
|
|
#37454
05/21/2000 9:41 AM
|
Joined: May 2001
Posts: 50
Member
|
Member
Joined: May 2001
Posts: 50 |
Please visit www.ubbhackers.com for this hack's intructions. I'm no longer frequenting this board. Thanks!
|
|
|
#37455
10/28/2001 1:06 PM
|
Joined: Oct 2000
Posts: 27
Member
|
Member
Joined: Oct 2000
Posts: 27 |
Shockwave's zip file is no longer working.
Does someone have a link to this hack?
|
|
|
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.
|
|
Posts: 69
Joined: January 2001
|
|
Forums63
Topics37,575
Posts293,932
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|