Which file do i edit?

Started by snork13, January 05, 2005, 09:47:52 PM

Previous topic - Next topic

snork13

Looking for a little help, trying to add a home button, I attached a screen shot of where I want the button., in the same row

thanks


thanks

snork
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

deathshadow

Actually, no. That's not where. By his screenshot he's in message view, so he would want to deal with theme_show_mod_buttons() in display.template.php

Either that or he's in PM view in which case it would be theme_show_buttons() in MessageIndex.template.php

If I'm viewing that right.
"There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies and the other way is to make it so complicated that there are no obvious deficiencies." – C.A.R. Hoare, The 1980 ACM Turing Award Lecture
http://www.cutcodedown.com

andrea

Indeed you are right deathshadow (I deleted my reply).

Andrea Hubacher
Ex Lead Support Specialist
www.simplemachines.org

Personal Signature:
Most recent work:
10 Aqua Themes for SMF



snork13

Quote from: deathshadow on January 05, 2005, 10:26:32 PM
Actually, no. That's not where. By his screenshot he's in message view, so he would want to deal with theme_show_mod_buttons() in display.template.php

Either that or he's in PM view in which case it would be theme_show_buttons() in MessageIndex.template.php

If I'm viewing that right.

thanks to both of you, i found it and this is how I changed it, it works, but looks bad?

function theme_show_mod_buttons()

{

global $context, $settings, $options, $txt, $scripturl, $modSettings;

$moderationButtons = array();



if ($context['can_move'])
$moderationButtons[] = '<a href="' . $scripturl . '?action=index.php' . $context['menu_separator'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/forum.gif" alt="' . $txt[132] . '" border="0" />' : $txt[132]) . '</a>';
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

Kirby


if ($context['can_move'])
$moderationButtons[] = '<a href="' . $scripturl . '?action=index.php' . $context['menu_separator'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/forum.gif" alt="' . $txt[132] . '" border="0" />' : $txt[132]) . '</a>';


Is that the code you added? If so I would suggest making it:

$moderationButtons[] = '<a href="' . $scripturl . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/forum.gif" alt="' . $txt[132] . '" border="0" />' : $txt[132]) . '</a>';

snork13

Quote from: Kirby on January 05, 2005, 11:35:28 PM

if ($context['can_move'])
$moderationButtons[] = '<a href="' . $scripturl . '?action=index.php' . $context['menu_separator'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/forum.gif" alt="' . $txt[132] . '" border="0" />' : $txt[132]) . '</a>';


Is that the code you added? If so I would suggest making it:

$moderationButtons[] = '<a href="' . $scripturl . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/forum.gif" alt="' . $txt[132] . '" border="0" />' : $txt[132]) . '</a>';


Thank you...it's working like a charm 8)
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

Advertisement: