-
AuthorPosts
-
funkmanusa Friend
funkmanusa
- Join date:
- April 2008
- Posts:
- 94
- Downloads:
- 0
- Uploads:
- 4
- Thanks:
- 16
- Thanked:
- 3 times in 1 posts
December 22, 2011 at 7:39 am #172039I really really need to remove the mobile template from this site..been trying to get an answer to no avail..so Im trying again. This is incredibly critical to the site to not show the mobil theme at all. Only want the standard site to appear across all platforms. I have already changed layout settings in the template manager to default and it still shows the mobile version. site- http://www.940millroad.com
Are there files I can remove to make it not appear anymore? Please I need a solution soon. I am begging!! :((
Blaine FriendBlaine
- Join date:
- August 2007
- Posts:
- 1443
- Downloads:
- 0
- Uploads:
- 25
- Thanks:
- 98
- Thanked:
- 177 times in 154 posts
December 27, 2011 at 10:33 am #431356Please search our forum before posting as this has been covered many times.
1. Open file templates/ja_cloris/layouts/blocks/iphone/mainnav.php
2. Comment this line :
if (!($mobile = $this->mobile_device_detect())) return;
funkmanusa Friendfunkmanusa
- Join date:
- April 2008
- Posts:
- 94
- Downloads:
- 0
- Uploads:
- 4
- Thanks:
- 16
- Thanked:
- 3 times in 1 posts
December 27, 2011 at 2:44 pm #431379<em>@Blaine 291403 wrote:</em><blockquote>Please search our forum before posting as this has been covered many times.
1. Open file templates/ja_cloris/layouts/blocks/iphone/mainnav.php
2. Comment this line :
if (!($mobile = $this->mobile_device_detect())) return;
</blockquote>Thank you very much for the reply. This folder location doesn’t exist in the template. Please see the first screenshot.
Please trust me when I say I have thoroughly searched the forum, additionally searched every single folder in the template. There is a mainnav.php in ja_cloris/blocks/mainnav.php, but there is nothing pertaining to mobile in it..If I can just find this files location, I will be a happy camper.
-
Blaine Friend
Blaine
- Join date:
- August 2007
- Posts:
- 1443
- Downloads:
- 0
- Uploads:
- 25
- Thanks:
- 98
- Thanked:
- 177 times in 154 posts
December 28, 2011 at 8:02 am #431549See if this thread is of more use please!
funkmanusa Friendfunkmanusa
- Join date:
- April 2008
- Posts:
- 94
- Downloads:
- 0
- Uploads:
- 4
- Thanks:
- 16
- Thanked:
- 3 times in 1 posts
December 28, 2011 at 5:01 pm #431610<em>@Blaine 291642 wrote:</em><blockquote>See if this thread is of more use please!</blockquote>
Thanks I have already read that post before I made the first post asking for help with my issue and nothing there was of any use or made any differences. Ja-Cloris doesnt contain a seperate mainnav.php for any of the mobile layouts..this is managed somewhere else…which I cannot for the life of me find.
I am thinking its embedded somewhere in T3, but cant find it there either. So unbelievably frustrating…removing this mobile theme has been so incredibly difficult. I just need to know where this script is located….still unable to find it anywhere.
Blaine FriendBlaine
- Join date:
- August 2007
- Posts:
- 1443
- Downloads:
- 0
- Uploads:
- 25
- Thanks:
- 98
- Thanked:
- 177 times in 154 posts
December 29, 2011 at 8:40 pm #431811I did find the other file but it was not correct for Cloris.
The correct file path is:
/plugins/system/jat3/base-themes/default/blocks/iphone/mainnav.phpThere you will find the above mentioned code to comment out.
funkmanusa Friendfunkmanusa
- Join date:
- April 2008
- Posts:
- 94
- Downloads:
- 0
- Uploads:
- 4
- Thanks:
- 16
- Thanked:
- 3 times in 1 posts
December 30, 2011 at 1:58 am #431849<em>@Blaine 291958 wrote:</em><blockquote>I did find the other file but it was not correct for Cloris.
The correct file path is:
/plugins/system/jat3/base-themes/default/blocks/iphone/mainnav.phpThere you will find the above mentioned code to comment out.</blockquote>
Thank you very much, the location is correct, unfortunately this line was already commented out when I opened the file.. =(
Here’s the entire div as it was when I opened the file.[PHP]<div class=”tools-btns”>
<div class=”links”>
<?php if($this->countModules(‘search’)) : ?>
<a class=”toggle button btn-search ip-button” href=”#ja-search” title=”Search”><span>Search</span></a>
<?php endif; ?>
<a class=”toggle button btn-login ip-button” href=”#ja-login” title=”Login”><span>Login</span></a>
<?php
//if (!($mobile = $this->mobile_device_detect())) return;
$handheld_view = $this->getParam(‘ui’);
$switch_to = $handheld_view==’desktop’?’default’:’desktop’;
$text = $handheld_view==’desktop’?’Mobile Version’:’Desktop Version’;
?>
<a class=”ja-tool-switchlayout toggle button btn-switchlayout” href=”<?php echo JURI::base()?>?ui=<?php echo $switch_to?>” onclick=”return confirm(‘<?php echo JText::_(‘Switch to standard mode confirmation’)?>’);” title=”<?php echo JText::_($text)?>” ><span><?php echo JText::_($text)?></span></a>
</div>[/PHP]Any other area this can be turned off?
Can I provide you access so you can take a peek and save both of us the aggrevation?Blaine FriendBlaine
- Join date:
- August 2007
- Posts:
- 1443
- Downloads:
- 0
- Uploads:
- 25
- Thanks:
- 98
- Thanked:
- 177 times in 154 posts
December 30, 2011 at 6:52 am #431875Please just comment out this line :
if (!($mobile = $this->mobile_device_detect())) return;
It is the one you have on the file that is in ORANGE.
I already looked at the file and the line you need is in that file as well as posted above by you. no need for me to look.
Do you need to know how to comment out a line?
Thanks!funkmanusa Friendfunkmanusa
- Join date:
- April 2008
- Posts:
- 94
- Downloads:
- 0
- Uploads:
- 4
- Thanks:
- 16
- Thanked:
- 3 times in 1 posts
December 31, 2011 at 3:01 pm #432023<em>@Blaine 292040 wrote:</em><blockquote>Please just comment out this line :
if (!($mobile = $this->mobile_device_detect())) return;
It is the one you have on the file that is in ORANGE.
I already looked at the file and the line you need is in that file as well as posted above by you. no need for me to look.
Do you need to know how to comment out a line?
Thanks!</blockquote>Blaine,
Thanks for help with this, but I see this line is already commented. // even did- /* */
I then just removed the line completely and it still loads the mobile version on all 3 phones I’ve tried…
Is there somewhere else I can make this stop displaying the mobile theme?Blaine FriendBlaine
- Join date:
- August 2007
- Posts:
- 1443
- Downloads:
- 0
- Uploads:
- 25
- Thanks:
- 98
- Thanked:
- 177 times in 154 posts
January 5, 2012 at 1:45 am #432582You have cleared your site and browser and phone caches??
If so, see if this thread for another template works please.
Thanks!January 9, 2012 at 8:53 pm #433179<em>@Blaine 292971 wrote:</em><blockquote>You have cleared your site and browser and phone caches??
If so, see if this thread for another template works please.
Thanks!</blockquote>Can someone please provide a real answer for this question??
That line is BY DEFAULT commented out in this template.
The OP originally indicated that. The ORANGE color you reference in the code snippet MEANS the line is commented..Blaine, I appreciate you trying/being helpful but you’ve already provided two incomplete answers to a question that’s been asked more than a few times in this thread. I realize you might be tired of repeating answers in 75 different forums but your terse answers are not appropriate here and quite unhelpful. Instead of wasting yours and posters’ time and bandwidth explaining how to search or snidely implying the OP is too stupid to comment a line in PHP, please use your time to provide a definitive and WORKING answer please..
What is the REAL ANSWER for THIS CLORIS TEMPLATE to absolutely, without a doubt disable any mobile views/versions/whatever and direct any and all traffic, regardless of browser, to the DESKTOP version of the site please.
Thank you.
Blaine FriendBlaine
- Join date:
- August 2007
- Posts:
- 1443
- Downloads:
- 0
- Uploads:
- 25
- Thanks:
- 98
- Thanked:
- 177 times in 154 posts
January 10, 2012 at 4:26 am #433222Ok jazaria, tell me what you want. the whole iPhone to be disabled or all handheld?
Sorry you feel my answers are terse, that was not their intention. And yes, MANY users do not search OR clear cache and I am sure you are aware this presents problems.January 10, 2012 at 5:11 am #433228Yes Blaine, I realize many users do not search first. Sometimes however, it is more useful to the forum (not just the poster, but for the next people who WILL be searching) to just answer the question succinctly and then maybe urge them to search. I know from your perspective it’s a pain in the ass but sometimes the energy put into *changing* human natures is better used to just walk around those human natures.. Just my 2c..
In any case, what I’d like to accomplish is this (forgive if not all terminology is correct..):
Any browser that comes to my site regardless of if its an iPhone, Android, handheld, mobile, whatever – anything – should get the full //desktop// site. Currently I have (in the Template’s Profile settings) Dektop set to Default layout and the iPhone, Android and Handheld layouts set to disabled (same behavior btw, with all 4 layouts set to Default as well)
When I hit my site (http://fhsny.com) with an iphone or Android browser I get a different header/nav/top part that shows login fields and a couple of links including a link to “Desktop Version”. If I click this link, the result url is http://fhsny.com/?ui=desktop and this page displays correctly. This is closest to what I want everyone to see. If possible I would have the link at the bottom to the “Mobile Version” also disabled and no parameter in the url. In other words I want any and every browser to see the exact same copy of the site… the desktop version.
Could you please explain what needs to be done to accomplish that with JA_Cloris.
Thank you.<em>@Blaine 293833 wrote:</em><blockquote>Ok jazaria, tell me what you want. the whole iPhone to be disabled or all handheld?
Sorry you feel my answers are terse, that was not their intention. And yes, MANY users do not search OR clear cache and I am sure you are aware this presents problems.</blockquote> -
AuthorPosts
Viewing 14 posts - 1 through 14 (of 14 total)This topic contains 14 replies, has 3 voices, and was last updated by jazaria 12 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum