Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: nathanb - elokuu 29, 2006, 11:15:59 IP

Otsikko: Text labels beside buttons in 1.1rc3 -- how to remove?
Kirjoitti: nathanb - elokuu 29, 2006, 11:15:59 IP
SMF Version: SMF 1.1 RC3
I recently upgraded our forum to v1.1rc3. Due to a couple issues with our old theme, I created a 1.1 theme as well. While the old theme has nice buttons, the new theme seems to use text labels instead. And for places where the buttons show up, the text labels show up beside them (see screenshot (http://filebox.vt.edu/users/nathanb/img/Screens/lossage.PNG)).

First off, can I convert all the text links back to buttons? And if this is not possible, can I at least remove the annoying text links next to the buttons?

Thanks,
Nathan
Otsikko: Re: Text labels beside buttons in 1.1rc3 -- how to remove?
Kirjoitti: Sverre - elokuu 29, 2006, 11:55:47 IP
Find in Display.template.php:

// These are some cache image buttons we may want.
$reply_button = create_button('quote.gif', 145, 'smf240', 'align="middle"');
$modify_button = create_button('modify.gif', 66, 17, 'align="middle"');
$remove_button = create_button('delete.gif', 121, 31, 'align="middle"');
$split_button = create_button('split.gif', 'smf251', 'smf251', 'align="middle"');


Replace with:

// These are some cache image buttons we may want.
$reply_button = create_button('quote.gif', 145, 'align="middle"');
$modify_button = create_button('modify.gif', 66, 'align="middle"');
$remove_button = create_button('delete.gif', 121, 'align="middle"');
$split_button = create_button('split.gif', 'smf251', 'align="middle"');
Otsikko: Re: Text labels beside buttons in 1.1rc3 -- how to remove?
Kirjoitti: nathanb - elokuu 30, 2006, 08:48:50 AP
Thanks, Sverre. I had tracked down the problem to that line of code, but then I didn't know what to do with it afterwards. Guess I should have read the documentation.

Is there any way to convert the rest of the text links (Reply, Notify, Add Poll, Move Topic, etc. etc.) back to buttons?

Thanks,
Nathan