Jump to content

Recommended Posts

Posted

File Name: FluxCP Addon - TaskList

File Submitter: Akkarin

File Submitted: 06 Sep 2012

File Category: Web Resources

Content Author: Akkarin

Hi all!

TaskList

Current Version: 1.0.4

!!!!!! IMPORTANT !!!!!!

Version 1.0.4 has an sql table change from cp_tasklist to cp_xtasklist. If you don't want this to happen, let it run anyway and then change addon.php back to the old one. The table name isn't changed, instead, the addon uses a new table.

Purpose:

Provides a collaborative platform for Admins and GMs to maintain a "group To-Do List".

Capabilities:

* Add task

* Assign task

* Update progress

* URL resources

All in all, it's not the biggest, nor the best addon that's ever been written. However, it does the job. Also, as this was only something quick, there's probably a few glitches - I'd appreciate you letting me know about them :)

Click here to download this file

  • Upvote 4
Posted (edited)

very nice, thanks

@edit

btw would be nice if there were a way to set a "category" and show it to everyone (not logged in), so they can see what is done and what is to be done, hope u got what I mean

Edited by EvilPuncker
Posted

btw would be nice if there were a way to set a "category" and show it to everyone (not logged in), so they can see what is done and what is to be done, hope u got what I mean

I thought about this, but then it kinda turns into either a Support Ticket or Bug Tracker addon (which i plan on writing at some point next week). The only difference between all three would be who can view/reply to content. I guess it can be made to allow read-only access to normal players.


I've uploaded a new version (1.0.2) that fixes the assign box - it wasn't accepting the value because i'd forgotten an 'elseif' X.x

Silly Akkarin.

Posted (edited)

minor bug should be fix.

\addons\xtasklist Themes\default\xtasklist\viewcompleted.php and \addons\xtasklist Themes\default\xtasklist\index.php

line 48

<a href="<?php echo $this->url('tasklist', 'createnew') ?>">Create a Task</a>

it should be

<a href="<?php echo $this->url('xtasklist', 'createnew') ?>">Create a Task</a>

and another question? why addons\xtasklist hemes\default\xtasklist\index.php and addons\xtasklist hemes\default\xtasklist\viewcompleted.php are almost identical? maybe it is the reason why i can't view the created task. it always redirect me to home page.

Edited by Brynner
Posted

Fixed and uploaded (1.0.3). That'll teach me to rename addons just before i upload them X.x

here is the problem when i try to view the created task. instead of redirecting me to

?module=xtasklist&action=viewtasks&task='.$taskID.'&update='.$taskID.

it redirect me to main','index

post-1381-0-03780300-1347076970_thumb.jpg

Posted

It will only redirect if It can't find the task ID in the table:

$sql = "SELECT * FROM {$server->loginDatabase}.$tasklistsqltable WHERE id = $taskID";

$task = $server->connection->getStatement($sql);
$task->execute();
$tasklist = $task->fetchAll();
if($tasklist) {
(do stuff)


} else {
   $this->redirect($this->url('main','index'));
}

There's no other reason that you'll be redirected (except if you don't have permission, but I'm assuming you're using an admin account, so that's not it).

It works on the 3 servers i tested it with yesterday, so i have no idea why it's not working for you. :/

Posted

i got same problem. i can't view the created task. does i need to edit the account level before viewing that task?

The permissions are set so anyone with the FluxCP level HIGHGM or higher can view it. If you need to, you can configure these in /addons/xtasklist/config/access.php - though if you're able to view the "Create Task" page, you should be able to see the task itself o.O

Make sure the SQL table installed. Is the new task listed on the main Tasks page?

Posted

Does it also work with the first flux? Or only with rathena flux?

I don't use emu-specific functions: all my addons will work with all versions of FluxCP.

any upcoming feature or update? :D :D

Not for this addon.. however, there'll be a support ticket and bug tracker addon released shortly :)

Posted (edited)

Hello Akkarin,

I find a little problem with de 'Priority' field in 'createnew.php' [xtasklist hemes\default\stasklist\createnew.php], the 'select' tag have a slash "/" before da great then simbol ">", in my browser the combobox render empty.

This: <td><select name="priority" id="priority"/>.....</select></td>

Changed for this: <td><select name="priority" id="priority">.....</select></td>

In the 'index.php', 'viewtasks.php' and 'viewcompleted.php' the variable '$taskurl' begins with slash '/', if the FluxRO CP not is in root of site, the hiperlinks is broken. I remove the slash '/' to fix this.

[]'s

Edited by bentoalves
  • 2 weeks later...
Posted

Hello,

I have some more feature requests:

- function to edit tasks (for additional informations)

- usage of charname (first of account) instead of accountname/userid

  • 2 weeks later...
Posted

Since people are using this, and it's -clearly- in need of some TLC, i'll work on a few updates for it :)

Posted

This: <td><select name="priority" id="priority"/>.....</select></td>

Changed for this: <td><select name="priority" id="priority">.....</select></td>

In the 'index.php', 'viewtasks.php' and 'viewcompleted.php' the variable '$taskurl' begins with slash '/', if the FluxRO CP not is in root of site, the hiperlinks is broken. I remove the slash '/' to fix this.

Fixed both in 1.0.4 /no1

- usage of charname (first of account) instead of accountname/userid

I've gone one better and allowed a "Preferred Name" to be used :)

staffsettings-1.png

  • Upvote 1
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...