^^^This Advanced Styling Rules does the exact same thingSo if I use this as a mobile style switch will this prevent the style from going back to mobile after I switch it to a normal forum theme? Cause when I browsed my site from my phone, cezz mobile style switch would automatically switch the site to XFStop Mobile. That was great. The problem was if I was on my phone and switched it back to full site, cezz switcher would switch me back to mobile.
You mean this but it doesn't need this addon to work.I'm not sure how it would be done technically...
But you could just not have an automatic switcher, and instead have a styling rule that says if accessing on http://m.yoursite.com/ then use mobile theme. You could then display a notice to mobile users the URL to the mobile theme. Clicking on it would active the rule which activates the mobile theme. Then you could have a link which just takes you back to the traditional http://www.yoursite.com to turn the mobile theme off.
I haven't fully thought that through, but it sounds like it could work. Would require some Apache configuration though, I guess. All the URLs in your theme would have to be relative to ensure that there's no absolute links in the mobile theme that would take you back to the non mobile site.
Russ said:Redirect to the mobile version using a sub-domain
Create a sub-domain of your choice, such as mydomain.com/m/ or mydomain.com/mobile
In the sub-domain create a php file called index.php with the following code in it:
Code:<?php header("Location: http://mydomain.com/misc/style?style_id=#"); ?>
Of course point the mydomain.com to the install of your xenforo, and the # being the style number
*Shout out to Jake for this
Hi Andy,
The same list selections could be used as a single regular expression. Something that would require some regEx knowledge though.
The solution to your problem is an easy one: ^((?!iPad).)*$
View attachment 29613
I use ^((?!iPad).)*$ and it works for me.Sorted by using the user agent: ^.*iPad.*$
Now seems to work
I can not find the control panel, what's wrong?
-Only Super Admins and administrators that have the "Manage styles, style properties, and templates " permission are allowed to use this add-on.
-
- View attachment 25522
---------------------------------------------------------------------------------------------------------------
Hi there,i still can't find the control panel, and i don't see the "Manage styles, style properties, and templates " text anywhere in the admin panel.
here's what shows up when i go to the applications > manage rules screen:
View attachment 30531
can anyone help me?
<script src="js/datheme/mootools-core-1.4.4.js?_v=ab450bd6"></script>
<script src="js/datheme/mootools-more-1.4.0.1.js?_v=ab450bd6"></script>
<script src="js/datheme/powertools-1.1.1.js?_v=ab450bd6"></script>
<script src="js/datheme/manage_styles_index.js?_v=ab450bd6"></script>
Anyone who gets a blank page and doesn't mind sharing their super admin account with me, please send me a PM.
It's time to trace the bug
The bug was caused by an obfuscated JavaScript file, hopefully everything is well now. (Thanks Andy.N!)
1.0.3 works again.
We use essential cookies to make this site work, and optional cookies to enhance your experience.