Subscribe 2

Ticket #575 (open enhancement)

BBCode visible for developers only?

  • Created: 2012-01-04 12:58:13
  • Reported by: daris
  • Assigned to: None
  • Milestone: 2.3
  • Component: tracker
  • Priority: normal

There are lots of cases (especially for site tracker) when you want to hide something for users and show the content only for developers. Currently only possible way is to make the whole ticket private.

Examples: url that user shouldn't know, database table, file.

What do you think about special bbcode tag that will be visible for developers only?

For example:

Check the following file [dev]/var/www/some_file.php[/dev]

will produce for users:

Check the following file [content visible for developers only]

and for developers it will look like:

Check the following file /var/www/some_file.php

(the content of the dev tag could be shown in different color for developers)

History

daris 2012-01-04 12:58:26

  • Description changed. (Diff)

Franz 2012-01-04 20:53:37

Please let it be something entirely different from BBCode.

Should "normal" users be able to use that tag (or whatever), too?

daris 2012-01-04 21:00:03

Franz wrote:

Please let it be something entirely different from BBCode.

What do you mean?

I thought about simple preg_replace call in the site_parse_bbcode() function which will hide the text for non-developers (or change it to something like "for developers only")

PS. It's next case I should use such tag - to hide function name for users smile

Franz 2012-01-04 21:11:22

Just use another syntax than BBCode, please (I have my reasons, hehe).

And why not allow it for users, too? In such a way that only the user who wrote it and devs could see the text!?

daris 2012-01-05 08:03:55

So, any suggestions what syntax can be used for that? A something like:

{{/var/www}}

?

It's another question - should the creator of ticket see your site code? smile

The optimal solution could be two tags - one visible for devs only and another visible for devs and creator big_smile