News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

What wrong with my logo code ?

Started by SaltedWeb, February 27, 2015, 12:15:56 PM

Previous topic - Next topic

SaltedWeb

Hi there I was using a theme, and replaced the code below.
Not familiar with the codes for changing a logo. The logo shows but I get and error.
The maker of the theme has no option in Admin to change the logo so must be added manually
as I did in quotes, it shows up but gives error logo below in logs.


Apply Filter: Only show the error messages of this URL
http://oregon*******.com/index.php?action=forum
Apply Filter: Only show the errors with the same message
8: Undefined index: oregon*******.com/oregonused.png
Apply Filter: Only show the errors from this file
File: /home/oregon****/public_html/Themes/smooth1/BoardIndex.template.php (body_above sub template - eval?)
Line: 207

This is the code below modified in Indextemplate.php

Quote</div>
         <div class="news normaltext"><img src="' . $settings['oregon*************.com/oregonused.png'] . '/oregonused.png" alt="Oregon Used Firearms" /></div>
      </div></div>';
Knowing your limitations makes you human, exceeding these limitations makes you worthy of being human.

Illori

replace

<div class="news normaltext"><img src="' . $settings['oregon*************.com/oregonused.png'] . '/oregonused.png" alt="Oregon Used Firearms" /></div>

with
<div class="news normaltext"><img src="' . oregon*************.com/oregonused.png. '" alt="Oregon Used Firearms" /></div>


was not tested, but that should fix the error.

Mortissimov

$settings['oregon*************.com/oregonused.png']
What?

I think you want some like this:

<div class="news normaltext"><img src="', $settings['images_url'], '/oregonused.png" alt="Oregon Used Firearms" /></div>

You just need to upload your oregonused.png to your Themes/smooth1/images folder.

Advertisement: