vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - Mobile Device Style Assignment (https://vborg.vbsupport.ru/showthread.php?t=130983)

dartho 02-23-2007 08:10 PM

I tested those useragent strings and both worked as normal (ie. NOT detected as a mobile device)

dartho 02-23-2007 08:13 PM

oops - also need to add this:
Code:

<script language="JavaScript">
  function menu_jump(path) {
    window.location.href = path.options[path.selectedIndex].value;
  }
</script>

in the headinclude template for the nav template below to work...

Quote:

Originally Posted by dartho (Post 1168311)
Glad you like it. I'm the only person on my site making use of it, but I guess I'm the most important ;)

Here's a template mod which I really like on my site for navigation.

Delete everything in your Mobile skin navbar template, and replace your header template with the following (edit red bits to suit your site/requirements):

Code:

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<TD width="100%" class="alt1">
<center>
<a href="http://www.yousite.com"><img src="your_sites_small_logo.jpg" border=0></a>
</center>
</TD>
</tr>
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" height="15" bgcolor="#ffffff">
<div align="center">
<select name="jump" onchange="menu_jump(this);">
<option selected>Mobile Navigation</option>
<option value="search.php?do=getnew">New Posts</option>
<option value="search.php?do=getdaily">Todays Posts</option>
<option value="private.php?">Private Messages</option>
<option value>----------------</option>
<option value="http://yoursite.com">Home Page</option>
<option value="forum.php">Forums</option>
<option value="search.php?">Search</option>
<option value="online.php">Who's Online</option>
<option value="sendmessage.php">Contact Us</option>
</select>
</div>
</td>
</tr>
</table>
$spacer_open
$_phpinclude_output

You can see how easy it is to add other options - I've modified most of mine to be PDA suitable...

Enjoy


Tralala 02-23-2007 08:14 PM

Quote:

Originally Posted by dartho (Post 1189321)
I tested those useragent strings and both worked as normal (ie. NOT detected as a mobile device)



k, thanks very much dartho!

/clicks INSTALL

ArAb4NoKiA 03-06-2007 04:31 AM

Hello,

it's not working on Nokia N70 ??!!

Regards,

dartho 03-06-2007 07:23 AM

New version release with more compatibility - should be good for the N70 now. If it isn't, are you able to get a copy of the user agent string and post here?

da420 03-06-2007 08:11 AM

Getting this error at the top of my pages with the hack enabled when updated to the latest version.

Did complete uninstall/reinstall, and updated my settings...

Code:

Warning: preg_match(): Unknown modifier 'M' in /global.php(237) : eval()'d code on line 64

dartho 03-06-2007 09:07 AM

Sorry - Fixed!

I will now save the previous version when adding a new one to make it easy to roll back should such issues happen again...

ABeautifulBrown 03-08-2007 01:17 PM

I installed this and it made all my templates look like the mobile one?

ArAb4NoKiA 03-09-2007 12:13 PM

it worked fine

thanks :)

dartho 03-09-2007 09:05 PM

ArAb4NoKiA: Thanks for the feedback - feel free to click MARK AS INSTALLED

Quote:

Originally Posted by ABeautifulBrown (Post 1198766)
I installed this and it made all my templates look like the mobile one?

The only case I thonk this could happen due to this hack would be if you are using a browser which is being detected as a mobile device browser... What OS/Browser are you using?

If you log off your site - is it still the mobile skin? How about if you disable this hack?
thanks


All times are GMT. The time now is 04:27 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01170 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete