The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Mobile Phone / iPhone / PDA Detection and Style Assignment Details »» | ||||||||||||||||||||||||
Mobile Phone / iPhone / PDA Detection and Style Assignment
Developer Last Online: Oct 2023
This add-on will detect most mobile phones, iPhones, PDAs and other mobile browsing devices and automatically for the user to a specific vBulletin style.
Release Information 1.0.1 Initial release for 3.8 ported over from 3.7 version THIS IS IDENTICAL CODE TO THE 3.7 RELEASE! I only re-released as soooo many people ask the question "is this OK for 3.8" You do not need to upgrade if you already have installed! However - should there be any changes in the future, it will likely happen here. What can it do? Detects most mobile phones and force the user to a specific style (users will not be able to select other styles from a mobile device with this add-on installed). If you have multiple styles installed which are optimized for small screen mobile devices, iPhones, WIndows Mobile devices you can assign a specific style to each of these groups. Whilst designed with mobile device users in mind, you could also assign styles to self defined browsers. For example you can assign an alternative style to Internet Explorer users whilst Firefox users get the default style. You could also assign an alternative style to Google or Yahoo spiders. Instructions: 0. Install styles which you wish to assign to Mobile/PDA/iPhone users - some links will appear at the bottom of this post 1. Download the product file 2. Install via Product Manager 3. Configure options via vBulletin Options, Mobile Device Detection (should appear at end) 4. Start browsing from your mobile device! 5. Click "Mark as Installed" If upgrading from a previous 3.5 or 3.6 version, you will need to uninstall that and the install this one. To uninstall simply uninstall the product - there are no database changes or additional files. Styles released on vBulletin which you can use: Dartho's Mobile, Cell, Phone, PDA, iPhone Style for vBulletin 3.7 (<-- yep, that's mine) ElForro's iPhone / iPod Touch Optimized Style Zachery's vB Lite Style vBMechanics Mobile Alabama Style Due to the stripped down nature of these mobile styles, you will find that most for 3.5 and 3.6 will work quite happily on 3.5, 3.6, 3.7 & 3.8 although additional features introduced in vBulletin in recent years such as Social Groups, Blogs and Photo Galleries will not show well on a small screen. All should display your actual forums well. Download Now
Show Your Support
|
Comments |
#112
|
|||
|
|||
dartho,
Thanks for the mod. I've downloaded and am using the lightweight style. I also downloaded and installed the options and mobile detection and style assignment. I'm having some issues with the options and style assignment. The options installs alright but none of the changes actually implement. By that I mean I can access the options under vbulletin options, but nothing happens when I change the options. When I install detection, it doesn't even show up under vbulletin options. I tried both disabling all my other plugins and disabling them before reinstalling but neither appears to work. Do you have any ideas? |
#113
|
|||
|
|||
You're in the mobile device detection addon thread for vb3.8, there is a vb3.8 lightweoight style, but there is no "options" add-on for the "vb3.8 lightweight style", which is why they probably don't work
|
#114
|
||||
|
||||
Quote:
|
#115
|
||||
|
||||
Is there a way to allow people to go back to the full style?
|
#116
|
||||
|
||||
Its an addon for this mod.
https://vborg.vbsupport.ru/showthrea...ghlight=Mobile |
#117
|
|||
|
|||
Edit the adv_portal template in the style and replace it's contents with the following or something similar: Code:
$stylevar[htmldoctype] <html> <head> $headinclude <meta http-equiv="Refresh" content="2; URL=forum.php" /> </head> <body> $header $navbar <div align="center"><a href="forum.php">Portal Disabled in Mobile View - Click here if your browser does not automatically redirect you.</a></div> $footer </body> </html> You can do this by removing the left and right column block conditionals in the template in your mobile style. Find and delete the following 2 blocks of code: Code:
<if condition="$show['left_column']"> <td width="$vba_style[portal_leftcolwidth]"<if condition="$show['center_column'] OR $show['right_column']"> style="padding-$stylevar[right]: $vba_style[portal_colspacing]px"</if>> $home[leftblocks] </td> </if> Code:
<if condition="$show['right_column']"> <td valign="top" width="$vba_style[portal_rightcolwidth]"<if condition="$show['center_column'] OR $show['left_column']"> style="padding-$stylevar[left]: $vba_style[portal_colspacing]px"</if>> $home[rightblocks] </td> </if> |
#118
|
||||
|
||||
is there any way to add Posted via Mobile Device to all the posts?
|
#119
|
|||
|
|||
This will modify the post text and append a message to it, this means that the user could then edit the post again and remove the text if they wished, but it works for the most part. Disabling the pplugins will not remove the text from posts already made.
Create 2 plugins and change the XXX to the styleid number of your mobile style: 1. Product:vBulletin Hook Location:newreply_post_start Title: Posted via Mobile Device NewPost Execution Order:5 Plugin PHP Code: Code:
if ($styleid==XXX) { $vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "\n". "Posted via Mobile Device" . "\n"; } Product:vBulletin Hook Location:newthread_post_start Title: Posted via Mobile Device NewThread Execution Order:5 Plugin PHP Code: Code:
if ($styleid==XXX) { $vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "\n". "Posted via Mobile Device" . "\n"; } |
#120
|
|||
|
|||
Just wanted to let you know I have tested this on vB 4.1.10 and it works perfect. Thanks.
|
#121
|
|||
|
|||
Quote:
i want make 5 empty lines and than "Posted via Mobile Device", but howto? This isnt working: Code:
"\n"; "\n"; "\n"; "\n"; "\n"; "\n"; if ($styleid==XXX) { $vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "\n". "Posted via Mobile Device" . "\n"; } |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|