vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Special post counter system (https://vborg.vbsupport.ru/showthread.php?t=48977)

Dpcows 03-04-2003 12:21 PM

can i see your forum ?

lynda 03-04-2003 12:34 PM

It's in my profile (click the www button on the post)

Dpcows 03-05-2003 07:18 AM

yeah, but i don't see to many forums over there.

you called it Trolls & Gibberish ?

cool :)

lynda 03-05-2003 01:45 PM

Ohh. The forums are not visible to people who are not registered. It's a clan site for Asheron's Call and the members appreicate their privacy.

:)

FlyingDutchman 03-06-2003 04:12 AM

it's working great for me...
needed some customizations, but they were easily made :)
(like edit special post count in admin cp user edit ;))

FlyingDutchman 03-06-2003 04:22 AM

--(for screenshot, see attached file)--
if you want to be able to edit the special posts count of a specific member in the admin cp, do this:


open admin/user.php
-find:
PHP Code:

makeinputcode("Number of Posts","posts",$user[posts]); 

-just UNDER that, add:
PHP Code:

      makeinputcode("Number of Special Posts","specialposts",$user[specialposts]); 





-find:
PHP Code:

  if ($posts=="") {
    
$posts=0;
  } 

-just UNDER that, add:
PHP Code:

  if ($specialposts=="") {
    
$specialposts=0;
  } 





-find:
PHP Code:

$DB_site->query("UPDATE user SET birthday='$birthday',options='$options',usergroupid='$usergroupid',username='".addslashes(htmlspecialchars($ausername))."'$pwdinclude,email='".addslashes(htmlspecialchars($email))."',styleid='$userstyleid',parentemail='".addslashes(htmlspecialchars($parentemail))."',coppauser=$coppauser,homepage='".addslashes(htmlspecialchars($homepage))."',icq='".addslashes(htmlspecialchars($icq))."',aim='".addslashes(htmlspecialchars($aim))."',yahoo='".addslashes(htmlspecialchars($yahoo))."',signature='".addslashes($signature)."',adminemail=$adminemail,showemail=$showemail,invisible=$invisible,usertitle='".addslashes($usertitle)."',customtitle=$customtitle,joindate=$joindate,cookieuser=$cookieuser,nosessionhash=$nosessionhash,daysprune='$daysprune',lastvisit=$lastvisit,lastactivity=$lastactivity,lastpost=$lastpost,posts='$posts',timezoneoffset='$timezoneoffset',emailnotification=$emailnotification,receivepm='$receivepm',emailonpm='$emailonpm',ipaddress='".addslashes($aipaddress)."',pmpopup=IF(pmpopup=2 AND $pmpopup=1,pmpopup,'$pmpopup') WHERE userid=$userid"); 

-REPLACE that with:
PHP Code:

$DB_site->query("UPDATE user SET birthday='$birthday',options='$options',usergroupid='$usergroupid',username='".addslashes(htmlspecialchars($ausername))."'$pwdinclude,email='".addslashes(htmlspecialchars($email))."',styleid='$userstyleid',parentemail='".addslashes(htmlspecialchars($parentemail))."',coppauser=$coppauser,homepage='".addslashes(htmlspecialchars($homepage))."',icq='".addslashes(htmlspecialchars($icq))."',aim='".addslashes(htmlspecialchars($aim))."',yahoo='".addslashes(htmlspecialchars($yahoo))."',signature='".addslashes($signature)."',adminemail=$adminemail,showemail=$showemail,invisible=$invisible,usertitle='".addslashes($usertitle)."',customtitle=$customtitle,joindate=$joindate,cookieuser=$cookieuser,nosessionhash=$nosessionhash,daysprune='$daysprune',lastvisit=$lastvisit,lastactivity=$lastactivity,lastpost=$lastpost,posts='$posts',specialposts='$specialposts',timezoneoffset='$timezoneoffset',emailnotification=$emailnotification,receivepm='$receivepm',emailonpm='$emailonpm',ipaddress='".addslashes($aipaddress)."',pmpopup=IF(pmpopup=2 AND $pmpopup=1,pmpopup,'$pmpopup') WHERE userid=$userid"); 




now you can edit a user's special post count from the admin cp...

Mike Gaidin 03-08-2003 03:00 AM

Is there a way to add the special post count to have it's own option under the memberlist?

If that's unclear, what I mean is have a top special poster option next to the top 10 posters.

Does that make sense?

Dpcows 03-08-2003 07:53 AM

i think it is possible.

you have to tinker with memberlist.php

gopherhockey 03-08-2003 07:38 PM

I have a question about this hack, thinking it may help me out with a slightly different issue.

When a user is logged in they see the message:

Members: XX, Threads: YY, Posts: ZZ

I have a forum that is run off the NNTP gateway, so it gets TONS of new posts all the time. I was able to "ignore" the threads in that forum via another individual's code help here... I was also able to exclude the forum from the search and "view new posts" functions... however, I have yet to find a way to stop the post count from going up for this forum.

I'm curious - if I use this hack, turn on special post count and use that forumid, will the post count on the main page NOT show the posts that happen in the "special" forum?

If not, is there a way to do that?

Sorry if this is slightly off topic, but I know others are looking for this functionality as well... this is as close as I've seen to pulling it off.

Thanks..

My users are so tired of seeing the post count in the hundreds I have had to turn off the NNTP gateway, even though they also enjoyed having that forum open.

Dpcows 03-09-2003 09:34 AM

yes that would be possible.

but it might be easier to set the
"Count posts made in this forum towards user post counts?"
feature on at that specific forum.

tell me if the normal featur isn't good enough. then i'll give you the code to do it with this hack..

gopherhockey 03-09-2003 01:22 PM

Yea, setting not to count posts in that forum toward users post counts doesn't seem to have any affect on how they are reported to the users - they are still seeing tons of new posts each day... I'd love whatever you could do to help me out - thanks a ton!!

Dpcows 03-09-2003 04:41 PM

could you explain your problem a bit more specific,
i think i've misunderstood your problem in your first post.

gopherhockey 03-09-2003 05:05 PM

Sure thing - I'll try to explain this again. I confuse myself sometimes, so hopefully I can get this straight.

The way vb works, as we all know, is that posts in a forum will trigger various affects. A few of which are:

1. Users post count increases (there is a way around this in the admin cp)

2. Total posts on the entire board go up (as displayed on the top of most unedited vb systems as:

Members: XX, Threads: YY, Posts: ZZ

3. There are various scripts & hacks that will show this data on other pages as well, such as vbhome lite which shows it as:

X new articles released
Y new forum threads started
Z new forum posts

4. When looking at the list of all forums, you can see the total number of posts and threads for each forum just before the "Last Post" column.

5. When a user arrives and sees that there are new posts or threads, often times they click on "view new posts" to see a list of what has been posted lately.

All of those are just fine under most circumstances.

I have a specific reason to have a forum never increment those totals. (actually all but #4, but even if it affects #4 above thats ok too).

In my example, the forum is an NNTP gateway (newsgroup). The forum itself can get anywhere from 10-200+ posts/threads in a day. Users coming to my system do not wish to see these show up as new posts, new threads etc. I want to treat it as a resource (special) forum - but not let it act like the others by increasing post totals etc.

I have worked around *most* of this by editing search.php and putting in a statement such as:

Code:

wheresql.=" AND thread.open<>10 AND thread.forumid!=50";
(example excluding forum #50 from daily new threads stats)

What I can't fix is the new posts part. You can't just add the AND thread.forumid!=50 to the posts section (you get a SQL error).

What happens now is that people come to my system and in a low traffic day (but high for the newsgroup) they might see:

0 new articles released
0 new forum threads started
201 new forum posts

They click on "view new posts" and get a message that there are no posts since they last visited.

The reason is because that forum is still able to increase the forum post count and total vb system post count.

I have posted this elsewhere on this system (and have had others request the same) - have had many think they knew how to do this, but nobody has been able to do it.

When I ran accross your hack, I thought maybe it found a way to categorize posts in a certain forum differently. However, I think there is still some counter that is affected - some global total post count that many functions hit. I thought maybe if I installed this and set the forum, that the system would stop displaying the post count since last visit for this forum. I think the concept is close, or closer than anything I have seen... but there still must be something missing.

I'm not enough of a programmer to be able to figure out out. Conceptually I would guess if one could edit all places where the post total is increased and exclude a forum it would work. Thats why this hack seemed sooo very close.

I know there are others looking for this kind of functionality. I apologize if this is rather off-topic specifically for what this hack does. Perhaps I should re-post this in the hack requests area. I just feel with this hack, there is probably one simple line of code somewhere that I'm missing to pull this off.

Thanks for your time...

Dpcows 03-11-2003 07:25 AM

I'm afraid i don't have time to look into this, or even add more features.

gopherhockey: i don't see a fast solution for you problem with this hack. sorry..

gopherhockey 03-11-2003 12:01 PM

Thats ok, I found an alternate way of doing this that I'll post elsewhere. Thanks for your time though!

Dan 03-12-2003 01:21 AM

Hmm.... is there a way to update this post count in anyway?

And is there a way to make this work with post count off in a forum it suppose to count in?

Thanks in Advance

/me clicks install

Koopa 03-15-2003 05:53 PM

Good idea, could be useful....

Dpcows 03-16-2003 01:28 PM

Quote:

03-12-03 at 04:21 AM Oricon said this in Post #56
Hmm.... is there a way to update this post count in anyway?

And is there a way to make this work with post count off in a forum it suppose to count in?


Thanks in Advance

* Oricon clicks install

Not sure, didn't test that.
if you did, i'd like to know if it works

tinbin 03-27-2003 02:37 PM

Interesting hack m8!
Would it be hard to code it so that it counts the # of replies people made in the offtopic forum, but DOESN'T count if the users started the thread itself.

So it should count all offtopic replies, not all offtopic posts..

Dpcows or anyone else:
Would that be just a bit of extra code or hard to do ?

Dpcows 03-28-2003 06:35 AM

Would be pretty easy.
Just don't edit the newthread.php file i guess.

No garantee all still works..

SoBal 05-14-2003 07:48 AM

Dpcows, good work m8.
Few months has passed since the last post in this thread, and I've installed this great hack a few moments ago. But I have an urgent request, If I may...

I have to re-count old posts and threads, If any1 has any idea how this can be done - plz post it here, or let me know, it's very important to me. I have few users among 12.000 which always used to talk about off-topic thigns, and I have to "downgrade them" :)

SoBal 05-14-2003 08:33 AM

Small problem, which I hope be able to take care by myself. But I think it shall be reported. After hack installation on 2.3.0 several problems shows up. Avatars and post edit dates - doesn't show up, also all attached graphics are only visible as attachements - not displayed.

Dpcows 05-14-2003 01:29 PM

you would have to fix something up like, the update couter in the admin panel.

But, i'm not gonna tinker with it

Ryuujin 04-29-2004 10:53 PM

Hey, could you do one for vb3.0.1 ?

Requested here:
https://vborg.vbsupport.ru/showthrea...ial+Post+Count

Serph_kun 06-27-2004 04:25 AM

Thanks man!!
I love this hack :3~~

Dark Zero 08-08-2004 07:23 AM

Quote:

Originally Posted by Ryuujin
Hey, could you do one for vb3.0.1 ?

Requested here:
https://vborg.vbsupport.ru/showthrea...ial+Post+Count

https://vborg.vbsupport.ru/showthread.php?t=68041
:nervous:


All times are GMT. The time now is 01:16 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
  • Page Generation 0.01269 seconds
  • Memory Usage 1,830KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (6)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (26)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete