Version: 1.0.3, by dartho
Developer Last Online: Oct 2023
Version: 4.1.8
Rating:
Released: 08-24-2010
Last Update: 12-15-2011
Installs: 897
Re-useable Code
No support by the author.
A lightweight *forum only style aimed at small screen devices such as Windows Smartphones, Nokias and even iPhones. It has VERY low bandwidth requirements - 15 times less on my site - 20K as opposed to 300K for forumhome.
*forum only - I have done a very small amount of rough work on CMS templates, a simple single column CMS *could* be created to work with this style without too much effort. However I am not sure if you can have a different CMS layout dependent on which style you are using?
This is an update to the mobile style I have previously released.
The changes are predominantly aesthetic to take advantage of larger screens.
It is also much easier to change colour schemes by editing the commented CSS file.
This is a a lightweight style and as such has much reduced functionality/information over the default vBulletin style.
Install instructions:
Firstly, if upgrading, I recommend installing this as a new style rather than overwriting your previous install. This way you get to test it first without trashing your existing style.
BACKUP YOUR EXISTING lightweight.css.php FILE IF YOU HAVE CSS CUSTOMISATIONS
Download ZIP file
Unzip to a local/temp directory
Edit lightweight.css.php file to customise colours if required
Upload contents of the upload directory in the zip file folder to your forum root.
Install style XML via Style Manager in your ADMINCP
Enjoy checking your site from your mobile phone without the need to pinch/zoom/wait etc...
Version Control:
1.0.0 - 25 AUG 2010 - Initial Release on vBulletin.org
1.0.1 - 26 AUG 2010 - Fixed "Mark All Forums Read" link in Search results. Released Lightweight Style Options to customise this
1.0.2 - 21 MAR 2011 - Updated to 4.1.2, removed short tags from CSS, fixed some issues discovered since last release, added some stuff.
1.0.3 - 16 DEC 2011 - Updated to 1.0.3, tried to fix all known issues. Nothing new. If you have updated your site as bugs have been found, probably no need to upgrade. But if you're upgrading your site from to 4.1.9, might be worthwhile.
1.0.3a - 16 DEC 2011 - remove test ad hook code accidently left in postbit_legacy template
Branding Free:
The style is free to use. However I ask that you keep links in the footer. If you want to remove them - send me a donation of an amount you can afford, or that you think is fair/reasonable, it's up to you how much.
I haven;t forgotten you - it's just that I've been fixing style bugs - your request is not related to this style as such.
Having said all that - I'll try and point you in the right direction -
To strip all HTML tags from posts for a specific style ID, create a plugin as follows:
Product:vBulletin
Hook Location: Postbit Disaply Complete
Name: Strip HTML from Mobile Style Posts
Execution Order:5
Code:
Code:
if (STYLEID=='n') {
$post['message']=strip_tags($post['message'],'<br><a>');
}
replace 'n' with teh styleid of your lightweight style.
the bit in teh code with teh <br><a> is HTML tags you wish to allow, if you want images, add in <img>, if you want <stong> add it in etc. Google php strip_tags
if you can add to standard style, you can ad to this I guess. I don't know what admob is
Admob is banner ad serving program for mobile devices. It generates a Google adsense like script to use. Where would I add that script if I want to post the banner after
I don't do advertising inposts or threads etc, so have no idea. I'm pretty sure the ad hooks are in this style, so you would use them the same way you would with the default style. Find where someone else has done this with the default style and do the same as them.
I don't do advertising inposts or threads etc, so have no idea. I'm pretty sure the ad hooks are in this style, so you would use them the same way you would with the default style. Find where someone else has done this with the default style and do the same as them.
Thanks for a quick response. I found out that admob does not work for mobile apps but I got the code for Mobile Adsense. Those links are javascript. I tried using it in a regular HTML page on phone and it works but using it in the ad_showthread_firstpost_start does not work. If I use an adsense link in this ad_showthread_firstpost_start on regular desktop style it works.
Do you know if the lighweight (mobile) style will support javascript?
I just had a look, and those template hooks aren;t there. Try editing the postbit and postbit legacy templates and adding the following code at the end of the template and see how that goes (try both to see how it looks)
I just had a look, and those template hooks aren;t there. Try editing the postbit and postbit legacy templates and adding the following code at the end of the template and see how that goes (try both to see how it looks)
How do I add another banner at the end of thread? I tried adding it in ad_thread_last_post_content but it won't show up. Ideally something at the end of thread (after all posts) would be really nice. Thanks.
The only other ad hook location in threads is the first post sig. I think that if those ad hooks I asked you to add to the postbit template aren't doing it, your problem lays elsewhere. Alternatively there are header and footer hooks that can be added in.