The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
I have a php file ( called " sms.php" ) which I have made so ONLY registered members can view.
But I want to make it so that only CERTAIN people who have over 20 posts in the forum can view it ... this is probably easy to do :stupid: but how can it be done ? Thank you |
|
#2
|
|||
|
|||
|
If your script includes global.php then this should do it:
(the "require("./global.php");" must be somewhere before this) PHP Code:
|
|
#3
|
||||
|
||||
|
ok, this is my sms file
PHP Code:
thanks again ! |
|
#4
|
||||
|
||||
|
This:
PHP Code:
|
|
#5
|
||||
|
||||
|
its times like these i feel like WORSHIPPING u people !
Ok, it works fine ... but can I make it so the errors msg displayed of why the user cant login is " You need to make 20 posts before you can send sms's !!!" ?? Thanks again !!!!!
|
|
#6
|
||||
|
||||
|
small problem
People who havent got 20 posts cant log in , thats fine but me , who has over 500 cant log in to sms either lol somethings wrong with that code ... anyone know what ?
|
|
#7
|
||||
|
||||
|
my typo.
$bbusinfo['posts'] should be $bbus[high]er[/high]info['posts']
|
|
#8
|
||||
|
||||
|
[QUOTE]Originally posted by cyrus
its times like these i feel like WORSHIPPING u people ! Ok, it works fine ... but can I make it so the errors msg displayed of why the user cant login is " You need to make 20 posts before you can send sms's !!!" ?? Thanks again !!!!!
|
|
#9
|
||||
|
||||
|
Another WOW
ur truely wicked at this stuff ... THANKS BIRA !!! |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|