Home button

Started by mrtvi1, March 03, 2015, 09:49:36 AM

Previous topic - Next topic

mrtvi1

Hello. Yesterday I created forum with SMF, but when I click home forums shows up. I want that home button is really for "Home" and add forum button and forums shows up. And how to create my own theme? If you need SS just tell me

margarett

Hi and welcome to sm.org ;)

Are you using the latest 2.1 Beta1?

The buttons are defined in Subs.php and the "Home" button points to the forum's main page. You can change that here
'home' => array(
'title' => $txt['home'],
'href' => $scripturl,
'show' => true,

Change $scripturl to whatever link you want to have. Don't forget to put it inside single quotes, eg:
'http://www.google.com',
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

mrtvi1

Sorry I am using SMF 2.0.9 I didnt know  :-[ . But still thanks for support  :laugh:

margarett

No problem ;)
Moved and marked solved ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

mrtvi1


margarett

Do it like this
'home' => array(
'title' => $txt['home'],
'href' => 'http://www.cpgmta.net76.net/home.php',
'show' => true,

(don't forget the rest of the code). If you have further problems, attach the file itself ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

mrtvi1

I did something wrong.. Can I reset it? http://prntscr.com/6c886n [nofollow]

mrtvi1


mrtvi1

Quote from: mrtvi1 on March 03, 2015, 12:06:35 PM
I fixed :)
I still want something. Guys I have a SS of that what I think. Can I post it?

margarett

Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

mrtvi1

http://imgur.com/PwPe78x [nofollow] In Home button they have server stats etc. On Forum they have Forums

margarett

I have no idea what you mean :P

You have to describe better what you want. Assume that I know absolutely nothing of what you want. Describe it properly and use images (that you can attach to your posts, by the way) just to illustrate.
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Mortissimov

mrtvi1, you mean sub buttons?

Mstcool

You can download a portal and use their standalone home button (I know SP does this, its easier to do this rather than coding, also, you can have a homepage integrated into your forum by installing a portal)

mrtvi1


br360

Like Mstcool said, they have that home button because they installed simple portal.

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

margarett

Sorry, I don't know what "that" is. Again, use words to describe *EXACTLY* what you want.
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

mrtvi1

Quote from: margarett on March 04, 2015, 05:22:23 AM
Sorry, I don't know what "that" is. Again, use words to describe *EXACTLY* what you want.
Simple. I have server in MTA. And I want to use Home button and add there some stats and that and I want Forum button to enter in foums

Kindred

right...   

so, you want to change the "HOME" button to go to your main site.
margarett has already indicated how to do that.

You want to add a "FORUM" button to go to your forum main page.
using the same method, you would add a new item into the button array just after the home button. (see the wiki/faq on "how do I add a button...")

You want to add some stats?
Sorry, that bit is not parsing. What do you mean you want to add stats?
Links to other pages in a submenu under the home button?
easy-peasy...    see the FAQ article. it describes the use of the sub-buttons section of the array.

you want to add ACTUAL stats that update?
That is significantly more complicated and not recommended.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

mrtvi1


Advertisement: