News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Read a lot but understood not. Editing my theme.

Started by BBLee, November 03, 2011, 03:50:58 PM

Previous topic - Next topic

BBLee

SMF 2.0.1, Curve Theme with a variant.

Where do I find the changes, specific wording changes, in the index.template.php that I made to my forum name and slogan?  I looked through the Curve 2.0 index.template.php, the Core, and the Grasslands Curve variant and can not find the actual words that I changed the forum name and forum slogan to.  I can see the changes/names if I view the page source when I right click on the forum itself but not in those little  ;D boxes that SMF offers up for editing.

I want to link the forum slogan back to my website but am not sure where, specifically, to make the changes.

Simple for you seasoned people, I know, but it's making my head hurt. 

Illori


BBLee

Thanks, for the reply.  But I read through all 460+ lines, again, and the names are not there.  A reference to SMF slogan is but not the name I changed it to.

Illori


BBLee

Well . . . yes I did.  But apparently you didn't read my post.

I changed the SMF logo to my website name, using the below procedure.  If the actual words don't change then that would explain why I can't find them when I go to modify the theme.

Theme Options and Preferences

Logo image URL:
(leave blank to show forum name or default logo.)
Site slogan:
Add your own text for a slogan here. It will replace the SMF logo.


Is this the correct area to link the slogan to my website?

// the upshrink image, right-floated
   echo '
         <img id="upshrink" src="', $settings['images_url'], '/upshrink.png" alt="*" title="', $txt['upshrink_description'], '" style="display: none;" />';
   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>', '

Illori

the slogan is changed in the admin panel not in the code. the text is stored in the database.

BBLee

There are two things that newcomers want to change when installing SMF.  The forum name and the SMF logo/slogan with their own and a link back to their site.  Not trying to be disrespectful but I don't understand why this is like "pulling teeth" to get an answer.

1) there is no mod for 2.0, from what I've read
2) I need to replace the SMF logo with my own
3) I need to add to the lines posted above (if that is the correct line(s)
4) everything works and I thank you profusely

Life is good in SMF land.   :)


TheListener

Quote from: Illori on November 04, 2011, 03:18:42 PM
the slogan is changed in the admin panel not in the code. the text is stored in the database.

It's as easy as that when adding a slogan.

Do you have a photobucket account?

I found this the easiest way to add the banner to the forum.

1) there is no mod for 2.0, from what I've read NOT REQUIRED

2) I need to replace the SMF logo with my own  HAS BEEN EXPLAINED

3) I need to add to the lines posted above (if that is the correct line(s) NOT NECESSARY


BBLee

I changed the SMF slogan (right-side) before I even posted.  I am simply wanting to link the words "mysite.com" back to my website.  I know I will have to replace the SMF logo with a logo of my own in that the actual words are in a database somewhere.  I would like to know what I need to change below in order to accomplish this.

If I am missing something in the admin panel that does all this, please feed it to me with a smaller spoon.

Thanks, for your response.


// the upshrink image, right-floated
   echo '
         <img id="upshrink" src="', $settings['images_url'], '/upshrink.png" alt="*" title="', $txt['upshrink_description'], '" style="display: none;" />';
   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>', '

busterone

Let me see if I understand you correctly. You have changed the logo in the admin control panel already, but when clicked it links to the index page of your forum, but you want it to link to your main site(or another site different from the forum) ?

The code you are looking for is in index.template.php, but exactly how you change it, I am unsure myself.
<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>';


You will need to change the $scripturl part without breaking the code.

BBLee

I think there is some confusion between the left forum name and the right SMF slogan, which I've changed to wording of my choice.  I would like to link this, slogan area, to a clickable link back to my site.

busterone

Ok, I did misunderstand. The code for what you want is
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>', '
</div>


but someone else will have to help you add the url into that.  I am unsure exactly where and how to add it myself.

BBLee


Advertisement: