vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   SMS text message option for visitors (https://vborg.vbsupport.ru/showthread.php?t=94999)

kjhkjh 08-24-2005 06:30 PM

SMS text message option for visitors
 
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
PHP Code:

// midnight today
$lastdate mktime(00);
$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.


All times are GMT. The time now is 07:18 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01008 seconds
  • Memory Usage 1,715KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete