|
|
|
Joined: Jan 2000
Posts: 313
Member
|
Member
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 ]
|
|
|
|
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?
|
|
|
|
Joined: Jan 2000
Posts: 313
Member
|
Member
Joined: Jan 2000
Posts: 313 |
|
|
|
|
Joined: Jun 2001
Posts: 729
Coder
|
Coder
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
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?
|
|
|
|
Joined: Jun 2001
Posts: 729
Coder
|
Coder
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
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
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
Joined: Jan 2000
Posts: 313 |
Oh you mean as part of this Views Counter thing?
|
|
|
|
Joined: Jun 2001
Posts: 729
Coder
|
Coder
Joined: Jun 2001
Posts: 729 |
Yeppers 
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
I'm a little confused in ubb_forum.cgi part. 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
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 it should be another thing if you have last replay by hack instald you should change this to be 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
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
Joined: Jan 2000
Posts: 313 |
[ 11-27-2001 12:08 AM: Message edited by: Slurpee ]
|
|
|
|
Joined: Jan 2000
Posts: 313
Member
|
Member
Joined: Jan 2000
Posts: 313 |
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
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...
|
|
|
|
Joined: Dec 2000
Posts: 371
Member
|
Member
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 | This was crushing the tables. 
|
|
|
|
Joined: Feb 2001
Posts: 125
Member
|
Member
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
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
Joined: Jan 2000
Posts: 313 |
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
Joined: Jan 2000
Posts: 313 |
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
Joined: Jan 2000
Posts: 313 |
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
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
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
Joined: Feb 2001
Posts: 125 |
You better kill me 
|
|
|
|
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 
|
|
|
|
Joined: Oct 2001
Posts: 20
Junior Member
|
Junior Member
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: its different for php version... i have: what do i change Thankyou
|
|
|
|
Joined: Apr 2001
Posts: 235
Member
|
Member
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!
|
|
|
|
Joined: Oct 2001
Posts: 20
Junior Member
|
Junior Member
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
Joined: Feb 2001
Posts: 125 |
me too having exact the same problem
|
|
|
|
Joined: May 2001
Posts: 24
Junior Member
|
Junior Member
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: what could this be? BR 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
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
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
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
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
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! 
|
|
|
|
Joined: Apr 2001
Posts: 235
Member
|
Member
Joined: Apr 2001
Posts: 235 |
looks like you have &processVIEWS($ThisHTML); in the wrong loop.
|
|
|
|
Joined: Oct 2001
Posts: 20
Junior Member
|
Junior Member
Joined: Oct 2001
Posts: 20 |
what do u mean please 
|
|
|
|
Joined: Apr 2001
Posts: 235
Member
|
Member
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.
|
|
|
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: 417
Joined: November 2001
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|
|
|