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 02-15-2003 10:00 PM

Special post counter system
 
Version: 0.3
Title: Special post counter system
Requested: [Here]
Explanation: You can maintain a special post counter for certain forums, like your offtopic forum.

Features:
  • Special counter in postbit template
  • Add special counter to your profile overview
  • Special counter can be controled from admin panel

Screenshots
Version 0.3 should be working fine.
i'm not able to test it very well. but it worked for me one 1 board.
my conenction make it almost impossible to upload a file to my server :/

but it should work, and there is no restrinction of the amount of forums..

by the way, i put all this in a nice install file :)
upload that file to your admin dir and run it..

Dpcows 02-16-2003 09:38 AM

a example of the special post counter:

BaBa2002 02-16-2003 09:42 AM

wow nice dude

Dpcows 02-16-2003 09:45 AM

it works ? or you just clicked install for fun ?

Floris 02-16-2003 11:45 AM

I have made some additions:
You can now turn it on/off in the admin control panel
You can now set the forumid through the admin control panel
And where it says 'Special Posts' - You can now name this whatever you want through the admin control panel too.

All three options are available through acp > vbulletin options > thread options.

I gave you the file, and can't wait for you to implement it in the new version, together with the support for multiple forums and how to delete stuff and update counters, etc.

Nice hack, I might not have a use for it, but if it is complete later on, it starts to look really interesting and fun to play with :)

I have another little feature request.
Would it be possible to extend this to use for threads too?
Special Posts: x
Special Threads: y

Also, maybe extend my add-on to also have option to set the number to count up for the special count, like 1, or 5
And the same for threads,
so we can set posts count each time up with 1
and threads with 2
or 5 and 10 or 100 and 1000 :)

Dpcows 02-16-2003 12:29 PM

Quote:

Originally posted by xiphoid
I have another little feature request.
Would it be possible to extend this to use for threads too?
Special Posts: x
Special Threads: y

I guess that is possible..

Quote:

Originally posted by xiphoid
Also, maybe extend my add-on to also have option to set the number to count up for the special count, like 1, or 5
And the same for threads,
so we can set posts count each time up with 1
and threads with 2
or 5 and 10 or 100 and 1000 :)

what use will that be ? could be done, but i don't see the use :)


btw: implented multiple forums and you addon.
now working on the delete problem.

thx for the help

Xyphen 02-16-2003 12:51 PM

Nice hack, I might use it sometime but not now..

Dpcows 02-16-2003 01:24 PM

i've finished the delete part.

check the first post in this thread for a updated version.
i hope the install file is complete.

Dpcows 02-16-2003 01:58 PM

admin section screenshot

Dpcows 02-16-2003 02:03 PM

screenshot of specialposts in user profile

Chris M 02-16-2003 02:22 PM

Interesting Idea:)

Satan

Mike Gaidin 02-16-2003 03:57 PM

Thanks for doing this Dpcows! :)

It's not working for me though. Now, the new post count is the only one that goes up no matter what forum I post in.

Dpcows 02-16-2003 04:05 PM

Quote:

Originally posted by J-OST
Thanks for doing this Dpcows! :)

It's not working for me though. Now, the new post count is the only one that goes up no matter what forum I post in.

did you set the 'Special Post Count' optino to yes ?
and did you sepecify a specific forumid in the admin control ?

you have an url to your board ?

Mike Gaidin 02-16-2003 04:10 PM

Yes

Yes

http://www.winespringinn.com/forums/index.php

I go by Mike Gaidin there.

Dpcows 02-16-2003 04:16 PM

hmmmm,

i'll try my hack on a freash install.

might be easy if you get on irc. i'm there

Mike Gaidin 02-16-2003 04:22 PM

Sorry, I actually don't have any IM programs installed on my pc. I know, it's kind of retarded in this day and age not to, but I just haven't gotten around to it.

Question though. I don't know anything about php, but I was just wondering if there are supposed to be . in front of an = mark?

i.e.,

PHP Code:

$forumcheck .= "|| ($foruminfo[forumid] == $specialforums[$i]) "


Dpcows 02-16-2003 04:33 PM

yeah it is :)

goto vB chat: [HERE]

i'm having problems too, getting it to work on a fresh install :)
all posts i make, are added to the special counter

btw: you shouldn't add this hack to a live board yett.

Dpcows 02-16-2003 05:04 PM

THIS VERSION IS BUGGED !!

do not use, working on a working on

Mike Gaidin 02-16-2003 05:20 PM

Ok. :)

*waits patiently for this cool hack*

Dpcows 02-16-2003 05:37 PM

i located the problem, but don't know how to fix it.

it is so stupid. i don't get why it goes wrong.
my logic sais it should be no problem. but it's not working :/

i'll work later tonight or tomorrow on it :/

Mike Gaidin 02-16-2003 05:49 PM

Ok, that's cool. I'll wait. Thanks for your effort. :)

How do I remove the parts of my database that were added in the instructions?

*NOTE*
Nevermind, I figured out how to do it. :)

Dpcows 02-16-2003 08:52 PM

ok, i fixed it.
new release will be out tomorrow.
[high]* Dpcows needs his bed now :)
[/high]

it only supports up to 5 forums now.
but you can add more if you like, you need to add some code to your files for that.

Mike Gaidin 02-16-2003 09:28 PM

That's fine. I only need it for 2 forums. :)

[high]* J-OST thanks Dpcows.[/high]

Dpcows 02-17-2003 01:25 PM

remade hack,

check first post for install file.

it isn't tested very well, but i believe it should work fine.

Mike Gaidin 02-17-2003 08:06 PM

Great! Will check it out. :)

Mike Gaidin 02-17-2003 08:09 PM

When I double click on the attachment all it does is bring up the old text file, not download a php file.

Dpcows 02-17-2003 08:13 PM

try this one, it works for me.. but here it is again..

Mike Gaidin 02-17-2003 08:23 PM

That download worked. Thanks!

Mike Gaidin 02-18-2003 03:21 AM

tested and it works great!

marcel-ea 02-22-2003 02:57 AM

the new version does not work by me

OffTopic Posts: 0
by all users

offtopic had id 21
german 22
english 23

option is on
ids insert with comma

but by all users also by the users who post in OT
allways OffTopic Posts: 0

Any Ideas?
VB229

Thx

Dpcows 02-22-2003 08:45 PM

You used the php file or the "old" text file ?

and when you post, does the normal post couter gets higher or not ?

marcel-ea 02-22-2003 09:55 PM

I used the php install, make all step to step
But only 0 :( and no the post goes not higher
when i post on a forum that i insert in the acp

Dpcows 02-23-2003 07:17 AM

your normal post count goes up on normal forums ?

have you tried unstalling and installing again ?

you have more hacks on your forum ?

i could apply the hack my self if you would like

marcel-ea 02-23-2003 03:17 PM

yes other post work normaly

Other hacks
Quick Post, faqbot

EDIT:
ok now work. I delete your installphp from admindir.

Other problem:
Any Idea how i get the posts from the past in the counter?

the hack count only new posts

Update Counters does not work for this hack

Dpcows 02-23-2003 04:54 PM

cool,

i'll see if i can work something out.
you have an url from your forums ?

marcel-ea 02-23-2003 05:15 PM

Its the forum of emule.de
or better jump to www.emuleforum.net
no reg
but only in the german template (standard)

jeo 02-24-2003 04:14 AM

Quote:

Originally posted by marcel-ea


Other problem:
Any Idea how i get the posts from the past in the counter?

the hack count only new posts

Update Counters does not work for this hack

Have anyone figured out how to do this yet?

Thanks.

Dpcows 02-24-2003 07:09 AM

i said i'll look into it..

cna't work always on stuff

jeo 02-24-2003 07:31 AM

Quote:

Originally posted by Dpcows
i said i'll look into it..

Thanks!

lynda 03-03-2003 09:08 PM

I installed it. Seems to work very well. Easily integratable with the store hack as well. My forum needs something like this. They post about 500 off-topic posts a day just to get their post count up. :)


All times are GMT. The time now is 02:45 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.06288 seconds
  • Memory Usage 1,808KB
  • 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_php_printable
  • (5)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
  • (40)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