PDA

View Full Version : SMS text message option for visitors


kjhkjh
08-24-2005, 06:30 PM
Hi

I know that there has been a bit of talk on here about free sms but nothing has quite hit my problem on the head.

I know a little about sms gateways and the fact that if you offer free sms especiallly in the UK then it is going to cost you for each and everytime that a forum member sends an sms. Approx 5p/text message.

What I would like to know is how can I limit those who can send messages.
For example limit access to the text message page to those members who have made a post on my forum. Plus only allow them to send up to 3 messages free?

Thanks for any help!

Andreas
08-24-2005, 07:01 PM
This is obviously not a Misc Hack Release for vBulletin 3.0, but a Question.

=> Moved to correct Forum

kjhkjh
08-25-2005, 02:08 PM
thx for moving

if anyone could help though then i think that this would be a really useful hack.

if there are any hacks out there that cover part of what i want then please let me know.

the main things again are for example

a visitor is allowed 1 free text message for every post that they have made that day. I know that I will have to pay for their texts (approx 5p) and I will have to shoot variables over to the sms api/gateway.

But the main problem I have is on the vB side and trying to limit the number of form posts to the same number of posts that the user has made that day on the forum.

cheers

Andreas
08-25-2005, 02:21 PM
That is fairly easy

// midnight today
$lastdate = mktime(0, 0);
$posts = $db->query_first("SELECT COUNT(*) AS total FROM " . TABLE_PREFIX . "post WHERE userid = " . $vbulletin->userinfo['userid']);


This gives you the # posts the User has made today.