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)
When creating a new application form, and you set groups that can apply, it doesn't check secondary groups.
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.
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.
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
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.
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?
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.
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,)); But don't know how to write the "update" bit for it. Any help would be appreciated.
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: