Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
  #1  
Old 02-15-2016, 02:48 PM
emath emath is offline
 
Join Date: Sep 2008
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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 .
Reply With Quote
  #2  
Old 02-15-2016, 02:54 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 02-15-2016, 03:05 PM
emath emath is offline
 
Join Date: Sep 2008
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 02-15-2016, 03:50 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 02-16-2016, 04:37 AM
emath emath is offline
 
Join Date: Sep 2008
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 .
Reply With Quote
  #6  
Old 02-16-2016, 06:24 PM
squidsk's Avatar
squidsk squidsk is offline
 
Join Date: Nov 2010
Posts: 969
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Благодарность от:
Max Taxable
  #7  
Old 02-17-2016, 07:51 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by emath View Post
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.
Reply With Quote
  #8  
Old 02-17-2016, 08:35 AM
webmastersun's Avatar
webmastersun webmastersun is offline
 
Join Date: Oct 2013
Location: www.webmastersun.com
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by emath View Post
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.
Reply With Quote
  #9  
Old 02-17-2016, 04:43 PM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by squidsk View Post
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:16 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04089 seconds
  • Memory Usage 2,232KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (1)post_thanks_box_bit
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete