A very cut back style with very low bandwidth usage which renders well on pretty much all small screen devices from old Nokias to new iPhones.
Supports viewing/posting/replying in forums
Supports Private Messaging
Supports Tags (viewing, not adding)
Supports viewing and replying to messages in Social Groups
Supports Thread Prefixes
has an add-on product to customise here: Extend and Customise Mobile Style (It is recommended that you install this also, but not required)
Supports other stuff too ....
Notes
If you are installing this on a vBulletin version higher than the current 'supported' version, and wish to get rid of the Out-of-Date Custom Templates Found! errors, see Post #329 for more information...
To modify the colour scheme of this style, you have to edit the wireless.css file by hand
If you use a portal such as vbadvanced which you wish to disable in mobile style, see here
Release Information
Version 0.0.1 - Initial release ported from my 3.6 version here
Version 0.0.2 - Added auto quoting when replying to a post
- fixed "Up" link bug
- Added 'Posted via Mobile Device' message to new posts
- couple small non - critical bugs fixed in some links
Version 0.0.3 - No change other than change version to 3.7RC2
Version 0.0.4 - Updated with security tokens tages for forms submital, and Gold version
Version 0.0.5 - fixed navbar template "Home" link (you will need to edit this if your default forum page is not index.php)
Version 0.0.6 - added ad_hook locations, fixed page titles, fixed couple small bugs
Version 0.0.7 - Added Style chooser to UserCP, Post count to threads, Search Page, Attachment Sizes, More detailed time info, viewing/voting in polls, other stuff too probably
Version 0.0.8 - now has an addon to customise certains aspects of this style - see HERE
Version 0.0.9 - updated template version numbers to to 3.7.2 - no other changes have been made
Version 0.0.10 - Now Fully Phrased (thanks Keyser Soze) Other updates included so its add-on product can do more customization
Both this style and the addon will have the same version numbers - it's best to make sure you update the add-on when updating the style.
Version 0.0.10a - fixed small bug in footer template
Install Instructions
Save attached XML to your local computer
Save attached wireless.css.txt, rename to wireless.css and upload to your forum root
In AdminCP go to "Styles and Templates"
In the "Import Style XML File" section browse to where you saved the XML
Click "Import" button
Come back to this page and click "Mark as Installed"
Other useful Add-ons to use in Conjunction with this style
This is a companion add-on designed specifically for this style which allows you to customise some aspects of it without the need to edit templates. Only works with version 0.0.8 and above
Will force the user to a predefined style based on URL visited (eg. visiting mobile.yourdomain.com will force the user to use a pre-defined mobile style wilst www.yourdomain.com will display your defaultstyle to the user
Will set the maximum number of posts and threads displayed on a page based on a style. Whilst you may want to display 25 threads per page on a desktop, a small screen/mobile device would probably benefit from only showing 5 - 10 threads per page.
OK - I think I have working properly now. Code for plugin below. Ads don;t show up all teh time and after a bunch of refreshes they go a way for a while. This is a google thing and I guess it depends on your sites content and who is advertising? Anyway - the following seems to work for me. It is set for showing ads just before the quick reply, but you can change the ad_location in the code to show them after first post by searching and replacing ad_showthread_beforeqr for ad_showthread_firstpost in the plugin code...
Get your mobile adsense PHP code - here's the code Google game me (DO NOT USE THIS - GET YOUR OWN)
$google_ad_handle = @fopen(google_get_ad_url(), 'r');
if ($google_ad_handle) {
while (!feof($google_ad_handle)) {
echo fread($google_ad_handle, 8192);
}
fclose($google_ad_handle);
}
?>
I had to move al the functions to the top of the code block for it to work in a plug in I created a called "Google Adsense Mobile" on the showthread_start hook. Here is the working plugin code:
PHP Code:
if ($styleid == xx) {
function google_append_url(&$url, $param, $value) {
$url .= '&' . $param . '=' . urlencode($value);
}
function google_append_globals(&$url, $param) {
google_append_url($url, $param, $GLOBALS['google'][$param]);
}
function google_append_color(&$url, $param) {
global $google_dt;
$color_array = split(',', $GLOBALS['google'][$param]);
google_append_url($url, $param,
$color_array[$google_dt % sizeof($color_array)]);
}
$google_ad_handle = @fopen(google_get_ad_url(), 'r');
if ($google_ad_handle) {
while (!feof($google_ad_handle)) {
$googlemad .= fread($google_ad_handle, 8192);
}
fclose($google_ad_handle);
}
$vbulletin->templatecache['ad_showthread_beforeqr'] = str_replace($find,$replace,$googlemad);
}
You'll see I wrapped the google code in a conditional if ($styleid == xx) { ... } where xx is the styleid of my mobile style - you will need to change this and removed the opening and closing php tags.
The other changes (after moving the functions to the top) were:
1. replace
That's about it. You could modify and or duplicate this to work with other ad_locations. Current defined ad_locations in vBulletin 3.7 (and this style) and the likely best hook location for these ads are (i'm not so sure about the ones in blue - they should work there, but there may be a more efficient place to put them. Feedback welcomed!):
@The WHite - PM me your google mobile adsense code, the styleid number of your mobile style, where you want the ads to show (you can choose from one of these: ad_forumdisplay_afterthreads, ad_forumhome_afterforums, ad_showthread_beforeqr, ad_showthread_firstpost) and over the weekend if/when I get a bit of time I'll turn it into a plugin and send it back to you.
HOWEVER - no warranties, guaranties, support or any such thing comes with the code I send back to you.
I found a little bug, when replying if you type in too many words you won't be able to see the text anymore because it will no longer scroll down in the window and another thing since the admins and mods are unable to edit,ban or anything else is it possibile to remove the cancel button [X]?
Thanks for all of the help
Note to all: The coder dartho is a very helpful person =)
I found a little bug, when replying if you type in too many words you won't be able to see the text anymore because it will no longer scroll down in the window
Not sure what you mean here? Is this quick reply or reply - both use a textarea anyway so it could be your browser limitations...
Quote:
Originally Posted by TheWhite
and another thing since the admins and mods are unable to edit,ban or anything else is it possibile to remove the cancel button [X]?
Moderators (or users/groups with the correct permissions) can edit posts, delete posts and delete threads. You can edit the postbit template to remove the delete thread link ([X]) if you don't require it