vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v4.0 Support > Troubleshooting & Problems

Reply
 
Thread Tools Display Modes
  #1  
Old 07-13-2012, 03:02 PM
Sempoi Sempoi is offline
Junior Member
 
Join Date: May 2012
Posts: 3
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
Reply With Quote
  #2  
Old 07-24-2012, 02:23 PM
sandboa sandboa is offline
Junior Member
 
Join Date: May 2012
Posts: 5
Default

Works perfect. Thanks so much for this!
Reply With Quote
  #3  
Old 07-24-2012, 03:57 PM
sandboa sandboa is offline
Junior Member
 
Join Date: May 2012
Posts: 5
Default

Getting this code at the footer:
Attached Images
File Type: png Untitled.png (25.9 KB, 49 views)
Reply With Quote
  #4  
Old 07-24-2012, 04:44 PM
vivapotenza vivapotenza is offline
Junior Member
 
Join Date: Jun 2012
Posts: 5
Default

worked great for me! thanks a million
Reply With Quote
  #5  
Old 07-24-2012, 11:40 PM
sandboa sandboa is offline
Junior Member
 
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
Reply With Quote
  #6  
Old 07-27-2012, 07:00 AM
anwar's Avatar
anwar anwar is offline
Member
 
Join Date: Jul 2010
Location: Karamay City, Xinjiang Uygur Autonomous Region of China
Posts: 30
Default

Run successfully. thank!
Reply With Quote
  #7  
Old 07-31-2012, 10:30 AM
Craigr Craigr is offline
Junior Member
 
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
Reply With Quote
  #8  
Old 08-03-2012, 08:17 AM
zascok zascok is offline
Junior Member
 
Join Date: Jun 2012
Posts: 12
Default

Thanks mite, woudn't even think that it's not there.
Reply With Quote
  #9  
Old 08-07-2012, 06:38 PM
Kirk Voclain Kirk Voclain is offline
Junior Member
 
Join Date: Sep 2004
Posts: 17
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
Reply With Quote
  #10  
Old 08-16-2012, 05:10 PM
Kirk Voclain Kirk Voclain is offline
Junior Member
 
Join Date: Sep 2004
Posts: 17
Default

I guess there are NO SOLUTIONS FOR THIS?????
Reply With Quote
  #11  
Old 08-16-2012, 05:10 PM
Kirk Voclain Kirk Voclain is offline
Junior Member
 
Join Date: Sep 2004
Posts: 17
Default

Other than....never turning off your board???
Reply With Quote
  #12  
Old 09-22-2012, 04:40 AM
draque1 draque1 is offline
Junior Member
 
Join Date: Apr 2010
Posts: 22
Default I have this message.

page too large content may not be displayed properly
Reply With Quote
  #13  
Old 10-15-2012, 11:17 PM
too_cool_3's Avatar
too_cool_3 too_cool_3 is offline
Member
 
Join Date: Oct 2007
Location: t.dot b.dot
Posts: 30
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
Reply With Quote
  #14  
Old 11-26-2012, 02:06 PM
creativepart creativepart is offline
Member
 
Join Date: Jan 2006
Posts: 40
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 02:12 PM.
Reply With Quote
  #15  
Old 12-26-2012, 12:31 PM
Vee8 Vee8 is offline
Junior Member
 
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...
Reply With Quote
  #16  
Old 01-21-2013, 12:35 PM
dbarry dbarry is offline
Junior Member
 
Join Date: Sep 2004
Posts: 12
Default

Awesome Fix!
Reply With Quote
  #17  
Old 02-03-2013, 08:20 PM
Goatpod Goatpod is offline
Junior Member
 
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.
Reply With Quote
  #18  
Old 02-23-2013, 06:36 AM
Za4a Tuner Za4a Tuner is offline
Junior Member
 
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
Reply With Quote
  #19  
Old 04-08-2013, 09:35 AM
General Lee General Lee is offline
Junior Member
 
Join Date: Dec 2009
Posts: 3
Default

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

Ps Im using vb 4.2
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CMPS Blank Page Mobile Style slipkot Troubleshooting & Problems 20 12-12-2012 02:24 PM
Please add a compatible Mobile style. thecore762 Site Feedback & Updates 2 10-18-2012 01:20 PM
CMPS page is empy when viewing on a mobile device eam Troubleshooting & Problems 6 07-08-2012 05:31 PM
VB 4.1.11 Mobile Style creativepart Troubleshooting & Problems 2 03-20-2012 05:04 PM
How to kep CMPS off mobile style? creativepart Troubleshooting & Problems 3 07-12-2010 05:42 PM


All times are GMT -4. The time now is 02:04 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.