Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: teh elgee on February 19, 2013, 12:16:28 PM

Title: Help with a small code edit...
Post by: teh elgee on February 19, 2013, 12:16:28 PM
<ul>
         <li><a href="', empty($settings['link_top1_url']) ? '' : '' . $settings['link_top1_url'] . '', '">', empty($settings['link_top1']) ? $txt['link_top1'] : $settings['link_top1'], '</a></li>
         <li><a href="', empty($settings['link_top2_url']) ? '' : '' . $settings['link_top2_url'] . '', '">', empty($settings['link_top2']) ? $txt['link_top2'] : $settings['link_top2'], '</a></li>
         <li><a href="', empty($settings['link_top3_url']) ? '' : '' . $settings['link_top3_url'] . '', '">', empty($settings['link_top3']) ? $txt['link_top3'] : $settings['link_top3'], '</a></li>
         <li><a href="', empty($settings['link_top4_url']) ? '' : '' . $settings['link_top4_url'] . '', '">', empty($settings['link_top4']) ? $txt['link_top4'] : $settings['link_top4'], '</a></li>
         <li><a href="', empty($settings['link_top5_url']) ? '' : '' . $settings['link_top5_url'] . '', '">', empty($settings['link_top5']) ? $txt['link_top5'] : $settings['link_top5'], '</a></li>
      </ul>


This from the Bluebird theme, and it's a series of button links along a bar at the top of the screen. Since I am a complete and utter noob, could someone show me how to edit these lines to edit the text shown on the button and where to put the url it will send you to when you click it?
Title: Re: Help with a small code edit...
Post by: Arantor on February 19, 2013, 12:17:49 PM
Is there not an option in the theme's configuration page for these things?

All $settings things should be referencing things in the theme options page.
Title: Re: Help with a small code edit...
Post by: teh elgee on February 19, 2013, 12:21:10 PM
Quote from: teh elgee on February 19, 2013, 12:16:28 PMI am a complete and utter noob

That would be why I did not know that. -_-