![]() |
Blocking final forum post count for some forums
Hello all
Can anyone please tell me if there is a way of stopping one forums posts counting towards the final forum post count at the top of the screen? i.e I have just installed the newsgroup hack so I now have 2 extra forums with 3000 new posts BUT I worked hard for the original 50,000 posts that helped build my forum so I feel I am cheating a little. I know there is a way to stop it counting towards users posts but I would like to block the forum from counting either of the 2 I just added and count the rest as per normal. I hope someone understands me ! :confused: Thank you Stuart |
In index.php find:
PHP Code:
PHP Code:
Untested but should work. |
Hi NTLDR
Thank you for your hack thats very kind of you, only I get a database error when I install it? Any ideas please? Thank you again. Database error in vBulletin 2.2.8: Invalid SQL: SELECT COUNT(*) AS posts FROM post WHERE forumid NOT IN(127,128) mysql error: Unknown column 'forumid' in 'where clause' mysql error number: 1054 |
Ah yes, the forumid isn't saved along with the posts, try:
PHP Code:
|
Your the man Lee, thank you for that works like a dream!
Wouldnt happen to know how I can stop these posts appearing in the "view new posts" now would you? Thank you Stuart |
In search.php find around line 558 (of an unhacked 2.3.2 file):
PHP Code:
PHP Code:
|
Hi Lee
Wonderful thank you, sorry to keep bugging you but is there anyway the number posts since your last visit can also be changed to ignore these 2 forums? Don't want to upset my members and have them asking why the view new posts isnt working. Thanks again Lee, your a gent! Stuart |
I'll assume this is the hack you have installed: Since Your Last Visit!
If so, find: PHP Code:
PHP Code:
|
Hello again
Sorry for the delay in replying and thank you so much for your help! I installed the hack you last posted but am getting a sql errror: Invalid SQL: SELECT COUNT(*) AS posts FROM post LEFT JOIN thread USING (threadid) WHERE dateline > '1060933721' AND thread.forumid NOT IN(127,128) mysql error: Column: 'dateline' in where clause is ambiguous mysql error number: 1052 Any ideas? Thank you Stuart |
PHP Code:
|
Wow that is great, thank you sooooooo much, thats worked perfectly!
OK I know this is sooooooo cheaky but can I ask one more favour? A few months ago I installed a simple hack that allowed users to view the last 24hrs posts and I conected upto a text link called "View Recent Threads" and this links too "forum/search.php?action=getdaily&days=# " and lists all the posts over the last 24hrs, and of course this also lists the hundreds of newsgroups posts also which is a pain, anyway that I can stop the posts being listed here again please? This is the last problem that needs solving honest! Thank you thank you Stuart PS: Just seen "Freddy Vs Jason" which is a great film, go see it all! |
Do the same edit as in Post 6 above, but this time its line 592 for an unchacked 2.3.2 it will have:
PHP Code:
|
Lee, thank you so so much , this has worked a treat, from one UK'er to another , cheers mate :)
|
No problem, glad its all working for you :)
|
Hello
I could really do with using this hack again on my VB3.08 forum if someone could possible tell me where to look please? Would appricate any help. NTLDR, If your still about I could really use your help. Thank you Stu |
All times are GMT. The time now is 12:21 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|