PDA

View Full Version : Importing products doesnt affect mobile style


emath
02-15-2016, 02:48 PM
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
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
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
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. Importing products doesnt affect mobile styleExactly as intended.