Our Sponsors



Your Ads Here
Advertise with Western Studios.
www.westernstudios.net

Theme Shop
Get the best in phpnuke themes, stock photos, icons from Western Studios themes shop.
shop.westernstudios.net

PHP Nuke Subscription
The #1 php nuke subscription module.
www.westernstudios.net

PHP Nuke Services
Need work done on your site? View our services for the best in phpnuke services.
www.westernstudios.net

PHP Nuke Downloads
The latest and best in php nuke downloads.
www.westernstudios.net




Western Studios :: View topic - Limit Posts per Day in phpBB to specific user_rank
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups     ProfileProfile   Log inLog in 


Limit Posts per Day in phpBB to specific user_rank



 
Post new topic   Reply to topicprinter friendly version    Western Studios Forum Index -> General
Western Studios

New Member
New Member
~PHP Nuke User~


Posts: 2
Next Group: 3 posts
jhagee wrote:

I have a question about the "Limit Posts per Day in phpBB" tutorial.
http://www.westernstudios.net/modules.php?name=Tutorials&file=post_perday

I would like to be able to restrict this hack to only effect users with a specific rank (maybe called "caged"), with a user_rank value of "13" (that's what it is in my database).

My php & mySQL are rusty. I'm thinking along the lines of something like adding
Code:
AND $userdata['user_rank'] = "13"
to the
Code:
if ($numwstime >= "2" AND !$is_auth['auth_mod']
line.

I'll probably need a line earlier:
Code:
$select_sql = (!$submit) ? ', u.user_rank

where it says:
Code:
$select_sql = (!$submit) ? ', u.user_rank, t.topic_title,


Can someone help me verify this code or fix it?

Thanks!

jhagee

Posted: Wed Oct 10, 2007 11:34 am

Western Studios

Site Admin
Site Admin
~PHP Nuke User~

Platinum Subscriber

Posts: 3309
Staff
Next Group: 1691 posts
admin(Mark) wrote:

You could add it to the same "if" check

Code:
if ($numwstime >= "2" AND !$is_auth['auth_mod'] && $userdata['user_rank'] == "13"


That should work fine.

Posted: Wed Oct 10, 2007 11:48 am

Western Studios

New Member
New Member
~PHP Nuke User~


Posts: 2
Next Group: 3 posts
jhagee wrote:

Thank you very much, I appreciate it!

Posted: Wed Oct 10, 2007 10:17 pm

Post new topic   Reply to topic    Western Studios Forum Index -> General All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts PHP paste bin added 0 admin 767 Wed Mar 23, 2005 6:47 pm
admin View latest post
No new posts PHP Nuke klips 0 admin 608 Fri Mar 18, 2005 6:52 pm
admin View latest post
No new posts Paypal success.php 1 Jabba 783 Fri Mar 04, 2005 7:00 pm
admin View latest post
No new posts Testing PHP tags 2 admin 764 Thu Mar 03, 2005 6:06 pm
admin View latest post
No new posts PHP Nuke Icons 0 admin 812 Mon Aug 23, 2004 4:05 pm
admin View latest post
 
Forums ©