News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

drop down menu and logo removal

Started by machawk, July 25, 2014, 12:31:45 AM

Previous topic - Next topic

machawk

i will like to remove the drop down effect of the original smf curve theme and also be able to put in my logo too. Bellow is the indication of where i will like to edit labelled 1, 2 and 3.

kat

To get rid of the SMF logo:

http://custom.simplemachines.org/mods/index.php?mod=2383

To add your own Admin>Current theme>Logo image URL: Add the URL for your logo image, there.

The "My community" thing can be changed is Admin>Server settings>Forum Title

The drop-down requires a bit of code editing. I'll get back to you, when I've figured it out.

kat

#2
OK... I haven't checked this. So, keep a copy of the file, as a backup, in case I've missed something, woncha?

In index.template.php, if you remove this:

<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>', '




it'll get rid of the upshrink AND the logo.


Possibly. :)

Sir Osis of Liver

You can remove the dropdowns by commenting out or deleting the submenus in the button array in /Sources/Subs.php.

Make a backup before you tinker with this.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

kat

Bugger. I forgot about that! Ta, matey! :)

Illori

i dont think the op means the drop down, they mean the upshrink instead.

kat

That's how I took it, as it 'appens.

Ah! I see! Krash took it, literally?

I just looked at the screeny.

Sir Osis of Liver


Re: drop down menu and logo removal

Can't really see the screenshot, but if that's the upshrink button that's circled, it can be disabled in index.template.php -



// Define the upper_section toggle in JavaScript.
echo '
<script type="text/javascript"><!-- // --><![CDATA[
var oMainHeaderToggle = new smc_Toggle({
bToggleEnabled: false,
bCurrentlyCollapsed: ', empty($options['collapse_header']) ? 'false' : 'true', ',
aSwappableContainers: [
\'upper_section\'
],


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

                                     - R. Waters

machawk

yes ! pretty much what i'm looking for.  LEST I FORGoT! pls is there a nice wap mobile mod for smf 2.8? the default wap version of smf really doesnt cut it!

Sir Osis of Liver

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

                                     - R. Waters

machawk

it's alright! thanks. I couldn't get the drop down toggle thing to work like you had said. i'm editing from my htdocs,i.e i edit and replace them with the default using DREAMWEAVER. Is it that i'm going to remove the blocks of code for the toggle down or what? hey! i rememberd! when ever a message is sent it goes back to the topic index,i'll pretty much like it to go back to the message index. how can that be done too?

Hj Ahmad Rasyid Hj Ismail

Profile wise:
Profile > Modify Profile > Look & Layout> uncheck "Return to topics after posting by default." > Save.

Or forum wise:
Admin > Configuration > Themes & Layout > Member Options >
Configure guest and new user options for this theme
Change current options for all members using this theme
Remove all members' options and use the defaults
Note: For forum wise do it according to the order.

Sir Osis of Liver

You just have to change the value of bToggleEnabled from 'true' to 'false', nothing else.  You should edit files with a plain text editor, to avoid buggering them up with stray formatting codes, and use ftp to download/upload them.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Advertisement: