vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Styles (https://vborg.vbsupport.ru/forumdisplay.php?f=247)
-   -   Forum Style - Lightweight Style for Small Screen Devices (cell phone, iphone, mobile, android) (https://vborg.vbsupport.ru/showthread.php?t=249277)

dartho 01-18-2012 08:01 AM

If you wish to make this change manually, edit init.php and
search for:
Code:

elseif ($mobile_browser_advanced && $vbulletin->options['mobilestyleid_advanced'] && !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'])
and replace with
Code:

elseif ($mobile_browser_advanced AND $vbulletin->options['mobilestyleid_advanced'] AND !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'] AND !$vbulletin->GPC[COOKIE_PREFIX . 'userstyleid'])
and search for
Code:

elseif ($mobile_browser && $vbulletin->options['mobilestyleid_basic'] && !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'])
and replace with

Code:

elseif ($mobile_browser AND $vbulletin->options['mobilestyleid_basic'] AND !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'] AND !$vbulletin->GPC[COOKIE_PREFIX . 'userstyleid'])

dartho 01-18-2012 08:47 AM

Quote:

Originally Posted by yanref (Post 2288530)
thanks mate.

all working now, and very good it is too.

very impressed with the way you have helped out, so many would not!:up:

Turns out the BASE meta tag needed to be removed as it was being set to the web root as opposed to forum root. Removing it made all links relative, and thus they worked again.

slinky 01-18-2012 08:37 PM

Quote:

Originally Posted by dartho (Post 2287869)
Just marking a milestone - this is now the most 'installed' style for VB4

Which speaks volumes about the quality of what one great developer can do versus an entire team of developers in a dozen countries at Internet Brands and vBulletin Solutions.

Kudos to you Dartho. Tremendous work and why I sent you some money like others should do.

tekmaster 01-19-2012 12:03 AM

I have a question:

I'm on 4.1.5 and currently it does not display the register option, I was wondering if this is due to possibly a plugin conflict or a feature I'm supposed to enable but just overlooked?

dartho 01-19-2012 12:30 AM

There is no regiuster option - I've yet to do the registration page (go direct to register.php and you'll see). You could easily enough add it in if desired...

tekmaster 01-19-2012 12:41 AM

Quote:

Originally Posted by dartho (Post 2289662)
There is no regiuster option - I've yet to do the registration page (go direct to register.php and you'll see). You could easily enough add it in if desired...

thanks for the quick response, I compared a few of your screenshots and saw the notices box, I used that to do substitute as the register redirect,

thanks

sportsfroma2 01-19-2012 01:30 PM

Quote:

Originally Posted by dartho (Post 2289299)
If you wish to make this change manually, edit ini.php and
search for:
Code:

elseif ($mobile_browser_advanced && $vbulletin->options['mobilestyleid_advanced'] && !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'])
and replace with
Code:

elseif ($mobile_browser_advanced AND $vbulletin->options['mobilestyleid_advanced'] AND !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'] AND !$vbulletin->GPC[COOKIE_PREFIX . 'userstyleid'])
and search for
Code:

elseif ($mobile_browser && $vbulletin->options['mobilestyleid_basic'] && !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'])
and replace with

Code:

elseif ($mobile_browser AND $vbulletin->options['mobilestyleid_basic'] AND !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'] AND !$vbulletin->GPC[COOKIE_PREFIX . 'userstyleid'])

very minor thing, but just wanted to point out that the changes need to be made in init.php (not ini.php).

Anyway, after that fix it works great for me in 4.1.10.

keep up the great work, thanks alot dartho :up:

dartho 01-20-2012 12:01 AM

correct - that's a typo , fixed now

doobiefillin 01-21-2012 01:18 AM

where do i find init.php?

dartho 01-21-2012 02:10 AM

it's a vbulletin file, located in the <forumroot>/includes directory


All times are GMT. The time now is 09:15 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.01975 seconds
  • Memory Usage 1,747KB
  • 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
  • (8)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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