Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
Ok I am going to release this hack. It's is a views counter that works with the cache, but does not work with the accelerator. It is VERY BETA, I warn you up front, so don't scream and yell if it doesn't work perfect. In fact, if you are not comfortable installing BETA hacks, don't install this at all. With those things in mind, download the hack below. This hack was based off of JB007's original hack for 6.0x.

Download
Views Counter 5.0 [BETA]

Demo
http://www.vhforums.com

[ 11-28-2001 06:18 PM: Message edited by: Slurpee ]

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
Thanks Slurpee... if you used JB's from before and upgraded to this one, would the counts form the old one remain?


- Allen wavey
- What Drives You?
Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
Yep did on mine.

Joined: Jun 2001
Posts: 729
Coder
Coder
Offline
Joined: Jun 2001
Posts: 729
Is there a way to keep the date and time of when the thread was started? Took alook at your site and think this is going to be another one of those must haves!

Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
I don't think I have that anywhere, I just have the last time the topic was replied to on the topic page. What am I missing? Where are you looking?

Sponsored Links
Joined: Jun 2001
Posts: 729
Coder
Coder
Offline
Joined: Jun 2001
Posts: 729
I took a look at your site vs my development site. Mine also has along with the user, the date and time the thread started.

My develoment site:
www.pwrhouse.com/cgi-bin/ultimatebb.cgi

Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
I see what you're talking about. Yes you have that on your Topics Display, I don't. So now what's the question you're asking?

Joined: Jun 2001
Posts: 729
Coder
Coder
Offline
Joined: Jun 2001
Posts: 729
To also include the date and time stamps of when the thread started

Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
Oh you mean as part of this Views Counter thing?

Joined: Jun 2001
Posts: 729
Coder
Coder
Offline
Joined: Jun 2001
Posts: 729
Yeppers

Sponsored Links
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
I'm a little confused in ubb_forum.cgi part.

Quote
quote:
but i already have the who's online code there. Do i skip over this step if i do er...what?

Joined: Nov 2001
Posts: 170
Member
Member
Offline
Joined: Nov 2001
Posts: 170
It works fine with me. There is an error in the code I think you should add a "}" in this code
Code
code:
it should be
Code
code:
another thing if you have last replay by hack instald you should change this
Code
code:
to be
Code
code:
I am not sour about the last step because I have added a colomin for this hack in the form page
I am using v6.1.0.3

Joined: Nov 2001
Posts: 170
Member
Member
Offline
Joined: Nov 2001
Posts: 170
Oh I forget
Thank you very much for this hack I rely need it in my form

Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
Code
code:

[ 11-27-2001 12:08 AM: Message edited by: Slurpee ]

Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
Quote
quote:
Thanks made the fix. With regards to placement because of other hacks....There is no way for me to make a bunch of different variations of this hack with all the possible layout changes and hacks people have added. You will have to have some understanding of placing variables in the public_forum_page.pl template if you have a bunch of different hacks that are affecting placement of the $v_counter variable.

Joined: Jun 2001
Posts: 50
Member
Member
Offline
Joined: Jun 2001
Posts: 50
I do BEG you please make it compatible with qasics hacks. Whois online. I am sure qasic will help if you ask He is a heck of a guy (when you can get him to respond to ya LoL)

Anyway if it is compatibale with popular hack it would be nice. Anyone who finds out what it is compatible with should list them so you know what hacks cause problems. That way when people ask you can tell them that it is compatible with or not any particular hack.. (Less problems for you the DEV if you know what works and what doesn't)

Anyways this is only a suggestion...



This was crushing the tables.
Joined: Dec 2000
Posts: 371
Member
Member
Offline
Joined: Dec 2000
Posts: 371
In this part the v_counter with hypercells in public_forum_page.pl:



$TheDate
$last_time
$last_post_username $v_counter
Joined: Feb 2001
Posts: 125
Member
Member
Offline
Joined: Feb 2001
Posts: 125
Can anyone tell us if this mod worked with Hypercells and Last reply ? It will be great if he tell us the code we must change in public_forum.pl

Oh and dont forget
Great job Slurpee

Joined: Nov 2001
Posts: 63
Member
Member
Offline
Joined: Nov 2001
Posts: 63
please she can help I thank. in the control panel after me updating appears the following message: You did not completes all required fields.
You did not completes: count_views
(and these options don't exist for me to change.)

Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
Quote
quote:
It works with Who's Online just fine, as documented in the instructions. If somebody wants to document which hacks it works with and let me know, then that's fine, but I am not running a lot of hacks, so I don't know. I mean it should work with EVERY hack, it might just be a matter of where code needs to be placed in public_forum_page.pl, depending on your board's layout. Also you can look at my board an the stuff I am running, and get a good idea of what things it works with.

[ 11-27-2001 11:08 AM: Message edited by: Slurpee ]

Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
Quote
quote:
You didn't hack CP_VARS_MISC.PL properly. Re-check that part and make sure you did it right, you should have a radio button to the turn the views on and off in Miscellaneous Settings.

Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
Quote
quote:
Have no clue about Hypercells, I don't use it. if someone wants to document it, feel free and I'll throw it in the directions. As far as the Last Reply hack goes, it works fine with that. It's just a matter of where you want to place the $v_counter variable in public_forum_page.pl.

Joined: Feb 2001
Posts: 125
Member
Member
Offline
Joined: Feb 2001
Posts: 125
Slurpee can you tell mw how to do the cells like your forums

For example Topic Starter - Replies and Views together and The last post alone

Thanks

Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
I could tell you, but then I'd have to kill you.

It's not complicated, just takes A LOT of patience, and editing of public_forum_page.pl and ubb_forum.cgi in places. There are so many different format changes I made to do that, it would be almost impossible to point them all out.
The basics are just to move variables around in public_forum_page.pl.

[ 11-27-2001 06:00 PM: Message edited by: Slurpee ]

Joined: Feb 2001
Posts: 125
Member
Member
Offline
Joined: Feb 2001
Posts: 125
Quote
quote:
You better kill me

Joined: May 2001
Posts: 29
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: May 2001
Posts: 29
works great - we moved it to it's own column.

Take a look: http://www.planethex.com/cgi-bin/ultimatebb.cgi


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's looking good slurpee smile


- Allen wavey
- What Drives You?
Joined: Oct 2001
Posts: 20
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 20
Slurpie, im using the Who's Online PHP version, (not accelerator tho) and in ubb_forum.cgi where u say replace:

Code
code:

its different for php version...

i have:

Code
code:

what do i change

Thankyou

Joined: Apr 2001
Posts: 235
Member
Member
Offline
Joined: Apr 2001
Posts: 235
It works fine with HyperCell 3.0, as is. No need to alter anything.

Thnx Slurpee for a good hack!

Quote
quote:

Joined: Oct 2001
Posts: 20
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 20
i just dont get it

I did the hack - several times over, and on the forum topics page i get 2 lots of the page displayed! eg, i get the normal page, then the exact same underneath it!

please help

Joined: Feb 2001
Posts: 125
Member
Member
Offline
Joined: Feb 2001
Posts: 125
Quote
quote:
me too having exact the same problem

Joined: May 2001
Posts: 24
Junior Member
Junior Member
Offline
Joined: May 2001
Posts: 24
same for me... all things appear twice on the boards after installing this hack.

I noticed also something... on public_forum_page.pl i don't have what you say on instructions... i have:

Code
code:

what could this be?

BR

Code
quote:</font><hr>Originally posted by hothitradio_com:
i just dont get it <img src="confused.gif" border="0" alt="" />

I did the hack - several times over, and on the forum topics page i get 2 lots of the page displayed! eg, i get the normal page, then the exact same underneath it!

please help
<hr></blockquote>

<blockquote><font size="1" face="Verdana, Helvetica, Arial">code:

Joined: Apr 2001
Posts: 235
Member
Member
Offline
Joined: Apr 2001
Posts: 235
hothitrado, dreamer, and darkm:

Look into the file "ubb_forum.cgi".

#### FIND: #######

&processVIEW($ThisHTML);
}
print "$ThisHTML";

#### CHANGE IT TO: ######

&processVIEW($ThisHTML);
}

#### FIND ####

&processVIEWS($_);
}
print;

#### CHANGE IT TO: ######

&processVIEWS($_);
}


[ 12-02-2001 10:46 AM: Message edited by: freeTV ]

Joined: Feb 2001
Posts: 125
Member
Member
Offline
Joined: Feb 2001
Posts: 125
Thanks FreeTv

I did what you told me and I dont have this problem anymore .

The new problem is that the counter is not refreshing. I have to clear the cache everytime if I want to see the real number of the counter.

Can you give me any hint?

Also in the readme file of this mod says that If I have installed the whosonline mod I should add some things and some others if I dont have this mod.
I have it installed and I dont get if I have to do this step

Look for this:
print "$ThisHTML";

Replace that with:
if ($vars_misc{count_views} ne 'no') {
&processVIEWS($ThisHTML);
}

Joined: Sep 2001
Posts: 239
Member
Member
Offline
Joined: Sep 2001
Posts: 239
Will this hack be made compatible with the accelerator and who's online once most of the bugs are out?

Joined: Apr 2001
Posts: 235
Member
Member
Offline
Joined: Apr 2001
Posts: 235
Dreamer,

You have to do that step and comment out (or delete) any print statment immediately below it.

Joined: Oct 2001
Posts: 20
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 20
hmm... installed the hack, did what freeTV said a few posts ago (coz i have who's online installed) and its working now, well, kinda!...

It's counting the views, but its counting the wrong topics!!...eg, i goto the 4th topic in a forum, and it adds the count onto the 5th one! confused

Joined: Apr 2001
Posts: 235
Member
Member
Offline
Joined: Apr 2001
Posts: 235
looks like you have &processVIEWS($ThisHTML); in the wrong loop.

Joined: Oct 2001
Posts: 20
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 20
what do u mean please

Joined: Apr 2001
Posts: 235
Member
Member
Offline
Joined: Apr 2001
Posts: 235
Rehack your ubb_forum.cgi
If you can't solve it, send me the file. I'll take a look.

Page 1 of 2 1 2

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)