![]() |
|
#1
|
|||
|
|||
|
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>
for register member will show gridmenu i hope this will help you all guy |
|
#2
|
|||
|
|||
|
Works perfect. Thanks so much for this!
|
|
#3
|
|||
|
|||
|
Getting this code at the footer:
|
|
#4
|
|||
|
|||
|
worked great for me! thanks a million
|
|
#5
|
|||
|
|||
|
Code error was caused by something else. Disregard
|
|
#6
|
||||
|
||||
|
Run successfully. thank!
|
|
#7
|
|||
|
|||
|
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
|
|||
|
|||
|
Thanks mite, woudn't even think that it's not there.
|
|
#9
|
|||
|
|||
|
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
|
|||
|
|||
|
I guess there are NO SOLUTIONS FOR THIS?????
|
|
#11
|
|||
|
|||
|
Other than....never turning off your board???
|
|
#12
|
|||
|
|||
|
page too large content may not be displayed properly
|
|
#13
|
||||
|
||||
|
Has anyone figured out a solution to avoid getting the blank CMS page when the forums are turned off?
|
|
#14
|
|||
|
|||
|
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. |
|
#15
|
|||
|
|||
|
I disable the mobile style and then switch off the site. No more blank page...
|
|
#16
|
|||
|
|||
|
Awesome Fix!
|
|
#17
|
|||
|
|||
|
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:
|
|
#18
|
|||
|
|||
|
thanks for this great fix, works perfectly!
kr Chris
__________________
sorry for my bad english ... my german is much better
|
|
#19
|
|||
|
|||
|
It works, but it redirects me back to mobile grid??
Ps Im using vb 4.2 |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |