PDA

View Full Version : Todays Threads, Post and Veiws on index.php


SmEdD
05-27-2003, 10:00 PM
What this hack does is it adds Total Threads, Post, and Veiws on your forums index.

Also I would like to give credit to Firefly as part of this code is his. That I had found.

SmEdD
05-28-2003, 09:42 PM
Screen Shot.

assassingod
05-28-2003, 09:43 PM
Does this add any queries to forumhome? (2 by the looks of it)

SmEdD
05-28-2003, 09:46 PM
Ya it does which sucks. Tryed to get it to add none but I couldn't find any where to add the db lookup.

I'll try to figure out to get it to atleast one or even none.

assassingod
05-28-2003, 09:47 PM
IIRC $DB_site adds a query everytime you use it, not sure though. That may be why.

Nice hack nonetheless:)

Xenon
05-28-2003, 09:49 PM
today threads/posts can be combined as i posted already, and the viewcount is wrong, as it just sums up the views of today actualized threads, but is not the real ammount of views today

SmEdD
05-28-2003, 09:52 PM
Give me a couple to re-edit the hack. They to fix it all up.

SmEdD
05-28-2003, 10:00 PM
Alright fixed the file and how it is coded. What you think of it like that?

sleepbirdcyp
05-29-2003, 01:28 AM
before: page load time 0.3s query:21
after: page load time 1.5s query:22

:( :(

SmEdD
05-29-2003, 02:00 AM
Shouldn't do that. Not that much load. Are you on sharded hosting?

Dean C
05-29-2003, 03:27 PM
You might want to mention it shows the posts,threads and view for that day in your first post :)

- miSt

sleepbirdcyp
05-29-2003, 07:15 PM
got it

great hack

thx SmEdD

MindTrix
05-29-2003, 08:29 PM
Nice hack, just a note u spelt views wrong in there :p u can even see it in u screenie

dis part--

Thread Veiws Today


damn im a nerd for pointin that out :(

SmEdD
05-29-2003, 10:45 PM
Hey ya sorry I have really bad spelling. My bad.

SmEdD
05-31-2003, 02:31 AM
05-28-03 at 06:49 PM Xenon said this in Post #6 (https://vborg.vbsupport.ru/showthread.php?postid=401308#post401308)
as it just sums up the views of today actualized threads, but is not the real ammount of views today

How do I fix it?