Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted February 7, 20168 yr 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.
February 8, 20168 yr Author 1 hour ago, Nathan Explosion said: Or just tap on the name of the site..... Yeah I know but gotta please the members....lol
February 8, 20168 yr Author 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.
February 8, 20168 yr Author 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>
February 8, 20168 yr 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
February 8, 20168 yr Author 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
February 8, 20168 yr 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.
Archived
This topic is now archived and is closed to further replies.