News:

Wondering if this will always be free?  See why free is better.

Main Menu

Moving my forum index to my home tab

Started by Bruce the Shark, January 18, 2015, 06:01:43 PM

Previous topic - Next topic

Bruce the Shark

I have created a page on my navigation bar called advance topic with my boards and images next to them, however now the contents there which i am quite happy with i wish to move it into my home button.
just wanted to know is there a easy way to do this?

Kindred

Сл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."

Deaks

Kindred that wasnt helpful ... I know your team is doing bad or something is going wrong with what I see in whatever sport your watching, but consider his other posts do you think that helps him :P

Also editing subs.php works for 1 part of what he is asking.

He wants to move his forum to well forum and use his own page as Home but using his code.

edit

I didnt think about this till now but you could use a portal such as Simple Portal, create a front page block that uses html and copy the required code in.   You would need to tweak your code but should do as you wish.
~~~~
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."

Kindred

?? Huh?

He asked how to mive some stuff in his menu...

I don't see anything in that request about a homepage outside the forum or anything...

And FYI, my team was winning from the start and never looked back....
Сл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."

Deaks

and he asked about page as well ... evidently we both read something different :P

and your team may be winning but your not happy with some of the calls :P
~~~~
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."

Kindred

Lol... They won... Superbowl, here we come...   And the refs in any sport always make bad calls. ;)
I swear they do it in purpose, so the fans have something to complain about.

Anyway...   Yeah... I think bruce needs to more clearly state what he is actually trying to do.

Edit. Damned autocorrect
Сл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."

Deaks

Quote from: Kindred on January 18, 2015, 11:08:18 PM
Lol... They won... Superbowl, here we come...   And the refs in any sport always make bad calls. ;)
I swear they do it in purpose, so the fans have something to complain about.

I know what you mean I have stopped commentating on Rugby when I watch it as the ref is usually blind, I stick to posting when my team scores ... 6 Nations is coming up so expect alot of rugby starting in February

Quote from: Kindred on January 18, 2015, 11:08:18 PM
Anyway...   Yeah... I think bruce needs to more clearly state what he episode actually trying to do.

Well he asked me how to explain it better so I told him after a few questions and he seems to have used his own way of posting instead.
~~~~
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."

Bruce the Shark

fyi
I'm still working on it.
i haven't figured out the solution yet, so that's why i haven't reported it back.

kat

I have to confess... I haven't worked out what you want to do.

I'm reading it as you having created a page called "Advanced topic" and you want the "Home" button to link to that, instead of the forum home.

If that's right (Which I doubt), you'll need to butcher this, in the file that Kindred mentioned.

'home' => array(
'title' => $txt['home'],
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(
),
'is_last' => $context['right_to_left'],
),


If that's not what you meant, I have to say that I haven't got a clue what you DO mean... :P

Bruce the Shark

I'm reading it as you having created a page called "Advanced topic" and you want the "Home" button to link to that, instead of the forum home.


'home' => array(
'title' => $txt['home'],
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(
),
'is_last' => $context['right_to_left'],
),



[/quote]

Egg-Zack-lee 
thats what i want to do K@ but i was thinking of starting all over again and putting all the contents this time first in the forum home instead of redirecting it, but still i am not certain if this is a good practice to do.

However looking at this code above if i where to redirect it would i need to alter this......to

'home' => array (  my url...advance topics  )
            'title' => $txt['home'],
            'href' => $scripturl,
            'show' => true,
            'sub_buttons' => array(
            ),
            'is_last' => $context['right_to_left'],


would this be correct?

Kindred

you don't want any sort of redirect involved.

you would modify the href, which is currently set to $scripturl,  to point to whatever you want.

However, I would tell you that modifying the home is probably a BAD idea.   I would recommend doing what I did on fx-sabers...   add a new "site home" button instead.
Сл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."

Bruce the Shark

I done it as suggested but the landing page when i first call up my forum it start out on my original home page which is blank.
If i placed the content in the href and set it to show 'true'
It does work if i press the home tab but my concerns are as i was reading this topic
http://www.simplemachines.org/community/index.php?topic=480206.0
the url is only used if it is to be redirected to an external site, which this isnt
I also seen your  forum with the new site home tab on the navigation bar that you added and i was thinking of this as well but it looks to me this is a external website that you created, if i am correct.
I didnt quiet have this in mind

I still have an issue when the forum first initializes even though the home button seems to be working as should

Bruce the Shark

Bump
my home page is still not loading correctly.
I have set the subs.php as mentioned but still the main entry into my forum isn't showing.
I need to hit the home tab for this to reload

Kindred

Sorry Bruce, but what you just said doesn't make a lot of sense to me...

Please include the actual url so I can see what you are talking about?
Сл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."

Bruce the Shark

#14
I can show you my forum but i prefer not to show anyone here as i am yet to complete my forum.
Unless i can send you a personal pm
you will then see the home tab and the advance topics on how they are dispalying

Deaks

By what I understand he has changed the home button to his page and for this case say its home.php now thats good if they click that but internal links are taking him to index.php not home.php.
~~~~
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."

Bruce the Shark

Quote from: Ρουνικ on January 31, 2015, 10:43:23 AM
By what I understand he has changed the home button to his page and for this case say its home.php now thats good if they click that but internal links are taking him to index.php not home.php.

yes this is whats happening.
But when you first enter the forum the screen is completely blank.
If you press the home button the screen refreshes and then the contents shows up.

if this was for an example an ordinary web page i am able to adjust the navigation bar to pretty much to my liking and have it working  in many different ways but since this is a forum the coding in the subs.php that needs this adjustment becomes a bit more involved for me. Again i am not a coder.
Although i have altered this if sort of not working out the way it should be.

Kindred

Sorry... Maybe I am just being dense... But I still don't understand your issue.
Сл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."

Bruce the Shark

yes its difficult to explain

I have an image to show you.

This is what happens when you first enter my forum

kat

I'm not sure, here...

I believe browsers, if you don't stipulate a precise file, look for index.php/index.htm/index.html.

If it doesn't find them, it kinda goes "Durrr" and does squat, or gives some error.

So, if your site is at http://www.brucethedeadshark.com/home.php just going to http://www.brucethedeadshark.com is gonna make the browser brain-fart.

If you hit your "Home" button, you're telling it to go to a specific file, so it finds it and does it's stuff.

Maybe you should have an index.php file, which loads home.php?

That's if I've understood what's going on, here. :)

Illori

index.php should be provided by SMF, sounds like some other stuff has been changed.

Bruce the Shark

#21
Quote from: Illori on January 31, 2015, 06:26:34 PM
index.php should be provided by SMF, sounds like some other stuff has been changed.
yes some items have been changed.
I did this because after working on me Advanced topic i was so impressed with the layout i decided to  have this as my main page on start up of my forum.
Obviously i was wrong to do it this way
So somehow something went very wrong along the line.
What i decided in the end was to have this looked at by PM some members here and offering a PAID service of course to have this fixed for me before making things worse if they could consider there time and my offer.
I am still awaiting for a response, but if i get no reply i think i might need to post this in the Help section to have this issue looked at.
Why i haven't done this yet
Two reasons
1: Because i was considering about adding some other feature like my board layouts to suit my users.
and 2: also some members who are here who rarely post anymore so i try to help out those member's who show some interest in my post i prefer offering them first go rather than giving out my personal details over to a complete stranger who i don't know is concerning.

Burke ♞ Knight

Bruce, if you'd use SimplePortal, you have the option of:

QuoteSet up standalone portal:

SimplePortal comes with a simple way to create an integrated portal page in a different location from your forum. In order for login/logout to work properly, this standalone portal page must be in the same domain as the forum it is integrated with.

The SimplePortal installation created a file called PortalStandalone.php in your forum directory. Copy this file to the directory where you want your standalone portal to be (not in the forum directory) and rename it as you wish (use index.php if you want it to be the default page for the directory).

You then could use your topics page, as the Home page, and the forum as Forum, and it would all fit in correctly.

Bruce the Shark

Quote from: ♘ DeadMan ♘ on January 31, 2015, 08:03:14 PM
Bruce, if you'd use SimplePortal, you have the option of:

QuoteSet up standalone portal:

SimplePortal comes with a simple way to create an integrated portal page in a different location from your forum. In order for login/logout to work properly, this standalone portal page must be in the same domain as the forum it is integrated with.

The SimplePortal installation created a file called PortalStandalone.php in your forum directory. Copy this file to the directory where you want your standalone portal to be (not in the forum directory) and rename it as you wish (use index.php if you want it to be the default page for the directory).


You then could use your topics page, as the Home page, and the forum as Forum, and it would all fit in correctly.

Hi Mr Deadman dude your a genius. You deserve a medal.
Bro i followed your instructions as you mentioned by the letter.
I placed it in stand alone mode and redirected it.
It all worked great. I have even disabled my Advance topic button now as there is no need for it anymore, as the contents was the very same.
The entry to my forum now loads as should and also the logout.
Thanks you so much for your help. Its all good now.
Finally theres an end to my madness.
Also i wish to thank others who so graciously contributed there time to my dilemma.
Regards to everyone.
Bruce
Great work people.


Advertisement: