Page 1 of 2 12 LastLast
Results 1 to 20 of 21

Thread: Solution for CMPS Blank Page Mobile Style

  1. #1
    Join Date
    May 2012
    Posts
    6

    Default Solution for CMPS Blank Page Mobile Style

    Okay, so heres a step by step.
    -AdminCP->Styles and Templates->Style Manager
    -On dropdown for mobile style(s) in question, click Add New Template
    -Name: adv_portal

    Paste This Code On adv_portal

    Code:
    {vb:stylevar htmldoctype}
    <html xmlns="http://www.w3.org/1999/xhtml"<vb:if condition="$vboptions['enablefacebookconnect']"> xmlns:fb="http://www.facebook.com/2008/fbml"</vb:if> dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
    <head>
    	{vb:raw headinclude}
    	<title>{vb:raw vboptions.bbtitle}</title>
    	{vb:raw headinclude_bottom}
    </head>
    
    <body>
    
    {vb:raw header}
    
    {vb:raw navbar}
    	
    <vb:if condition="$show['guest']">
        
    	<div id="pagetitle" class="pagetitle ui-bar-b">
    	<h1 class="pagetitle">{vb:rawphrase log_in}</h1>
    </div>
    
    <div data-role="content">
    	<form class="block vbform"  method="post" action="login.php?do=login">	
    		<input type="hidden" name="do" value="login" />
    		<input type="hidden" name="vb_login_md5password" value="" />		
    		<input type="hidden" name="vb_login_md5password_utf" value="" />
    		<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
    		<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
    		<input type="hidden" name="url" value="{vb:raw url}" />
    		
    		<div data-role="fieldcontain">
    			<label for="vb_login_username">{vb:rawphrase username}:</label>
    			<input type="text" class="primary textbox" id="vb_login_username" name="vb_login_username" accesskey="u" tabindex="1" />
    			<label for="vb_login_password">{vb:rawphrase password}:</label>
    			<input type="password" class="primary textbox" id="vb_login_password" name="vb_login_password" tabindex="1" />
    			<input type="checkbox" name="cookieuser" id="cb_cookieuser" value="1" tabindex="1" /> 
    			<label for="cb_cookieuser">{vb:rawphrase remember_me}</label>
    		</div>
    		
    		<button type="submit" name="sbutton" data-theme="a">{vb:rawphrase log_in}</button>
    	</form>
    </div>
    	
    <vb:else />
    
    	<div id="pagetitle" class="pagetitle ui-bar-b">
    	<h1 class="pagetitle">{vb:rawphrase vbulletin_menu}</h1>
    </div>
    
    <div data-role="content">
    	<div class="searchbar">
    		<form action="search.php?{vb:raw session.sessionurl}do=process" method="post" id="navbar_search" class="navbar_search">
    			<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
    			<input type="hidden" name="do" value="process" />
    			<input type="hidden" name="contenttype" value="vBForum_Post" />
    			<input type="hidden" name="searchfromtype" value="vBForum:Post" />
    			<div class="buttoncontainer">
    				<button type="submit" name="sbutton" data-theme="c">{vb:rawphrase search}</button>
    			</div>
    			<div class="textboxcontainer">
    				<input type="text" value="" name="query" tabindex="99"/>
    			</div>
    		</form>
    	</div>
    	<div class="ui-grid-b ui-body-c gridmenu">
    		<vb:if condition="$show['articles']">
    		<div class="ui-block-b">
    			<div class="iconcontainer">
    				<a href="<vb:if condition="$vboptions['vbcms_url']">{vb:raw vboptions.vbcms_url}/{vb:raw vboptions.site_tab_url}{vb:raw session.sessionurl_q}<vb:else />{vb:raw vboptions.site_tab_url}{vb:raw session.sessionurl_q}</vb:if>" rel="external" class="gridmenuicon"><img src="{vb:stylevar imgdir_mobile}/articles.png" /></a>
    				<a href="<vb:if condition="$vboptions['vbcms_url']">{vb:raw vboptions.vbcms_url}/{vb:raw vboptions.site_tab_url}{vb:raw session.sessionurl_q}<vb:else />{vb:raw vboptions.site_tab_url}{vb:raw session.sessionurl_q}</vb:if>" rel="external">{vb:rawphrase articles}</a>
    			</div>
    		</div>
    		</vb:if>
    		<div class="ui-block-b">
    			<div class="iconcontainer">
    				<a href="{vb:link forumhome}" rel="external" class="gridmenuicon"><img src="{vb:stylevar imgdir_mobile}/forums.png" /></a>
    				<a href="{vb:link forumhome}" rel="external">{vb:rawphrase forums}</a>
    			</div>
    		</div>
    		<vb:if condition="$show['blogs']">
    		<div class="ui-block-b">
    			<div class="iconcontainer">
    				<a href="{vb:raw $vboptions.vbblog_url}{vb:if "$vboptions['vbblog_url']", '/', ''}blog.php{vb:raw session.sessionurl_q}" rel="external" class="gridmenuicon"><img src="{vb:stylevar imgdir_mobile}/blogs.png" /></a>
    				<a href="{vb:raw $vboptions.vbblog_url}{vb:if "$vboptions['vbblog_url']", '/', ''}blog.php{vb:raw session.sessionurl_q}" rel="external">{vb:rawphrase blogs}</a>
    			</div>
    		</div>
    		</vb:if>
    		<vb:if condition="$show['quick_links_albums']">
    		<div class="ui-block-b">
    			<div class="iconcontainer">
    				<a href="album.php{vb:raw session.sessionurl_q}" rel="external" class="gridmenuicon"><img src="{vb:stylevar imgdir_mobile}/album.png" /></a>
    				<a href="album.php{vb:raw session.sessionurl_q}" rel="external">{vb:rawphrase albums}</a>
    			</div>
    		</div>
    		</vb:if>
    		<vb:if condition="$show['member']">
    		<div class="ui-block-b">
    			<div class="iconcontainer">
    				<a href="{vb:link member, {vb:raw bbuserinfo}}" rel="external" class="gridmenuicon"><img src="{vb:stylevar imgdir_mobile}/profile.png" /></a>
    				<a href="{vb:link member, {vb:raw bbuserinfo}}" rel="external">{vb:rawphrase profile}</a>
    			</div>
    		</div>
    		<div class="ui-block-b">
    			<div class="iconcontainer">
    				<a href="{vb:link member, {vb:raw bbuserinfo}, {vb:raw pageinfo_friends}}" rel="external" class="gridmenuicon"><img src="{vb:stylevar imgdir_mobile}/friends.png" /></a>
    				<a href="{vb:link member, {vb:raw bbuserinfo}, {vb:raw pageinfo_friends}}" rel="external">{vb:rawphrase friends}</a>
    			</div>
    		</div>
    		<div class="ui-block-b">
    			<div class="iconcontainer">
    				<a href="mobile.php?{vb:raw session.sessionurl}do=notifications" rel="external" class="gridmenuicon"><img src="{vb:stylevar imgdir_mobile}/notifications.png" /></a>
    				<a href="mobile.php?{vb:raw session.sessionurl}do=notifications" rel="external">{vb:rawphrase your_notifications} (<span class="notifications_total_count">{vb:raw notifications_total}</span>)</a>
    			</div>
    		</div>
    		<div class="ui-block-b">
    			<div class="iconcontainer">
    				<a href="private.php{vb:raw session.sessionurl_q}" rel="external" class="gridmenuicon"><img src="{vb:stylevar imgdir_mobile}/messages.png" /></a>
    				<a href="private.php{vb:raw session.sessionurl_q}" rel="external">{vb:rawphrase messages} ({vb:raw bbuserinfo.pmunread})</a>
    			</div>
    		</div>
    		<vb:if condition="$show['searchbuttons']">
    			<div class="ui-block-b">
    				<div class="iconcontainer">
    					<a href="search.php?{vb:raw session.sessionurl}do=getnew" rel="external" class="gridmenuicon"><img src="{vb:stylevar imgdir_mobile}/whatsnew.png" /></a>
    					<a href="search.php?{vb:raw session.sessionurl}do=getnew" rel="external">{vb:rawphrase getnew_tab}</a>
    				</div>
    			</div>
    		</vb:if>
    		<vb:comment>
    		<div class="ui-block-b">
    			<div class="iconcontainer">
    				<a href="{vb:raw vboptions.bburl}" rel="external" class="gridmenuicon"><img src="{vb:stylevar imgdir_mobile}/settings.png" /></a>
    				<a href="{vb:raw vboptions.bburl}" rel="external">{vb:rawphrase control_panel}</a>
    			</div>
    		</div>
    		</vb:comment>
    		</vb:if>
    		{vb:raw template_hook.mobile_gridmenu_end} 
    	</div>
    </div>
        
    </vb:if>
    
    {vb:raw footer}
    
    </body>
    </html>
    this will show the login pages for unregister member
    for register member will show gridmenu

    i hope this will help you all guy

  2. #2
    Join Date
    May 2012
    Posts
    5

    Default

    Works perfect. Thanks so much for this!

  3. #3
    Join Date
    May 2012
    Posts
    5

    Default

    Getting this code at the footer:

  4. #4
    Join Date
    Jun 2012
    Posts
    5

    Default

    worked great for me! thanks a million

  5. #5
    Join Date
    May 2012
    Posts
    5

    Default

    Quote Originally Posted by sandboa View Post
    Getting this code at the footer:
    Code error was caused by something else. Disregard

  6. #6
    Join Date
    Jul 2010
    Location
    Karamay City, Xinjiang Uygur Autonomous Region of China
    Posts
    39

    Default

    Run successfully. thank!

  7. #7
    Join Date
    Jan 2005
    Posts
    5

    Default

    Great thanks.
    Special Forces Roll Of Honour : http://www.specialforcesroh.com
    Unofficial Steven Seagal : http://www.steven-seagal.net
    A-Team Resource : http://www.ateamresource.com

  8. #8
    Join Date
    Jun 2012
    Posts
    12

    Default

    Thanks mite, woudn't even think that it's not there.

  9. #9
    Join Date
    Sep 2004
    Posts
    19

    Default

    I have a questions....

    First....THANK YOU VERY MUCH!!! This is a prefect solution for me and it works great!!! Well...as long as my board is turned on!

    Over the weekend, for some set up situations.....I had to go into the VB Options menu and turn my board OFF.

    My VBAdvanced is set up as my home page...and so when someone who is NOT a member and NOT logged in comes to my site from their mobile device...AND my site is turned OFF....then in this situation, all they get is a blank white page.

    NOW...I realize that this is a RARE event.....but it does happen....is there any way to ADD to this code to be prepared for when this happens...?????

    LET ME KNOW???

    Kirk

  10. #10
    Join Date
    Sep 2004
    Posts
    19

    Default

    I guess there are NO SOLUTIONS FOR THIS?????

  11. #11
    Join Date
    Sep 2004
    Posts
    19

    Default

    Other than....never turning off your board???

  12. #12
    Join Date
    Apr 2010
    Posts
    22

    Default I have this message.

    page too large content may not be displayed properly

  13. #13
    Join Date
    Oct 2007
    Location
    t.dot b.dot
    Posts
    34

    Default

    Has anyone figured out a solution to avoid getting the blank CMS page when the forums are turned off?
    TBMOTORING - Thunder Bay Automotive Enthusiast Club
    http://tbmotoring.com

  14. #14

    Default

    I'm having a problem with this. I have two 4.X forums and so I've got the mobile skin activated for both. I use VBA 4.2 on both of them. On one this template additon works perfectly, but on the other clicking on the "forum" icon on the girdmenu just reopens the home page.

    I have VBA set up at domainname.com/index.php and I have the forum at domainname.com/forum/forum.php.

    All the other icons on the grid menu work -- just not forum.php. I take that back, when you click on "What's New" you get a list of new posts. But when you click on one of the posts you go back to the VBA home page.

    So, /forum/forum.php is loading as /index.php.

    I assume my problem is not really this mobile workaround -- which is brilliant by the way -- but if anyone has any clues I'd love to hear them.
    Last edited by creativepart; 11-26-2012 at 03:12 PM.

  15. #15
    Join Date
    Feb 2009
    Posts
    1

    Default

    Quote Originally Posted by too_cool_3 View Post
    Has anyone figured out a solution to avoid getting the blank CMS page when the forums are turned off?
    I disable the mobile style and then switch off the site. No more blank page...

  16. #16
    Join Date
    Sep 2004
    Posts
    12

    Default

    Awesome Fix!

  17. #17
    Join Date
    Oct 2005
    Posts
    19

    Default

    Great fix and it's certainly better than the white page I was getting before this! But... I'm having the same problem as the one below. I'd be grateful for any ideas on how to solve this problem.


    Quote Originally Posted by creativepart View Post
    I'm having a problem with this. I have two 4.X forums and so I've got the mobile skin activated for both. I use VBA 4.2 on both of them. On one this template additon works perfectly, but on the other clicking on the "forum" icon on the girdmenu just reopens the home page.

    I have VBA set up at domainname.com/index.php and I have the forum at domainname.com/forum/forum.php.

    All the other icons on the grid menu work -- just not forum.php. I take that back, when you click on "What's New" you get a list of new posts. But when you click on one of the posts you go back to the VBA home page.

    So, /forum/forum.php is loading as /index.php.

    I assume my problem is not really this mobile workaround -- which is brilliant by the way -- but if anyone has any clues I'd love to hear them.

  18. #18
    Join Date
    Aug 2005
    Posts
    13

    Default

    thanks for this great fix, works perfectly!

    kr Chris
    sorry for my bad english ... my german is much better

  19. #19
    Join Date
    Dec 2009
    Posts
    3

    Default

    It works, but it redirects me back to mobile grid??

    Ps Im using vb 4.2

  20. #20
    Join Date
    Apr 2007
    Location
    Athens , Greece
    Posts
    11

    Default

    thanks for temp solution (fix for vb mobile style)

    i have perm solution => disable vb mobile style and have work perfect VBAdvance in PC , VB Forum in Mobile.

    i have installed Tapatalk and Forum Runner Support.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. CMPS Blank Page Mobile Style
    By slipkot in forum Troubleshooting & Problems
    Replies: 21
    Last Post: 04-22-2015, 02:12 PM
  2. Please add a compatible Mobile style.
    By thecore762 in forum Site Feedback & Updates
    Replies: 2
    Last Post: 10-18-2012, 02:20 PM
  3. CMPS page is empy when viewing on a mobile device
    By eam in forum Troubleshooting & Problems
    Replies: 6
    Last Post: 07-08-2012, 06:31 PM
  4. VB 4.1.11 Mobile Style
    By creativepart in forum Troubleshooting & Problems
    Replies: 2
    Last Post: 03-20-2012, 06:04 PM
  5. How to kep CMPS off mobile style?
    By creativepart in forum Troubleshooting & Problems
    Replies: 3
    Last Post: 07-12-2010, 06:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •