Modifying the graphical UI

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
atomoid
Posts: 108
Joined: 18 Aug 2005, 00:46
Location: santa cruz, ca

Modifying the graphical UI

Post by atomoid »

Im adding graphical toolbar icons in place of many current items.
For instance, im replacing the &lt and &gt Next/Back links in the "Bug_view_advanced_page.php" with icons.

I got the icons working no problem (line 86), but the difficulty im encountering is that i want to get rid of the enclosing "[" and "]" characters and add in a tooltip for the link, and i cant find where this is being drawn from. Apparently i need to find the function "print_bracket_link" but i cant find it in the obvious places (such as html_api.php), nor in the include files linked therein.

Does anyone know where this function resides?
...or maybe theres a better way to approach this than messing with these files (im certainly no php guru). thanks anyone!
player
Posts: 1
Joined: 01 Aug 2006, 13:54

Post by player »

Is it possible to view your customization?
Narcissus
Developer
Posts: 338
Joined: 17 Feb 2005, 09:45

Post by Narcissus »

print_bracket_link should be in print_api.php (line 1158 in the file that I'm looking at).

I don't know if there's a cleaner way to do this at the moment...
atomoid
Posts: 108
Joined: 18 Aug 2005, 00:46
Location: santa cruz, ca

Post by atomoid »

Thanks Narcissus!
Works great now.
Once again, your input as always is right on the mark and very highly appreciated!

Player,
In addition to removing the bracket characters per Narcissus' advice, All i did was tweak the html part by adding this to the 'bug_view_advanced_page.php' around line 87 where it has:
if(isset($t_bugslist[$t_index]))print_bracket_link('bug_view_advanced_page.php?bug_id='.$t_bugslist[$t_index-1],'<<'>');

i just replaced the '<<' with a image link: '<img src="images/up.gif" border=0>'

I made my own, but there already are two somewhat suitable 'up' and 'down' images already are included in mantis under those names, but for some reason they declined to use it, i cant figure why, since its still better than the text chars, imho. Im using Mantis 1.01, so i dont know if any of this code has changed in 1.03 since ive been too busy/lazy to take the time to merge all my changes. so the line number i hope are close enough.
Post Reply