vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Importing products doesnt affect mobile style (https://vborg.vbsupport.ru/showthread.php?t=321823)

emath 02-15-2016 02:48 PM

Importing products doesnt affect mobile style
 
hey all,

when i am creating a mobile style in vbulletin 4.1.2 and importing a product which created new templates, it only affects the non-mobile style.

the templates are not being added to the mobile-style,

is there anything special i need to do to make it work? maybe some remarks in the product XML file ?

thanks in advance .

Dave 02-15-2016 02:54 PM

vBulletin its mobile style does indeed not really support plugins and is basically very trimmed down. Your only option would be to add the templates manually to vBulletin's mobile style, but you have to make sure it respects the HTML structure or else it will look weird. I could be wrong but there's a big chance that even then it will not work properly.

emath 02-15-2016 03:05 PM

so what can i do if my site has many custom pages and i need that my site will support mobile ?

i know that responsive will require rewriting the whole style from scratch and now you are telling me that a different style for mobile is also not possible if i have many custom pages ? ("many custom pages " = 3-4 plugins )

obviously copy-pasting the templates (about 80-90 ) its not an option, leaving the hard work, it will not be maintainable as it wont be part of the product and probably has other issues

Dave 02-15-2016 03:50 PM

The only way (as far as I know) is to implement the templates in the mobile style and then you create a mod which will load those templates when the user is viewing a page in a mobile style.

You can check out the mobile.php file as an example.

emath 02-16-2016 04:37 AM

what do u mean by " implement the templates in the mobile style" ? copy pasting the products templates into the mobile style ?

if so why do i need to create any mod... once the user is in the mobile style he will be able to view this templates .

squidsk 02-16-2016 06:24 PM

Implement means just that. Not all templates exist in the mobile master so if a mod uses a template hook for a template that doesn't exist in the mobile style then anything done on that hook will never be displayed.

cellarius 02-17-2016 07:51 AM

Quote:

Originally Posted by emath (Post 2565021)
what do u mean by " implement the templates in the mobile style" ? copy pasting the products templates into the mobile style ?

This will not work, since the mobile style is completely different from the normal style. You basically adapt the templates you need to the mobile style, or in other words: you need to write them.

webmastersun 02-17-2016 08:35 AM

Quote:

Originally Posted by emath (Post 2564946)
hey all,

when i am creating a mobile style in vbulletin 4.1.2 and importing a product which created new templates, it only affects the non-mobile style.

the templates are not being added to the mobile-style,

is there anything special i need to do to make it work? maybe some remarks in the product XML file ?

thanks in advance .

Covert your theme into responsive design and all your mods will work.

I changed my forum theme into responsive and all of them are working well now.

Max Taxable 02-17-2016 04:43 PM

Quote:

Originally Posted by squidsk (Post 2565069)
Implement means just that. Not all templates exist in the mobile master so if a mod uses a template hook for a template that doesn't exist in the mobile style then anything done on that hook will never be displayed.

And this was done intentionally, vBulletin made its mobile style to be agnostic of most all add-ons and products, so they wouldn't have to worry about any of these "breaking" the mobile style.
Quote:

Importing products doesnt affect mobile style
Exactly as intended.


All times are GMT. The time now is 09:00 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.01654 seconds
  • Memory Usage 1,731KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete