I know this is all over the net, but I’ll post it here for my own reference.
So this is how you enable the template hints in the admin: connect to your database, an execute the following query:
[sql]
INSERT INTO core_config_data (scope, scope_id, path, value)
VALUES (‘default’, 0, ‘dev/debug/template_hints’, 1),
(‘default’, 0, ‘dev/debug/template_hints_blocks’, 1);
[/sql]
To disable them after you’re done, just set the new paths (dev/debug/template_hints and dev/debug/template_hints_blocks) to 0.
Simples!