Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: May 2001
Posts: 50
Member
Member
Offline
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]

- Shocky

My Test Board http://www.donmar.ca/cgi-bin/Ultimate.cgi

Sponsored Links
Joined: May 2001
Posts: 50
Member
Member
Offline
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!

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
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.

Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
Quite right, both of you. Hack updated.

Just a thought [Linked Image]

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]

Thanks again,

------------------
Allen

- http://www.stand318.com


- Allen wavey
- What Drives You?
Sponsored Links
Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
Shockwave is working on this I believe. Do you have ICQ Allen?

Just a thought [Linked Image]

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] my icq # is 72322157

------------------
Allen

- http://www.stand318.com


- Allen wavey
- What Drives You?
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
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:


Code
code:

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.

Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
tanga, this is not the hack there talking about. We are not talking about Stats. lol.

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
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:
Quote
quote:

Sponsored Links
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]
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


- Allen wavey
- What Drives You?
Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
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]

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://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


- Allen wavey
- What Drives You?
Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
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]

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] 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


- Allen wavey
- What Drives You?
Joined: Jan 2000
Posts: 7
Junior Member
Junior Member
Offline
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

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


- Allen wavey
- What Drives You?
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
ShockWave,
As you mentioned earlier:
Quote
quote:
Any chance of getting my hands on these directions?
The hack is awesome and it deserves to be shown on my page.

cheers

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
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

Joined: May 2001
Posts: 50
Member
Member
Offline
Joined: May 2001
Posts: 50
Please visit www.ubbhackers.com for this hack's intructions. I'm no longer frequenting this board.

Thanks!

Joined: Oct 2000
Posts: 27
Member
Member
Offline
Joined: Oct 2000
Posts: 27
Shockwave's zip file is no longer working.

Does someone have a link to this 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
hatter
hatter
USA
Posts: 69
Joined: January 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
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,835
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)