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..


All times are GMT. The time now is 08:41 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.04727 seconds
  • Memory Usage 1,763KB
  • 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
  • (6)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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