dean84

Members
  • Content count

    475
  • Joined

  • Last visited


4 Followers



About dean84

  • Rank
    Advanced Member
  • Birthday 12/25/1984

Profile Information

  • Gender Male
  • Location Wales, UK

dean84's Activity

  1. dean84 added a post in a topic: [IPBLounge] Applications System   

    Hey Dev, you say 2.2.1 is ready, when will it be updated in the MP.
  2. dean84 added a post in a topic: [IPBLounge] Applications System   

    I know its not always possible to answer, but do you have any sort of timeline for when the next update will be released? Just curious, as if its a while, I can work around it for now, if its soonish, then I can wait before building the site (new site)
  3. dean84 added a post in a topic: [IPBLounge] Applications System   

    When creating a new application form, and you set groups that can apply, it doesn't check secondary groups.

    To explain.

    We are creating a new gaming forum, all those who register are members. Thre is then an application to join one of the games (group1) this can only be applied to by the member group.

    Once accepted their secondary group is then "group1"

    We then offer a second application to become an officer of the group (leader)

    We only want those who are member of "group 1" to apply. However it won't work, as the group check only takes into account the primary group, which for all users is still set as "member".

    We need it to account for secondary groups as we are creating a multi game community, so changing the primary group will not work, as we need to allow them multiple rights, so secondary groups is the only way to do it the way we need.

    Any plans to allow secondary group checks in applications? Even if its just a tick option to ask whether we want secondaries in the group check.
  4. dean84 added a post in a topic: [IPBLounge] Applications System   

    Hi,

    With the application form view. How would I go about styling it a bit, I want to change the questions to be bold text. And adjust how the "drop down" answers show, as not too fond of how the "tick" pushes the main answer out of line with the answers not chosen.


  5. dean84 added a post in a topic: How to run a task upon install?   

    Thats a nice idea.

    Am still trying to figure out how to add a button to the app's admin page to run the task from there, that would make it even easier.

    Could do it so that on install at the top of the overview page, if the task hasn't been run there will be a button, and when its run, like you say, (marked as run) then the area will not show.

    If I was to run the task in the scheduler, it uses:task_id will change on different installs, so am trying to figure out how to call it with the task key rather than the id. And add the button on the app page. Well thats if its possible anyway :tongue:

    But when i try something like soIt tells me no id has been used. So won't work. So just trying to figure out how to link it to the task_key, as that saysWhich it would on different installs, as on my dev board its ID 31, on my testing board its then id 50
  6. dean84 added a post in a topic: How to run a task upon install?   

    Will that work with a script that grabs data from an external site? xml pages anyway. All legit, no badness going on like stealing lol

    And if done during install will it cause any problems, as the task when run manually takes approx 6 minutes as things stand.

    I am using the inserts file to enter the teams, but the rest is from another site.
  7. dean84 added a post in a topic: How to run a task upon install?   

    It would have to be run after.

    Upon install as things stand (still not finished) 3 tables are created

    1) Teams
    2) Leagues
    3) Matches

    During install 1,324 teams and their ID's are inserted into the "Teams" table.

    The task would then grab the team info, currently only grabbing match results (completed matches) which currently stands at under 14k.

    From there the task grabs the match id's, and stores it in the matches table, which stands at just under 7k. (results/2) 2 teams per result and all that.

    Basically until the tasks are run, the app is useless. As it needs to populate before it works.

    Is there a way to create a "run task" button within the app itself? That might be a better option. I guess that would work fine. I just want to make it easier upon install, instead of having to go to the system scheduler to do it.

    I see that the task has the "task key" but not sure how to use it.
  8. dean84 added a post in a topic: How to run a task upon install?   

    I have set up the install files to create the tables, to insert certain records into the db and the like.

    I have also created a task file to run every so often. What I am after now is a way to run the task upon install.

    My current task (although not fully complete) is currently set to run once per day at 0:00am. But if the app is installed prior to that time, then it would mean a fair old wait for the task to run itself. Is there a way to have the task run upon install?
  9. dean84 added a post in a topic: Delete from DB Task help   

    Thanks Michael, had a go with that code this morning, and works a charm :smile:
  10. dean84 added a post in a topic: Delete from DB Task help   

    Thanks Michael, will give this a bash tomorrow :smile:

    Btw was going through some of your Tutorials files, using a few mods to get to grips with how it all works with IPB, god its confusing lol. no code stealing though I promise lol, and I did notice the odd occasion of you talking to yourself ;)
    So looks like you were wrong, someone does open these lol.

    Am new to php, so learning as I go along, and needed to figure out how to do table inserts upon install, and done a little research using your app, hope you don't mind though.
  11. dean84 added a post in a topic: Delete from DB Task help   

    Ok, run into a brick wall with my php noobness.

    I have an app that is updating league information every 24 hours.

    I have currently got it deleting the original record, and inserting a new, which I am not really happy with, as would rather update it, but am not exactly sure how to do so.

    So during the task, I have it checking that DB for a record that has the "league" field that matches the club competition.

    If no record is found to match it, I want it to insert the new record, if it has a match, then I want to update it. But have never done an update record before, only ever inserting.

    So how would I write it to update the record with the matching ID?

    I have this to check if the record exists.
    $check_rec = $this->DB->buildAndFetch( array( 'select' => 'rec_id', 'from' => 'footballinfoleagues', 'where' => "league='".$comp_title_f."'" )); This is my insert code: $this->DB->insert( "footballinfoleagues", array( 'entry_date' => $newdate, 'league' => $comp_title_f, 'team_0' => $comp_teams[1][0],)); But don't know how to write the "update" bit for it. Any help would be appreciated.
  12. dean84 added a post in a topic: Trying to grab user photo, but am a bit stuck   

    Ah bugger, figured it out. I didn't need to grab the user_id, as it was already stored in the stats table. So got rid of that part. 
     
    It was also an if statement that caused the problem,
     
    I had been going over it for almost 2 hours, yet as soon as I post here for help, I figure it out, sods law.
  13. dean84 added a post in a topic: Trying to grab user photo, but am a bit stuck   

    ah god damn you code blocks, annoying as hell.

    fixed now anyway. Nothing to see here apart from me being a bit of a noob,
  14. dean84 added a post in a topic: Delete from DB Task help   

    my bad, thanks to Marcher on skype, its because i was a clutz and forgot my table is "wotStats", I had it deleting from "wotstats". No capital S. On localhost it was working fine which is why I didn't realise my error on there.

    Will rewrite it all to not use a capital S, and use all lower case. My bad :smile:
  15. dean84 added a post in a topic: Delete from DB Task help   

    Hi Michael

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Date: Fri, 28 Dec 2012 13:06:11 +0000 Error: 1146 - Table '*******.wotstats' doesn't exist IP Address: ***.***.***.*** - /****/index.php?adsess=f6e52d574026fde3d1c311e35e739b75&app=core&module=system&section=taskmanager&do=task_run_now&task_id=40&tab=wotStats ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- mySQL query error: DELETE FROM wotstats WHERE stat_date<1354021571 .--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------. | File | Function | Line No. | |----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------| | *****/applications_addon/other/wotStats/tasks/wotStats_getStats_task.php | [db_main_mysql].delete | 87 | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | *****/applications/core/modules_admin/system/taskmanager.php | [task_item].runTask | 325 | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | *****/applications/core/modules_admin/system/taskmanager.php | [admin_core_system_taskmanager].taskManagerRunTask | 97 | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | *****/sources/base/ipsController.php | [admin_core_system_taskmanager].doExecute | 306 | '----------------------------------------------------------------------------+------------------------------------------------------------

About Me

Status Feed