tabs

Started by dkharp, January 10, 2010, 07:51:08 PM

Previous topic - Next topic

dkharp

I know that there are many posts about this. I was wondering is there a how to add tabs like the ones on top? Meaning where the smf logo usually is in the top right?

Kill Em All

No, I so not believe so. Sorry. You can play with the code though and see what happens. Viewing source code here might help to.


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

Costa

Maybe this help



.Themes/default/index.template.php
   // 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="align_right">' . $settings['site_slogan'] . '</div>', '
      </div>
      <div id="upper_section" class="middletext"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>
         <div class="user">';

      // If the user is logged in, display stuff like their name, new messages, etc.


// the upshrink image, right-floated
echo '
<img id="upshrink" src="', $settings['images_url'], '/upshrink.png" alt="*" title="', $txt['upshrink_description'], '" style="display: none;" />
<div class="align_right" style="padding-top: 10px;">
<ul class="dropmenu" id="site_nav">
<li id="button">
<a class="active firstlevel" href="index.php?action=profile">
<span class="firstlevel"> ' . $txt['profile'] . '</span>
</a>
</li>
<li id="button">
<a class="active firstlevel" href="index.php?action=pm">
<span class="firstlevel"> ' . $txt['pm_short'] . '</span>
</a>
</li>
<li id="button">
<a class="active firstlevel" href="index.php?action=search">
<span class="firstlevel"> ' . $txt['search'] . '</span>
</a>
</li>
<li id="button">
<a class="active firstlevel" href="index.php?action=help">
<span class="firstlevel"> ' . $txt['help'] . '</span>
</a>
</li>
</ul>
</div>
</div>

<div id="upper_section" class="middletext"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>
<div class="user">';

// If the user is logged in, display stuff like their name, new messages, etc.
Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

Kill Em All

Costa, you should put that in a tips and tricks post. Could be helpful to some.


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

Costa

Feel free to do that, I can't find the original post from Kays :P
Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

Kill Em All

Quote from: Costa on January 10, 2010, 10:43:22 PM
Feel free to do that, I can't find the original post from Kays :P
Well then Kays should, I don't want to take credit for something I didn't do.


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

Costa

As far I can remember, it was a 3 dudes thread, Kays, acans and me.
Just can't find the thread :P
Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

smp420

"Things turn out best for those who make the best of the way things turn out." -Jack Buck

Joker™

nice work Costa  bro .... i just wanna ask ... that i dont want to make all buttons to glow in that orange thing .... i want only button current in use to glow like that .... so how can we make that happen ??

n once again g8 work
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

dkharp

#9
WOOT! I changed one to an external link. But How do you get the name of the button to change?

This is so cool!


Costa

@smp420
Thank's :)

@sid2varun
hmmmm, need to check that

@dkharp
I'm using the smf language files, however you can hardcode like this

Each link have this
<span class="firstlevel"> ' . $txt['profile'] . '</span>

Inside the span tag you can isert text
<span class="firstlevel">Profile</span>
Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

dkharp


glitchytea

how did you change the tabs so that you get arcade and stuff

Costa

@dkharp
You're welcome

@glitchytea
Changing the links here
<a class="active firstlevel" href="index.php?action=profile">
in href="index.php?action=profile" change to href="index.php?action=arcade"
and in the next line:
<span class="firstlevel"> ' . $txt['profile'] . '</span> to <span class="firstlevel">Arcade</span>
Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

glitchytea

you sure i dont have to edit the english.languages.php as the link works but the text is not there look www.game-feed.net

Costa

hardcode like this
<span class="firstlevel">Arcade</span>
No
Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

Kill Em All

How would you put in a link that just goes to a completely different webpage?

         <li id="button">
            <a class="active firstlevel" href="http://otherwebsite.com">
               <span class="firstlevel"> 'Name '</span>
            </a>
         </li>


I'm sure that's completely wrong, but it was worth taking a shot.


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

glitchytea

mate cheers sorry too keep going on its worked top man ;)

Advertisement: