vBulletin Modifications

Help with a request sql

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > General vBulletin Support

Reply
 
LinkBack Thread Tools
Old 07-04-2006, 01:16 PM   #1
vB Newbie
Join Date: Jan 2006
MkosT is on a distinguished road

Default Help with a request sql

Hello all,

I Write a hack , when a member post in a specific forum , one auto private message has been send , now when i can limite this script for 2 private message per day?

You must first be a registered member to view any code.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 07-04-2006, 01:45 PM   #2
Coder
Idan's Avatar
Join Date: Feb 2005
Real Name: Idan
Location: Israel
Idan is on a distinguished road

Default

you want to limit that 2 posts per-user-per-day ? or per-forum ??

if i understood your question correctly, i would to suggest a simple way (imo) to implant that one like this: i would go on adding some extra fields to some table (date + pm_count) & increase pm_count value for the row matching today's date there everytime pm is sent, and make this entre thing hack with IF condition @ first to check the count there before you do anything...




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-04-2006, 02:09 PM   #3
vB Newbie
Join Date: Jan 2006
MkosT is on a distinguished road

Default

I have add a button in my "request help forum" , when a member post in this forum , a private message has been sent in its limp

You must first be a registered member to view any code.
But i want limit this request when iam lomesone in staff for exemple

I add "date" and "pm_count" in my table autopm and i update this table oki , i can try tu uses cronjob? because date sql i don't make lol

i try this modification but i'm not sure to make succefully,




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Must Request to Make You a Buddy xfile vBulletin Modification Requests 9 08-06-2006 08:20 PM
Hack Request --> Request taken by NICKNAME Shapeshifter Site Feedback 13 07-12-2006 06:33 AM
HOW TO: Request (no this is a request for one not a how to do a request) Nick R General vBulletin Support 0 06-15-2006 05:20 PM
Got one sql error....plz help... mant3ra General vBulletin Support 6 11-27-2005 04:43 PM
ThanksBot v1.0 sql error :( mant3ra General vBulletin Support 0 11-07-2005 02:47 PM


All times are GMT -3. The time now is 06:54 PM.

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)