PDA

View Full Version : Minimum posts to view memberlist


Dean C
06 Feb 2003, 19:06
Minimum posts to view memberlist

What does this hack do?

This allows you to have an option in your admin cp where you can define a minimum number of posts that a user must have to view the memberlist. If the user doesn't have enough posts they will get an error telling them they need so many posts (which you defined in the admin cp) to view the memberlist.

Regards

- miSt

Logik
06 Feb 2003, 19:17
Good Lord. I dont get why these are useful. :x

Logik
06 Feb 2003, 19:18
Mist, in your queries, what are the '6' and the '10' and the '18' there for at the end of them?

Dean C
06 Feb 2003, 19:28
They are the display order in the option settings :)

- miSt

Logik
06 Feb 2003, 19:29
I still dont get it. Please be more specific?

Dean C
06 Feb 2003, 19:44
Ok well when you goto your admin cp and click vbulletin options. You have a list of things. They are in order. Just like the forums. It's just that the link to change the display order and add settings etc are hidden.

It's just a way of ordering the list of options.

- miSt

Logik
06 Feb 2003, 19:46
Ok i get it.

kaotic
08 Apr 2003, 23:58
Thanks. This should help cut down on the spam e-mails that my members have been receiving. I'm installing it now.

Edit: Your instructions say to locate require ("./global.php"); within memberlist.php. I just thought that you might want to know that my memberlist.php has require("./global.php"); instead of require ("./global.php");. And if it helps, I'm using vBulletin 2.3.0.

Another problem I ran into was with the query. I got this error after trying to edit it via phpmyadmin:

Error

SQL-query :

$DB_site * > query(

"INSERT INTO setting (settingid,settinggroupid,title,varname,value,description,optioncode,displayorde r) VALUES (NULL,7,'Minmimum Posts','memberlistminposts','0','Here you define the number of posts a user must have before he/she can view the memberlist.','','6')"
)

MySQL said:


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 '$DB_site * > query( "INSERT INTO setting (settingid,settinggr

Bison
09 Apr 2003, 01:33
Correct query to run:

INSERT INTO setting (settingid,settinggroupid,title,varname,value,description,optioncode,displayorde r) VALUES (NULL,7,'Minmimum Posts','memberlistminposts','0','Here you define the number of posts a user must have before he/she can view the memberlist.','','6')

Dean C
09 Apr 2003, 09:26
Needs a semi-colon on the end *writes down to edit instructions later*

- miSt

Dean C
09 Apr 2003, 12:36
*updated installation instructions*

- miSt

Oblivion Knight
30 Apr 2003, 12:01
Heh.. Me again.. ;)
Working like a dream and installed without any problems.
/me clicks install.


Add a new template called 'error_calendarminposts' with this content:

The template created should be 'error_memberlistminposts' otherwise the error won't be shown.. ;)


Regards,
Oblivion Knight.