vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Minimum posts to view memberlist (https://vborg.vbsupport.ru/showthread.php?t=48604)

Dean C 02-05-2003 10:00 PM

Minimum posts to view memberlist
 
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:

Code:

Error

SQL-query : 

$DB_site * > query(

"INSERT INTO setting (settingid,settinggroupid,title,varname,value,description,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


All times are GMT. The time now is 10:03 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.00973 seconds
  • Memory Usage 1,727KB
  • 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_code_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
  • (10)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