[ABD] phpBB Tracker 0.3.0 (Bug/Feature/Issue)

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
statm
Registered User
Posts: 447
Joined: Thu Jul 21, 2005 11:03 am
Location: NC, USA
Name: Matt
Contact:

Re: [BETA] phpBB Tracker 0.3.0 (Bug/Feature/Issue)

Post by statm » Tue Mar 24, 2009 7:21 pm

Hey, Im glad you got it fixed up. And yep I noticed you were in NC. Nice to see another around the phpbb community.

Milbo
Registered User
Posts: 14
Joined: Fri Mar 27, 2009 12:32 pm

Re: [BETA] phpBB Tracker 0.3.0 (Bug/Feature/Issue)

Post by Milbo » Fri Mar 27, 2009 12:36 pm

I can do what I want.

The tracker seems only to be visible for adminstrators. As registered user I get this:
You do not have the permission to view the tracker. If you believe this is an error please contact the board administrator.


I set all to registered and all security things off, it does not help.

Why does the rightsmanagement not work? Why it is possible to set so many different rights if it does not work? What did I wrong?

Milbo

Edit:

I removed this
// check permissions
//$tracker->check_permission($mode, $project_id);

It works now, but this is not a solution

Milbo
Registered User
Posts: 14
Joined: Fri Mar 27, 2009 12:32 pm

Re: [BETA] phpBB Tracker 0.3.0 (Bug/Feature/Issue)

Post by Milbo » Fri Mar 27, 2009 2:55 pm

In which file is

// Instantiate tracker
$tracker = new tracker();
or
check_permission

defined?

I cant find it with eclipse. I am a java coder,... i am not so good in php

edit lol wrong forum

User avatar
JRSweets
Registered User
Posts: 2047
Joined: Wed Apr 14, 2004 8:37 pm
Location: Massachusetts

Re: [BETA] phpBB Tracker 0.3.0 (Bug/Feature/Issue)

Post by JRSweets » Fri Mar 27, 2009 4:06 pm

Check out the tracker_class and tracker_api files. What you are wanting to do is possible without any modification. My site is setup like that. Make sure the permissions are correct and that the tracker(s) is/are enabled.

Milbo
Registered User
Posts: 14
Joined: Fri Mar 27, 2009 12:32 pm

Re: [BETA] phpBB Tracker 0.3.0 (Bug/Feature/Issue)

Post by Milbo » Fri Mar 27, 2009 5:10 pm

I found it out now.

I setup up the permissions during the configurating of the projects or trackers itself.

But,... for you profis with phpbb clear for me using joomla or other cms not.

I needed to go in ACP -> User and Groups -> groups permission and there in the advanced Permissions section.

There I found the permissions for the tracker, too. But why it is possible then to set the permissions in the tracker properties, if they have no effect or get overriden, or whatever.

I understood that while I looked at the acl_get method.

I would say,.. this could be enhanced, eh? Took me hours to understand that lol.

In fact it would be enough to change this:
Project Security
Select this if you would like all tickets in this project to be shown only to team members and the user that posted it.


and
Ticket Security
Select this if you would like selected tickets to be shown only to team members and the user that posted it. The ability to specify a security ticket is controlled by the permission settings and project group members.


For me it was completly misleading. I understand now what it means. But above it just stand the user,.. beyond it stand u need to specify permission settings. I disabled both of it so I didnt understand that the rights are not set there. I had the idea already before, that it probably handled like a forum and that I have to set the perms for it but didnt find the tracker project in the forumpanel.

Sure it is 0.3 and I think at least with version 1.0 it will be more obvious. Ahh not a good day. I did write until 5 am so I think I am bit tired aehm.

Milbo

User avatar
sylver35
Registered User
Posts: 149
Joined: Sat Feb 23, 2008 2:38 pm
Location: France / Bretagne
Name: Philippe

Re: [BETA] phpBB Tracker 0.3.0 (Bug/Feature/Issue)

Post by sylver35 » Fri May 15, 2009 1:52 pm

Hello,

I have found a bug on the tracker:
When using select box after "Filter tickets", if the sid is displayed, the session is lost because no sid in the url!

I have fixed that:

open template/tracker/tracker_tickets_body.html
find:

Code: Select all

			<input type="hidden" name="at" value="{TRACKER_ASSIGNED_USER_ID}" />
add after on a new line:

Code: Select all

			<!-- IF USER_SID --><input type="hidden" name="sid" value="{USER_SID}" /><!-- ENDIF -->
open tracker.php
find:

Code: Select all

		'TRACKER_USER_ID'				=> $user_id,
add after on a new line:

Code: Select all

		'USER_SID'						=> ($_SID != '') ? $_SID : '',
And, after, all is perfect...
Hello world !

User avatar
sylver35
Registered User
Posts: 149
Joined: Sat Feb 23, 2008 2:38 pm
Location: France / Bretagne
Name: Philippe

Re: [BETA] phpBB Tracker 0.3.0 (Bug/Feature/Issue)

Post by sylver35 » Fri May 15, 2009 9:50 pm

I have found an another bug during translating in french ->

When using the filter "my tickets", we can see: Sylver35's tickets, but in french it's: tickets de Sylver35...
You have hard-coded language in public function format_username($username) in includes/tracker/tracker_api.php:

Code: Select all

$is_user = $username . '\'s';
that's bad in phpbb, it's impossible to do good traduction.

To fix that, change with:

Code: Select all

$is_user = $username;
and in language/en/mods/tracker.php:
found:

Code: Select all

	'TRACKER_CURRENTLY_SHOWING_USER'		=> '<strong>Currently showing:</strong> %s tickets, %s',
replace with:

Code: Select all

	'TRACKER_CURRENTLY_SHOWING_USER'		=> '<strong>Currently showing:</strong> %s\'s tickets, %s',
in language/fr/mods/tracker.php, i can now write that:

Code: Select all

	'TRACKER_CURRENTLY_SHOWING_USER'		=> '<strong>Actuellement, affichage de:</strong> tickets de %s, %s',
Hello world !

mgoi
Registered User
Posts: 121
Joined: Sat Sep 01, 2007 10:55 am
Contact:

Template for phpBB Tracker (conundrum/ad infinitum/nosebleed

Post by mgoi » Sun May 17, 2009 9:34 pm

Hi there,

Thanks to the developers for this nice mod. As I will be using it on my site I have created a template that is consistent with the ad infinitum/ conundrum / nosebleed templates which were ported to phpbb3.

Image

If you are interested you can see a demo here and grab an alpha version of the template here.

M

The-Lord
Registered User
Posts: 103
Joined: Thu Jan 31, 2008 12:13 pm

Re: [BETA] phpBB Tracker 0.3.0 (Bug/Feature/Issue)

Post by The-Lord » Tue May 19, 2009 7:21 pm

Thanks for the Cool mod.

The-Lord
Registered User
Posts: 103
Joined: Thu Jan 31, 2008 12:13 pm

Re: [BETA] phpBB Tracker 0.3.0 (Bug/Feature/Issue)

Post by The-Lord » Thu May 21, 2009 3:39 am

Hi Jeff,

Is it possible in this Mod to make only the bug reporter to view the bug report and its status?

For example. If User X submits a bug with something.... What I want is that no other user can see that bug report, other than the administrator/moderators and User X itself which submitted it.

User X raises a Ticket No. 1. User Y logs into the forum and views the tracker but he is not able to see the bug report done by User X. User Y logs his own Ticket No. 2 and waits for reply frm Admin/Mod. He is only able to view his own tickets.

Admin/Mod logs in the forum/tracker.. views the report by user X and user Y and replies and updates the status.

Sorry if it is confusing.

Thanks and Regards.

User avatar
JRSweets
Registered User
Posts: 2047
Joined: Wed Apr 14, 2004 8:37 pm
Location: Massachusetts

Re: [BETA] phpBB Tracker 0.3.0 (Bug/Feature/Issue)

Post by JRSweets » Thu May 21, 2009 3:48 pm

The-Lord wrote:Hi Jeff,

Is it possible in this Mod to make only the bug reporter to view the bug report and its status?

For example. If User X submits a bug with something.... What I want is that no other user can see that bug report, other than the administrator/moderators and User X itself which submitted it.

User X raises a Ticket No. 1. User Y logs into the forum and views the tracker but he is not able to see the bug report done by User X. User Y logs his own Ticket No. 2 and waits for reply frm Admin/Mod. He is only able to view his own tickets.

Admin/Mod logs in the forum/tracker.. views the report by user X and user Y and replies and updates the status.

Sorry if it is confusing.

Thanks and Regards.
Yes, make the tracker a security tracker.

User avatar
JRSweets
Registered User
Posts: 2047
Joined: Wed Apr 14, 2004 8:37 pm
Location: Massachusetts

Re: Template for phpBB Tracker (conundrum/ad infinitum/nosebleed

Post by JRSweets » Thu May 21, 2009 3:49 pm

mgoi wrote:Hi there,

Thanks to the developers for this nice mod. As I will be using it on my site I have created a template that is consistent with the ad infinitum/ conundrum / nosebleed templates which were ported to phpbb3.

Image

If you are interested you can see a demo here and grab an alpha version of the template here.

M
Thank you.

User avatar
JRSweets
Registered User
Posts: 2047
Joined: Wed Apr 14, 2004 8:37 pm
Location: Massachusetts

Re: [BETA] phpBB Tracker 0.3.0 (Bug/Feature/Issue)

Post by JRSweets » Thu May 21, 2009 4:01 pm

sylver35 wrote:I have found an another bug during translating in french ->

When using the filter "my tickets", we can see: Sylver35's tickets, but in french it's: tickets de Sylver35...
You have hard-coded language in public function format_username($username) in includes/tracker/tracker_api.php:

Code: Select all

$is_user = $username . '\'s';
that's bad in phpbb, it's impossible to do good traduction.

To fix that, change with:

Code: Select all

$is_user = $username;
and in language/en/mods/tracker.php:
found:

Code: Select all

	'TRACKER_CURRENTLY_SHOWING_USER'		=> '<strong>Currently showing:</strong> %s tickets, %s',
replace with:

Code: Select all

	'TRACKER_CURRENTLY_SHOWING_USER'		=> '<strong>Currently showing:</strong> %s\'s tickets, %s',
in language/fr/mods/tracker.php, i can now write that:

Code: Select all

	'TRACKER_CURRENTLY_SHOWING_USER'		=> '<strong>Actuellement, affichage de:</strong> tickets de %s, %s',
That is a bug. I somehow removed the original code to take care of this. Inside the english tracker.php language file should be this at the end before the

Code: Select all

?>

Code: Select all

// in case add_lang is called twice
if (!function_exists('tracker_format_username'))
{
    /**
     * Format a username correctly on localised basis
     */
    function tracker_format_username($username)
    {
        if (in_array(strtolower(substr($username, -1, 1)), array('s', 'x', 'z'), true))
        {
            return $username . '\'';
        }
        else
        {
            return $username . '\'s';
        }
    }
} 
The translator would then customize this for their language.

The-Lord
Registered User
Posts: 103
Joined: Thu Jan 31, 2008 12:13 pm

Re: [BETA] phpBB Tracker 0.3.0 (Bug/Feature/Issue)

Post by The-Lord » Fri May 22, 2009 3:31 am

Works for me on my test board. Hoping for a release candidate too so can try on live board.

Thanks Jeff for both your awesome Mods. :)

Wyr!H@x!mu$
Registered User
Posts: 802
Joined: Fri Jan 24, 2003 12:06 pm
Location: Koedijk, Alkmaar, The Netherlands
Name: Cees-Jan
Contact:

Re: [BETA] phpBB Tracker 0.3.0 (Bug/Feature/Issue)

Post by Wyr!H@x!mu$ » Tue Jun 09, 2009 10:23 am

Great mod been using it for a while now and it works very stable :D!

Locked

Return to “[3.0.x] Abandoned MODs”