changing link to banner location

Started by sheryltoo, July 27, 2017, 02:01:23 PM

Previous topic - Next topic

sheryltoo


The banner on my website is stored in Photobucket and since you now have to pay in order to use Photobucket at 3rd party sites, I'm going to store my banner on my own site but I'm not really sure where to put it, and I can't seem to figure out how to link to the banner's new location because I can't find the file that shows a link to a Photobucket image.
According to my smf forum, I'm using the default theme/ curve so I assume I should upload my banner into the image folder under that theme. Is that correct?
And then where do I go to edit the php file? From what I've read in trying to figure this all out, it sounds like I'm suppose to edit the index.template.php but I don't know where in that template I'm supposed to do it since there's no line linking my banner from the Photobucket site.
Right now my site has this big box image telling me to update Photobucket so I believe the only way to get rid of that is to replace the coding with a link to the new location for my logo and I just have no idea how to do that.
Any help would be greatly appreciated.

Looking

You need to use something called FTP. Do you have access to a control panel for your host? If you do the file section should have an upload option. You can then link to the location you put it on your own host.

Deaks

also if its the daysofourlives forum you may also want to update to 2.0.14 some massive bugfixes and security updates
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

sheryltoo

I do have access to my control panel and I uploaded my image to the image folder under my default theme, assuming that's where it belongs but I still need to figure out how to change the image at my site. What template do I use and then where in the template does a link to my image need to go?
And yes, I realize I should update my site to 2.0.14. The only reason I haven't done it yet is because I'm always afraid I'm going to mess something up.

Sir Osis of Liver

index.template.php -



echo '
', empty($settings['site_slogan']) ? '<img id="smflogo" src="' . $settings['images_url'] . '/smflogo.png" alt="Simple Machines Forum" title="Simple Machines Forum" />' : '<div id="siteslogan" class="floatright">' . $settings['site_slogan'] . '</div>', '



Formatting is in /css/index.css -



/* float these items to the right */
#siteslogan, img#smflogo
{
margin: 0;
padding: 0;
float: right;
line-height: 3em;
}
h3, h4
{
padding-bottom: 3px;
}
/* the upshrink image needs some tweaking */
img#upshrink
{
float: right;
margin: 1em;
}
/* ..so does the SMF logo */
img#smflogo
{
margin-left: 1em;
}


Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

sheryltoo


I'm sorry if I seem dumb but I just don't understand what you're trying to tell me or how I can get rid of that Photobucket image and replace it with the banner I had been using.
I've made no changes to any css file or any templates since Photobucket removed my banner and replaced it with their image so first I'm assuming if I'm using the exact same banner that my css file was coded for, I shouldn't have to make any changes to that. Am I correct?
Second, I don't know where to find the code that shows a link to where my banner once was and now needs to be changed to show a new location for my image.
I've looked at the index.template.php on my site and this is what I've found.
echo !empty($settings['forum_width']) ? '
<div id="wrapper" style="width: ' . $settings['forum_width'] . '">' : '', '
<div id="header"><div class="frame">
  <div id="top_section">
   <h1 class="forumtitle">
    <a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" />', '</a>
   </h1>';

Does the link to my banner image belong in this code some place? If so, what needs to be replaced or changed?

Sir Osis of Liver

smflogo.png is the default logo, displayed upper right in Curve.  It's located in /Themes/default/images.  If you upload your logo image to this directory and rename it smflogo.png, it will replace the default smf logo.  The code I posted that calls the image is a few lines later than what you posted.  It's probably been changed.  Can you attach your index.template.php and post/pm link to your forum?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

lurkalot

Quote from: sheryltoo on July 27, 2017, 04:10:01 PM
I do have access to my control panel and I uploaded my image to the image folder under my default theme, assuming that's where it belongs but I still need to figure out how to change the image at my site. What template do I use and then where in the template does a link to my image need to go?
And yes, I realize I should update my site to 2.0.14. The only reason I haven't done it yet is because I'm always afraid I'm going to mess something up.

Go to Admin > Configuration > Current theme > Scroll down to "Logo image URL:" and enter the url of your logo, like,  http://daysofourlives.sherylspage.com/Themes/default/images/doolsmf.jpg

Click save.

Sir Osis of Liver

Thanks, was looking for that, couldn't find it.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

sheryltoo


QuoteGo to Admin > Configuration > Current theme > Scroll down to "Logo image URL:" and enter the url of your logo, like,  http://daysofourlives.sherylspage.com/Themes/default/images/doolsmf.jpg

Click save.


OMgosh. That was so easy. I can't believe I've been trying to figure this out for 2 days now and just driving myself nuts. I was at a point where I didn't really care if I got my banner back. I just wanted to get rid of that Photobucket image.
I'm going to save these instructions in case I ever need to change the banner again. Don't ask me how I got it there before the Photobucket image. Someone must have helped me but it was several years ago so obviously I forgot what they said to do.
Thank you so much for helping me.

Advertisement: