vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   New Posting Features - Restrict Post Count (https://vborg.vbsupport.ru/showthread.php?t=144474)

Dismounted 04-09-2007 10:00 PM

Restrict Post Count
 
Restrict Post Count

Description:
Restricts posts counting if under a certain amount of characters/words.

Request:
https://vborg.vbsupport.ru/showthread.php?t=144459

Installation:
All the installation information is in the package.

Changes:
5 Plugins
9 Phrases

Change Log:
19/09/2007 - Version 1.2
- Streamlined Code
- Added Option To Enable/Disable Quote Stripping
- Updated ReadMe Style

11/04/2007 - Version 1.1
- Fixed Not Adjusting When Editing
- Quotes Now Don't Count

10/04/2007 - Version 1.0
- Initial Release

Dismounted 04-10-2007 10:31 AM

/me Reserves

jagari 04-10-2007 10:31 AM

I Love You!

nexialys 04-10-2007 10:48 AM

that's the kind of code that is missing from vB from the start... you can control the minimum of words in a post, but not count them possibly...

good to have it coded .. :)

vip-q.com 04-10-2007 11:21 AM

that's good man I Like it

I can use it that the member can't post more than 1 post if they submit two time :)


thanks man I'll use it ( installed )

Renada 04-10-2007 12:49 PM

Dismounted,

Thank you, this is very much needed. :)

[high]* Renada clicks install[/high]

MThornback 04-10-2007 01:37 PM

This is absolutely brilliant :D well done!

Hornstar 04-10-2007 11:23 PM

Hey good work Dismounted, you have been bringing out a lot of good stuff lately.

Ati2 04-11-2007 09:16 AM

Great work! :)

One comment though: when someone replies, and quotes a page-long text, saying "yes" at the end, it seems to get counted because of the huge quote. Would it be possible to only count what he has written, excluding the quoted parts?

Dismounted 04-11-2007 09:56 AM

Hack Updated!

11/04/2007 - Version 1.1
- Fixed Not Adjusting When Editing
- Quotes Now Don't Count

PinkDaisy 04-11-2007 12:31 PM

Ohhhh... I LOVE this!!! been wanting it for a while.. Thanks!!!! :D

Dismounted 09-19-2007 12:14 PM

Hack Updated!

19/09/2007 - Version 1.2
- Streamlined Code
- Added Option To Enable/Disable Quote Stripping
- Updated ReadMe Style

Flexo 09-28-2007 10:28 AM

What does "quote stripping" mean?

Dismounted 09-28-2007 10:32 AM

Setting it to yes means that quotes will not count towards the total count of words/characters.

Flexo 09-28-2007 10:53 AM

Cool, thanks :)

Is there a way to update existing user post counts in regard to the mod? I activate it, set the minimum to 5 words and ran the "update post counter" query, but apparently it didn't change anything.

Dismounted 09-28-2007 11:07 AM

There is no way (at the moment) to update existing posts.

DudeSicko 09-29-2007 10:06 AM

Dang good Mod :)

But i have this little problem on my site.
I use vB 3.6.8, when i use Quick reply i get a note:
Attachment 70433

Also when i delete a post, i get to a blank white screen with nothing on it, same when i create a vote ve then get the blank screen.

The post is still submitted, but you just don't get the update.

I have the following Mod installed:

FlashChat Admin Panel
ibProArcade for vBulletin
Last Seen Online (Postbit)
Latest Post on Forum Home
Members who are using Flashchat

phpAdsNew Integration
Prevent Doubleposts
Radio Stations

Restrict Post Count
Separate Staff In User's Online
Who Has Read a Thread.
Yet Another Award System


Bold ones i tried to disable, and still same.

Ati2 10-03-2007 04:13 PM

Hmm, I just upgraded, and I sometimes get this error:

Database error in vBulletin 3.6.8:

Invalid SQL:

UPDATE user
SET posts = posts + Array
WHERE userid = 1342
LIMIT 1;

MySQL Error : Unknown column 'Array' in 'field list'
Error Number : 1054
Date : Wednesday, October 3rd 2007 @ 06:45:03 PM
Script : http://forum.hodito.hu/editpost.php?...&postid=127822

It only seems to occus when the editpost.php file is called. There was no problem with this before.

Dismounted 10-04-2007 05:13 AM

I don't know how you got that error, as the value ($postcount) can only be 0, -1 or 1.

Ati2 10-11-2007 11:05 AM

Figured out what my problem was... Paul's "Unread Posts and Reputation Comments (welcome box)" (https://vborg.vbsupport.ru/showthread.php?t=123886) has the same variable name ($postcount), and these two mods conflict with each other. :(

I changed the variable name, it works fine now.

Dismounted 10-12-2007 10:40 AM

Ah! Okay. Thanks for telling me.

pxd 10-12-2007 11:54 AM

I am getting the following error on the Advanced Post Edit page with your hack enabled:
Quote:

Parse error: syntax error, unexpected T_ELSE in \editpost.php(305) : eval()'d code on line 72
Are you aware of this error? Started happening only after the upgrade. Using 3.6.8 vB version.

AWJunkies 10-13-2007 02:58 AM

I have errors to and unistalled. I would love this hack but it seems there are issues and conflicts. I will post my error later tonight don't want community to keep getting the errors.

Dismounted 10-13-2007 04:28 AM

Quote:

Originally Posted by pxd (Post 1358202)
I am getting the following error on the Advanced Post Edit page with your hack enabled:
Are you aware of this error? Started happening only after the upgrade. Using 3.6.8 vB version.

Hmm, this is a weird one, as this error has nothing to do with vBulletin, so upgrading to 3.6.8 is irrelevant. I cannot find any malformed conditionals, so I'm clueless.

pxd 10-14-2007 11:32 AM

Quote:

Originally Posted by Dismounted (Post 1358748)
Hmm, this is a weird one, as this error has nothing to do with vBulletin, so upgrading to 3.6.8 is irrelevant. I cannot find any malformed conditionals, so I'm clueless.

To make it sure there is no conflict with other mods, I unpublish them all, and error is still there. only after unpublishing the post count mod it goes away...

Tacama 10-17-2007 04:41 PM

This should be nominated as MOTM :eek:.

The ultimate anti-spam tool.

Thanks for your great work :up:

AWJunkies 10-18-2007 04:00 AM

Quote:

Originally Posted by pxd (Post 1359660)
To make it sure there is no conflict with other mods, I unpublish them all, and error is still there. only after unpublishing the post count mod it goes away...

I did this same thing and got same error.

vb 3.6.8 must be a conflict somehow with new vb no idea haven't looked at code yet.

hddstudio 10-20-2007 04:01 PM

Any update about 3.6.8 ? I like this mod, but afraid I screw up my forum if it's incompatible with the new release...(planning to update 3.6.8 Level 1 Patch in next few days)

Ati2 10-20-2007 04:16 PM

Quote:

Originally Posted by hddstudio (Post 1364419)
Any update about 3.6.8 ? I like this mod, but afraid I screw up my forum if it's incompatible with the new release...(planning to update 3.6.8 Level 1 Patch in next few days)

I have this mod with 3.6.8PL1, and it works just fine. (Had a conflict with one of the other mods, see above, but that could be resolved quickly.)

hddstudio 10-21-2007 07:49 AM

Thanks for the info. I will install it now. This is a great mod !

Yes, I have the same prroblem as Ati2.....

hddstudio 10-21-2007 08:30 AM

I think I must wait until this problem is resolved : conflict between two mods

Ati2 10-21-2007 08:47 AM

Quote:

Originally Posted by hddstudio (Post 1364896)
I think I must wait until this problem is resolved : conflict between two mods

You can sort that out yourself pretty quickly. Just download this mod, and open it up in a text-editor (such as notepad). Search for "$postcount" (without quotes, with the $ sign at the beginning), and change it to something else and hopefully unique, such as "$rpcmodpostcount" (without quotes, with the $ sign at the beginning). If I remember correctly, you will find this variable in 3 places (I may not remember correctly, so just find and replyce in all places within the mod). Save the file, and you are pretty much done. Upload the mod, and enjoy. No more conflicts! :)

hddstudio 10-21-2007 10:40 AM

I got it. Thank you very much to all of you....Cheers....INSTALLED & WORKING GREAT !

Magle 01-15-2008 07:11 AM

Wonderful idea. I was wondering if there would be any way to make it so that this mod only affects specific forums, and not the whole board? (and I'd like to suggest that as an additional feature while I'm at it :))

Thanks,

Dismounted 01-15-2008 10:53 AM

Added onto a to-do list. :)

stwilson 05-11-2008 05:05 AM

Dismounted.....any progress on updating this fine MOD to 3.7?

Scamorz 05-03-2009 08:57 AM

For me doesn't work on 3.8.1 :(


All times are GMT. The time now is 06:35 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.01201 seconds
  • Memory Usage 1,801KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (37)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete