PDA

View Full Version : Minimum posts to view memberlist


Dean C
02-05-2003, 10:00 PM
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
02-06-2003, 06:17 PM
Good Lord. I dont get why these are useful. :x

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

Dean C
02-06-2003, 06:28 PM
They are the display order in the option settings :)

- miSt

Logik
02-06-2003, 06:29 PM
I still dont get it. Please be more specific?

Dean C
02-06-2003, 06:44 PM
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
02-06-2003, 06:46 PM
Ok i get it.

kaotic
04-08-2003, 10:58 PM
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,desc ription,optioncode,displayorder) 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
04-09-2003, 12:33 AM
Correct query to run:

INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,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
04-09-2003, 08:26 AM
Needs a semi-colon on the end *writes down to edit instructions later*

- miSt

Dean C
04-09-2003, 11:36 AM
*updated installation instructions*

- miSt

Oblivion Knight
04-30-2003, 11:01 AM
Heh.. Me again.. ;)
Working like a dream and installed without any problems.
* Oblivion Knight 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.