Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
cane_cc72 Posted February 7, 2016 Posted February 7, 2016 Is it possible to have home page button show within a forum rather then having to back out of forum to see it? Like have it show in navbar globally.
SJ77 Posted February 7, 2016 Posted February 7, 2016 Could edit template and add it where you want it
Nathan Explosion Posted February 7, 2016 Posted February 7, 2016 Or just tap on the name of the site.....
cane_cc72 Posted February 8, 2016 Author Posted February 8, 2016 1 hour ago, Nathan Explosion said: Or just tap on the name of the site..... Yeah I know but gotta please the members....lol
cane_cc72 Posted February 8, 2016 Author Posted February 8, 2016 1 hour ago, superj707 said: Could edit template and add it where you want it I been looking at that just not sure how to do it with out it showing home button twice when on the Main forum page or (category) page, and not having to edit all page's.
cane_cc72 Posted February 8, 2016 Author Posted February 8, 2016 I tried adding another instance of the home button in the mobileNavBar but it merges the 2 buttons together below is the code I tried. I must be doing it wrong. <li id='elMobileBreadcrumb'> <a href='{setting="base_url"}'> <span>{lang="home"}</span> </a> </li>
SJ77 Posted February 8, 2016 Posted February 8, 2016 Maybe use a PHP if statement if url != main forums show button on phone now so I can't type exact code but that should give you the idea
cane_cc72 Posted February 8, 2016 Author Posted February 8, 2016 2 hours ago, superj707 said: Maybe use a PHP if statement if url != main forums show button on phone now so I can't type exact code but that should give you the idea I will give that a try fingers crossed i get it right lol
SJ77 Posted February 8, 2016 Posted February 8, 2016 19 minutes ago, cane_cc72 said: I will give that a try fingers crossed i get it right lol This should get you the URL $Get_url = "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URl']; this will show you how to set up a php if statement. http://php.net/manual/en/control-structures.elseif.php Use ECHO to create your home button. Then you can control when it show's up.
cane_cc72 Posted February 8, 2016 Author Posted February 8, 2016 Thank's for the help i'll give it a try.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.