The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
page viewble only by users with xxx posts
Is it possible to set a php integrated into my vB so that only registered users with xxx posts can view it?
|
#2
|
||||
|
||||
After your call to global.php in the script put this
Code:
if ($bbuserinfo[posts] =<20) { print_no_permission(); } |
#3
|
||||
|
||||
I get error after I added that code I think the "<" is not recognized
|
#4
|
||||
|
||||
Try this (is tired I mixed up the possition)
Code:
if ($bbuserinfo[posts] <= 20) { print_no_permission(); } |
#5
|
||||
|
||||
this one worked, thanks dude
Is it possible to get a message for the users who can't access the page? Something like "To view this page u must have more then xxx posts" Thanks |
#6
|
||||
|
||||
Code:
In your phrase manager add new phrase. Select Front-End Error Messages notenoughpostsaddin (rename if you wish but make sure you rename in code) Put the text you wish it to show Save It Code:
if ($bbuserinfo[posts] <= 20) { eval(print_standard_error('error_notenoughpostsaddin')); } |
#7
|
||||
|
||||
works great!
thank u very much |
#8
|
||||
|
||||
No trouble at all glad it is working right
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|