Results 1 to 4 of 4

Thread: Allowed Actions (Counter)

  1. #1

    Join Date
    Jun 2009
    Posts
    2

    Question Allowed Actions (Counter)

    Hopefully this is a easy one but for the life of me I can't find it.

    I was looking for a way to display to the member that they only have 2 messages left for the day and then once they send another messages then the counter would drop down to 1 message left.

    I am sure the database tracks this but I can't find it in mysql.

    Help plz.

    Thanks
    Tinman

  2. #2
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    Did you try looking in....

    Code:
    -- Table structure for table `MemActionsTrack`
    --
    
    CREATE TABLE `MemActionsTrack` (
      `IDAction` smallint(5) unsigned NOT NULL default '0',
      `IDMember` bigint(20) unsigned NOT NULL default '0',
      `ActionsLeft` smallint(5) unsigned NOT NULL default '0',
      `ValidSince` datetime default NULL,
      PRIMARY KEY  (`IDAction`,`IDMember`)
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
    
    --
    Smoge
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  3. #3

    Join Date
    Jun 2009
    Posts
    2

    Default

    Great that worked!

    Little help with php?

    I am trying to display how many messages they have left to send.

    So under MemActionsTrack

    I have IDAction and Actionsleft

    So IDAction 8 is Messages left.
    So I want to display IDAction 8 (Actionsleft) for the ID I am logged in as.

    Thanks again.

    Tim

  4. #4
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    You should look at existing code for help - as it will give you PHP examples, and also the proper method to use the information.

    All you need is in inc/membership_levels.inc.php

    function checkAction($memberID, $actionID, $performAction = false, $iForcedProfID = 0)

    You could either modify this function, or clone it (and rename it) and modify it ... for your needs.

    Smoge
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Multiple Votes On Same Poll Allowed
    By Smoge in forum Bugs Dolphin 6.00
    Replies: 8
    Last Post: 10-22-2007, 06:56 AM
  2. Action not allowed prompts login/Signup
    By boifromoz in forum Free Mod Exchange
    Replies: 1
    Last Post: 11-29-2006, 07:22 PM
  3. sbcglobal.net not allowed
    By spellbyte in forum Dolphin General Discussion v5.0 to v5.21
    Replies: 1
    Last Post: 08-06-2006, 11:31 AM
  4. Field not allowed
    By emailgirls in forum General Issues, Comments, Questions
    Replies: 2
    Last Post: 05-20-2006, 11:53 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •