vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   I just saw this yesterday (https://vborg.vbsupport.ru/showthread.php?t=56692)

midnightz 09-01-2003 09:33 PM

I just saw this yesterday
 
I need to find the minumum post to view members profile, I could have swear I saw it by HellSatan or MIST (note to mist, I am almost done)

I have implemented minimum for members list , but need to add that same for profile, I saw it in a thread yesterday. I have searched about 30 different ways with no luck,

Thanks,

midz :bunny:

assassingod 09-01-2003 09:36 PM

<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=48610" target="_blank">https://vborg.vbsupport.ru/showt...threadid=48610</a>

You want that?

midnightz 09-01-2003 10:15 PM

Nope, but thanks.

I saw hell Satan I think mention and give the code for a small hack that puts a minimum post required to view memeber profiles.

thanks

assassingod 09-01-2003 10:20 PM

Try this:

Run this query:
[SQL]INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,optioncode,displayorder) VALUES (NULL,7,'Minmimum Posts to view Profiles','profileminposts','0','Here you enter the number of posts a user must have before he/she can view a members profile.','','6');
[/SQL]

Now open member.php, and find:
PHP Code:

if ($action=="getinfo") {
  
$templatesused "getinfo_sendpm,aol,icq,yahoo,getinfo_birthday,getinfo_customfields,getinfo";
  include(
"./global.php"); 

add after:
PHP Code:

if ($bbuserinfo[posts] < $profileminposts) {
    eval(
"standarderror(\"".gettemplate("error_profileminposts")."\");");


create template 'error_profileminposts'
Code:

Sorry you need at least $profileminposts posts before you can view this members profile.
Untested but should work


All times are GMT. The time now is 01:01 PM.

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.02162 seconds
  • Memory Usage 1,716KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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