The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Hide welcome guest message on mobile?
I want to hide the welcome guest message to mobile users. It doesn't format properly and needs to be hidden on mobile. What is the best way to do this?
Thanks. |
#2
|
|||
|
|||
Find it in the mobile styles are remove it really.
|
#3
|
||||
|
||||
If you are talking about viewing the full site on a mobile device, versus the mobile style, this would require you to add some code to detect if it is a mobile device, and then wrap the welcome message with a conditional.
Off the top of my head this is not a easy task, but I have not looked into it. --------------- Added [DATE]1379808632[/DATE] at [TIME]1379808632[/TIME] --------------- Actually looking around you can use this mod, https://vborg.vbsupport.ru/showthread.php?t=292704 You will have to edit the plugin, Mobile Browser Check found in the group Mobile Browser Detector (BOP5) In the bottom of that plugin add the following. At the bottom add lines such as: PHP Code:
Then in a template you can go in you header template and find this code. Code:
<li class="welcomelink">{vb:rawphrase welcome_x_link_y, {vb:raw bbuserinfo.username}, {vb:link member, {vb:raw bbuserinfo}}}</li> Code:
<vb:if condition="$vboptions['isMobile']"> <li class="welcomelink">{vb:rawphrase welcome_x_link_y, {vb:raw bbuserinfo.username}, {vb:link member, {vb:raw bbuserinfo}}}</li> </vb:if> |
#4
|
|||
|
|||
Quote:
Code:
if ($vbulletin->detect->isMobile()) $vbulletin->options['isMobile'] = 1; Edit: Also, I don't see this code in the header or headerinclude default template: Code:
<li class="welcomelink">{vb:rawphrase welcome_x_link_y, {vb:raw bbuserinfo.username}, {vb:link member, {vb:raw bbuserinfo}}}</li> |
#5
|
||||
|
||||
When viewing your site, on a mobile device, are you viewing it with a regular style or a mobile style?
|
#6
|
|||
|
|||
Quote:
|
#7
|
|||
|
|||
Ideally, I want mobile devices to default to the mobile style, but they still need to have the option to switch to the full browser. I did use useragent to switch the style, but then user complained that they couldn't view the full site on their phones.
How do most people deal with this? Basically what I am trying to do atm is hide the guest welcome message (ie. notice) on mobile since it is a massive block that doesn't look well on mobile. Your instructions above seem close to what I need, but still wondering about my questions from post #4 above. Thanks! |
#8
|
|||
|
|||
Ideally, I want mobile devices to default to the mobile style, but they still need to have the option to switch to the full browser. I did use useragent to switch the style, but then user complained that they couldn't view the full site on their phones.
How do most people deal with this? |
#9
|
|||
|
|||
Bump.
I'm considering getting the mobile suite. Does it work with 4.2.1? Or alternatively, I'd like to have mobile users redirected to the mobile style, but still have the option to view desktop mode. Is this possible? Thanks. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|