Jump to content

HenryC

Members
  • Posts

    30
  • Joined

  • Last visited

Everything posted by HenryC

  1. I do record the current time when they sub someonebut how do i get the posts within the hour as i wouldnt know what hour it is? could you give ma an example.
  2. Hello everyone As i said in an earlier post i am making a small sub 4 sub website for our community. I have built 90% of the website and am stuck at the last hurdle, as youtube has a subscription limit of around 30 subscribers an hour i am trying to limit my members to only subing to 30 an hour aswell. The now i have it where on the sub 4 sub page i list all the accounts that can be subed to through a query, and when a member clicks on one of the members to sub to they come off the list for them as they now have them subed and they gain 1 point, i want it where after they have gained 30 points within the hour instead of the query showing the results(members) i can display a message instead telling them to wait the hour and after an hour the results will show again, can anyone help me with this? the query im using to show the members is <?php $query = "SELECT * FROM users WHERE subcreds > 0 AND username NOT IN (SELECT subscriber_username FROM subscribers WHERE my_id = '$id')"; $sql = mysql_query($query) or trigger_error($query . ' has an error:<br />' . mysql_error());
  3. Yes that worked great <?php try { $yt->insertEntry($newSubscription, $subscriptionsFeedUrl); //insert query with points } catch (Zend_Gdata_App_HttpException $e) { //insert query without points } So if there is an exception then the query still goes but without giving the user points for the sub because they are already subbed. no errors at all. Thanks alot MrAdam..
  4. Hello everyone i'm new here, my name is Henry and great forums you have here.. Now to my question I am creating a small sub 4 sub website for our little community of people but may expand in the future and im using the youtube api, like other sub 4 sub sites we have a page where we display all the users to be subbed to, now my problem is if a user is already subscribed to another user before they come on to my site then they will still show up in the sub4sub page and when clicking to subscribe to them gets a exception error I dont think there is a way to stop it because they were subscribed from somewhere other than my site, is there a way to hide the error or so? I would be thankfull for any help in this thank you.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.