[BETA] Nested Quote Limit Mod

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
GUI
Registered User
Posts: 65
Joined: Sat May 25, 2002 3:21 pm
Location: The padded room
Contact:

[BETA] Nested Quote Limit Mod

Post by GUI »

This mod allows users to set a nested quote limit via their profile. In short, it limits how deep nested quotes may go. So if I were to set my limit to 3, this:
Level 5

Level 4

Level 3

Level 2

Level 1


Would become this when displayed:
Level 3

Level 2

Level 1


Users have the option of enabling or disabling it in their profile, along with a field to specify how many levels of quotes they wish to see. The adminstrator may choose default settings for both of these values and also choose to override the users' settings with the defaults (so you could disable it all together, or just force users into using it at a specified level).

Grab it here.
Last edited by GUI on Fri Nov 14, 2003 2:43 am, edited 1 time in total.
Hard work may not kill you, but why take chances?
Jesse_tyler
Registered User
Posts: 103
Joined: Wed Apr 02, 2003 9:00 pm
Location: Idaho
Contact:

Post by Jesse_tyler »

Hmm, i'll get this installed in a few mins
Jesse_tyler
Registered User
Posts: 103
Joined: Wed Apr 02, 2003 9:00 pm
Location: Idaho
Contact:

Post by Jesse_tyler »

Error Alert!

The SQL edit in the file is supposed to be

Code: Select all

ALTER TABLE phpbb_users
ADD user_nqlm_enable tinyint(1) default NULL,
ADD user_nqlm_level tinyint(4) default NULL;
INSERT INTO phpbb_config (config_name, config_value) VALUES ('nqlm_default_enable', '1');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('nqlm_override', '0');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('nqlm_default_level', '3');
Not

Code: Select all

ALTER TABLE phpbb_users
ADD ser_nqlm_enable tinyint(1) default NULL,
ADD user_nqlm_level tinyint(4) default NULL;
INSERT INTO phpbb_config (config_name, config_value) VALUES ('nqlm_default_enable', '1');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('nqlm_override', '0');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('nqlm_default_level', '3');
You forgot the u on the first ADD :lol:

And on the other hand....It works perfectly!
GUI
Registered User
Posts: 65
Joined: Sat May 25, 2002 3:21 pm
Location: The padded room
Contact:

Post by GUI »

Ah, silly me. :) It's now fixed.
Hard work may not kill you, but why take chances?
User avatar
GPHemsley
Registered User
Posts: 1475
Joined: Fri Apr 18, 2003 3:12 am
Location: Long Beach, NY
Name: Gordon Hemsley
Contact:

Post by GPHemsley »

GUI wrote: Ah, silly me. :) It's now fixed.

You forgot to change the MOD Version number. It still says 1.0.0 ;)
GUI
Registered User
Posts: 65
Joined: Sat May 25, 2002 3:21 pm
Location: The padded room
Contact:

Post by GUI »

Ah, booger. And what the hell, I'll bump it up a version number just to fix that. :D
Hard work may not kill you, but why take chances?
User avatar
GPHemsley
Registered User
Posts: 1475
Joined: Fri Apr 18, 2003 3:12 am
Location: Long Beach, NY
Name: Gordon Hemsley
Contact:

Post by GPHemsley »

GUI wrote: Ah, booger. And what the hell, I'll bump it up a version number just to fix that. :D

:lol: LOL :lol:
User avatar
Moogie
Registered User
Posts: 363
Joined: Thu Aug 22, 2002 11:39 am
Location: UK
Contact:

Post by Moogie »

Does this mod simply hide any quotes which are over the limit, or does it actually strip out the quotes when people are posting, so that the database doesn't end up full of posts that are (for example) 90% quote and 10% new?
Moogie
GUI
Registered User
Posts: 65
Joined: Sat May 25, 2002 3:21 pm
Location: The padded room
Contact:

Post by GUI »

It just hides them. That way each user can have their own preferences for what they see. Some users may only want to see 2 levels of quotes, others maybe 4, and some people may want to disable it all together and view all the levels of quotes. The only way to allow this type of flexibility is to keep all the quotes there, and then hide them on display.
Hard work may not kill you, but why take chances?
DuffBeer
Registered User
Posts: 117
Joined: Sat Jan 04, 2003 1:06 am
Location: Fridge located in the UK
Contact:

Post by DuffBeer »

Exellent :D
OlafOnline.nl
Registered User
Posts: 80
Joined: Mon Nov 25, 2002 10:38 pm

Post by OlafOnline.nl »

Is is also possible to delete the unwanted levels?
User avatar
Flaming_cows
Registered User
Posts: 761
Joined: Sat Jul 05, 2003 1:43 am
Contact:

Post by Flaming_cows »

Great job plagarising there. There's a mod exactly like this pretty deep into this very forum.
GUI
Registered User
Posts: 65
Joined: Sat May 25, 2002 3:21 pm
Location: The padded room
Contact:

Post by GUI »

This mod does not delete the quote beyond the scope of the nested limit. It simply hides it. It is done this way so each user may have a preference as to the number of levels they see.

As for plagiarizing, I am completely unaware of a similar mod. If I did overlook one, then I'm a retard for coding this myself.
Hard work may not kill you, but why take chances?
Siyawash
Registered User
Posts: 19
Joined: Thu Jan 01, 2004 9:12 pm

Post by Siyawash »

Hi

Nice quote change you have done there but could you help with something I really need.

i want to delete all quotes from all the posts made by members. Could you tell me how to do it either by a sql query or through a file or code.

please bro help me here i really need your help.

Thanks
oxfordred
Registered User
Posts: 24
Joined: Sat Jan 08, 2005 12:44 pm

Help Please

Post by oxfordred »

Can someone guide me in the right direction?

I have installed the mod and all looked ok until I got this error in the admin panel.

Failed to update general configuration for 'nqlm_default_enable', '1'

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'nqlm_default_enable', '1''' at line 3

UPDATE phpbb_config SET config_value = '''nqlm_default_enable'', ''1''' WHERE config_name = ''nqlm_default_enable', '1''

Line : 109
File : /home/herbertd/public_html/admin/admin_board.php


What can I do to correct this?

Thanks
Post Reply

Return to “[2.0.x] MODs in Development”