Jump to content

home page on mobile

Featured Replies

Posted

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.

56b7763474c53_insideforum.thumb.jpeg.62a

Could edit template and add it where you want it 

Or just tap on the name of the site.....

 

Screenshot_13.png

  • Author
1 hour ago, Nathan Explosion said:

Or just tap on the name of the site.....

 

Screenshot_13.png

Yeah I know but gotta please the members....lol

  • 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.

  • 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>

 

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

  • 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

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.

  • Author

Thank's for the help i'll give it a try.

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.