Jump to content

Need help with a SMF Forum theme edit...I can't change something...


Recommended Posts

Ok so in this theme, the option is so that if you specify an image to go at the top of your forum, it will put it up there, but if not, by default it will take the Forum Title and stick it in the top left.  What I want to do, is edit the code so that the title is not only there in text, but also as a link back to the original splash page.  I am not using a graphic for the title so I have let it go to default.  I want the default text to also act as a link.  Can anyone help?

 

Here is the code:

 

// This part is the logo and forum name.  You should be able to change this to whatever you want...

  if (empty($settings['header_logo_url']))

      echo '

              <span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name_html_safe'], '</span>';

  else

      echo '

              <img src="', $settings['header_logo_url'], '" alt="', $context['forum_name_html_safe'], '" border="0" />';

 

  echo '

            </td>

        </tr>

        <tr id="upshrinkHeader"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>

            <td valign="top">

              <table class="tborder" cellpadding="4" cellspacing="1" width="100%">

                  <tr>

                    <td class="titlebg" colspan="2" width="100%">

                        ', $txt['userinfo'],'

                    </td>

                  </tr>

                  <tr>';

 

  if (!empty($context['user']['avatar']))

      echo '

                    <td class="windowbg" width="1%">', $context['user']['avatar']['image'], '</td>

                    <td class="windowbg2">';

  else

      echo '

                    <td class="windowbg2" colspan="2">';

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.