The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to force/redirect mobile users to go to domain.com/forum.php?
I use vBa CMPS. So the home page is not the /forum.php page. I just enabled mobile style from Styles options and made it default so everyone on mobile devices see that. The theme is not responsive and I was losing out on mobile traffic. Now when I go to the site from mobile, it still shows up non-responsive home page but when I go to the /forum.php then it shows the mobile version.
1. How do I force/redirect mobile users to directly go to the /forum.php and not see the home page? 2. How do I remove the clickable link of 'Full Site' at the bottom of the forum? |
#2
|
|||
|
|||
Anyone?
|
#3
|
|||
|
|||
1. Implement this script: http://mobiledetect.net/. Add a check in init_startup that checks the current location and then based on that, and the mobile detection, perform the redirection.
2. Mobile style > footer template > remove: HTML Code:
<vb:if condition="$show['quickchooser']"> <li<vb:if condition="$show['forgetpassword']"> class="last"</vb:if>><a href="{vb:raw vboptions.forumhome}/?styleid={vb:raw vboptions.styleid}" class="fullsitelink" rel="external">{vb:rawphrase full_site}</a></li> </vb:if> |
Благодарность от: | ||
MarkFL |
#4
|
|||
|
|||
Quote:
Where do I upload the contents of the folder 'Mobile-Detect-2.8.24' after downloading it? After uploading these files onto my vB, how do I "add a check in init_startup" as you mentioned? Thanks a lot! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|